From a4044d8106c5da02b4291e70ed5bb31203e86ab6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Oct 2024 21:18:15 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...=> JsonConverters.AIMessageChunkType.g.cs} | 12 +- ...Converters.AIMessageChunkTypeNullable.g.cs | 56 + .../JsonConverters.AIMessageType.g.cs | 49 + .../JsonConverters.AIMessageTypeNullable.g.cs | 56 + .../JsonConverters.ChatMessageChunkType.g.cs | 49 + ...nverters.ChatMessageChunkTypeNullable.g.cs | 56 + .../JsonConverters.ChatMessageType.g.cs | 49 + ...sonConverters.ChatMessageTypeNullable.g.cs | 56 + ...onConverters.FunctionMessageChunkType.g.cs | 49 + ...ters.FunctionMessageChunkTypeNullable.g.cs | 56 + .../JsonConverters.FunctionMessageType.g.cs | 49 + ...onverters.FunctionMessageTypeNullable.g.cs | 56 + .../JsonConverters.HumanMessageChunkType.g.cs | 49 + ...erters.HumanMessageChunkTypeNullable.g.cs} | 12 +- .../JsonConverters.HumanMessageType.g.cs | 49 + ...onConverters.HumanMessageTypeNullable.g.cs | 56 + .../JsonConverters.InvalidToolCallType.g.cs | 49 + ...onverters.InvalidToolCallTypeNullable.g.cs | 56 + .../JsonConverters.MessagesItem.g.cs | 211 +++ ...verters.PlayGroundGraphArtifactLength.g.cs | 49 + ...PlayGroundGraphArtifactLengthNullable.g.cs | 56 + ...ayGroundGraphMessageDiscriminatorType.g.cs | 49 + ...GraphMessageDiscriminatorTypeNullable.g.cs | 56 + ...onverters.PlayGroundGraphReadingLevel.g.cs | 49 + ...s.PlayGroundGraphReadingLevelNullable.g.cs | 56 + ...JsonConverters.SystemMessageChunkType.g.cs | 49 + ...erters.SystemMessageChunkTypeNullable.g.cs | 56 + .../JsonConverters.SystemMessageType.g.cs | 49 + ...nConverters.SystemMessageTypeNullable.g.cs | 56 + .../JsonConverters.ToolCallChunkType.g.cs | 49 + ...nConverters.ToolCallChunkTypeNullable.g.cs | 56 + .../JsonConverters.ToolCallType.g.cs | 49 + .../JsonConverters.ToolCallTypeNullable.g.cs | 56 + ...JsonConverters.ToolMessageChunkStatus.g.cs | 49 + ...erters.ToolMessageChunkStatusNullable.g.cs | 56 + .../JsonConverters.ToolMessageChunkType.g.cs | 49 + ...nverters.ToolMessageChunkTypeNullable.g.cs | 56 + .../JsonConverters.ToolMessageStatus.g.cs | 49 + ...nConverters.ToolMessageStatusNullable.g.cs | 56 + .../JsonConverters.ToolMessageType.g.cs | 49 + ...sonConverters.ToolMessageTypeNullable.g.cs | 56 + .../Generated/JsonSerializerContext.g.cs | 43 +- .../Generated/JsonSerializerContextTypes.g.cs | 1134 ++++++++++------- .../LangSmith.IPromptsClient.Canvas.g.cs | 32 +- .../Generated/LangSmith.Models.AIMessage.g.cs | 163 +++ ...mith.Models.AIMessageAdditionalKwargs.g.cs | 76 ++ .../LangSmith.Models.AIMessageChunk.g.cs | 165 +++ ...Models.AIMessageChunkAdditionalKwargs.g.cs | 76 ++ ...els.AIMessageChunkContentVariant2Item.g.cs | 76 ++ ...Models.AIMessageChunkResponseMetadata.g.cs | 76 ++ .../LangSmith.Models.AIMessageChunkType.g.cs | 45 + ...h.Models.AIMessageContentVariant2Item.g.cs | 76 ++ ...mith.Models.AIMessageResponseMetadata.g.cs | 76 ++ .../LangSmith.Models.AIMessageType.g.cs | 45 + .../Generated/LangSmith.Models.Artifact.g.cs | 96 ++ .../LangSmith.Models.ArtifactContent.g.cs | 89 ++ .../LangSmith.Models.ChatMessage.g.cs | 123 ++ ...th.Models.ChatMessageAdditionalKwargs.g.cs | 76 ++ .../LangSmith.Models.ChatMessageChunk.g.cs | 123 ++ ...dels.ChatMessageChunkAdditionalKwargs.g.cs | 76 ++ ...s.ChatMessageChunkContentVariant2Item.g.cs | 76 ++ ...dels.ChatMessageChunkResponseMetadata.g.cs | 76 ++ ...LangSmith.Models.ChatMessageChunkType.g.cs | 45 + ...Models.ChatMessageContentVariant2Item.g.cs | 76 ++ ...th.Models.ChatMessageResponseMetadata.g.cs | 76 ++ .../LangSmith.Models.ChatMessageType.g.cs | 45 + .../LangSmith.Models.FunctionMessage.g.cs | 122 ++ ...odels.FunctionMessageAdditionalKwargs.g.cs | 76 ++ ...LangSmith.Models.FunctionMessageChunk.g.cs | 117 ++ ....FunctionMessageChunkAdditionalKwargs.g.cs | 76 ++ ...nctionMessageChunkContentVariant2Item.g.cs | 76 ++ ....FunctionMessageChunkResponseMetadata.g.cs | 76 ++ ...Smith.Models.FunctionMessageChunkType.g.cs | 45 + ...ls.FunctionMessageContentVariant2Item.g.cs | 76 ++ ...odels.FunctionMessageResponseMetadata.g.cs | 76 ++ .../LangSmith.Models.FunctionMessageType.g.cs | 45 + .../Generated/LangSmith.Models.Highlight.g.cs | 89 ++ .../LangSmith.Models.HumanMessage.g.cs | 137 ++ ...h.Models.HumanMessageAdditionalKwargs.g.cs | 76 ++ .../LangSmith.Models.HumanMessageChunk.g.cs | 122 ++ ...els.HumanMessageChunkAdditionalKwargs.g.cs | 76 ++ ....HumanMessageChunkContentVariant2Item.g.cs | 76 ++ ...els.HumanMessageChunkResponseMetadata.g.cs | 76 ++ ...angSmith.Models.HumanMessageChunkType.g.cs | 45 + ...odels.HumanMessageContentVariant2Item.g.cs | 76 ++ ...h.Models.HumanMessageResponseMetadata.g.cs | 76 ++ .../LangSmith.Models.HumanMessageType.g.cs | 45 + .../LangSmith.Models.InputTokenDetails.g.cs | 102 ++ ... => LangSmith.Models.InvalidToolCall.g.cs} | 41 +- .../LangSmith.Models.InvalidToolCallType.g.cs | 45 + .../LangSmith.Models.MessagesItem.g.cs | 853 +++++++++++++ .../LangSmith.Models.OutputTokenDetails.g.cs | 95 ++ .../LangSmith.Models.PlayGroundGraph.g.cs | 121 ++ ....Models.PlayGroundGraphArtifactLength.g.cs | 63 + ...s.PlayGroundGraphMessageDiscriminator.g.cs | 82 ++ ...ayGroundGraphMessageDiscriminatorType.g.cs | 111 ++ ...th.Models.PlayGroundGraphReadingLevel.g.cs | 63 + .../LangSmith.Models.SystemMessage.g.cs | 131 ++ ....Models.SystemMessageAdditionalKwargs.g.cs | 76 ++ .../LangSmith.Models.SystemMessageChunk.g.cs | 116 ++ ...ls.SystemMessageChunkAdditionalKwargs.g.cs | 76 ++ ...SystemMessageChunkContentVariant2Item.g.cs | 76 ++ ...ls.SystemMessageChunkResponseMetadata.g.cs | 76 ++ ...ngSmith.Models.SystemMessageChunkType.g.cs | 45 + ...dels.SystemMessageContentVariant2Item.g.cs | 76 ++ ....Models.SystemMessageResponseMetadata.g.cs | 76 ++ .../LangSmith.Models.SystemMessageType.g.cs | 45 + .../Generated/LangSmith.Models.ToolCall.g.cs | 112 ++ .../LangSmith.Models.ToolCallArgs.g.cs | 76 ++ .../LangSmith.Models.ToolCallChunk.g.cs | 121 ++ .../LangSmith.Models.ToolCallChunkType.g.cs | 45 + .../LangSmith.Models.ToolCallType.g.cs | 45 + .../LangSmith.Models.ToolMessage.g.cs | 160 +++ ...th.Models.ToolMessageAdditionalKwargs.g.cs | 76 ++ .../LangSmith.Models.ToolMessageArtifact.g.cs | 76 ++ .../LangSmith.Models.ToolMessageChunk.g.cs | 136 ++ ...dels.ToolMessageChunkAdditionalKwargs.g.cs | 76 ++ ...Smith.Models.ToolMessageChunkArtifact.g.cs | 76 ++ ...s.ToolMessageChunkContentVariant2Item.g.cs | 76 ++ ...dels.ToolMessageChunkResponseMetadata.g.cs | 76 ++ ...gSmith.Models.ToolMessageChunkStatus.g.cs} | 22 +- ...LangSmith.Models.ToolMessageChunkType.g.cs | 45 + ...Models.ToolMessageContentVariant2Item.g.cs | 76 ++ ...th.Models.ToolMessageResponseMetadata.g.cs | 76 ++ .../LangSmith.Models.ToolMessageStatus.g.cs | 51 + .../LangSmith.Models.ToolMessageType.g.cs | 45 + .../LangSmith.Models.UsageMetadata.g.cs | 144 +++ .../LangSmith.PromptsClient.Canvas.g.cs | 50 +- src/libs/LangSmith/openapi.yaml | 760 ++++++++++- 129 files changed, 11186 insertions(+), 572 deletions(-) rename src/libs/LangSmith/Generated/{JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormat.g.cs => JsonConverters.AIMessageChunkType.g.cs} (61%) create mode 100644 src/libs/LangSmith/Generated/JsonConverters.AIMessageChunkTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.AIMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.AIMessageTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ChatMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ChatMessageChunkTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ChatMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ChatMessageTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.FunctionMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.FunctionMessageChunkTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.FunctionMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.FunctionMessageTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.HumanMessageChunkType.g.cs rename src/libs/LangSmith/Generated/{JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormatNullable.g.cs => JsonConverters.HumanMessageChunkTypeNullable.g.cs} (65%) create mode 100644 src/libs/LangSmith/Generated/JsonConverters.HumanMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.HumanMessageTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.InvalidToolCallType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.InvalidToolCallTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.MessagesItem.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphArtifactLength.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphArtifactLengthNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphMessageDiscriminatorType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphMessageDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphReadingLevel.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphReadingLevelNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.SystemMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.SystemMessageChunkTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.SystemMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.SystemMessageTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolCallChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolCallChunkTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolCallType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolCallTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkStatus.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkStatusNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolMessageStatus.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolMessageStatusNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/JsonConverters.ToolMessageTypeNullable.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessage.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessageAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunk.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessageContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessageResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.AIMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.Artifact.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ArtifactContent.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessage.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunk.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessage.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunk.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.Highlight.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessage.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunk.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.InputTokenDetails.g.cs rename src/libs/LangSmith/Generated/{LangSmith.Models.PlaygroundOptimizePromptRequestSchema.g.cs => LangSmith.Models.InvalidToolCall.g.cs} (79%) create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.InvalidToolCallType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.MessagesItem.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.OutputTokenDetails.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraph.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphArtifactLength.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphMessageDiscriminator.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphMessageDiscriminatorType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphReadingLevel.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessage.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunk.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolCall.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolCallArgs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolCallChunk.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolCallChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolCallType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessage.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageArtifact.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunk.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkAdditionalKwargs.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkArtifact.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkResponseMetadata.g.cs rename src/libs/LangSmith/Generated/{LangSmith.Models.PlaygroundOptimizePromptRequestSchemaTemplateFormat.g.cs => LangSmith.Models.ToolMessageChunkStatus.g.cs} (50%) create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageContentVariant2Item.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageResponseMetadata.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageStatus.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageType.g.cs create mode 100644 src/libs/LangSmith/Generated/LangSmith.Models.UsageMetadata.g.cs diff --git a/src/libs/LangSmith/Generated/JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormat.g.cs b/src/libs/LangSmith/Generated/JsonConverters.AIMessageChunkType.g.cs similarity index 61% rename from src/libs/LangSmith/Generated/JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormat.g.cs rename to src/libs/LangSmith/Generated/JsonConverters.AIMessageChunkType.g.cs index fd7eb84c..038fb267 100644 --- a/src/libs/LangSmith/Generated/JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormat.g.cs +++ b/src/libs/LangSmith/Generated/JsonConverters.AIMessageChunkType.g.cs @@ -3,10 +3,10 @@ namespace LangSmith.JsonConverters { /// - public sealed class PlaygroundOptimizePromptRequestSchemaTemplateFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AIMessageChunkTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat Read( + public override global::LangSmith.AIMessageChunkType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class PlaygroundOptimizePromptRequestSchemaTemplateFormatJsonConve var stringValue = reader.GetString(); if (stringValue != null) { - return global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormatExtensions.ToEnum(stringValue) ?? default; + return global::LangSmith.AIMessageChunkTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,7 +26,7 @@ public sealed class PlaygroundOptimizePromptRequestSchemaTemplateFormatJsonConve case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat)numValue; + return (global::LangSmith.AIMessageChunkType)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,12 +38,12 @@ public sealed class PlaygroundOptimizePromptRequestSchemaTemplateFormatJsonConve /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat value, + global::LangSmith.AIMessageChunkType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormatExtensions.ToValueString(value)); + writer.WriteStringValue(global::LangSmith.AIMessageChunkTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/LangSmith/Generated/JsonConverters.AIMessageChunkTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.AIMessageChunkTypeNullable.g.cs new file mode 100644 index 00000000..373cc49c --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.AIMessageChunkTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class AIMessageChunkTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.AIMessageChunkType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.AIMessageChunkTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.AIMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.AIMessageChunkType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.AIMessageChunkTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.AIMessageType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.AIMessageType.g.cs new file mode 100644 index 00000000..913ff2df --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.AIMessageType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class AIMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.AIMessageType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.AIMessageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.AIMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.AIMessageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.AIMessageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.AIMessageTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.AIMessageTypeNullable.g.cs new file mode 100644 index 00000000..981ab33f --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.AIMessageTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class AIMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.AIMessageType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.AIMessageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.AIMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.AIMessageType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.AIMessageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ChatMessageChunkType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ChatMessageChunkType.g.cs new file mode 100644 index 00000000..8c875d89 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ChatMessageChunkType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ChatMessageChunkTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ChatMessageChunkType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ChatMessageChunkTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ChatMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ChatMessageChunkType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.ChatMessageChunkTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ChatMessageChunkTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ChatMessageChunkTypeNullable.g.cs new file mode 100644 index 00000000..1afed739 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ChatMessageChunkTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ChatMessageChunkTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ChatMessageChunkType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ChatMessageChunkTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ChatMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ChatMessageChunkType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.ChatMessageChunkTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ChatMessageType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ChatMessageType.g.cs new file mode 100644 index 00000000..c9a99dbb --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ChatMessageType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ChatMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ChatMessageType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ChatMessageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ChatMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ChatMessageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.ChatMessageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ChatMessageTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ChatMessageTypeNullable.g.cs new file mode 100644 index 00000000..0c3fb3bf --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ChatMessageTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ChatMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ChatMessageType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ChatMessageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ChatMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ChatMessageType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.ChatMessageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageChunkType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageChunkType.g.cs new file mode 100644 index 00000000..de09857d --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageChunkType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class FunctionMessageChunkTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.FunctionMessageChunkType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.FunctionMessageChunkTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.FunctionMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.FunctionMessageChunkType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.FunctionMessageChunkTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageChunkTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageChunkTypeNullable.g.cs new file mode 100644 index 00000000..964d1423 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageChunkTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class FunctionMessageChunkTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.FunctionMessageChunkType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.FunctionMessageChunkTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.FunctionMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.FunctionMessageChunkType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.FunctionMessageChunkTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageType.g.cs new file mode 100644 index 00000000..22bbe6d8 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class FunctionMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.FunctionMessageType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.FunctionMessageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.FunctionMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.FunctionMessageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.FunctionMessageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageTypeNullable.g.cs new file mode 100644 index 00000000..cb15bcc6 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.FunctionMessageTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class FunctionMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.FunctionMessageType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.FunctionMessageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.FunctionMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.FunctionMessageType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.FunctionMessageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.HumanMessageChunkType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.HumanMessageChunkType.g.cs new file mode 100644 index 00000000..b0c69cec --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.HumanMessageChunkType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class HumanMessageChunkTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.HumanMessageChunkType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.HumanMessageChunkTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.HumanMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.HumanMessageChunkType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.HumanMessageChunkTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormatNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.HumanMessageChunkTypeNullable.g.cs similarity index 65% rename from src/libs/LangSmith/Generated/JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormatNullable.g.cs rename to src/libs/LangSmith/Generated/JsonConverters.HumanMessageChunkTypeNullable.g.cs index 30339e40..3f845214 100644 --- a/src/libs/LangSmith/Generated/JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormatNullable.g.cs +++ b/src/libs/LangSmith/Generated/JsonConverters.HumanMessageChunkTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace LangSmith.JsonConverters { /// - public sealed class PlaygroundOptimizePromptRequestSchemaTemplateFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class HumanMessageChunkTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat? Read( + public override global::LangSmith.HumanMessageChunkType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class PlaygroundOptimizePromptRequestSchemaTemplateFormatNullableJ var stringValue = reader.GetString(); if (stringValue != null) { - return global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormatExtensions.ToEnum(stringValue); + return global::LangSmith.HumanMessageChunkTypeExtensions.ToEnum(stringValue); } break; @@ -26,7 +26,7 @@ public sealed class PlaygroundOptimizePromptRequestSchemaTemplateFormatNullableJ case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat)numValue; + return (global::LangSmith.HumanMessageChunkType)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,7 +38,7 @@ public sealed class PlaygroundOptimizePromptRequestSchemaTemplateFormatNullableJ /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat? value, + global::LangSmith.HumanMessageChunkType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -49,7 +49,7 @@ public override void Write( } else { - writer.WriteStringValue(global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormatExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::LangSmith.HumanMessageChunkTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/LangSmith/Generated/JsonConverters.HumanMessageType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.HumanMessageType.g.cs new file mode 100644 index 00000000..3e352f0d --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.HumanMessageType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class HumanMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.HumanMessageType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.HumanMessageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.HumanMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.HumanMessageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.HumanMessageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.HumanMessageTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.HumanMessageTypeNullable.g.cs new file mode 100644 index 00000000..46afce84 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.HumanMessageTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class HumanMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.HumanMessageType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.HumanMessageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.HumanMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.HumanMessageType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.HumanMessageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.InvalidToolCallType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.InvalidToolCallType.g.cs new file mode 100644 index 00000000..0fa5c98b --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.InvalidToolCallType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class InvalidToolCallTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.InvalidToolCallType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.InvalidToolCallTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.InvalidToolCallType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.InvalidToolCallType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.InvalidToolCallTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.InvalidToolCallTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.InvalidToolCallTypeNullable.g.cs new file mode 100644 index 00000000..1d2a212d --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.InvalidToolCallTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class InvalidToolCallTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.InvalidToolCallType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.InvalidToolCallTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.InvalidToolCallType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.InvalidToolCallType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.InvalidToolCallTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.MessagesItem.g.cs b/src/libs/LangSmith/Generated/JsonConverters.MessagesItem.g.cs new file mode 100644 index 00000000..0abb5ccc --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.MessagesItem.g.cs @@ -0,0 +1,211 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace LangSmith.JsonConverters +{ + /// + public class MessagesItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.MessagesItem Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.PlayGroundGraphMessageDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.PlayGroundGraphMessageDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::LangSmith.AIMessage? ai = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.Ai) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.AIMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.AIMessage)}"); + ai = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.HumanMessage? human = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.Human) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.HumanMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.HumanMessage)}"); + human = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.ChatMessage? chat = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.Chat) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.ChatMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.ChatMessage)}"); + chat = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.SystemMessage? system = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.System) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.SystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.SystemMessage)}"); + system = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.FunctionMessage? function = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.Function) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.FunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.FunctionMessage)}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.ToolMessage? tool = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.Tool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.ToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.ToolMessage)}"); + tool = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.AIMessageChunk? aIMessageChunk = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.AIMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.AIMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.AIMessageChunk)}"); + aIMessageChunk = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.HumanMessageChunk? humanMessageChunk = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.HumanMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.HumanMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.HumanMessageChunk)}"); + humanMessageChunk = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.ChatMessageChunk? chatMessageChunk = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.ChatMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.ChatMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.ChatMessageChunk)}"); + chatMessageChunk = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.SystemMessageChunk? systemMessageChunk = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.SystemMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.SystemMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.SystemMessageChunk)}"); + systemMessageChunk = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.FunctionMessageChunk? functionMessageChunk = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.FunctionMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.FunctionMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.FunctionMessageChunk)}"); + functionMessageChunk = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::LangSmith.ToolMessageChunk? toolMessageChunk = default; + if (discriminator?.Type == global::LangSmith.PlayGroundGraphMessageDiscriminatorType.ToolMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.ToolMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::LangSmith.ToolMessageChunk)}"); + toolMessageChunk = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var result = new global::LangSmith.MessagesItem( + discriminator?.Type, + ai, + human, + chat, + system, + function, + tool, + aIMessageChunk, + humanMessageChunk, + chatMessageChunk, + systemMessageChunk, + functionMessageChunk, + toolMessageChunk + ); + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.MessagesItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsAi) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.AIMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.AIMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ai, typeInfo); + } + else if (value.IsHuman) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.HumanMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.HumanMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Human, typeInfo); + } + else if (value.IsChat) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.ChatMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.ChatMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Chat, typeInfo); + } + else if (value.IsSystem) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.SystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.SystemMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.System, typeInfo); + } + else if (value.IsFunction) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.FunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.FunctionMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo); + } + else if (value.IsTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.ToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.ToolMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool, typeInfo); + } + else if (value.IsAIMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.AIMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.AIMessageChunk).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AIMessageChunk, typeInfo); + } + else if (value.IsHumanMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.HumanMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.HumanMessageChunk).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.HumanMessageChunk, typeInfo); + } + else if (value.IsChatMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.ChatMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.ChatMessageChunk).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatMessageChunk, typeInfo); + } + else if (value.IsSystemMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.SystemMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.SystemMessageChunk).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SystemMessageChunk, typeInfo); + } + else if (value.IsFunctionMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.FunctionMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.FunctionMessageChunk).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionMessageChunk, typeInfo); + } + else if (value.IsToolMessageChunk) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LangSmith.ToolMessageChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LangSmith.ToolMessageChunk).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolMessageChunk, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphArtifactLength.g.cs b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphArtifactLength.g.cs new file mode 100644 index 00000000..8f0d222d --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphArtifactLength.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class PlayGroundGraphArtifactLengthJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.PlayGroundGraphArtifactLength Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.PlayGroundGraphArtifactLengthExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.PlayGroundGraphArtifactLength)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.PlayGroundGraphArtifactLength value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.PlayGroundGraphArtifactLengthExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphArtifactLengthNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphArtifactLengthNullable.g.cs new file mode 100644 index 00000000..8e105eb7 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphArtifactLengthNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class PlayGroundGraphArtifactLengthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.PlayGroundGraphArtifactLength? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.PlayGroundGraphArtifactLengthExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.PlayGroundGraphArtifactLength)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.PlayGroundGraphArtifactLength? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.PlayGroundGraphArtifactLengthExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphMessageDiscriminatorType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphMessageDiscriminatorType.g.cs new file mode 100644 index 00000000..1d43ff42 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphMessageDiscriminatorType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class PlayGroundGraphMessageDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.PlayGroundGraphMessageDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.PlayGroundGraphMessageDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.PlayGroundGraphMessageDiscriminatorType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.PlayGroundGraphMessageDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.PlayGroundGraphMessageDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphMessageDiscriminatorTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphMessageDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..17453319 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphMessageDiscriminatorTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class PlayGroundGraphMessageDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.PlayGroundGraphMessageDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.PlayGroundGraphMessageDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.PlayGroundGraphMessageDiscriminatorType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.PlayGroundGraphMessageDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.PlayGroundGraphMessageDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphReadingLevel.g.cs b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphReadingLevel.g.cs new file mode 100644 index 00000000..aa7c0c2e --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphReadingLevel.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class PlayGroundGraphReadingLevelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.PlayGroundGraphReadingLevel Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.PlayGroundGraphReadingLevelExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.PlayGroundGraphReadingLevel)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.PlayGroundGraphReadingLevel value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.PlayGroundGraphReadingLevelExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphReadingLevelNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphReadingLevelNullable.g.cs new file mode 100644 index 00000000..670c0b5e --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.PlayGroundGraphReadingLevelNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class PlayGroundGraphReadingLevelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.PlayGroundGraphReadingLevel? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.PlayGroundGraphReadingLevelExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.PlayGroundGraphReadingLevel)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.PlayGroundGraphReadingLevel? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.PlayGroundGraphReadingLevelExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.SystemMessageChunkType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.SystemMessageChunkType.g.cs new file mode 100644 index 00000000..bc40ce10 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.SystemMessageChunkType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class SystemMessageChunkTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.SystemMessageChunkType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.SystemMessageChunkTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.SystemMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.SystemMessageChunkType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.SystemMessageChunkTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.SystemMessageChunkTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.SystemMessageChunkTypeNullable.g.cs new file mode 100644 index 00000000..941de0d4 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.SystemMessageChunkTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class SystemMessageChunkTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.SystemMessageChunkType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.SystemMessageChunkTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.SystemMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.SystemMessageChunkType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.SystemMessageChunkTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.SystemMessageType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.SystemMessageType.g.cs new file mode 100644 index 00000000..de43ca6a --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.SystemMessageType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class SystemMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.SystemMessageType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.SystemMessageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.SystemMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.SystemMessageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.SystemMessageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.SystemMessageTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.SystemMessageTypeNullable.g.cs new file mode 100644 index 00000000..0abaa2dd --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.SystemMessageTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class SystemMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.SystemMessageType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.SystemMessageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.SystemMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.SystemMessageType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.SystemMessageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolCallChunkType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolCallChunkType.g.cs new file mode 100644 index 00000000..c1380c09 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolCallChunkType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolCallChunkTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolCallChunkType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolCallChunkTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolCallChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolCallChunkType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.ToolCallChunkTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolCallChunkTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolCallChunkTypeNullable.g.cs new file mode 100644 index 00000000..ff008dac --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolCallChunkTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolCallChunkTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolCallChunkType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolCallChunkTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolCallChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolCallChunkType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.ToolCallChunkTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolCallType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolCallType.g.cs new file mode 100644 index 00000000..bab5aabc --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolCallType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolCallTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolCallType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolCallTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolCallType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolCallType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.ToolCallTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolCallTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolCallTypeNullable.g.cs new file mode 100644 index 00000000..77292289 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolCallTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolCallTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolCallType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolCallTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolCallType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolCallType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.ToolCallTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkStatus.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkStatus.g.cs new file mode 100644 index 00000000..03fb6f68 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkStatus.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolMessageChunkStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolMessageChunkStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolMessageChunkStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolMessageChunkStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolMessageChunkStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.ToolMessageChunkStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkStatusNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkStatusNullable.g.cs new file mode 100644 index 00000000..3549c132 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkStatusNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolMessageChunkStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolMessageChunkStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolMessageChunkStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolMessageChunkStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolMessageChunkStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.ToolMessageChunkStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkType.g.cs new file mode 100644 index 00000000..cb12b327 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolMessageChunkTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolMessageChunkType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolMessageChunkTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolMessageChunkType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.ToolMessageChunkTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkTypeNullable.g.cs new file mode 100644 index 00000000..ceb65b1c --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageChunkTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolMessageChunkTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolMessageChunkType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolMessageChunkTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolMessageChunkType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolMessageChunkType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.ToolMessageChunkTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolMessageStatus.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageStatus.g.cs new file mode 100644 index 00000000..7d70b05f --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageStatus.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolMessageStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolMessageStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolMessageStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolMessageStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolMessageStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.ToolMessageStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolMessageStatusNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageStatusNullable.g.cs new file mode 100644 index 00000000..2b414a1a --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageStatusNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolMessageStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolMessageStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolMessageStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolMessageStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolMessageStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.ToolMessageStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolMessageType.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageType.g.cs new file mode 100644 index 00000000..53e6fb70 --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolMessageType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolMessageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolMessageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LangSmith.ToolMessageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonConverters.ToolMessageTypeNullable.g.cs b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageTypeNullable.g.cs new file mode 100644 index 00000000..bf26792e --- /dev/null +++ b/src/libs/LangSmith/Generated/JsonConverters.ToolMessageTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LangSmith.JsonConverters +{ + /// + public sealed class ToolMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LangSmith.ToolMessageType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LangSmith.ToolMessageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LangSmith.ToolMessageType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LangSmith.ToolMessageType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LangSmith.ToolMessageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LangSmith/Generated/JsonSerializerContext.g.cs b/src/libs/LangSmith/Generated/JsonSerializerContext.g.cs index a97a80a5..e774fd27 100644 --- a/src/libs/LangSmith/Generated/JsonSerializerContext.g.cs +++ b/src/libs/LangSmith/Generated/JsonSerializerContext.g.cs @@ -13,6 +13,16 @@ namespace LangSmith DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { + typeof(global::LangSmith.JsonConverters.AIMessageTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.AIMessageTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolCallTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolCallTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.InvalidToolCallTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.InvalidToolCallTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.AIMessageChunkTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.AIMessageChunkTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolCallChunkTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolCallChunkTypeNullableJsonConverter), typeof(global::LangSmith.JsonConverters.AccessScopeJsonConverter), typeof(global::LangSmith.JsonConverters.AccessScopeNullableJsonConverter), typeof(global::LangSmith.JsonConverters.AuthProviderJsonConverter), @@ -41,6 +51,10 @@ namespace LangSmith typeof(global::LangSmith.JsonConverters.BulkExportUpdateStatusNullableJsonConverter), typeof(global::LangSmith.JsonConverters.ChangePaymentPlanReqJsonConverter), typeof(global::LangSmith.JsonConverters.ChangePaymentPlanReqNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.ChatMessageTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.ChatMessageTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.ChatMessageChunkTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.ChatMessageChunkTypeNullableJsonConverter), typeof(global::LangSmith.JsonConverters.ConfiguredByJsonConverter), typeof(global::LangSmith.JsonConverters.ConfiguredByNullableJsonConverter), typeof(global::LangSmith.JsonConverters.CreateEventRequestEventTypeJsonConverter), @@ -65,6 +79,14 @@ namespace LangSmith typeof(global::LangSmith.JsonConverters.TraceTierNullableJsonConverter), typeof(global::LangSmith.JsonConverters.FeedbackLevelJsonConverter), typeof(global::LangSmith.JsonConverters.FeedbackLevelNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.FunctionMessageTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.FunctionMessageTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.FunctionMessageChunkTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.FunctionMessageChunkTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.HumanMessageTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.HumanMessageTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.HumanMessageChunkTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.HumanMessageChunkTypeNullableJsonConverter), typeof(global::LangSmith.JsonConverters.OAuthProviderJsonConverter), typeof(global::LangSmith.JsonConverters.OAuthProviderNullableJsonConverter), typeof(global::LangSmith.JsonConverters.OrgFeatureFlagsJsonConverter), @@ -75,8 +97,24 @@ namespace LangSmith typeof(global::LangSmith.JsonConverters.OrganizationDashboardTypeNullableJsonConverter), typeof(global::LangSmith.JsonConverters.PagerdutySeverityJsonConverter), typeof(global::LangSmith.JsonConverters.PagerdutySeverityNullableJsonConverter), - typeof(global::LangSmith.JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormatJsonConverter), - typeof(global::LangSmith.JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormatNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.SystemMessageTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.SystemMessageTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolMessageTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolMessageTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolMessageStatusJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolMessageStatusNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.SystemMessageChunkTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.SystemMessageChunkTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolMessageChunkTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolMessageChunkTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolMessageChunkStatusJsonConverter), + typeof(global::LangSmith.JsonConverters.ToolMessageChunkStatusNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.PlayGroundGraphMessageDiscriminatorTypeJsonConverter), + typeof(global::LangSmith.JsonConverters.PlayGroundGraphMessageDiscriminatorTypeNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.PlayGroundGraphArtifactLengthJsonConverter), + typeof(global::LangSmith.JsonConverters.PlayGroundGraphArtifactLengthNullableJsonConverter), + typeof(global::LangSmith.JsonConverters.PlayGroundGraphReadingLevelJsonConverter), + typeof(global::LangSmith.JsonConverters.PlayGroundGraphReadingLevelNullableJsonConverter), typeof(global::LangSmith.JsonConverters.RunsGenerateQueryFeedbackKeysJsonConverter), typeof(global::LangSmith.JsonConverters.RunsGenerateQueryFeedbackKeysNullableJsonConverter), typeof(global::LangSmith.JsonConverters.ResourceTypeJsonConverter), @@ -127,6 +165,7 @@ namespace LangSmith typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory3), typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory5), typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory4), + typeof(global::LangSmith.JsonConverters.MessagesItemJsonConverter), typeof(global::LangSmith.JsonConverters.EntitiesItemJsonConverter), typeof(global::LangSmith.JsonConverters.OneOfJsonConverterFactory2), })] diff --git a/src/libs/LangSmith/Generated/JsonSerializerContextTypes.g.cs b/src/libs/LangSmith/Generated/JsonSerializerContextTypes.g.cs index f45422dd..7bdd9c8f 100644 --- a/src/libs/LangSmith/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/LangSmith/Generated/JsonSerializerContextTypes.g.cs @@ -18,1870 +18,2070 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::LangSmith.APIFeedbackSource? Type0 { get; set; } + public global::LangSmith.AIMessage? Type0 { get; set; } /// /// /// - public string? Type1 { get; set; } + public global::LangSmith.AnyOf>>? Type1 { get; set; } /// /// /// - public object? Type2 { get; set; } + public string? Type2 { get; set; } /// /// /// - public global::LangSmith.APIKeyCreateRequest? Type3 { get; set; } + public global::System.Collections.Generic.IList>? Type3 { get; set; } /// /// /// - public bool? Type4 { get; set; } + public global::LangSmith.AnyOf? Type4 { get; set; } /// /// /// - public global::LangSmith.APIKeyCreateResponse? Type5 { get; set; } + public object? Type5 { get; set; } /// /// /// - public global::System.DateTime? Type6 { get; set; } + public global::LangSmith.AIMessageType? Type6 { get; set; } /// /// /// - public global::System.Guid? Type7 { get; set; } + public bool? Type7 { get; set; } /// /// /// - public global::LangSmith.APIKeyGetResponse? Type8 { get; set; } + public global::System.Collections.Generic.IList? Type8 { get; set; } /// /// /// - public global::LangSmith.AccessScope? Type9 { get; set; } + public global::LangSmith.ToolCall? Type9 { get; set; } /// /// /// - public global::LangSmith.AllowedLoginMethodsUpdate? Type10 { get; set; } + public global::LangSmith.ToolCallType? Type10 { get; set; } /// /// /// - public global::LangSmith.AnnotationQueueCreateSchema? Type11 { get; set; } + public global::System.Collections.Generic.IList? Type11 { get; set; } /// /// /// - public int? Type12 { get; set; } + public global::LangSmith.InvalidToolCall? Type12 { get; set; } /// /// /// - public global::LangSmith.AnnotationQueueRunSchema? Type13 { get; set; } + public global::LangSmith.InvalidToolCallType? Type13 { get; set; } /// /// /// - public global::LangSmith.AnnotationQueueRunUpdateSchema? Type14 { get; set; } + public global::LangSmith.UsageMetadata? Type14 { get; set; } /// /// /// - public global::LangSmith.AnnotationQueueSchema? Type15 { get; set; } + public int? Type15 { get; set; } /// /// /// - public global::LangSmith.AnnotationQueueSchemaWithSize? Type16 { get; set; } + public global::LangSmith.InputTokenDetails? Type16 { get; set; } /// /// /// - public global::LangSmith.AnnotationQueueSizeSchema? Type17 { get; set; } + public global::LangSmith.OutputTokenDetails? Type17 { get; set; } /// /// /// - public global::LangSmith.AnnotationQueueUpdateSchema? Type18 { get; set; } + public global::LangSmith.AIMessageChunk? Type18 { get; set; } /// /// /// - public global::LangSmith.AppFeedbackSource? Type19 { get; set; } + public global::LangSmith.AIMessageChunkType? Type19 { get; set; } /// /// /// - public global::LangSmith.AuthProvider? Type20 { get; set; } + public global::System.Collections.Generic.IList? Type20 { get; set; } /// /// /// - public global::LangSmith.AutoEvalFeedbackSource? Type21 { get; set; } + public global::LangSmith.ToolCallChunk? Type21 { get; set; } /// /// /// - public global::LangSmith.BasicAuthMemberCreate? Type22 { get; set; } + public global::LangSmith.ToolCallChunkType? Type22 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type23 { get; set; } + public global::LangSmith.APIFeedbackSource? Type23 { get; set; } /// /// /// - public global::LangSmith.BasicAuthResponse? Type24 { get; set; } + public global::LangSmith.APIKeyCreateRequest? Type24 { get; set; } /// /// /// - public global::LangSmith.BasicAuthUserPatch? Type25 { get; set; } + public global::LangSmith.APIKeyCreateResponse? Type25 { get; set; } /// /// /// - public global::LangSmith.BatchIngestConfig? Type26 { get; set; } + public global::System.DateTime? Type26 { get; set; } /// /// /// - public global::LangSmith.BodyParamsForRunSchema? Type27 { get; set; } + public global::System.Guid? Type27 { get; set; } /// /// /// - public global::LangSmith.RunTypeEnum? Type28 { get; set; } + public global::LangSmith.APIKeyGetResponse? Type28 { get; set; } /// /// /// - public global::LangSmith.RunsFilterDataSourceTypeEnum? Type29 { get; set; } + public global::LangSmith.AccessScope? Type29 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type30 { get; set; } + public global::LangSmith.AllowedLoginMethodsUpdate? Type30 { get; set; } /// /// /// - public global::LangSmith.RunSelect? Type31 { get; set; } + public global::LangSmith.AnnotationQueueCreateSchema? Type31 { get; set; } /// /// /// - public global::LangSmith.RunDateOrder? Type32 { get; set; } + public global::LangSmith.AnnotationQueueRunSchema? Type32 { get; set; } /// /// /// - public global::LangSmith.BodyCloneDatasetApiV1DatasetsClonePost? Type33 { get; set; } + public global::LangSmith.AnnotationQueueRunUpdateSchema? Type33 { get; set; } /// /// /// - public global::LangSmith.BodyExecuteApiV1AceExecutePost? Type34 { get; set; } + public global::LangSmith.AnnotationQueueSchema? Type34 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type35 { get; set; } + public global::LangSmith.AnnotationQueueSchemaWithSize? Type35 { get; set; } /// /// /// - public global::LangSmith.BodyUpdateDatasetSplitsApiV1DatasetsDatasetIdSplitsPut? Type36 { get; set; } + public global::LangSmith.AnnotationQueueSizeSchema? Type36 { get; set; } /// /// /// - public global::LangSmith.BodyUploadCsvDatasetApiV1DatasetsUploadPost? Type37 { get; set; } + public global::LangSmith.AnnotationQueueUpdateSchema? Type37 { get; set; } /// /// /// - public byte[]? Type38 { get; set; } + public global::LangSmith.AppFeedbackSource? Type38 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type39 { get; set; } + public global::LangSmith.Artifact? Type39 { get; set; } /// /// /// - public global::LangSmith.DataType? Type40 { get; set; } + public global::System.Collections.Generic.IList? Type40 { get; set; } /// /// /// - public global::LangSmith.BodyUploadExamplesApiV1ExamplesUploadDatasetIdPost? Type41 { get; set; } + public global::LangSmith.ArtifactContent? Type41 { get; set; } /// /// /// - public global::LangSmith.BulkExport? Type42 { get; set; } + public global::LangSmith.AuthProvider? Type42 { get; set; } /// /// /// - public global::LangSmith.BulkExportFormat? Type43 { get; set; } + public global::LangSmith.AutoEvalFeedbackSource? Type43 { get; set; } /// /// /// - public global::LangSmith.BulkExportCompression? Type44 { get; set; } + public global::LangSmith.BasicAuthMemberCreate? Type44 { get; set; } /// /// /// - public global::LangSmith.BulkExportStatus? Type45 { get; set; } + public global::System.Collections.Generic.IList? Type45 { get; set; } /// /// /// - public global::LangSmith.BulkExportCreate? Type46 { get; set; } + public global::LangSmith.BasicAuthResponse? Type46 { get; set; } /// /// /// - public global::LangSmith.BulkExportDestination? Type47 { get; set; } + public global::LangSmith.BasicAuthUserPatch? Type47 { get; set; } /// /// /// - public global::LangSmith.BulkExportDestinationType? Type48 { get; set; } + public global::LangSmith.BatchIngestConfig? Type48 { get; set; } /// /// /// - public global::LangSmith.BulkExportDestinationS3Config? Type49 { get; set; } + public global::LangSmith.BodyParamsForRunSchema? Type49 { get; set; } /// /// /// - public global::LangSmith.BulkExportDestinationCreate? Type50 { get; set; } + public global::LangSmith.RunTypeEnum? Type50 { get; set; } /// /// /// - public global::LangSmith.BulkExportDestinationS3Credentials? Type51 { get; set; } + public global::LangSmith.RunsFilterDataSourceTypeEnum? Type51 { get; set; } /// /// /// - public global::LangSmith.BulkExportRun? Type52 { get; set; } + public global::System.Collections.Generic.IList? Type52 { get; set; } /// /// /// - public global::LangSmith.BulkExportRunMetadata? Type53 { get; set; } + public global::LangSmith.RunSelect? Type53 { get; set; } /// /// /// - public global::LangSmith.BulkExportRunProgress? Type54 { get; set; } + public global::LangSmith.RunDateOrder? Type54 { get; set; } /// /// /// - public global::LangSmith.BulkExportRunStatus? Type55 { get; set; } + public global::LangSmith.BodyCloneDatasetApiV1DatasetsClonePost? Type55 { get; set; } /// /// /// - public global::LangSmith.BulkExportUpdate? Type56 { get; set; } + public global::LangSmith.BodyExecuteApiV1AceExecutePost? Type56 { get; set; } /// /// /// - public global::LangSmith.BulkExportUpdateStatus? Type57 { get; set; } + public global::System.Collections.Generic.IList? Type57 { get; set; } /// /// /// - public global::LangSmith.ChangePaymentPlanReq? Type58 { get; set; } + public global::LangSmith.BodyUpdateDatasetSplitsApiV1DatasetsDatasetIdSplitsPut? Type58 { get; set; } /// /// /// - public global::LangSmith.ChangePaymentPlanSchema? Type59 { get; set; } + public global::LangSmith.BodyUploadCsvDatasetApiV1DatasetsUploadPost? Type59 { get; set; } /// /// /// - public global::LangSmith.CodeEvaluatorTopLevel? Type60 { get; set; } + public byte[]? Type60 { get; set; } /// /// /// - public global::LangSmith.Comment? Type61 { get; set; } + public global::System.Collections.Generic.IList? Type61 { get; set; } /// /// /// - public global::LangSmith.CommitManifestResponse? Type62 { get; set; } + public global::LangSmith.DataType? Type62 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type63 { get; set; } + public global::LangSmith.BodyUploadExamplesApiV1ExamplesUploadDatasetIdPost? Type63 { get; set; } /// /// /// - public global::LangSmith.RepoExampleResponse? Type64 { get; set; } + public global::LangSmith.BulkExport? Type64 { get; set; } /// /// /// - public global::LangSmith.CommitWithLookups? Type65 { get; set; } + public global::LangSmith.BulkExportFormat? Type65 { get; set; } /// /// /// - public global::LangSmith.ComparativeExperiment? Type66 { get; set; } + public global::LangSmith.BulkExportCompression? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::LangSmith.BulkExportStatus? Type67 { get; set; } /// /// /// - public global::LangSmith.SimpleExperimentInfo? Type68 { get; set; } + public global::LangSmith.BulkExportCreate? Type68 { get; set; } /// /// /// - public global::LangSmith.ComparativeExperimentBase? Type69 { get; set; } + public global::LangSmith.BulkExportDestination? Type69 { get; set; } /// /// /// - public global::LangSmith.ComparativeExperimentCreate? Type70 { get; set; } + public global::LangSmith.BulkExportDestinationType? Type70 { get; set; } /// /// /// - public global::LangSmith.ConfiguredBy? Type71 { get; set; } + public global::LangSmith.BulkExportDestinationS3Config? Type71 { get; set; } /// /// /// - public global::LangSmith.CreateCommentRequest? Type72 { get; set; } + public global::LangSmith.BulkExportDestinationCreate? Type72 { get; set; } /// /// /// - public global::LangSmith.CreateEventRequest? Type73 { get; set; } + public global::LangSmith.BulkExportDestinationS3Credentials? Type73 { get; set; } /// /// /// - public global::LangSmith.CreateEventRequestEventType? Type74 { get; set; } + public global::LangSmith.BulkExportRun? Type74 { get; set; } /// /// /// - public global::LangSmith.CreateFeedbackConfigSchema? Type75 { get; set; } + public global::LangSmith.BulkExportRunMetadata? Type75 { get; set; } /// /// /// - public global::LangSmith.FeedbackConfig? Type76 { get; set; } + public global::LangSmith.BulkExportRunProgress? Type76 { get; set; } /// /// /// - public global::LangSmith.FeedbackType? Type77 { get; set; } + public global::LangSmith.BulkExportRunStatus? Type77 { get; set; } /// /// /// - public double? Type78 { get; set; } + public global::LangSmith.BulkExportUpdate? Type78 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type79 { get; set; } + public global::LangSmith.BulkExportUpdateStatus? Type79 { get; set; } /// /// /// - public global::LangSmith.FeedbackCategory? Type80 { get; set; } + public global::LangSmith.ChangePaymentPlanReq? Type80 { get; set; } /// /// /// - public global::LangSmith.CreateRepoCommitRequest? Type81 { get; set; } + public global::LangSmith.ChangePaymentPlanSchema? Type81 { get; set; } /// /// /// - public global::LangSmith.CreateRepoCommitResponse? Type82 { get; set; } + public global::LangSmith.ChatMessage? Type82 { get; set; } /// /// /// - public global::LangSmith.CreateRepoRequest? Type83 { get; set; } + public global::LangSmith.ChatMessageType? Type83 { get; set; } /// /// /// - public global::LangSmith.CreateRepoResponse? Type84 { get; set; } + public global::LangSmith.ChatMessageChunk? Type84 { get; set; } /// /// /// - public global::LangSmith.RepoWithLookups? Type85 { get; set; } + public global::LangSmith.ChatMessageChunkType? Type85 { get; set; } /// /// /// - public global::LangSmith.CreateRoleRequest? Type86 { get; set; } + public global::LangSmith.CodeEvaluatorTopLevel? Type86 { get; set; } /// /// /// - public global::LangSmith.CustomChartCreate? Type87 { get; set; } + public global::LangSmith.Comment? Type87 { get; set; } /// /// /// - public global::LangSmith.CustomChartType? Type88 { get; set; } + public global::LangSmith.CommitManifestResponse? Type88 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type89 { get; set; } + public global::System.Collections.Generic.IList? Type89 { get; set; } /// /// /// - public global::LangSmith.CustomChartSeriesCreate? Type90 { get; set; } + public global::LangSmith.RepoExampleResponse? Type90 { get; set; } /// /// /// - public global::LangSmith.CustomChartSeriesFilters? Type91 { get; set; } + public global::LangSmith.CommitWithLookups? Type91 { get; set; } /// /// /// - public global::LangSmith.CustomChartMetric? Type92 { get; set; } + public global::LangSmith.ComparativeExperiment? Type92 { get; set; } /// /// /// - public global::LangSmith.CustomChartCreatePreview? Type93 { get; set; } + public global::System.Collections.Generic.IList? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type94 { get; set; } + public global::LangSmith.SimpleExperimentInfo? Type94 { get; set; } /// /// /// - public global::LangSmith.CustomChartSeries? Type95 { get; set; } + public global::LangSmith.ComparativeExperimentBase? Type95 { get; set; } /// /// /// - public global::LangSmith.CustomChartPreviewRequest? Type96 { get; set; } + public global::LangSmith.ComparativeExperimentCreate? Type96 { get; set; } /// /// /// - public global::LangSmith.CustomChartsRequestBase? Type97 { get; set; } + public global::LangSmith.ConfiguredBy? Type97 { get; set; } /// /// /// - public global::LangSmith.TimedeltaInput? Type98 { get; set; } + public global::LangSmith.CreateCommentRequest? Type98 { get; set; } /// /// /// - public global::LangSmith.CustomChartResponse? Type99 { get; set; } + public global::LangSmith.CreateEventRequest? Type99 { get; set; } /// /// /// - public global::LangSmith.CustomChartSeriesUpdate? Type100 { get; set; } + public global::LangSmith.CreateEventRequestEventType? Type100 { get; set; } /// /// /// - public global::LangSmith.CustomChartUpdate? Type101 { get; set; } + public global::LangSmith.CreateFeedbackConfigSchema? Type101 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type102 { get; set; } + public global::LangSmith.FeedbackConfig? Type102 { get; set; } /// /// /// - public global::LangSmith.Missing? Type103 { get; set; } + public global::LangSmith.FeedbackType? Type103 { get; set; } /// /// /// - public global::LangSmith.MissingMissing1? Type104 { get; set; } + public double? Type104 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type105 { get; set; } + public global::System.Collections.Generic.IList? Type105 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type106 { get; set; } + public global::LangSmith.FeedbackCategory? Type106 { get; set; } /// /// /// - public global::LangSmith.AnyOf, global::LangSmith.Missing>? Type107 { get; set; } + public global::LangSmith.CreateRepoCommitRequest? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type108 { get; set; } + public global::LangSmith.CreateRepoCommitResponse? Type108 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type109 { get; set; } + public global::LangSmith.CreateRepoRequest? Type109 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type110 { get; set; } + public global::LangSmith.CreateRepoResponse? Type110 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type111 { get; set; } + public global::LangSmith.RepoWithLookups? Type111 { get; set; } /// /// /// - public global::LangSmith.CustomChartsDataPoint? Type112 { get; set; } + public global::LangSmith.CreateRoleRequest? Type112 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type113 { get; set; } + public global::LangSmith.CustomChartCreate? Type113 { get; set; } /// /// /// - public global::LangSmith.CustomChartsRequest? Type114 { get; set; } + public global::LangSmith.CustomChartType? Type114 { get; set; } /// /// /// - public global::LangSmith.CustomChartsResponse? Type115 { get; set; } + public global::System.Collections.Generic.IList? Type115 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type116 { get; set; } + public global::LangSmith.CustomChartSeriesCreate? Type116 { get; set; } /// /// /// - public global::LangSmith.CustomChartsSection? Type117 { get; set; } + public global::LangSmith.CustomChartSeriesFilters? Type117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type118 { get; set; } + public global::LangSmith.CustomChartMetric? Type118 { get; set; } /// /// /// - public global::LangSmith.SingleCustomChartResponse? Type119 { get; set; } + public global::LangSmith.CustomChartCreatePreview? Type119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type120 { get; set; } + public global::System.Collections.Generic.IList? Type120 { get; set; } /// /// /// - public global::LangSmith.CustomChartsSectionCreate? Type121 { get; set; } + public global::LangSmith.CustomChartSeries? Type121 { get; set; } /// /// /// - public global::LangSmith.CustomChartsSectionResponse? Type122 { get; set; } + public global::LangSmith.CustomChartPreviewRequest? Type122 { get; set; } /// /// /// - public global::LangSmith.CustomChartsSectionUpdate? Type123 { get; set; } + public global::LangSmith.CustomChartsRequestBase? Type123 { get; set; } /// /// /// - public global::LangSmith.CustomerVisiblePlanInfo? Type124 { get; set; } + public global::LangSmith.TimedeltaInput? Type124 { get; set; } /// /// /// - public global::LangSmith.PaymentPlanTier? Type125 { get; set; } + public global::LangSmith.CustomChartResponse? Type125 { get; set; } /// /// /// - public global::LangSmith.Dataset? Type126 { get; set; } + public global::LangSmith.CustomChartSeriesUpdate? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::LangSmith.CustomChartUpdate? Type127 { get; set; } /// /// /// - public global::LangSmith.DatasetInputFilter? Type128 { get; set; } + public global::LangSmith.AnyOf? Type128 { get; set; } /// /// /// - public global::LangSmith.DatasetInputFilterType? Type129 { get; set; } + public global::LangSmith.Missing? Type129 { get; set; } /// /// /// - public global::LangSmith.DatasetCreate? Type130 { get; set; } + public global::LangSmith.MissingMissing1? Type130 { get; set; } /// /// /// - public global::LangSmith.DatasetDiffInfo? Type131 { get; set; } + public global::LangSmith.AnyOf? Type131 { get; set; } /// /// /// - public global::LangSmith.DatasetIndexInfo? Type132 { get; set; } + public global::LangSmith.AnyOf? Type132 { get; set; } /// /// /// - public global::LangSmith.DatasetIndexRequest? Type133 { get; set; } + public global::LangSmith.AnyOf, global::LangSmith.Missing>? Type133 { get; set; } /// /// /// - public global::LangSmith.DatasetPublicSchema? Type134 { get; set; } + public global::System.Collections.Generic.IList? Type134 { get; set; } /// /// /// - public global::LangSmith.DatasetSchemaForUpdate? Type135 { get; set; } + public global::LangSmith.AnyOf? Type135 { get; set; } /// /// /// - public global::LangSmith.DatasetShareSchema? Type136 { get; set; } + public global::LangSmith.AnyOf? Type136 { get; set; } /// /// /// - public global::LangSmith.DatasetUpdate? Type137 { get; set; } + public global::LangSmith.AnyOf? Type137 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type138 { get; set; } + public global::LangSmith.CustomChartsDataPoint? Type138 { get; set; } /// /// /// - public global::LangSmith.ExampleUpdate? Type139 { get; set; } + public global::LangSmith.AnyOf? Type139 { get; set; } /// /// /// - public global::LangSmith.AnyOf, string>? Type140 { get; set; } + public global::LangSmith.CustomChartsRequest? Type140 { get; set; } /// /// /// - public global::LangSmith.DatasetVersion? Type141 { get; set; } + public global::LangSmith.CustomChartsResponse? Type141 { get; set; } /// /// /// - public global::LangSmith.EvaluatorStructuredOutput? Type142 { get; set; } + public global::System.Collections.Generic.IList? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type143 { get; set; } + public global::LangSmith.CustomChartsSection? Type143 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type144 { get; set; } + public global::System.Collections.Generic.IList? Type144 { get; set; } /// /// /// - public global::LangSmith.EvaluatorTopLevel? Type145 { get; set; } + public global::LangSmith.SingleCustomChartResponse? Type145 { get; set; } /// /// /// - public global::LangSmith.Example? Type146 { get; set; } + public global::System.Collections.Generic.IList? Type146 { get; set; } /// /// /// - public global::LangSmith.ExampleBulkCreate? Type147 { get; set; } + public global::LangSmith.CustomChartsSectionCreate? Type147 { get; set; } /// /// /// - public global::LangSmith.ExampleCreate? Type148 { get; set; } + public global::LangSmith.CustomChartsSectionResponse? Type148 { get; set; } /// /// /// - public global::LangSmith.ExampleListOrder? Type149 { get; set; } + public global::LangSmith.CustomChartsSectionUpdate? Type149 { get; set; } /// /// /// - public global::LangSmith.ExampleRunWithFeedback? Type150 { get; set; } + public global::LangSmith.CustomerVisiblePlanInfo? Type150 { get; set; } /// /// /// - public global::LangSmith.ExampleSelect? Type151 { get; set; } + public global::LangSmith.PaymentPlanTier? Type151 { get; set; } /// /// /// - public global::LangSmith.ExampleUpdateWithID? Type152 { get; set; } + public global::LangSmith.Dataset? Type152 { get; set; } /// /// /// - public global::LangSmith.ExampleWithRuns? Type153 { get; set; } + public global::System.Collections.Generic.IList? Type153 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type154 { get; set; } + public global::LangSmith.DatasetInputFilter? Type154 { get; set; } /// /// /// - public global::LangSmith.RunSchema? Type155 { get; set; } + public global::LangSmith.DatasetInputFilterType? Type155 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type156 { get; set; } + public global::LangSmith.DatasetCreate? Type156 { get; set; } /// /// /// - public global::LangSmith.TraceTier? Type157 { get; set; } + public global::LangSmith.DatasetDiffInfo? Type157 { get; set; } /// /// /// - public global::LangSmith.ExampleWithRunsCH? Type158 { get; set; } + public global::LangSmith.DatasetIndexInfo? Type158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type159 { get; set; } + public global::LangSmith.DatasetIndexRequest? Type159 { get; set; } /// /// /// - public global::LangSmith.RunSchemaComparisonView? Type160 { get; set; } + public global::LangSmith.DatasetPublicSchema? Type160 { get; set; } /// /// /// - public global::LangSmith.ExperimentResultRow? Type161 { get; set; } + public global::LangSmith.DatasetSchemaForUpdate? Type161 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type162 { get; set; } + public global::LangSmith.DatasetShareSchema? Type162 { get; set; } /// /// /// - public global::LangSmith.FeedbackCreateCoreSchema? Type163 { get; set; } + public global::LangSmith.DatasetUpdate? Type163 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type164 { get; set; } + public global::System.Collections.Generic.Dictionary? Type164 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type165 { get; set; } + public global::LangSmith.ExampleUpdate? Type165 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type166 { get; set; } + public global::LangSmith.AnyOf, string>? Type166 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type167 { get; set; } + public global::LangSmith.DatasetVersion? Type167 { get; set; } /// /// /// - public global::LangSmith.ModelFeedbackSource? Type168 { get; set; } + public global::LangSmith.EvaluatorStructuredOutput? Type168 { get; set; } /// /// /// - public global::LangSmith.ExperimentResultsUpload? Type169 { get; set; } + public global::System.Collections.Generic.IList>? Type169 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type170 { get; set; } + public global::System.Collections.Generic.Dictionary? Type170 { get; set; } /// /// /// - public global::LangSmith.ExperimentResultsUploadResult? Type171 { get; set; } + public global::LangSmith.EvaluatorTopLevel? Type171 { get; set; } /// /// /// - public global::LangSmith.TracerSession? Type172 { get; set; } + public global::LangSmith.Example? Type172 { get; set; } /// /// /// - public global::LangSmith.FeedbackConfigSchema? Type173 { get; set; } + public global::LangSmith.ExampleBulkCreate? Type173 { get; set; } /// /// /// - public global::LangSmith.FeedbackCreateSchema? Type174 { get; set; } + public global::LangSmith.ExampleCreate? Type174 { get; set; } /// /// /// - public global::LangSmith.FeedbackCreateWithTokenExtendedSchema? Type175 { get; set; } + public global::LangSmith.ExampleListOrder? Type175 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type176 { get; set; } + public global::LangSmith.ExampleRunWithFeedback? Type176 { get; set; } /// /// /// - public global::LangSmith.FeedbackDelta? Type177 { get; set; } + public global::LangSmith.ExampleSelect? Type177 { get; set; } /// /// /// - public global::LangSmith.FeedbackIngestTokenCreateSchema? Type178 { get; set; } + public global::LangSmith.ExampleUpdateWithID? Type178 { get; set; } /// /// /// - public global::LangSmith.FeedbackIngestTokenSchema? Type179 { get; set; } + public global::LangSmith.ExampleWithRuns? Type179 { get; set; } /// /// /// - public global::LangSmith.FeedbackLevel? Type180 { get; set; } + public global::System.Collections.Generic.IList? Type180 { get; set; } /// /// /// - public global::LangSmith.FeedbackSchema? Type181 { get; set; } + public global::LangSmith.RunSchema? Type181 { get; set; } /// /// /// - public global::LangSmith.FeedbackSource3? Type182 { get; set; } + public global::System.Collections.Generic.Dictionary? Type182 { get; set; } /// /// /// - public global::LangSmith.FeedbackUpdateSchema? Type183 { get; set; } + public global::LangSmith.TraceTier? Type183 { get; set; } /// /// /// - public global::LangSmith.FilterQueryParamsForRunSchema? Type184 { get; set; } + public global::LangSmith.ExampleWithRunsCH? Type184 { get; set; } /// /// /// - public global::LangSmith.FilterView? Type185 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::LangSmith.FilterViewCreate? Type186 { get; set; } + public global::LangSmith.RunSchemaComparisonView? Type186 { get; set; } /// /// /// - public global::LangSmith.FilterViewUpdate? Type187 { get; set; } + public global::LangSmith.ExperimentResultRow? Type187 { get; set; } /// /// /// - public global::LangSmith.ForkRepoRequest? Type188 { get; set; } + public global::System.Collections.Generic.IList? Type188 { get; set; } /// /// /// - public global::LangSmith.GenerateSyntheticExamplesBody? Type189 { get; set; } + public global::LangSmith.FeedbackCreateCoreSchema? Type189 { get; set; } /// /// /// - public global::LangSmith.GetRepoResponse? Type190 { get; set; } + public global::LangSmith.AnyOf? Type190 { get; set; } /// /// /// - public global::LangSmith.HTTPValidationError? Type191 { get; set; } + public global::LangSmith.AnyOf? Type191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::LangSmith.AnyOf? Type192 { get; set; } /// /// /// - public global::LangSmith.ValidationError? Type193 { get; set; } + public global::LangSmith.AnyOf? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type194 { get; set; } + public global::LangSmith.ModelFeedbackSource? Type194 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type195 { get; set; } + public global::LangSmith.ExperimentResultsUpload? Type195 { get; set; } /// /// /// - public global::LangSmith.Identity? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::LangSmith.IdentityAnnotationQueueRunStatusCreateSchema? Type197 { get; set; } + public global::LangSmith.ExperimentResultsUploadResult? Type197 { get; set; } /// /// /// - public global::LangSmith.IdentityCreate? Type198 { get; set; } + public global::LangSmith.TracerSession? Type198 { get; set; } /// /// /// - public global::LangSmith.IdentityPatch? Type199 { get; set; } + public global::LangSmith.FeedbackConfigSchema? Type199 { get; set; } /// /// /// - public global::LangSmith.InfoGetResponse? Type200 { get; set; } + public global::LangSmith.FeedbackCreateSchema? Type200 { get; set; } /// /// /// - public global::LangSmith.InvokePromptPayload? Type201 { get; set; } + public global::LangSmith.FeedbackCreateWithTokenExtendedSchema? Type201 { get; set; } /// /// /// - public global::LangSmith.LikeRepoRequest? Type202 { get; set; } + public global::LangSmith.AnyOf? Type202 { get; set; } /// /// /// - public global::LangSmith.LikeRepoResponse? Type203 { get; set; } + public global::LangSmith.FeedbackDelta? Type203 { get; set; } /// /// /// - public global::LangSmith.ListCommentsResponse? Type204 { get; set; } + public global::LangSmith.FeedbackIngestTokenCreateSchema? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type205 { get; set; } + public global::LangSmith.FeedbackIngestTokenSchema? Type205 { get; set; } /// /// /// - public global::LangSmith.ListCommitsResponse? Type206 { get; set; } + public global::LangSmith.FeedbackLevel? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type207 { get; set; } + public global::LangSmith.FeedbackSchema? Type207 { get; set; } /// /// /// - public global::LangSmith.ListPublicDatasetRunsResponse? Type208 { get; set; } + public global::LangSmith.FeedbackSource3? Type208 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type209 { get; set; } + public global::LangSmith.FeedbackUpdateSchema? Type209 { get; set; } /// /// /// - public global::LangSmith.RunPublicDatasetSchema? Type210 { get; set; } + public global::LangSmith.FilterQueryParamsForRunSchema? Type210 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type211 { get; set; } + public global::LangSmith.FilterView? Type211 { get; set; } /// /// /// - public global::LangSmith.ListPublicRunsResponse? Type212 { get; set; } + public global::LangSmith.FilterViewCreate? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::LangSmith.FilterViewUpdate? Type213 { get; set; } /// /// /// - public global::LangSmith.RunPublicSchema? Type214 { get; set; } + public global::LangSmith.ForkRepoRequest? Type214 { get; set; } /// /// /// - public global::LangSmith.ListReposResponse? Type215 { get; set; } + public global::LangSmith.FunctionMessage? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type216 { get; set; } + public global::LangSmith.FunctionMessageType? Type216 { get; set; } /// /// /// - public global::LangSmith.ListRunsResponse? Type217 { get; set; } + public global::LangSmith.FunctionMessageChunk? Type217 { get; set; } /// /// /// - public global::LangSmith.ListTagsResponse? Type218 { get; set; } + public global::LangSmith.FunctionMessageChunkType? Type218 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type219 { get; set; } + public global::LangSmith.GenerateSyntheticExamplesBody? Type219 { get; set; } /// /// /// - public global::LangSmith.TagCount? Type220 { get; set; } + public global::LangSmith.GetRepoResponse? Type220 { get; set; } /// /// /// - public global::LangSmith.MemberIdentity? Type221 { get; set; } + public global::LangSmith.HTTPValidationError? Type221 { get; set; } /// /// /// - public global::LangSmith.MetadataKeyValue? Type222 { get; set; } + public global::System.Collections.Generic.IList? Type222 { get; set; } /// /// /// - public global::LangSmith.ModelPriceMapCreateSchema? Type223 { get; set; } + public global::LangSmith.ValidationError? Type223 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type224 { get; set; } + public global::System.Collections.Generic.IList>? Type224 { get; set; } /// /// /// - public global::LangSmith.ModelPriceMapUpdateSchema? Type225 { get; set; } + public global::LangSmith.AnyOf? Type225 { get; set; } /// /// /// - public global::LangSmith.MonitorBlock? Type226 { get; set; } + public global::LangSmith.Highlight? Type226 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type227 { get; set; } + public global::LangSmith.HumanMessage? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type228 { get; set; } + public global::LangSmith.HumanMessageType? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::LangSmith.HumanMessageChunk? Type229 { get; set; } /// /// /// - public global::LangSmith.MonitorGroupSpec? Type230 { get; set; } + public global::LangSmith.HumanMessageChunkType? Type230 { get; set; } /// /// /// - public global::LangSmith.MonitorRequest? Type231 { get; set; } + public global::LangSmith.Identity? Type231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type232 { get; set; } + public global::LangSmith.IdentityAnnotationQueueRunStatusCreateSchema? Type232 { get; set; } /// /// /// - public global::LangSmith.MonitorResponse? Type233 { get; set; } + public global::LangSmith.IdentityCreate? Type233 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type234 { get; set; } + public global::LangSmith.IdentityPatch? Type234 { get; set; } /// /// /// - public global::LangSmith.OAuthProvider? Type235 { get; set; } + public global::LangSmith.InfoGetResponse? Type235 { get; set; } /// /// /// - public global::LangSmith.OptimizePromptRequest? Type236 { get; set; } + public global::LangSmith.InvokePromptPayload? Type236 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type237 { get; set; } + public global::LangSmith.LikeRepoRequest? Type237 { get; set; } /// /// /// - public global::LangSmith.OptimizePromptResponse? Type238 { get; set; } + public global::LangSmith.LikeRepoResponse? Type238 { get; set; } /// /// /// - public global::LangSmith.OrgFeatureFlags? Type239 { get; set; } + public global::LangSmith.ListCommentsResponse? Type239 { get; set; } /// /// /// - public global::LangSmith.OrgIdentityPatch? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type240 { get; set; } /// /// /// - public global::LangSmith.OrgMemberIdentity? Type241 { get; set; } + public global::LangSmith.ListCommitsResponse? Type241 { get; set; } /// /// /// - public global::LangSmith.OrgPendingIdentity? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::LangSmith.Organization? Type243 { get; set; } + public global::LangSmith.ListPublicDatasetRunsResponse? Type243 { get; set; } /// /// /// - public global::LangSmith.OrganizationConfig? Type244 { get; set; } + public global::System.Collections.Generic.IList? Type244 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type245 { get; set; } + public global::LangSmith.RunPublicDatasetSchema? Type245 { get; set; } /// /// /// - public global::LangSmith.StripePaymentMethodInfo? Type246 { get; set; } + public global::System.Collections.Generic.Dictionary? Type246 { get; set; } /// /// /// - public global::LangSmith.OrganizationBillingInfo? Type247 { get; set; } + public global::LangSmith.ListPublicRunsResponse? Type247 { get; set; } /// /// /// - public global::LangSmith.OrganizationCreate? Type248 { get; set; } + public global::System.Collections.Generic.IList? Type248 { get; set; } /// /// /// - public global::LangSmith.OrganizationDashboardColorScheme? Type249 { get; set; } + public global::LangSmith.RunPublicSchema? Type249 { get; set; } /// /// /// - public global::LangSmith.OrganizationDashboardSchema? Type250 { get; set; } + public global::LangSmith.ListReposResponse? Type250 { get; set; } /// /// /// - public global::LangSmith.OrganizationDashboardType? Type251 { get; set; } + public global::System.Collections.Generic.IList? Type251 { get; set; } /// /// /// - public global::LangSmith.OrganizationInfo? Type252 { get; set; } + public global::LangSmith.ListRunsResponse? Type252 { get; set; } /// /// /// - public global::LangSmith.OrganizationMembers? Type253 { get; set; } + public global::LangSmith.ListTagsResponse? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type255 { get; set; } + public global::LangSmith.TagCount? Type255 { get; set; } /// /// /// - public global::LangSmith.OrganizationPGSchemaSlim? Type256 { get; set; } + public global::LangSmith.MemberIdentity? Type256 { get; set; } /// /// /// - public global::LangSmith.OrganizationUpdate? Type257 { get; set; } + public global::LangSmith.MetadataKeyValue? Type257 { get; set; } /// /// /// - public global::LangSmith.PagerdutySeverity? Type258 { get; set; } + public global::LangSmith.ModelPriceMapCreateSchema? Type258 { get; set; } /// /// /// - public global::LangSmith.PendingIdentity? Type259 { get; set; } + public global::LangSmith.AnyOf? Type259 { get; set; } /// /// /// - public global::LangSmith.PendingIdentityCreate? Type260 { get; set; } + public global::LangSmith.ModelPriceMapUpdateSchema? Type260 { get; set; } /// /// /// - public global::LangSmith.PermissionResponse? Type261 { get; set; } + public global::LangSmith.MonitorBlock? Type261 { get; set; } /// /// /// - public global::LangSmith.PlaygroundOptimizePromptRequestSchema? Type262 { get; set; } + public global::System.Collections.Generic.IList>? Type262 { get; set; } /// /// /// - public global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat? Type263 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type263 { get; set; } /// /// /// - public global::LangSmith.PlaygroundRunOverDatasetRequestSchema? Type264 { get; set; } + public global::System.Collections.Generic.IList? Type264 { get; set; } /// /// /// - public global::LangSmith.RunnableConfig? Type265 { get; set; } + public global::LangSmith.MonitorGroupSpec? Type265 { get; set; } /// /// /// - public global::LangSmith.AnyOf, object>? Type266 { get; set; } + public global::LangSmith.MonitorRequest? Type266 { get; set; } /// /// /// - public global::LangSmith.PlaygroundSettingsCreateRequest? Type267 { get; set; } + public global::System.Collections.Generic.IList? Type267 { get; set; } /// /// /// - public global::LangSmith.PlaygroundSettingsResponse? Type268 { get; set; } + public global::LangSmith.MonitorResponse? Type268 { get; set; } /// /// /// - public global::LangSmith.PlaygroundSettingsUpdateRequest? Type269 { get; set; } + public global::System.Collections.Generic.IList? Type269 { get; set; } /// /// /// - public global::LangSmith.ProviderUserSlim? Type270 { get; set; } + public global::LangSmith.OAuthProvider? Type270 { get; set; } /// /// /// - public global::LangSmith.PublicComparativeExperiment? Type271 { get; set; } + public global::LangSmith.OptimizePromptRequest? Type271 { get; set; } /// /// /// - public global::LangSmith.PublicExampleWithRuns? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::LangSmith.PutDatasetVersionsSchema? Type273 { get; set; } + public global::LangSmith.OptimizePromptResponse? Type273 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type274 { get; set; } + public global::LangSmith.OrgFeatureFlags? Type274 { get; set; } /// /// /// - public global::LangSmith.QueryExampleSchemaWithRuns? Type275 { get; set; } + public global::LangSmith.OrgIdentityPatch? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type276 { get; set; } + public global::LangSmith.OrgMemberIdentity? Type276 { get; set; } /// /// /// - public global::LangSmith.QueryFeedbackDelta? Type277 { get; set; } + public global::LangSmith.OrgPendingIdentity? Type277 { get; set; } /// /// /// - public global::LangSmith.QueryParamsForPublicRunSchema? Type278 { get; set; } + public global::LangSmith.Organization? Type278 { get; set; } /// /// /// - public global::LangSmith.RepoTag? Type279 { get; set; } + public global::LangSmith.OrganizationConfig? Type279 { get; set; } /// /// /// - public global::LangSmith.RepoTagRequest? Type280 { get; set; } + public global::System.Collections.Generic.Dictionary? Type280 { get; set; } /// /// /// - public global::LangSmith.RepoUpdateTagRequest? Type281 { get; set; } + public global::LangSmith.StripePaymentMethodInfo? Type281 { get; set; } /// /// /// - public global::LangSmith.RequestBodyForRunsGenerateQuery? Type282 { get; set; } + public global::LangSmith.OrganizationBillingInfo? Type282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::LangSmith.OrganizationCreate? Type283 { get; set; } /// /// /// - public global::LangSmith.RunsGenerateQueryFeedbackKeys? Type284 { get; set; } + public global::LangSmith.OrganizationDashboardColorScheme? Type284 { get; set; } /// /// /// - public global::LangSmith.Resource? Type285 { get; set; } + public global::LangSmith.OrganizationDashboardSchema? Type285 { get; set; } /// /// /// - public global::LangSmith.ResourceType? Type286 { get; set; } + public global::LangSmith.OrganizationDashboardType? Type286 { get; set; } /// /// /// - public global::LangSmith.ResponseBodyForRunsGenerateQuery? Type287 { get; set; } + public global::LangSmith.OrganizationInfo? Type287 { get; set; } /// /// /// - public global::LangSmith.Role? Type288 { get; set; } + public global::LangSmith.OrganizationMembers? Type288 { get; set; } /// /// /// - public global::LangSmith.RuleLogActionOutcome? Type289 { get; set; } + public global::System.Collections.Generic.IList? Type289 { get; set; } /// /// /// - public global::LangSmith.RuleLogActionResponse? Type290 { get; set; } + public global::System.Collections.Generic.IList? Type290 { get; set; } /// /// /// - public global::LangSmith.RuleLogSchema? Type291 { get; set; } + public global::LangSmith.OrganizationPGSchemaSlim? Type291 { get; set; } /// /// /// - public global::LangSmith.RunGroupBy? Type292 { get; set; } + public global::LangSmith.OrganizationUpdate? Type292 { get; set; } /// /// /// - public global::LangSmith.RunGroupRequest? Type293 { get; set; } + public global::LangSmith.PagerdutySeverity? Type293 { get; set; } /// /// /// - public global::LangSmith.RunGroupStats? Type294 { get; set; } + public global::LangSmith.PendingIdentity? Type294 { get; set; } /// /// /// - public global::LangSmith.RunRulesAlertType? Type295 { get; set; } + public global::LangSmith.PendingIdentityCreate? Type295 { get; set; } /// /// /// - public global::LangSmith.RunRulesCreateSchema? Type296 { get; set; } + public global::LangSmith.PermissionResponse? Type296 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type297 { get; set; } + public global::LangSmith.PlayGroundGraph? Type297 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type298 { get; set; } + public global::System.Collections.Generic.IList? Type298 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type299 { get; set; } + public global::LangSmith.MessagesItem? Type299 { get; set; } /// /// /// - public global::LangSmith.RunRulesPagerdutyAlertSchema? Type300 { get; set; } + public global::LangSmith.SystemMessage? Type300 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type301 { get; set; } + public global::LangSmith.SystemMessageType? Type301 { get; set; } /// /// /// - public global::LangSmith.RunRulesWebhookSchema? Type302 { get; set; } + public global::LangSmith.ToolMessage? Type302 { get; set; } /// /// /// - public global::LangSmith.RunRulesSchema? Type303 { get; set; } + public global::LangSmith.ToolMessageType? Type303 { get; set; } /// /// /// - public global::LangSmith.RunSchemaWithAnnotationQueueInfo? Type304 { get; set; } + public global::LangSmith.ToolMessageStatus? Type304 { get; set; } /// /// /// - public global::LangSmith.RunShareSchema? Type305 { get; set; } + public global::LangSmith.SystemMessageChunk? Type305 { get; set; } /// /// /// - public global::LangSmith.RunStats? Type306 { get; set; } + public global::LangSmith.SystemMessageChunkType? Type306 { get; set; } /// /// /// - public global::LangSmith.SSOConfirmEmailRequest? Type307 { get; set; } + public global::LangSmith.ToolMessageChunk? Type307 { get; set; } /// /// /// - public global::LangSmith.SSOEmailVerificationSendRequest? Type308 { get; set; } + public global::LangSmith.ToolMessageChunkType? Type308 { get; set; } /// /// /// - public global::LangSmith.SSOEmailVerificationStatusRequest? Type309 { get; set; } + public global::LangSmith.ToolMessageChunkStatus? Type309 { get; set; } /// /// /// - public global::LangSmith.SSOEmailVerificationStatusResponse? Type310 { get; set; } + public global::LangSmith.PlayGroundGraphMessageDiscriminator? Type310 { get; set; } /// /// /// - public global::LangSmith.SSOProvider? Type311 { get; set; } + public global::LangSmith.PlayGroundGraphMessageDiscriminatorType? Type311 { get; set; } /// /// /// - public global::LangSmith.SSOProviderSlim? Type312 { get; set; } + public global::LangSmith.PlayGroundGraphArtifactLength? Type312 { get; set; } /// /// /// - public global::LangSmith.SSOSettingsCreate? Type313 { get; set; } + public global::LangSmith.PlayGroundGraphReadingLevel? Type313 { get; set; } /// /// /// - public global::LangSmith.SSOSettingsUpdate? Type314 { get; set; } + public global::LangSmith.PlaygroundRunOverDatasetRequestSchema? Type314 { get; set; } /// /// /// - public global::LangSmith.SearchDatasetRequest? Type315 { get; set; } + public global::LangSmith.RunnableConfig? Type315 { get; set; } /// /// /// - public global::LangSmith.SearchDatasetResponse? Type316 { get; set; } + public global::LangSmith.AnyOf, object>? Type316 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type317 { get; set; } + public global::LangSmith.PlaygroundSettingsCreateRequest? Type317 { get; set; } /// /// /// - public global::LangSmith.SearchedFewShotExample? Type318 { get; set; } + public global::LangSmith.PlaygroundSettingsResponse? Type318 { get; set; } /// /// /// - public global::LangSmith.SecretKey? Type319 { get; set; } + public global::LangSmith.PlaygroundSettingsUpdateRequest? Type319 { get; set; } /// /// /// - public global::LangSmith.SecretUpsert? Type320 { get; set; } + public global::LangSmith.ProviderUserSlim? Type320 { get; set; } /// /// /// - public global::LangSmith.ServiceAccount? Type321 { get; set; } + public global::LangSmith.PublicComparativeExperiment? Type321 { get; set; } /// /// /// - public global::LangSmith.ServiceAccountCreateRequest? Type322 { get; set; } + public global::LangSmith.PublicExampleWithRuns? Type322 { get; set; } /// /// /// - public global::LangSmith.ServiceAccountCreateResponse? Type323 { get; set; } + public global::LangSmith.PutDatasetVersionsSchema? Type323 { get; set; } /// /// /// - public global::LangSmith.ServiceAccountDeleteResponse? Type324 { get; set; } + public global::LangSmith.AnyOf? Type324 { get; set; } /// /// /// - public global::LangSmith.SessionFeedbackDelta? Type325 { get; set; } + public global::LangSmith.QueryExampleSchemaWithRuns? Type325 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type326 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type326 { get; set; } /// /// /// - public global::LangSmith.SessionSortableColumns? Type327 { get; set; } + public global::LangSmith.QueryFeedbackDelta? Type327 { get; set; } /// /// /// - public global::LangSmith.SetTenantHandleRequest? Type328 { get; set; } + public global::LangSmith.QueryParamsForPublicRunSchema? Type328 { get; set; } /// /// /// - public global::LangSmith.SingleCustomChartResponseBase? Type329 { get; set; } + public global::LangSmith.RepoTag? Type329 { get; set; } /// /// /// - public global::LangSmith.SortByComparativeExperimentColumn? Type330 { get; set; } + public global::LangSmith.RepoTagRequest? Type330 { get; set; } /// /// /// - public global::LangSmith.SortByDatasetColumn? Type331 { get; set; } + public global::LangSmith.RepoUpdateTagRequest? Type331 { get; set; } /// /// /// - public global::LangSmith.SourceType? Type332 { get; set; } + public global::LangSmith.RequestBodyForRunsGenerateQuery? Type332 { get; set; } /// /// /// - public global::LangSmith.StripeBusinessBillingInfo? Type333 { get; set; } + public global::System.Collections.Generic.IList? Type333 { get; set; } /// /// /// - public global::LangSmith.StripeCustomerAddress? Type334 { get; set; } + public global::LangSmith.RunsGenerateQueryFeedbackKeys? Type334 { get; set; } /// /// /// - public global::LangSmith.StripeBusinessInfoInput? Type335 { get; set; } + public global::LangSmith.Resource? Type335 { get; set; } /// /// /// - public global::LangSmith.StripeTaxId? Type336 { get; set; } + public global::LangSmith.ResourceType? Type336 { get; set; } /// /// /// - public global::LangSmith.StripeBusinessInfoOutput? Type337 { get; set; } + public global::LangSmith.ResponseBodyForRunsGenerateQuery? Type337 { get; set; } /// /// /// - public global::LangSmith.StripeCustomerBillingInfo? Type338 { get; set; } + public global::LangSmith.Role? Type338 { get; set; } /// /// /// - public global::LangSmith.StripePaymentInformation? Type339 { get; set; } + public global::LangSmith.RuleLogActionOutcome? Type339 { get; set; } /// /// /// - public global::LangSmith.StripeSetupIntentResponse? Type340 { get; set; } + public global::LangSmith.RuleLogActionResponse? Type340 { get; set; } /// /// /// - public global::LangSmith.TTLSettings? Type341 { get; set; } + public global::LangSmith.RuleLogSchema? Type341 { get; set; } /// /// /// - public global::LangSmith.TagKey? Type342 { get; set; } + public global::LangSmith.RunGroupBy? Type342 { get; set; } /// /// /// - public global::LangSmith.TagKeyCreate? Type343 { get; set; } + public global::LangSmith.RunGroupRequest? Type343 { get; set; } /// /// /// - public global::LangSmith.TagKeyUpdate? Type344 { get; set; } + public global::LangSmith.RunGroupStats? Type344 { get; set; } /// /// /// - public global::LangSmith.TagKeyWithValues? Type345 { get; set; } + public global::LangSmith.RunRulesAlertType? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::LangSmith.RunRulesCreateSchema? Type346 { get; set; } /// /// /// - public global::LangSmith.TagValue? Type347 { get; set; } + public global::System.Collections.Generic.IList? Type347 { get; set; } /// /// /// - public global::LangSmith.TagKeyWithValuesAndTaggings? Type348 { get; set; } + public global::System.Collections.Generic.IList? Type348 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type349 { get; set; } + public global::System.Collections.Generic.IList? Type349 { get; set; } /// /// /// - public global::LangSmith.TagValueWithTaggings? Type350 { get; set; } + public global::LangSmith.RunRulesPagerdutyAlertSchema? Type350 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type351 { get; set; } + public global::System.Collections.Generic.IList? Type351 { get; set; } /// /// /// - public global::LangSmith.Tagging? Type352 { get; set; } + public global::LangSmith.RunRulesWebhookSchema? Type352 { get; set; } /// /// /// - public global::LangSmith.TagValueCreate? Type353 { get; set; } + public global::LangSmith.RunRulesSchema? Type353 { get; set; } /// /// /// - public global::LangSmith.TagValueUpdate? Type354 { get; set; } + public global::LangSmith.RunSchemaWithAnnotationQueueInfo? Type354 { get; set; } /// /// /// - public global::LangSmith.TaggingCreate? Type355 { get; set; } + public global::LangSmith.RunShareSchema? Type355 { get; set; } /// /// /// - public global::LangSmith.TaggingsByResourceType? Type356 { get; set; } + public global::LangSmith.RunStats? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type357 { get; set; } + public global::LangSmith.SSOConfirmEmailRequest? Type357 { get; set; } /// /// /// - public global::LangSmith.TaggingsResponse? Type358 { get; set; } + public global::LangSmith.SSOEmailVerificationSendRequest? Type358 { get; set; } /// /// /// - public global::LangSmith.TenantBulkUnshareRequest? Type359 { get; set; } + public global::LangSmith.SSOEmailVerificationStatusRequest? Type359 { get; set; } /// /// /// - public global::LangSmith.TenantCreate? Type360 { get; set; } + public global::LangSmith.SSOEmailVerificationStatusResponse? Type360 { get; set; } /// /// /// - public global::LangSmith.TenantForUser? Type361 { get; set; } + public global::LangSmith.SSOProvider? Type361 { get; set; } /// /// /// - public global::LangSmith.TenantMembers? Type362 { get; set; } + public global::LangSmith.SSOProviderSlim? Type362 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type363 { get; set; } + public global::LangSmith.SSOSettingsCreate? Type363 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type364 { get; set; } + public global::LangSmith.SSOSettingsUpdate? Type364 { get; set; } /// /// /// - public global::LangSmith.TenantShareDatasetToken? Type365 { get; set; } + public global::LangSmith.SearchDatasetRequest? Type365 { get; set; } /// /// /// - public global::LangSmith.TenantShareDatasetTokenType? Type366 { get; set; } + public global::LangSmith.SearchDatasetResponse? Type366 { get; set; } /// /// /// - public global::LangSmith.TenantShareRunToken? Type367 { get; set; } + public global::System.Collections.Generic.IList? Type367 { get; set; } /// /// /// - public global::LangSmith.TenantShareRunTokenType? Type368 { get; set; } + public global::LangSmith.SearchedFewShotExample? Type368 { get; set; } /// /// /// - public global::LangSmith.TenantShareTokensResponse? Type369 { get; set; } + public global::LangSmith.SecretKey? Type369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type370 { get; set; } + public global::LangSmith.SecretUpsert? Type370 { get; set; } /// /// /// - public global::LangSmith.EntitiesItem? Type371 { get; set; } + public global::LangSmith.ServiceAccount? Type371 { get; set; } /// /// /// - public global::LangSmith.TenantShareTokensResponseEntitieDiscriminator? Type372 { get; set; } + public global::LangSmith.ServiceAccountCreateRequest? Type372 { get; set; } /// /// /// - public global::LangSmith.TenantShareTokensResponseEntitieDiscriminatorType? Type373 { get; set; } + public global::LangSmith.ServiceAccountCreateResponse? Type373 { get; set; } /// /// /// - public global::LangSmith.TenantStats? Type374 { get; set; } + public global::LangSmith.ServiceAccountDeleteResponse? Type374 { get; set; } /// /// /// - public global::LangSmith.TenantUsageLimitInfo? Type375 { get; set; } + public global::LangSmith.SessionFeedbackDelta? Type375 { get; set; } /// /// /// - public global::LangSmith.TenantUsageLimitType? Type376 { get; set; } + public global::System.Collections.Generic.Dictionary? Type376 { get; set; } /// /// /// - public global::LangSmith.TracerSessionCreate? Type377 { get; set; } + public global::LangSmith.SessionSortableColumns? Type377 { get; set; } /// /// /// - public global::LangSmith.TracerSessionUpdate? Type378 { get; set; } + public global::LangSmith.SetTenantHandleRequest? Type378 { get; set; } /// /// /// - public global::LangSmith.TracerSessionWithoutVirtualFields? Type379 { get; set; } + public global::LangSmith.SingleCustomChartResponseBase? Type379 { get; set; } /// /// /// - public global::LangSmith.TriggerRulesRequest? Type380 { get; set; } + public global::LangSmith.SortByComparativeExperimentColumn? Type380 { get; set; } /// /// /// - public global::LangSmith.UpdateFeedbackConfigSchema? Type381 { get; set; } + public global::LangSmith.SortByDatasetColumn? Type381 { get; set; } /// /// /// - public global::LangSmith.UpdateRepoRequest? Type382 { get; set; } + public global::LangSmith.SourceType? Type382 { get; set; } /// /// /// - public global::LangSmith.UpdateRoleRequest? Type383 { get; set; } + public global::LangSmith.StripeBusinessBillingInfo? Type383 { get; set; } /// /// /// - public global::LangSmith.UpsertTTLSettingsRequest? Type384 { get; set; } + public global::LangSmith.StripeCustomerAddress? Type384 { get; set; } /// /// /// - public global::LangSmith.UpsertUsageLimit? Type385 { get; set; } + public global::LangSmith.StripeBusinessInfoInput? Type385 { get; set; } /// /// /// - public global::LangSmith.UsageLimitType? Type386 { get; set; } + public global::LangSmith.StripeTaxId? Type386 { get; set; } /// /// /// - public global::LangSmith.UsageLimit? Type387 { get; set; } + public global::LangSmith.StripeBusinessInfoOutput? Type387 { get; set; } /// /// /// - public global::LangSmith.UserWithPassword? Type388 { get; set; } + public global::LangSmith.StripeCustomerBillingInfo? Type388 { get; set; } /// /// /// - public global::LangSmith.WorkspaceCreate? Type389 { get; set; } + public global::LangSmith.StripePaymentInformation? Type389 { get; set; } /// /// /// - public global::LangSmith.WorkspacePatch? Type390 { get; set; } + public global::LangSmith.StripeSetupIntentResponse? Type390 { get; set; } /// /// /// - public global::LangSmith.AppHubCrudTenantsTenant? Type391 { get; set; } + public global::LangSmith.TTLSettings? Type391 { get; set; } /// /// /// - public global::LangSmith.AppSchemasTenant? Type392 { get; set; } + public global::LangSmith.TagKey? Type392 { get; set; } /// /// /// - public global::LangSmith.CreateRunRequest? Type393 { get; set; } + public global::LangSmith.TagKeyCreate? Type393 { get; set; } /// /// /// - public global::LangSmith.CreateRunRequestRunType? Type394 { get; set; } + public global::LangSmith.TagKeyUpdate? Type394 { get; set; } /// /// /// - public global::LangSmith.OneOf? Type395 { get; set; } + public global::LangSmith.TagKeyWithValues? Type395 { get; set; } /// /// /// - public global::LangSmith.BatchIngestRunsRequest? Type396 { get; set; } + public global::System.Collections.Generic.IList? Type396 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type397 { get; set; } + public global::LangSmith.TagValue? Type397 { get; set; } /// /// /// - public global::LangSmith.BatchIngestRunsRequestPostItem? Type398 { get; set; } + public global::LangSmith.TagKeyWithValuesAndTaggings? Type398 { get; set; } /// /// /// - public global::LangSmith.BatchIngestRunsRequestPostItemRunType? Type399 { get; set; } + public global::System.Collections.Generic.IList? Type399 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type400 { get; set; } + public global::LangSmith.TagValueWithTaggings? Type400 { get; set; } /// /// /// - public global::LangSmith.BatchIngestRunsRequestPatchItem? Type401 { get; set; } + public global::System.Collections.Generic.IList? Type401 { get; set; } /// /// /// - public global::LangSmith.UpdateRunRequest? Type402 { get; set; } + public global::LangSmith.Tagging? Type402 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type403 { get; set; } + public global::LangSmith.TagValueCreate? Type403 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type404 { get; set; } + public global::LangSmith.TagValueUpdate? Type404 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type405 { get; set; } + public global::LangSmith.TaggingCreate? Type405 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type406 { get; set; } + public global::LangSmith.TaggingsByResourceType? Type406 { get; set; } /// /// /// - public global::LangSmith.AnyOf>? Type407 { get; set; } + public global::System.Collections.Generic.IList? Type407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type408 { get; set; } + public global::LangSmith.TaggingsResponse? Type408 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type409 { get; set; } + public global::LangSmith.TenantBulkUnshareRequest? Type409 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type410 { get; set; } + public global::LangSmith.TenantCreate? Type410 { get; set; } /// /// /// - public global::LangSmith.AnyOf, global::LangSmith.DataType?>? Type411 { get; set; } + public global::LangSmith.TenantForUser? Type411 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type412 { get; set; } + public global::LangSmith.TenantMembers? Type412 { get; set; } /// /// /// - public global::LangSmith.ListRulesApiV1RunsRulesGetType? Type413 { get; set; } + public global::System.Collections.Generic.IList? Type413 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type414 { get; set; } + public global::System.Collections.Generic.IList? Type414 { get; set; } /// /// /// - public global::LangSmith.ListReposApiV1ReposGetIsArchived? Type415 { get; set; } + public global::LangSmith.TenantShareDatasetToken? Type415 { get; set; } /// /// /// - public global::LangSmith.ListReposApiV1ReposGetIsPublic? Type416 { get; set; } + public global::LangSmith.TenantShareDatasetTokenType? Type416 { get; set; } /// /// /// - public global::LangSmith.AnyOf? Type417 { get; set; } + public global::LangSmith.TenantShareRunToken? Type417 { get; set; } /// /// /// - public global::LangSmith.ListReposApiV1ReposGetSortDirectionVariant1? Type418 { get; set; } + public global::LangSmith.TenantShareRunTokenType? Type418 { get; set; } /// /// /// - public global::LangSmith.ListReposApiV1ReposGetSortDirectionVariant2? Type419 { get; set; } + public global::LangSmith.TenantShareTokensResponse? Type419 { get; set; } /// /// /// - public global::LangSmith.ListRepoTagsApiV1ReposTagsGetIsArchived? Type420 { get; set; } + public global::System.Collections.Generic.IList? Type420 { get; set; } /// /// /// - public global::LangSmith.ListRepoTagsApiV1ReposTagsGetIsPublic? Type421 { get; set; } + public global::LangSmith.EntitiesItem? Type421 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type422 { get; set; } + public global::LangSmith.TenantShareTokensResponseEntitieDiscriminator? Type422 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type423 { get; set; } + public global::LangSmith.TenantShareTokensResponseEntitieDiscriminatorType? Type423 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type424 { get; set; } + public global::LangSmith.TenantStats? Type424 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type425 { get; set; } + public global::LangSmith.TenantUsageLimitInfo? Type425 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type426 { get; set; } + public global::LangSmith.TenantUsageLimitType? Type426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type427 { get; set; } + public global::LangSmith.TracerSessionCreate? Type427 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type428 { get; set; } + public global::LangSmith.TracerSessionUpdate? Type428 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type429 { get; set; } + public global::LangSmith.TracerSessionWithoutVirtualFields? Type429 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type430 { get; set; } + public global::LangSmith.TriggerRulesRequest? Type430 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type431 { get; set; } + public global::LangSmith.UpdateFeedbackConfigSchema? Type431 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type432 { get; set; } + public global::LangSmith.UpdateRepoRequest? Type432 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type433 { get; set; } + public global::LangSmith.UpdateRoleRequest? Type433 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type434 { get; set; } + public global::LangSmith.UpsertTTLSettingsRequest? Type434 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type435 { get; set; } + public global::LangSmith.UpsertUsageLimit? Type435 { get; set; } /// /// /// - public global::LangSmith.AnyOf, global::System.Collections.Generic.IList>? Type436 { get; set; } + public global::LangSmith.UsageLimitType? Type436 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type437 { get; set; } + public global::LangSmith.UsageLimit? Type437 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type438 { get; set; } + public global::LangSmith.UserWithPassword? Type438 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type439 { get; set; } + public global::LangSmith.WorkspaceCreate? Type439 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type440 { get; set; } + public global::LangSmith.WorkspacePatch? Type440 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type441 { get; set; } + public global::LangSmith.AppHubCrudTenantsTenant? Type441 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type442 { get; set; } + public global::LangSmith.AppSchemasTenant? Type442 { get; set; } /// /// /// - public global::LangSmith.AnyOf>? Type443 { get; set; } + public global::LangSmith.CreateRunRequest? Type443 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type444 { get; set; } + public global::LangSmith.CreateRunRequestRunType? Type444 { get; set; } /// /// /// - public global::LangSmith.AnyOf, global::System.Collections.Generic.IList>? Type445 { get; set; } + public global::LangSmith.OneOf? Type445 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type446 { get; set; } + public global::LangSmith.BatchIngestRunsRequest? Type446 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type447 { get; set; } + public global::System.Collections.Generic.IList? Type447 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type448 { get; set; } + public global::LangSmith.BatchIngestRunsRequestPostItem? Type448 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type449 { get; set; } + public global::LangSmith.BatchIngestRunsRequestPostItemRunType? Type449 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type450 { get; set; } + public global::System.Collections.Generic.IList? Type450 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type451 { get; set; } + public global::LangSmith.BatchIngestRunsRequestPatchItem? Type451 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type452 { get; set; } + public global::LangSmith.UpdateRunRequest? Type452 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type453 { get; set; } + public global::System.Collections.Generic.IList? Type453 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type454 { get; set; } + public global::System.Collections.Generic.IList? Type454 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type455 { get; set; } + public global::System.Collections.Generic.IList? Type455 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type456 { get; set; } + public global::System.Collections.Generic.IList? Type456 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type457 { get; set; } + public global::LangSmith.AnyOf>? Type457 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type458 { get; set; } + public global::System.Collections.Generic.IList? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type459 { get; set; } + public global::System.Collections.Generic.IList? Type459 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type460 { get; set; } + public global::System.Collections.Generic.IList? Type460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type461 { get; set; } + public global::LangSmith.AnyOf, global::LangSmith.DataType?>? Type461 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type462 { get; set; } + public global::System.Collections.Generic.IList? Type462 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type463 { get; set; } + public global::LangSmith.ListRulesApiV1RunsRulesGetType? Type463 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type464 { get; set; } + public global::System.Collections.Generic.IList? Type464 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type465 { get; set; } + public global::LangSmith.ListReposApiV1ReposGetIsArchived? Type465 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type466 { get; set; } + public global::LangSmith.ListReposApiV1ReposGetIsPublic? Type466 { get; set; } + /// + /// + /// + public global::LangSmith.AnyOf? Type467 { get; set; } + /// + /// + /// + public global::LangSmith.ListReposApiV1ReposGetSortDirectionVariant1? Type468 { get; set; } + /// + /// + /// + public global::LangSmith.ListReposApiV1ReposGetSortDirectionVariant2? Type469 { get; set; } + /// + /// + /// + public global::LangSmith.ListRepoTagsApiV1ReposTagsGetIsArchived? Type470 { get; set; } + /// + /// + /// + public global::LangSmith.ListRepoTagsApiV1ReposTagsGetIsPublic? Type471 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type472 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type473 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type474 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type475 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type476 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type477 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type478 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type479 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type480 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type481 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type482 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type483 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type484 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type485 { get; set; } + /// + /// + /// + public global::LangSmith.AnyOf, global::System.Collections.Generic.IList>? Type486 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type487 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type488 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type489 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type490 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type491 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type492 { get; set; } + /// + /// + /// + public global::LangSmith.AnyOf>? Type493 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type494 { get; set; } + /// + /// + /// + public global::LangSmith.AnyOf, global::System.Collections.Generic.IList>? Type495 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type496 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type497 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type498 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type499 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type500 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type501 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type502 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type503 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type504 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type505 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type506 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type507 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type508 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type509 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type510 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type511 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type512 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type513 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type514 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type515 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type516 { get; set; } } } \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.IPromptsClient.Canvas.g.cs b/src/libs/LangSmith/Generated/LangSmith.IPromptsClient.Canvas.g.cs index 0f41b165..cea3720c 100644 --- a/src/libs/LangSmith/Generated/LangSmith.IPromptsClient.Canvas.g.cs +++ b/src/libs/LangSmith/Generated/LangSmith.IPromptsClient.Canvas.g.cs @@ -5,33 +5,35 @@ namespace LangSmith public partial interface IPromptsClient { /// - /// Canvas
- /// Improve prompt based on instruction. + /// Canvas ///
/// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CanvasAsync( - global::LangSmith.PlaygroundOptimizePromptRequestSchema request, + global::LangSmith.PlayGroundGraph request, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Canvas
- /// Improve prompt based on instruction. + /// Canvas ///
- /// - /// - /// - /// - /// + /// + /// + /// + /// + /// + /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CanvasAsync( - string prompt, - string improvementInstruction, - global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat templateFormat, - int? highlightStart = default, - int? highlightEnd = default, + global::System.Collections.Generic.IList messages, + global::LangSmith.Artifact artifact, + global::LangSmith.Highlight? highlighted = default, + string? next = default, + global::LangSmith.PlayGroundGraphArtifactLength? artifactLength = default, + global::LangSmith.PlayGroundGraphReadingLevel? readingLevel = default, + string? lastNodeName = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessage.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessage.g.cs new file mode 100644 index 00000000..1f9136f8 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessage.g.cs @@ -0,0 +1,163 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Message from an AI.
+ /// AIMessage is returned from a chat model as a response to a prompt.
+ /// This message represents the output of the model and consists of both
+ /// the raw output as returned by the model together standardized fields
+ /// (e.g., tool calls, usage metadata) added by the LangChain framework. + ///
+ public sealed partial class AIMessage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: ai + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AIMessageTypeJsonConverter))] + public global::LangSmith.AIMessageType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("example")] + public bool? Example { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")] + public global::System.Collections.Generic.IList? ToolCalls { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("invalid_tool_calls")] + public global::System.Collections.Generic.IList? InvalidToolCalls { get; set; } + + /// + /// Usage metadata for a message, such as token counts.
+ /// This is a standard representation of token usage that is consistent across models.
+ /// Example:
+ /// .. code-block:: python
+ /// {
+ /// "input_tokens": 350,
+ /// "output_tokens": 240,
+ /// "total_tokens": 590,
+ /// "input_token_details": {
+ /// "audio": 10,
+ /// "cache_creation": 200,
+ /// "cache_read": 100,
+ /// },
+ /// "output_token_details": {
+ /// "audio": 10,
+ /// "reasoning": 200,
+ /// }
+ /// }
+ /// .. versionchanged:: 0.3.9
+ /// Added ``input_token_details`` and ``output_token_details``. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("usage_metadata")] + public global::LangSmith.UsageMetadata? UsageMetadata { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.AIMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.AIMessage), + jsonSerializerContext) as global::LangSmith.AIMessage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.AIMessage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageAdditionalKwargs.g.cs new file mode 100644 index 00000000..c0008608 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class AIMessageAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.AIMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.AIMessageAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.AIMessageAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.AIMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunk.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunk.g.cs new file mode 100644 index 00000000..511470d7 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunk.g.cs @@ -0,0 +1,165 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Message chunk from an AI. + /// + public sealed partial class AIMessageChunk + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: AIMessageChunk + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AIMessageChunkTypeJsonConverter))] + public global::LangSmith.AIMessageChunkType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("example")] + public bool? Example { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")] + public global::System.Collections.Generic.IList? ToolCalls { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("invalid_tool_calls")] + public global::System.Collections.Generic.IList? InvalidToolCalls { get; set; } + + /// + /// Usage metadata for a message, such as token counts.
+ /// This is a standard representation of token usage that is consistent across models.
+ /// Example:
+ /// .. code-block:: python
+ /// {
+ /// "input_tokens": 350,
+ /// "output_tokens": 240,
+ /// "total_tokens": 590,
+ /// "input_token_details": {
+ /// "audio": 10,
+ /// "cache_creation": 200,
+ /// "cache_read": 100,
+ /// },
+ /// "output_token_details": {
+ /// "audio": 10,
+ /// "reasoning": 200,
+ /// }
+ /// }
+ /// .. versionchanged:: 0.3.9
+ /// Added ``input_token_details`` and ``output_token_details``. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("usage_metadata")] + public global::LangSmith.UsageMetadata? UsageMetadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_chunks")] + public global::System.Collections.Generic.IList? ToolCallChunks { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.AIMessageChunk? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.AIMessageChunk), + jsonSerializerContext) as global::LangSmith.AIMessageChunk; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.AIMessageChunk? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkAdditionalKwargs.g.cs new file mode 100644 index 00000000..f3db14ad --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class AIMessageChunkAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.AIMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.AIMessageChunkAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.AIMessageChunkAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.AIMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkContentVariant2Item.g.cs new file mode 100644 index 00000000..17f98acc --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class AIMessageChunkContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.AIMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.AIMessageChunkContentVariant2Item), + jsonSerializerContext) as global::LangSmith.AIMessageChunkContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.AIMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkResponseMetadata.g.cs new file mode 100644 index 00000000..6dcf431d --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class AIMessageChunkResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.AIMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.AIMessageChunkResponseMetadata), + jsonSerializerContext) as global::LangSmith.AIMessageChunkResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.AIMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkType.g.cs new file mode 100644 index 00000000..39948ab0 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageChunkType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: AIMessageChunk + /// + public enum AIMessageChunkType + { + /// + /// + /// + AIMessageChunk, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AIMessageChunkTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AIMessageChunkType value) + { + return value switch + { + AIMessageChunkType.AIMessageChunk => "AIMessageChunk", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AIMessageChunkType? ToEnum(string value) + { + return value switch + { + "AIMessageChunk" => AIMessageChunkType.AIMessageChunk, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageContentVariant2Item.g.cs new file mode 100644 index 00000000..026be037 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class AIMessageContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.AIMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.AIMessageContentVariant2Item), + jsonSerializerContext) as global::LangSmith.AIMessageContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.AIMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageResponseMetadata.g.cs new file mode 100644 index 00000000..7a75cacf --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class AIMessageResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.AIMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.AIMessageResponseMetadata), + jsonSerializerContext) as global::LangSmith.AIMessageResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.AIMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageType.g.cs new file mode 100644 index 00000000..d760da4b --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.AIMessageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: ai + /// + public enum AIMessageType + { + /// + /// + /// + Ai, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AIMessageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AIMessageType value) + { + return value switch + { + AIMessageType.Ai => "ai", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AIMessageType? ToEnum(string value) + { + return value switch + { + "ai" => AIMessageType.Ai, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.Artifact.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.Artifact.g.cs new file mode 100644 index 00000000..5124a995 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.Artifact.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class Artifact + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("contents")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Contents { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("current_content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CurrentContentIndex { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.Artifact? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.Artifact), + jsonSerializerContext) as global::LangSmith.Artifact; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.Artifact? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ArtifactContent.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ArtifactContent.g.cs new file mode 100644 index 00000000..04a32096 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ArtifactContent.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ArtifactContent + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Index { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Content { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ArtifactContent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ArtifactContent), + jsonSerializerContext) as global::LangSmith.ArtifactContent; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ArtifactContent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessage.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessage.g.cs new file mode 100644 index 00000000..4e28ae4b --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessage.g.cs @@ -0,0 +1,123 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Message that can be assigned an arbitrary speaker (i.e. role). + /// + public sealed partial class ChatMessage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: chat + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.ChatMessageTypeJsonConverter))] + public global::LangSmith.ChatMessageType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Role { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ChatMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ChatMessage), + jsonSerializerContext) as global::LangSmith.ChatMessage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ChatMessage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageAdditionalKwargs.g.cs new file mode 100644 index 00000000..c7b9225e --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ChatMessageAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ChatMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ChatMessageAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.ChatMessageAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ChatMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunk.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunk.g.cs new file mode 100644 index 00000000..753d121f --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunk.g.cs @@ -0,0 +1,123 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Chat Message chunk. + /// + public sealed partial class ChatMessageChunk + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: ChatMessageChunk + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.ChatMessageChunkTypeJsonConverter))] + public global::LangSmith.ChatMessageChunkType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Role { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ChatMessageChunk? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ChatMessageChunk), + jsonSerializerContext) as global::LangSmith.ChatMessageChunk; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ChatMessageChunk? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkAdditionalKwargs.g.cs new file mode 100644 index 00000000..4f5b6026 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ChatMessageChunkAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ChatMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ChatMessageChunkAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.ChatMessageChunkAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ChatMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkContentVariant2Item.g.cs new file mode 100644 index 00000000..caf13166 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ChatMessageChunkContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ChatMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ChatMessageChunkContentVariant2Item), + jsonSerializerContext) as global::LangSmith.ChatMessageChunkContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ChatMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkResponseMetadata.g.cs new file mode 100644 index 00000000..e91ca7d3 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ChatMessageChunkResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ChatMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ChatMessageChunkResponseMetadata), + jsonSerializerContext) as global::LangSmith.ChatMessageChunkResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ChatMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkType.g.cs new file mode 100644 index 00000000..dee6135a --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageChunkType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: ChatMessageChunk + /// + public enum ChatMessageChunkType + { + /// + /// + /// + ChatMessageChunk, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatMessageChunkTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatMessageChunkType value) + { + return value switch + { + ChatMessageChunkType.ChatMessageChunk => "ChatMessageChunk", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatMessageChunkType? ToEnum(string value) + { + return value switch + { + "ChatMessageChunk" => ChatMessageChunkType.ChatMessageChunk, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageContentVariant2Item.g.cs new file mode 100644 index 00000000..608d56b1 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ChatMessageContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ChatMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ChatMessageContentVariant2Item), + jsonSerializerContext) as global::LangSmith.ChatMessageContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ChatMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageResponseMetadata.g.cs new file mode 100644 index 00000000..ba32455f --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ChatMessageResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ChatMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ChatMessageResponseMetadata), + jsonSerializerContext) as global::LangSmith.ChatMessageResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ChatMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageType.g.cs new file mode 100644 index 00000000..b24b9259 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ChatMessageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: chat + /// + public enum ChatMessageType + { + /// + /// + /// + Chat, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatMessageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatMessageType value) + { + return value switch + { + ChatMessageType.Chat => "chat", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatMessageType? ToEnum(string value) + { + return value switch + { + "chat" => ChatMessageType.Chat, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessage.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessage.g.cs new file mode 100644 index 00000000..fd821b2f --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessage.g.cs @@ -0,0 +1,122 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Message for passing the result of executing a tool back to a model.
+ /// FunctionMessage are an older version of the ToolMessage schema, and
+ /// do not contain the tool_call_id field.
+ /// The tool_call_id field is used to associate the tool call request with the
+ /// tool call response. This is useful in situations where a chat model is able
+ /// to request multiple tool calls in parallel. + ///
+ public sealed partial class FunctionMessage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: function + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.FunctionMessageTypeJsonConverter))] + public global::LangSmith.FunctionMessageType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.FunctionMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.FunctionMessage), + jsonSerializerContext) as global::LangSmith.FunctionMessage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.FunctionMessage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageAdditionalKwargs.g.cs new file mode 100644 index 00000000..1d1c7b39 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class FunctionMessageAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.FunctionMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.FunctionMessageAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.FunctionMessageAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.FunctionMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunk.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunk.g.cs new file mode 100644 index 00000000..b9cc5a39 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunk.g.cs @@ -0,0 +1,117 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Function Message chunk. + /// + public sealed partial class FunctionMessageChunk + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: FunctionMessageChunk + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.FunctionMessageChunkTypeJsonConverter))] + public global::LangSmith.FunctionMessageChunkType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.FunctionMessageChunk? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.FunctionMessageChunk), + jsonSerializerContext) as global::LangSmith.FunctionMessageChunk; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.FunctionMessageChunk? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkAdditionalKwargs.g.cs new file mode 100644 index 00000000..0afef044 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class FunctionMessageChunkAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.FunctionMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.FunctionMessageChunkAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.FunctionMessageChunkAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.FunctionMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkContentVariant2Item.g.cs new file mode 100644 index 00000000..03b3b27e --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class FunctionMessageChunkContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.FunctionMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.FunctionMessageChunkContentVariant2Item), + jsonSerializerContext) as global::LangSmith.FunctionMessageChunkContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.FunctionMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkResponseMetadata.g.cs new file mode 100644 index 00000000..f25919ec --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class FunctionMessageChunkResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.FunctionMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.FunctionMessageChunkResponseMetadata), + jsonSerializerContext) as global::LangSmith.FunctionMessageChunkResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.FunctionMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkType.g.cs new file mode 100644 index 00000000..dff36e97 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageChunkType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: FunctionMessageChunk + /// + public enum FunctionMessageChunkType + { + /// + /// + /// + FunctionMessageChunk, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FunctionMessageChunkTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FunctionMessageChunkType value) + { + return value switch + { + FunctionMessageChunkType.FunctionMessageChunk => "FunctionMessageChunk", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FunctionMessageChunkType? ToEnum(string value) + { + return value switch + { + "FunctionMessageChunk" => FunctionMessageChunkType.FunctionMessageChunk, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageContentVariant2Item.g.cs new file mode 100644 index 00000000..c6a055d9 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class FunctionMessageContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.FunctionMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.FunctionMessageContentVariant2Item), + jsonSerializerContext) as global::LangSmith.FunctionMessageContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.FunctionMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageResponseMetadata.g.cs new file mode 100644 index 00000000..05304c6f --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class FunctionMessageResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.FunctionMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.FunctionMessageResponseMetadata), + jsonSerializerContext) as global::LangSmith.FunctionMessageResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.FunctionMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageType.g.cs new file mode 100644 index 00000000..f80294d2 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.FunctionMessageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: function + /// + public enum FunctionMessageType + { + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FunctionMessageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FunctionMessageType value) + { + return value switch + { + FunctionMessageType.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FunctionMessageType? ToEnum(string value) + { + return value switch + { + "function" => FunctionMessageType.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.Highlight.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.Highlight.g.cs new file mode 100644 index 00000000..ce1a8af7 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.Highlight.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class Highlight + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start_char_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int StartCharIndex { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("end_char_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int EndCharIndex { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.Highlight? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.Highlight), + jsonSerializerContext) as global::LangSmith.Highlight; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.Highlight? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessage.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessage.g.cs new file mode 100644 index 00000000..3f257624 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessage.g.cs @@ -0,0 +1,137 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Message from a human.
+ /// HumanMessages are messages that are passed in from a human to the model.
+ /// Example:
+ /// .. code-block:: python
+ /// from langchain_core.messages import HumanMessage, SystemMessage
+ /// messages = [
+ /// SystemMessage(
+ /// content="You are a helpful assistant! Your name is Bob."
+ /// ),
+ /// HumanMessage(
+ /// content="What is your name?"
+ /// )
+ /// ]
+ /// # Instantiate a chat model and invoke it with the messages
+ /// model = ...
+ /// print(model.invoke(messages)) + ///
+ public sealed partial class HumanMessage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: human + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.HumanMessageTypeJsonConverter))] + public global::LangSmith.HumanMessageType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("example")] + public bool? Example { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.HumanMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.HumanMessage), + jsonSerializerContext) as global::LangSmith.HumanMessage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.HumanMessage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageAdditionalKwargs.g.cs new file mode 100644 index 00000000..c86ff582 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class HumanMessageAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.HumanMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.HumanMessageAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.HumanMessageAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.HumanMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunk.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunk.g.cs new file mode 100644 index 00000000..fe258626 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunk.g.cs @@ -0,0 +1,122 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Human Message chunk. + /// + public sealed partial class HumanMessageChunk + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: HumanMessageChunk + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.HumanMessageChunkTypeJsonConverter))] + public global::LangSmith.HumanMessageChunkType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("example")] + public bool? Example { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.HumanMessageChunk? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.HumanMessageChunk), + jsonSerializerContext) as global::LangSmith.HumanMessageChunk; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.HumanMessageChunk? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkAdditionalKwargs.g.cs new file mode 100644 index 00000000..ee6f7d9f --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class HumanMessageChunkAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.HumanMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.HumanMessageChunkAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.HumanMessageChunkAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.HumanMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkContentVariant2Item.g.cs new file mode 100644 index 00000000..47dc7a8f --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class HumanMessageChunkContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.HumanMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.HumanMessageChunkContentVariant2Item), + jsonSerializerContext) as global::LangSmith.HumanMessageChunkContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.HumanMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkResponseMetadata.g.cs new file mode 100644 index 00000000..5cb08fc2 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class HumanMessageChunkResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.HumanMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.HumanMessageChunkResponseMetadata), + jsonSerializerContext) as global::LangSmith.HumanMessageChunkResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.HumanMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkType.g.cs new file mode 100644 index 00000000..5780f038 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageChunkType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: HumanMessageChunk + /// + public enum HumanMessageChunkType + { + /// + /// + /// + HumanMessageChunk, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class HumanMessageChunkTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this HumanMessageChunkType value) + { + return value switch + { + HumanMessageChunkType.HumanMessageChunk => "HumanMessageChunk", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static HumanMessageChunkType? ToEnum(string value) + { + return value switch + { + "HumanMessageChunk" => HumanMessageChunkType.HumanMessageChunk, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageContentVariant2Item.g.cs new file mode 100644 index 00000000..c1ac90fe --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class HumanMessageContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.HumanMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.HumanMessageContentVariant2Item), + jsonSerializerContext) as global::LangSmith.HumanMessageContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.HumanMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageResponseMetadata.g.cs new file mode 100644 index 00000000..70c33bdc --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class HumanMessageResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.HumanMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.HumanMessageResponseMetadata), + jsonSerializerContext) as global::LangSmith.HumanMessageResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.HumanMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageType.g.cs new file mode 100644 index 00000000..c97c22b0 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.HumanMessageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: human + /// + public enum HumanMessageType + { + /// + /// + /// + Human, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class HumanMessageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this HumanMessageType value) + { + return value switch + { + HumanMessageType.Human => "human", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static HumanMessageType? ToEnum(string value) + { + return value switch + { + "human" => HumanMessageType.Human, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.InputTokenDetails.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.InputTokenDetails.g.cs new file mode 100644 index 00000000..078629b6 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.InputTokenDetails.g.cs @@ -0,0 +1,102 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Breakdown of input token counts.
+ /// Does *not* need to sum to full input token count. Does *not* need to have all keys.
+ /// Example:
+ /// .. code-block:: python
+ /// {
+ /// "audio": 10,
+ /// "cache_creation": 200,
+ /// "cache_read": 100,
+ /// }
+ /// .. versionadded:: 0.3.9 + ///
+ public sealed partial class InputTokenDetails + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public int? Audio { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cache_creation")] + public int? CacheCreation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cache_read")] + public int? CacheRead { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.InputTokenDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.InputTokenDetails), + jsonSerializerContext) as global::LangSmith.InputTokenDetails; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.InputTokenDetails? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.PlaygroundOptimizePromptRequestSchema.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.InvalidToolCall.g.cs similarity index 79% rename from src/libs/LangSmith/Generated/LangSmith.Models.PlaygroundOptimizePromptRequestSchema.g.cs rename to src/libs/LangSmith/Generated/LangSmith.Models.InvalidToolCall.g.cs index 00ed2d8a..389e86db 100644 --- a/src/libs/LangSmith/Generated/LangSmith.Models.PlaygroundOptimizePromptRequestSchema.g.cs +++ b/src/libs/LangSmith/Generated/LangSmith.Models.InvalidToolCall.g.cs @@ -4,43 +4,46 @@ namespace LangSmith { /// - /// + /// Allowance for errors made by LLM.
+ /// Here we add an `error` key to surface errors made during generation
+ /// (e.g., invalid JSON arguments.) ///
- public sealed partial class PlaygroundOptimizePromptRequestSchema + public sealed partial class InvalidToolCall { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + [global::System.Text.Json.Serialization.JsonPropertyName("name")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } + public required string? Name { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("highlight_start")] - public int? HighlightStart { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("args")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string? Args { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("highlight_end")] - public int? HighlightEnd { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string? Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("improvement_instruction")] + [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] - public required string ImprovementInstruction { get; set; } + public required string? Error { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("template_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.PlaygroundOptimizePromptRequestSchemaTemplateFormatJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat TemplateFormat { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.InvalidToolCallTypeJsonConverter))] + public global::LangSmith.InvalidToolCallType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -79,14 +82,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::LangSmith.PlaygroundOptimizePromptRequestSchema? FromJson( + public static global::LangSmith.InvalidToolCall? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::LangSmith.PlaygroundOptimizePromptRequestSchema), - jsonSerializerContext) as global::LangSmith.PlaygroundOptimizePromptRequestSchema; + typeof(global::LangSmith.InvalidToolCall), + jsonSerializerContext) as global::LangSmith.InvalidToolCall; } /// @@ -96,11 +99,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::LangSmith.PlaygroundOptimizePromptRequestSchema? FromJson( + public static global::LangSmith.InvalidToolCall? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.InvalidToolCallType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.InvalidToolCallType.g.cs new file mode 100644 index 00000000..b55b627d --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.InvalidToolCallType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public enum InvalidToolCallType + { + /// + /// + /// + InvalidToolCall, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class InvalidToolCallTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this InvalidToolCallType value) + { + return value switch + { + InvalidToolCallType.InvalidToolCall => "invalid_tool_call", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static InvalidToolCallType? ToEnum(string value) + { + return value switch + { + "invalid_tool_call" => InvalidToolCallType.InvalidToolCall, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.MessagesItem.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.MessagesItem.g.cs new file mode 100644 index 00000000..d7773dad --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.MessagesItem.g.cs @@ -0,0 +1,853 @@ +using System.Linq; +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public readonly partial struct MessagesItem : global::System.IEquatable + { + /// + /// + /// + public global::LangSmith.PlayGroundGraphMessageDiscriminatorType? Type { get; } + + /// + /// Message from an AI.
+ /// AIMessage is returned from a chat model as a response to a prompt.
+ /// This message represents the output of the model and consists of both
+ /// the raw output as returned by the model together standardized fields
+ /// (e.g., tool calls, usage metadata) added by the LangChain framework. + ///
+#if NET6_0_OR_GREATER + public global::LangSmith.AIMessage? Ai { get; init; } +#else + public global::LangSmith.AIMessage? Ai { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Ai))] +#endif + public bool IsAi => Ai != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.AIMessage value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.AIMessage?(MessagesItem @this) => @this.Ai; + + /// + /// + /// + public MessagesItem(global::LangSmith.AIMessage? value) + { + Ai = value; + } + + /// + /// Message from a human.
+ /// HumanMessages are messages that are passed in from a human to the model.
+ /// Example:
+ /// .. code-block:: python
+ /// from langchain_core.messages import HumanMessage, SystemMessage
+ /// messages = [
+ /// SystemMessage(
+ /// content="You are a helpful assistant! Your name is Bob."
+ /// ),
+ /// HumanMessage(
+ /// content="What is your name?"
+ /// )
+ /// ]
+ /// # Instantiate a chat model and invoke it with the messages
+ /// model = ...
+ /// print(model.invoke(messages)) + ///
+#if NET6_0_OR_GREATER + public global::LangSmith.HumanMessage? Human { get; init; } +#else + public global::LangSmith.HumanMessage? Human { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Human))] +#endif + public bool IsHuman => Human != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.HumanMessage value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.HumanMessage?(MessagesItem @this) => @this.Human; + + /// + /// + /// + public MessagesItem(global::LangSmith.HumanMessage? value) + { + Human = value; + } + + /// + /// Message that can be assigned an arbitrary speaker (i.e. role). + /// +#if NET6_0_OR_GREATER + public global::LangSmith.ChatMessage? Chat { get; init; } +#else + public global::LangSmith.ChatMessage? Chat { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Chat))] +#endif + public bool IsChat => Chat != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.ChatMessage value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.ChatMessage?(MessagesItem @this) => @this.Chat; + + /// + /// + /// + public MessagesItem(global::LangSmith.ChatMessage? value) + { + Chat = value; + } + + /// + /// Message for priming AI behavior.
+ /// The system message is usually passed in as the first of a sequence
+ /// of input messages.
+ /// Example:
+ /// .. code-block:: python
+ /// from langchain_core.messages import HumanMessage, SystemMessage
+ /// messages = [
+ /// SystemMessage(
+ /// content="You are a helpful assistant! Your name is Bob."
+ /// ),
+ /// HumanMessage(
+ /// content="What is your name?"
+ /// )
+ /// ]
+ /// # Define a chat model and invoke it with the messages
+ /// print(model.invoke(messages)) + ///
+#if NET6_0_OR_GREATER + public global::LangSmith.SystemMessage? System { get; init; } +#else + public global::LangSmith.SystemMessage? System { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(System))] +#endif + public bool IsSystem => System != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.SystemMessage value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.SystemMessage?(MessagesItem @this) => @this.System; + + /// + /// + /// + public MessagesItem(global::LangSmith.SystemMessage? value) + { + System = value; + } + + /// + /// Message for passing the result of executing a tool back to a model.
+ /// FunctionMessage are an older version of the ToolMessage schema, and
+ /// do not contain the tool_call_id field.
+ /// The tool_call_id field is used to associate the tool call request with the
+ /// tool call response. This is useful in situations where a chat model is able
+ /// to request multiple tool calls in parallel. + ///
+#if NET6_0_OR_GREATER + public global::LangSmith.FunctionMessage? Function { get; init; } +#else + public global::LangSmith.FunctionMessage? Function { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] +#endif + public bool IsFunction => Function != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.FunctionMessage value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.FunctionMessage?(MessagesItem @this) => @this.Function; + + /// + /// + /// + public MessagesItem(global::LangSmith.FunctionMessage? value) + { + Function = value; + } + + /// + /// Message for passing the result of executing a tool back to a model.
+ /// ToolMessages contain the result of a tool invocation. Typically, the result
+ /// is encoded inside the `content` field.
+ /// Example: A ToolMessage representing a result of 42 from a tool call with id
+ /// .. code-block:: python
+ /// from langchain_core.messages import ToolMessage
+ /// ToolMessage(content='42', tool_call_id='call_Jja7J89XsjrOLA5r!MEOW!SL')
+ /// Example: A ToolMessage where only part of the tool output is sent to the model
+ /// and the full output is passed in to artifact.
+ /// .. versionadded:: 0.2.17
+ /// .. code-block:: python
+ /// from langchain_core.messages import ToolMessage
+ /// tool_output = {
+ /// "stdout": "From the graph we can see that the correlation between x and y is ...",
+ /// "stderr": None,
+ /// "artifacts": {"type": "image", "base64_data": "/9j/4gIcSU..."},
+ /// }
+ /// ToolMessage(
+ /// content=tool_output["stdout"],
+ /// artifact=tool_output,
+ /// tool_call_id='call_Jja7J89XsjrOLA5r!MEOW!SL',
+ /// )
+ /// The tool_call_id field is used to associate the tool call request with the
+ /// tool call response. This is useful in situations where a chat model is able
+ /// to request multiple tool calls in parallel. + ///
+#if NET6_0_OR_GREATER + public global::LangSmith.ToolMessage? Tool { get; init; } +#else + public global::LangSmith.ToolMessage? Tool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Tool))] +#endif + public bool IsTool => Tool != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.ToolMessage value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.ToolMessage?(MessagesItem @this) => @this.Tool; + + /// + /// + /// + public MessagesItem(global::LangSmith.ToolMessage? value) + { + Tool = value; + } + + /// + /// Message chunk from an AI. + /// +#if NET6_0_OR_GREATER + public global::LangSmith.AIMessageChunk? AIMessageChunk { get; init; } +#else + public global::LangSmith.AIMessageChunk? AIMessageChunk { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AIMessageChunk))] +#endif + public bool IsAIMessageChunk => AIMessageChunk != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.AIMessageChunk value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.AIMessageChunk?(MessagesItem @this) => @this.AIMessageChunk; + + /// + /// + /// + public MessagesItem(global::LangSmith.AIMessageChunk? value) + { + AIMessageChunk = value; + } + + /// + /// Human Message chunk. + /// +#if NET6_0_OR_GREATER + public global::LangSmith.HumanMessageChunk? HumanMessageChunk { get; init; } +#else + public global::LangSmith.HumanMessageChunk? HumanMessageChunk { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(HumanMessageChunk))] +#endif + public bool IsHumanMessageChunk => HumanMessageChunk != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.HumanMessageChunk value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.HumanMessageChunk?(MessagesItem @this) => @this.HumanMessageChunk; + + /// + /// + /// + public MessagesItem(global::LangSmith.HumanMessageChunk? value) + { + HumanMessageChunk = value; + } + + /// + /// Chat Message chunk. + /// +#if NET6_0_OR_GREATER + public global::LangSmith.ChatMessageChunk? ChatMessageChunk { get; init; } +#else + public global::LangSmith.ChatMessageChunk? ChatMessageChunk { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatMessageChunk))] +#endif + public bool IsChatMessageChunk => ChatMessageChunk != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.ChatMessageChunk value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.ChatMessageChunk?(MessagesItem @this) => @this.ChatMessageChunk; + + /// + /// + /// + public MessagesItem(global::LangSmith.ChatMessageChunk? value) + { + ChatMessageChunk = value; + } + + /// + /// System Message chunk. + /// +#if NET6_0_OR_GREATER + public global::LangSmith.SystemMessageChunk? SystemMessageChunk { get; init; } +#else + public global::LangSmith.SystemMessageChunk? SystemMessageChunk { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SystemMessageChunk))] +#endif + public bool IsSystemMessageChunk => SystemMessageChunk != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.SystemMessageChunk value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.SystemMessageChunk?(MessagesItem @this) => @this.SystemMessageChunk; + + /// + /// + /// + public MessagesItem(global::LangSmith.SystemMessageChunk? value) + { + SystemMessageChunk = value; + } + + /// + /// Function Message chunk. + /// +#if NET6_0_OR_GREATER + public global::LangSmith.FunctionMessageChunk? FunctionMessageChunk { get; init; } +#else + public global::LangSmith.FunctionMessageChunk? FunctionMessageChunk { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FunctionMessageChunk))] +#endif + public bool IsFunctionMessageChunk => FunctionMessageChunk != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.FunctionMessageChunk value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.FunctionMessageChunk?(MessagesItem @this) => @this.FunctionMessageChunk; + + /// + /// + /// + public MessagesItem(global::LangSmith.FunctionMessageChunk? value) + { + FunctionMessageChunk = value; + } + + /// + /// Tool Message chunk. + /// +#if NET6_0_OR_GREATER + public global::LangSmith.ToolMessageChunk? ToolMessageChunk { get; init; } +#else + public global::LangSmith.ToolMessageChunk? ToolMessageChunk { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolMessageChunk))] +#endif + public bool IsToolMessageChunk => ToolMessageChunk != null; + + /// + /// + /// + public static implicit operator MessagesItem(global::LangSmith.ToolMessageChunk value) => new MessagesItem(value); + + /// + /// + /// + public static implicit operator global::LangSmith.ToolMessageChunk?(MessagesItem @this) => @this.ToolMessageChunk; + + /// + /// + /// + public MessagesItem(global::LangSmith.ToolMessageChunk? value) + { + ToolMessageChunk = value; + } + + /// + /// + /// + public MessagesItem( + global::LangSmith.PlayGroundGraphMessageDiscriminatorType? type, + global::LangSmith.AIMessage? ai, + global::LangSmith.HumanMessage? human, + global::LangSmith.ChatMessage? chat, + global::LangSmith.SystemMessage? system, + global::LangSmith.FunctionMessage? function, + global::LangSmith.ToolMessage? tool, + global::LangSmith.AIMessageChunk? aIMessageChunk, + global::LangSmith.HumanMessageChunk? humanMessageChunk, + global::LangSmith.ChatMessageChunk? chatMessageChunk, + global::LangSmith.SystemMessageChunk? systemMessageChunk, + global::LangSmith.FunctionMessageChunk? functionMessageChunk, + global::LangSmith.ToolMessageChunk? toolMessageChunk + ) + { + Type = type; + + Ai = ai; + Human = human; + Chat = chat; + System = system; + Function = function; + Tool = tool; + AIMessageChunk = aIMessageChunk; + HumanMessageChunk = humanMessageChunk; + ChatMessageChunk = chatMessageChunk; + SystemMessageChunk = systemMessageChunk; + FunctionMessageChunk = functionMessageChunk; + ToolMessageChunk = toolMessageChunk; + } + + /// + /// + /// + public object? Object => + ToolMessageChunk as object ?? + FunctionMessageChunk as object ?? + SystemMessageChunk as object ?? + ChatMessageChunk as object ?? + HumanMessageChunk as object ?? + AIMessageChunk as object ?? + Tool as object ?? + Function as object ?? + System as object ?? + Chat as object ?? + Human as object ?? + Ai as object + ; + + /// + /// + /// + public bool Validate() + { + return IsAi && !IsHuman && !IsChat && !IsSystem && !IsFunction && !IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && IsHuman && !IsChat && !IsSystem && !IsFunction && !IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && IsChat && !IsSystem && !IsFunction && !IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && !IsChat && IsSystem && !IsFunction && !IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && !IsChat && !IsSystem && IsFunction && !IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && !IsChat && !IsSystem && !IsFunction && IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && !IsChat && !IsSystem && !IsFunction && !IsTool && IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && !IsChat && !IsSystem && !IsFunction && !IsTool && !IsAIMessageChunk && IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && !IsChat && !IsSystem && !IsFunction && !IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && !IsChat && !IsSystem && !IsFunction && !IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && IsSystemMessageChunk && !IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && !IsChat && !IsSystem && !IsFunction && !IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && IsFunctionMessageChunk && !IsToolMessageChunk || !IsAi && !IsHuman && !IsChat && !IsSystem && !IsFunction && !IsTool && !IsAIMessageChunk && !IsHumanMessageChunk && !IsChatMessageChunk && !IsSystemMessageChunk && !IsFunctionMessageChunk && IsToolMessageChunk; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? ai = null, + global::System.Func? human = null, + global::System.Func? chat = null, + global::System.Func? system = null, + global::System.Func? function = null, + global::System.Func? tool = null, + global::System.Func? aIMessageChunk = null, + global::System.Func? humanMessageChunk = null, + global::System.Func? chatMessageChunk = null, + global::System.Func? systemMessageChunk = null, + global::System.Func? functionMessageChunk = null, + global::System.Func? toolMessageChunk = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAi && ai != null) + { + return ai(Ai!); + } + else if (IsHuman && human != null) + { + return human(Human!); + } + else if (IsChat && chat != null) + { + return chat(Chat!); + } + else if (IsSystem && system != null) + { + return system(System!); + } + else if (IsFunction && function != null) + { + return function(Function!); + } + else if (IsTool && tool != null) + { + return tool(Tool!); + } + else if (IsAIMessageChunk && aIMessageChunk != null) + { + return aIMessageChunk(AIMessageChunk!); + } + else if (IsHumanMessageChunk && humanMessageChunk != null) + { + return humanMessageChunk(HumanMessageChunk!); + } + else if (IsChatMessageChunk && chatMessageChunk != null) + { + return chatMessageChunk(ChatMessageChunk!); + } + else if (IsSystemMessageChunk && systemMessageChunk != null) + { + return systemMessageChunk(SystemMessageChunk!); + } + else if (IsFunctionMessageChunk && functionMessageChunk != null) + { + return functionMessageChunk(FunctionMessageChunk!); + } + else if (IsToolMessageChunk && toolMessageChunk != null) + { + return toolMessageChunk(ToolMessageChunk!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? ai = null, + global::System.Action? human = null, + global::System.Action? chat = null, + global::System.Action? system = null, + global::System.Action? function = null, + global::System.Action? tool = null, + global::System.Action? aIMessageChunk = null, + global::System.Action? humanMessageChunk = null, + global::System.Action? chatMessageChunk = null, + global::System.Action? systemMessageChunk = null, + global::System.Action? functionMessageChunk = null, + global::System.Action? toolMessageChunk = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAi) + { + ai?.Invoke(Ai!); + } + else if (IsHuman) + { + human?.Invoke(Human!); + } + else if (IsChat) + { + chat?.Invoke(Chat!); + } + else if (IsSystem) + { + system?.Invoke(System!); + } + else if (IsFunction) + { + function?.Invoke(Function!); + } + else if (IsTool) + { + tool?.Invoke(Tool!); + } + else if (IsAIMessageChunk) + { + aIMessageChunk?.Invoke(AIMessageChunk!); + } + else if (IsHumanMessageChunk) + { + humanMessageChunk?.Invoke(HumanMessageChunk!); + } + else if (IsChatMessageChunk) + { + chatMessageChunk?.Invoke(ChatMessageChunk!); + } + else if (IsSystemMessageChunk) + { + systemMessageChunk?.Invoke(SystemMessageChunk!); + } + else if (IsFunctionMessageChunk) + { + functionMessageChunk?.Invoke(FunctionMessageChunk!); + } + else if (IsToolMessageChunk) + { + toolMessageChunk?.Invoke(ToolMessageChunk!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Ai, + typeof(global::LangSmith.AIMessage), + Human, + typeof(global::LangSmith.HumanMessage), + Chat, + typeof(global::LangSmith.ChatMessage), + System, + typeof(global::LangSmith.SystemMessage), + Function, + typeof(global::LangSmith.FunctionMessage), + Tool, + typeof(global::LangSmith.ToolMessage), + AIMessageChunk, + typeof(global::LangSmith.AIMessageChunk), + HumanMessageChunk, + typeof(global::LangSmith.HumanMessageChunk), + ChatMessageChunk, + typeof(global::LangSmith.ChatMessageChunk), + SystemMessageChunk, + typeof(global::LangSmith.SystemMessageChunk), + FunctionMessageChunk, + typeof(global::LangSmith.FunctionMessageChunk), + ToolMessageChunk, + typeof(global::LangSmith.ToolMessageChunk), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + return fields.Aggregate(offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(MessagesItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Ai, other.Ai) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Human, other.Human) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Chat, other.Chat) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(System, other.System) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Tool, other.Tool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AIMessageChunk, other.AIMessageChunk) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(HumanMessageChunk, other.HumanMessageChunk) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatMessageChunk, other.ChatMessageChunk) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SystemMessageChunk, other.SystemMessageChunk) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionMessageChunk, other.FunctionMessageChunk) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolMessageChunk, other.ToolMessageChunk) + ; + } + + /// + /// + /// + public static bool operator ==(MessagesItem obj1, MessagesItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(MessagesItem obj1, MessagesItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is MessagesItem o && Equals(o); + } + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.MessagesItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.MessagesItem), + jsonSerializerContext) as global::LangSmith.MessagesItem?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.MessagesItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.OutputTokenDetails.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.OutputTokenDetails.g.cs new file mode 100644 index 00000000..a0c9e9ca --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.OutputTokenDetails.g.cs @@ -0,0 +1,95 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Breakdown of output token counts.
+ /// Does *not* need to sum to full output token count. Does *not* need to have all keys.
+ /// Example:
+ /// .. code-block:: python
+ /// {
+ /// "audio": 10,
+ /// "reasoning": 200,
+ /// }
+ /// .. versionadded:: 0.3.9 + ///
+ public sealed partial class OutputTokenDetails + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public int? Audio { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasoning")] + public int? Reasoning { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.OutputTokenDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.OutputTokenDetails), + jsonSerializerContext) as global::LangSmith.OutputTokenDetails; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.OutputTokenDetails? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraph.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraph.g.cs new file mode 100644 index 00000000..05d04883 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraph.g.cs @@ -0,0 +1,121 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class PlayGroundGraph + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Messages { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("highlighted")] + public global::LangSmith.Highlight? Highlighted { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("artifact")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.Artifact Artifact { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("next")] + public string? Next { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("artifact_length")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.PlayGroundGraphArtifactLengthJsonConverter))] + public global::LangSmith.PlayGroundGraphArtifactLength? ArtifactLength { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reading_level")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.PlayGroundGraphReadingLevelJsonConverter))] + public global::LangSmith.PlayGroundGraphReadingLevel? ReadingLevel { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_node_name")] + public string? LastNodeName { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.PlayGroundGraph? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.PlayGroundGraph), + jsonSerializerContext) as global::LangSmith.PlayGroundGraph; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.PlayGroundGraph? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphArtifactLength.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphArtifactLength.g.cs new file mode 100644 index 00000000..e3bd5f56 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphArtifactLength.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public enum PlayGroundGraphArtifactLength + { + /// + /// + /// + Shortest, + /// + /// + /// + Short, + /// + /// + /// + Long, + /// + /// + /// + Longest, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PlayGroundGraphArtifactLengthExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PlayGroundGraphArtifactLength value) + { + return value switch + { + PlayGroundGraphArtifactLength.Shortest => "shortest", + PlayGroundGraphArtifactLength.Short => "short", + PlayGroundGraphArtifactLength.Long => "long", + PlayGroundGraphArtifactLength.Longest => "longest", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PlayGroundGraphArtifactLength? ToEnum(string value) + { + return value switch + { + "shortest" => PlayGroundGraphArtifactLength.Shortest, + "short" => PlayGroundGraphArtifactLength.Short, + "long" => PlayGroundGraphArtifactLength.Long, + "longest" => PlayGroundGraphArtifactLength.Longest, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphMessageDiscriminator.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphMessageDiscriminator.g.cs new file mode 100644 index 00000000..f0f5eaa7 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphMessageDiscriminator.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class PlayGroundGraphMessageDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.PlayGroundGraphMessageDiscriminatorTypeJsonConverter))] + public global::LangSmith.PlayGroundGraphMessageDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.PlayGroundGraphMessageDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.PlayGroundGraphMessageDiscriminator), + jsonSerializerContext) as global::LangSmith.PlayGroundGraphMessageDiscriminator; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.PlayGroundGraphMessageDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphMessageDiscriminatorType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphMessageDiscriminatorType.g.cs new file mode 100644 index 00000000..fa8a38c9 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphMessageDiscriminatorType.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public enum PlayGroundGraphMessageDiscriminatorType + { + /// + /// + /// + Ai, + /// + /// + /// + Human, + /// + /// + /// + Chat, + /// + /// + /// + System, + /// + /// + /// + Function, + /// + /// + /// + Tool, + /// + /// + /// + AIMessageChunk, + /// + /// + /// + HumanMessageChunk, + /// + /// + /// + ChatMessageChunk, + /// + /// + /// + SystemMessageChunk, + /// + /// + /// + FunctionMessageChunk, + /// + /// + /// + ToolMessageChunk, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PlayGroundGraphMessageDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PlayGroundGraphMessageDiscriminatorType value) + { + return value switch + { + PlayGroundGraphMessageDiscriminatorType.Ai => "ai", + PlayGroundGraphMessageDiscriminatorType.Human => "human", + PlayGroundGraphMessageDiscriminatorType.Chat => "chat", + PlayGroundGraphMessageDiscriminatorType.System => "system", + PlayGroundGraphMessageDiscriminatorType.Function => "function", + PlayGroundGraphMessageDiscriminatorType.Tool => "tool", + PlayGroundGraphMessageDiscriminatorType.AIMessageChunk => "AIMessageChunk", + PlayGroundGraphMessageDiscriminatorType.HumanMessageChunk => "HumanMessageChunk", + PlayGroundGraphMessageDiscriminatorType.ChatMessageChunk => "ChatMessageChunk", + PlayGroundGraphMessageDiscriminatorType.SystemMessageChunk => "SystemMessageChunk", + PlayGroundGraphMessageDiscriminatorType.FunctionMessageChunk => "FunctionMessageChunk", + PlayGroundGraphMessageDiscriminatorType.ToolMessageChunk => "ToolMessageChunk", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PlayGroundGraphMessageDiscriminatorType? ToEnum(string value) + { + return value switch + { + "ai" => PlayGroundGraphMessageDiscriminatorType.Ai, + "human" => PlayGroundGraphMessageDiscriminatorType.Human, + "chat" => PlayGroundGraphMessageDiscriminatorType.Chat, + "system" => PlayGroundGraphMessageDiscriminatorType.System, + "function" => PlayGroundGraphMessageDiscriminatorType.Function, + "tool" => PlayGroundGraphMessageDiscriminatorType.Tool, + "AIMessageChunk" => PlayGroundGraphMessageDiscriminatorType.AIMessageChunk, + "HumanMessageChunk" => PlayGroundGraphMessageDiscriminatorType.HumanMessageChunk, + "ChatMessageChunk" => PlayGroundGraphMessageDiscriminatorType.ChatMessageChunk, + "SystemMessageChunk" => PlayGroundGraphMessageDiscriminatorType.SystemMessageChunk, + "FunctionMessageChunk" => PlayGroundGraphMessageDiscriminatorType.FunctionMessageChunk, + "ToolMessageChunk" => PlayGroundGraphMessageDiscriminatorType.ToolMessageChunk, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphReadingLevel.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphReadingLevel.g.cs new file mode 100644 index 00000000..951c2c48 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.PlayGroundGraphReadingLevel.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public enum PlayGroundGraphReadingLevel + { + /// + /// + /// + Child, + /// + /// + /// + Teenager, + /// + /// + /// + College, + /// + /// + /// + Phd, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PlayGroundGraphReadingLevelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PlayGroundGraphReadingLevel value) + { + return value switch + { + PlayGroundGraphReadingLevel.Child => "child", + PlayGroundGraphReadingLevel.Teenager => "teenager", + PlayGroundGraphReadingLevel.College => "college", + PlayGroundGraphReadingLevel.Phd => "phd", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PlayGroundGraphReadingLevel? ToEnum(string value) + { + return value switch + { + "child" => PlayGroundGraphReadingLevel.Child, + "teenager" => PlayGroundGraphReadingLevel.Teenager, + "college" => PlayGroundGraphReadingLevel.College, + "phd" => PlayGroundGraphReadingLevel.Phd, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessage.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessage.g.cs new file mode 100644 index 00000000..d5eec0d0 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessage.g.cs @@ -0,0 +1,131 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Message for priming AI behavior.
+ /// The system message is usually passed in as the first of a sequence
+ /// of input messages.
+ /// Example:
+ /// .. code-block:: python
+ /// from langchain_core.messages import HumanMessage, SystemMessage
+ /// messages = [
+ /// SystemMessage(
+ /// content="You are a helpful assistant! Your name is Bob."
+ /// ),
+ /// HumanMessage(
+ /// content="What is your name?"
+ /// )
+ /// ]
+ /// # Define a chat model and invoke it with the messages
+ /// print(model.invoke(messages)) + ///
+ public sealed partial class SystemMessage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: system + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.SystemMessageTypeJsonConverter))] + public global::LangSmith.SystemMessageType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.SystemMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.SystemMessage), + jsonSerializerContext) as global::LangSmith.SystemMessage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.SystemMessage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageAdditionalKwargs.g.cs new file mode 100644 index 00000000..6f0ddb35 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class SystemMessageAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.SystemMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.SystemMessageAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.SystemMessageAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.SystemMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunk.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunk.g.cs new file mode 100644 index 00000000..dd3f86c2 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunk.g.cs @@ -0,0 +1,116 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// System Message chunk. + /// + public sealed partial class SystemMessageChunk + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: SystemMessageChunk + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.SystemMessageChunkTypeJsonConverter))] + public global::LangSmith.SystemMessageChunkType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.SystemMessageChunk? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.SystemMessageChunk), + jsonSerializerContext) as global::LangSmith.SystemMessageChunk; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.SystemMessageChunk? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkAdditionalKwargs.g.cs new file mode 100644 index 00000000..1bcfe8c6 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class SystemMessageChunkAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.SystemMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.SystemMessageChunkAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.SystemMessageChunkAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.SystemMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkContentVariant2Item.g.cs new file mode 100644 index 00000000..da958948 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class SystemMessageChunkContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.SystemMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.SystemMessageChunkContentVariant2Item), + jsonSerializerContext) as global::LangSmith.SystemMessageChunkContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.SystemMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkResponseMetadata.g.cs new file mode 100644 index 00000000..3596a7de --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class SystemMessageChunkResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.SystemMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.SystemMessageChunkResponseMetadata), + jsonSerializerContext) as global::LangSmith.SystemMessageChunkResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.SystemMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkType.g.cs new file mode 100644 index 00000000..d3262c86 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageChunkType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: SystemMessageChunk + /// + public enum SystemMessageChunkType + { + /// + /// + /// + SystemMessageChunk, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SystemMessageChunkTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SystemMessageChunkType value) + { + return value switch + { + SystemMessageChunkType.SystemMessageChunk => "SystemMessageChunk", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SystemMessageChunkType? ToEnum(string value) + { + return value switch + { + "SystemMessageChunk" => SystemMessageChunkType.SystemMessageChunk, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageContentVariant2Item.g.cs new file mode 100644 index 00000000..ccae457c --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class SystemMessageContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.SystemMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.SystemMessageContentVariant2Item), + jsonSerializerContext) as global::LangSmith.SystemMessageContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.SystemMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageResponseMetadata.g.cs new file mode 100644 index 00000000..49e605f2 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class SystemMessageResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.SystemMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.SystemMessageResponseMetadata), + jsonSerializerContext) as global::LangSmith.SystemMessageResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.SystemMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageType.g.cs new file mode 100644 index 00000000..71cd5a40 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.SystemMessageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: system + /// + public enum SystemMessageType + { + /// + /// + /// + System, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SystemMessageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SystemMessageType value) + { + return value switch + { + SystemMessageType.System => "system", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SystemMessageType? ToEnum(string value) + { + return value switch + { + "system" => SystemMessageType.System, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolCall.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCall.g.cs new file mode 100644 index 00000000..ccf9b67d --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCall.g.cs @@ -0,0 +1,112 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Represents a request to call a tool.
+ /// Example:
+ /// .. code-block:: python
+ /// {
+ /// "name": "foo",
+ /// "args": {"a": 1},
+ /// "id": "123"
+ /// }
+ /// This represents a request to call the tool named "foo" with arguments {"a": 1}
+ /// and an identifier of "123". + ///
+ public sealed partial class ToolCall + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("args")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Args { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.ToolCallTypeJsonConverter))] + public global::LangSmith.ToolCallType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolCall? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolCall), + jsonSerializerContext) as global::LangSmith.ToolCall; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolCall? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallArgs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallArgs.g.cs new file mode 100644 index 00000000..91b7f822 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallArgs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ToolCallArgs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolCallArgs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolCallArgs), + jsonSerializerContext) as global::LangSmith.ToolCallArgs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolCallArgs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallChunk.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallChunk.g.cs new file mode 100644 index 00000000..c543e6fc --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallChunk.g.cs @@ -0,0 +1,121 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// A chunk of a tool call (e.g., as part of a stream).
+ /// When merging ToolCallChunks (e.g., via AIMessageChunk.__add__),
+ /// all string attributes are concatenated. Chunks are only merged if their
+ /// values of `index` are equal and not None.
+ /// Example:
+ /// .. code-block:: python
+ /// left_chunks = [ToolCallChunk(name="foo", args='{"a":', index=0)]
+ /// right_chunks = [ToolCallChunk(name=None, args='1}', index=0)]
+ /// (
+ /// AIMessageChunk(content="", tool_call_chunks=left_chunks)
+ /// + AIMessageChunk(content="", tool_call_chunks=right_chunks)
+ /// ).tool_call_chunks == [ToolCallChunk(name='foo', args='{"a":1}', index=0)] + ///
+ public sealed partial class ToolCallChunk + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("args")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string? Args { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int? Index { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.ToolCallChunkTypeJsonConverter))] + public global::LangSmith.ToolCallChunkType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolCallChunk? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolCallChunk), + jsonSerializerContext) as global::LangSmith.ToolCallChunk; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolCallChunk? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallChunkType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallChunkType.g.cs new file mode 100644 index 00000000..4b942c4c --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallChunkType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public enum ToolCallChunkType + { + /// + /// + /// + ToolCallChunk, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolCallChunkTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolCallChunkType value) + { + return value switch + { + ToolCallChunkType.ToolCallChunk => "tool_call_chunk", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolCallChunkType? ToEnum(string value) + { + return value switch + { + "tool_call_chunk" => ToolCallChunkType.ToolCallChunk, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallType.g.cs new file mode 100644 index 00000000..7e795844 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolCallType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public enum ToolCallType + { + /// + /// + /// + ToolCall, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolCallTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolCallType value) + { + return value switch + { + ToolCallType.ToolCall => "tool_call", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolCallType? ToEnum(string value) + { + return value switch + { + "tool_call" => ToolCallType.ToolCall, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessage.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessage.g.cs new file mode 100644 index 00000000..d8a1e76c --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessage.g.cs @@ -0,0 +1,160 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Message for passing the result of executing a tool back to a model.
+ /// ToolMessages contain the result of a tool invocation. Typically, the result
+ /// is encoded inside the `content` field.
+ /// Example: A ToolMessage representing a result of 42 from a tool call with id
+ /// .. code-block:: python
+ /// from langchain_core.messages import ToolMessage
+ /// ToolMessage(content='42', tool_call_id='call_Jja7J89XsjrOLA5r!MEOW!SL')
+ /// Example: A ToolMessage where only part of the tool output is sent to the model
+ /// and the full output is passed in to artifact.
+ /// .. versionadded:: 0.2.17
+ /// .. code-block:: python
+ /// from langchain_core.messages import ToolMessage
+ /// tool_output = {
+ /// "stdout": "From the graph we can see that the correlation between x and y is ...",
+ /// "stderr": None,
+ /// "artifacts": {"type": "image", "base64_data": "/9j/4gIcSU..."},
+ /// }
+ /// ToolMessage(
+ /// content=tool_output["stdout"],
+ /// artifact=tool_output,
+ /// tool_call_id='call_Jja7J89XsjrOLA5r!MEOW!SL',
+ /// )
+ /// The tool_call_id field is used to associate the tool call request with the
+ /// tool call response. This is useful in situations where a chat model is able
+ /// to request multiple tool calls in parallel. + ///
+ public sealed partial class ToolMessage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: tool + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.ToolMessageTypeJsonConverter))] + public global::LangSmith.ToolMessageType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolCallId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("artifact")] + public object? Artifact { get; set; } + + /// + /// Default Value: success + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.ToolMessageStatusJsonConverter))] + public global::LangSmith.ToolMessageStatus? Status { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessage), + jsonSerializerContext) as global::LangSmith.ToolMessage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageAdditionalKwargs.g.cs new file mode 100644 index 00000000..e5326dc8 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ToolMessageAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessageAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.ToolMessageAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessageAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageArtifact.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageArtifact.g.cs new file mode 100644 index 00000000..2f26e4ec --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageArtifact.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ToolMessageArtifact + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessageArtifact? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessageArtifact), + jsonSerializerContext) as global::LangSmith.ToolMessageArtifact; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessageArtifact? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunk.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunk.g.cs new file mode 100644 index 00000000..7526a579 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunk.g.cs @@ -0,0 +1,136 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace LangSmith +{ + /// + /// Tool Message chunk. + /// + public sealed partial class ToolMessageChunk + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LangSmith.AnyOf>> Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_kwargs")] + public object? AdditionalKwargs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_metadata")] + public object? ResponseMetadata { get; set; } + + /// + /// Default Value: ToolMessageChunk + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.ToolMessageChunkTypeJsonConverter))] + public global::LangSmith.ToolMessageChunkType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolCallId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("artifact")] + public object? Artifact { get; set; } + + /// + /// Default Value: success + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LangSmith.JsonConverters.ToolMessageChunkStatusJsonConverter))] + public global::LangSmith.ToolMessageChunkStatus? Status { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessageChunk? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessageChunk), + jsonSerializerContext) as global::LangSmith.ToolMessageChunk; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessageChunk? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkAdditionalKwargs.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkAdditionalKwargs.g.cs new file mode 100644 index 00000000..5c0bd32f --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkAdditionalKwargs.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ToolMessageChunkAdditionalKwargs + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessageChunkAdditionalKwargs), + jsonSerializerContext) as global::LangSmith.ToolMessageChunkAdditionalKwargs; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessageChunkAdditionalKwargs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkArtifact.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkArtifact.g.cs new file mode 100644 index 00000000..da42a153 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkArtifact.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ToolMessageChunkArtifact + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessageChunkArtifact? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessageChunkArtifact), + jsonSerializerContext) as global::LangSmith.ToolMessageChunkArtifact; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessageChunkArtifact? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkContentVariant2Item.g.cs new file mode 100644 index 00000000..d00e778f --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ToolMessageChunkContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessageChunkContentVariant2Item), + jsonSerializerContext) as global::LangSmith.ToolMessageChunkContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessageChunkContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkResponseMetadata.g.cs new file mode 100644 index 00000000..baf93db3 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ToolMessageChunkResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessageChunkResponseMetadata), + jsonSerializerContext) as global::LangSmith.ToolMessageChunkResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessageChunkResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.PlaygroundOptimizePromptRequestSchemaTemplateFormat.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkStatus.g.cs similarity index 50% rename from src/libs/LangSmith/Generated/LangSmith.Models.PlaygroundOptimizePromptRequestSchemaTemplateFormat.g.cs rename to src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkStatus.g.cs index a11a525f..0fdf070c 100644 --- a/src/libs/LangSmith/Generated/LangSmith.Models.PlaygroundOptimizePromptRequestSchemaTemplateFormat.g.cs +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkStatus.g.cs @@ -4,46 +4,46 @@ namespace LangSmith { /// - /// + /// Default Value: success /// - public enum PlaygroundOptimizePromptRequestSchemaTemplateFormat + public enum ToolMessageChunkStatus { /// /// /// - FString, + Success, /// /// /// - Mustache, + Error, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class PlaygroundOptimizePromptRequestSchemaTemplateFormatExtensions + public static class ToolMessageChunkStatusExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this PlaygroundOptimizePromptRequestSchemaTemplateFormat value) + public static string ToValueString(this ToolMessageChunkStatus value) { return value switch { - PlaygroundOptimizePromptRequestSchemaTemplateFormat.FString => "f-string", - PlaygroundOptimizePromptRequestSchemaTemplateFormat.Mustache => "mustache", + ToolMessageChunkStatus.Success => "success", + ToolMessageChunkStatus.Error => "error", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static PlaygroundOptimizePromptRequestSchemaTemplateFormat? ToEnum(string value) + public static ToolMessageChunkStatus? ToEnum(string value) { return value switch { - "f-string" => PlaygroundOptimizePromptRequestSchemaTemplateFormat.FString, - "mustache" => PlaygroundOptimizePromptRequestSchemaTemplateFormat.Mustache, + "success" => ToolMessageChunkStatus.Success, + "error" => ToolMessageChunkStatus.Error, _ => null, }; } diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkType.g.cs new file mode 100644 index 00000000..7d056093 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageChunkType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: ToolMessageChunk + /// + public enum ToolMessageChunkType + { + /// + /// + /// + ToolMessageChunk, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolMessageChunkTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolMessageChunkType value) + { + return value switch + { + ToolMessageChunkType.ToolMessageChunk => "ToolMessageChunk", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolMessageChunkType? ToEnum(string value) + { + return value switch + { + "ToolMessageChunk" => ToolMessageChunkType.ToolMessageChunk, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageContentVariant2Item.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageContentVariant2Item.g.cs new file mode 100644 index 00000000..10f4925f --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageContentVariant2Item.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ToolMessageContentVariant2Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessageContentVariant2Item), + jsonSerializerContext) as global::LangSmith.ToolMessageContentVariant2Item; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessageContentVariant2Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageResponseMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageResponseMetadata.g.cs new file mode 100644 index 00000000..5fad8faf --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageResponseMetadata.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// + /// + public sealed partial class ToolMessageResponseMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.ToolMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.ToolMessageResponseMetadata), + jsonSerializerContext) as global::LangSmith.ToolMessageResponseMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.ToolMessageResponseMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageStatus.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageStatus.g.cs new file mode 100644 index 00000000..5d83f372 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageStatus.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: success + /// + public enum ToolMessageStatus + { + /// + /// + /// + Success, + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolMessageStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolMessageStatus value) + { + return value switch + { + ToolMessageStatus.Success => "success", + ToolMessageStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolMessageStatus? ToEnum(string value) + { + return value switch + { + "success" => ToolMessageStatus.Success, + "error" => ToolMessageStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageType.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageType.g.cs new file mode 100644 index 00000000..33f7fdf5 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.ToolMessageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Default Value: tool + /// + public enum ToolMessageType + { + /// + /// + /// + Tool, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolMessageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolMessageType value) + { + return value switch + { + ToolMessageType.Tool => "tool", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolMessageType? ToEnum(string value) + { + return value switch + { + "tool" => ToolMessageType.Tool, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.Models.UsageMetadata.g.cs b/src/libs/LangSmith/Generated/LangSmith.Models.UsageMetadata.g.cs new file mode 100644 index 00000000..b91b4e08 --- /dev/null +++ b/src/libs/LangSmith/Generated/LangSmith.Models.UsageMetadata.g.cs @@ -0,0 +1,144 @@ + +#nullable enable + +namespace LangSmith +{ + /// + /// Usage metadata for a message, such as token counts.
+ /// This is a standard representation of token usage that is consistent across models.
+ /// Example:
+ /// .. code-block:: python
+ /// {
+ /// "input_tokens": 350,
+ /// "output_tokens": 240,
+ /// "total_tokens": 590,
+ /// "input_token_details": {
+ /// "audio": 10,
+ /// "cache_creation": 200,
+ /// "cache_read": 100,
+ /// },
+ /// "output_token_details": {
+ /// "audio": 10,
+ /// "reasoning": 200,
+ /// }
+ /// }
+ /// .. versionchanged:: 0.3.9
+ /// Added ``input_token_details`` and ``output_token_details``. + ///
+ public sealed partial class UsageMetadata + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int InputTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalTokens { get; set; } + + /// + /// Breakdown of input token counts.
+ /// Does *not* need to sum to full input token count. Does *not* need to have all keys.
+ /// Example:
+ /// .. code-block:: python
+ /// {
+ /// "audio": 10,
+ /// "cache_creation": 200,
+ /// "cache_read": 100,
+ /// }
+ /// .. versionadded:: 0.3.9 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("input_token_details")] + public global::LangSmith.InputTokenDetails? InputTokenDetails { get; set; } + + /// + /// Breakdown of output token counts.
+ /// Does *not* need to sum to full output token count. Does *not* need to have all keys.
+ /// Example:
+ /// .. code-block:: python
+ /// {
+ /// "audio": 10,
+ /// "reasoning": 200,
+ /// }
+ /// .. versionadded:: 0.3.9 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("output_token_details")] + public global::LangSmith.OutputTokenDetails? OutputTokenDetails { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LangSmith.UsageMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LangSmith.UsageMetadata), + jsonSerializerContext) as global::LangSmith.UsageMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LangSmith.UsageMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/LangSmith/Generated/LangSmith.PromptsClient.Canvas.g.cs b/src/libs/LangSmith/Generated/LangSmith.PromptsClient.Canvas.g.cs index c997d2b7..f5ad4f57 100644 --- a/src/libs/LangSmith/Generated/LangSmith.PromptsClient.Canvas.g.cs +++ b/src/libs/LangSmith/Generated/LangSmith.PromptsClient.Canvas.g.cs @@ -7,11 +7,11 @@ public partial class PromptsClient { partial void PrepareCanvasArguments( global::System.Net.Http.HttpClient httpClient, - global::LangSmith.PlaygroundOptimizePromptRequestSchema request); + global::LangSmith.PlayGroundGraph request); partial void PrepareCanvasRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::LangSmith.PlaygroundOptimizePromptRequestSchema request); + global::LangSmith.PlayGroundGraph request); partial void ProcessCanvasResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -22,14 +22,13 @@ partial void ProcessCanvasResponseContent( ref string content); /// - /// Canvas
- /// Improve prompt based on instruction. + /// Canvas ///
/// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CanvasAsync( - global::LangSmith.PlaygroundOptimizePromptRequestSchema request, + global::LangSmith.PlayGroundGraph request, global::System.Threading.CancellationToken cancellationToken = default) { request = request ?? throw new global::System.ArgumentNullException(nameof(request)); @@ -114,31 +113,36 @@ partial void ProcessCanvasResponseContent( } /// - /// Canvas
- /// Improve prompt based on instruction. + /// Canvas ///
- /// - /// - /// - /// - /// + /// + /// + /// + /// + /// + /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CanvasAsync( - string prompt, - string improvementInstruction, - global::LangSmith.PlaygroundOptimizePromptRequestSchemaTemplateFormat templateFormat, - int? highlightStart = default, - int? highlightEnd = default, + global::System.Collections.Generic.IList messages, + global::LangSmith.Artifact artifact, + global::LangSmith.Highlight? highlighted = default, + string? next = default, + global::LangSmith.PlayGroundGraphArtifactLength? artifactLength = default, + global::LangSmith.PlayGroundGraphReadingLevel? readingLevel = default, + string? lastNodeName = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::LangSmith.PlaygroundOptimizePromptRequestSchema + var __request = new global::LangSmith.PlayGroundGraph { - Prompt = prompt, - HighlightStart = highlightStart, - HighlightEnd = highlightEnd, - ImprovementInstruction = improvementInstruction, - TemplateFormat = templateFormat, + Messages = messages, + Highlighted = highlighted, + Artifact = artifact, + Next = next, + ArtifactLength = artifactLength, + ReadingLevel = readingLevel, + LastNodeName = lastNodeName, }; return await CanvasAsync( diff --git a/src/libs/LangSmith/openapi.yaml b/src/libs/LangSmith/openapi.yaml index e5e9acc2..4ee0152e 100644 --- a/src/libs/LangSmith/openapi.yaml +++ b/src/libs/LangSmith/openapi.yaml @@ -7382,13 +7382,12 @@ paths: tags: - prompts summary: Canvas - description: Improve prompt based on instruction. operationId: canvas_api_v1_prompts_canvas_post requestBody: content: application/json: schema: - $ref: '#/components/schemas/PlaygroundOptimizePromptRequestSchema' + $ref: '#/components/schemas/PlayGroundGraph' required: true responses: '200': @@ -10260,6 +10259,115 @@ paths: - BearerAuth: [ ] components: schemas: + AIMessage: + title: AIMessage + required: + - content + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - ai + type: string + default: ai + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + example: + title: Example + type: boolean + default: false + tool_calls: + title: Tool Calls + type: array + items: + $ref: '#/components/schemas/ToolCall' + invalid_tool_calls: + title: Invalid Tool Calls + type: array + items: + $ref: '#/components/schemas/InvalidToolCall' + usage_metadata: + $ref: '#/components/schemas/UsageMetadata' + description: "Message from an AI.\n\nAIMessage is returned from a chat model as a response to a prompt.\n\nThis message represents the output of the model and consists of both\nthe raw output as returned by the model together standardized fields\n(e.g., tool calls, usage metadata) added by the LangChain framework." + AIMessageChunk: + title: AIMessageChunk + required: + - content + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - AIMessageChunk + type: string + default: AIMessageChunk + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + example: + title: Example + type: boolean + default: false + tool_calls: + title: Tool Calls + type: array + items: + $ref: '#/components/schemas/ToolCall' + invalid_tool_calls: + title: Invalid Tool Calls + type: array + items: + $ref: '#/components/schemas/InvalidToolCall' + usage_metadata: + $ref: '#/components/schemas/UsageMetadata' + tool_call_chunks: + title: Tool Call Chunks + type: array + items: + $ref: '#/components/schemas/ToolCallChunk' + description: Message chunk from an AI. APIFeedbackSource: title: APIFeedbackSource type: object @@ -10622,6 +10730,38 @@ components: type: object nullable: true description: Feedback from the LangChainPlus App. + Artifact: + title: Artifact + required: + - id + - contents + - current_content_index + type: object + properties: + id: + title: Id + type: string + contents: + title: Contents + type: array + items: + $ref: '#/components/schemas/ArtifactContent' + current_content_index: + title: Current Content Index + type: integer + ArtifactContent: + title: ArtifactContent + required: + - index + - content + type: object + properties: + index: + title: Index + type: integer + content: + title: Content + type: string AuthProvider: title: AuthProvider enum: @@ -11338,6 +11478,86 @@ components: tier: $ref: '#/components/schemas/ChangePaymentPlanReq' description: Change payment plan schema. + ChatMessage: + title: ChatMessage + required: + - content + - role + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - chat + type: string + default: chat + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + role: + title: Role + type: string + description: Message that can be assigned an arbitrary speaker (i.e. role). + ChatMessageChunk: + title: ChatMessageChunk + required: + - content + - role + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - ChatMessageChunk + type: string + default: ChatMessageChunk + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + role: + title: Role + type: string + description: Chat Message chunk. CodeEvaluatorTopLevel: title: CodeEvaluatorTopLevel required: @@ -13828,6 +14048,78 @@ components: type: boolean nullable: true description: Fields to fork a repo + FunctionMessage: + title: FunctionMessage + required: + - content + - name + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - function + type: string + default: function + name: + title: Name + type: string + id: + title: Id + type: string + nullable: true + description: "Message for passing the result of executing a tool back to a model.\n\nFunctionMessage are an older version of the ToolMessage schema, and\ndo not contain the tool_call_id field.\n\nThe tool_call_id field is used to associate the tool call request with the\ntool call response. This is useful in situations where a chat model is able\nto request multiple tool calls in parallel." + FunctionMessageChunk: + title: FunctionMessageChunk + required: + - content + - name + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - FunctionMessageChunk + type: string + default: FunctionMessageChunk + name: + title: Name + type: string + id: + title: Id + type: string + nullable: true + description: Function Message chunk. GenerateSyntheticExamplesBody: title: GenerateSyntheticExamplesBody required: @@ -13861,6 +14153,99 @@ components: type: array items: $ref: '#/components/schemas/ValidationError' + Highlight: + title: Highlight + required: + - start_char_index + - end_char_index + type: object + properties: + start_char_index: + title: Start Char Index + type: integer + end_char_index: + title: End Char Index + type: integer + HumanMessage: + title: HumanMessage + required: + - content + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - human + type: string + default: human + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + example: + title: Example + type: boolean + default: false + description: "Message from a human.\n\nHumanMessages are messages that are passed in from a human to the model.\n\nExample:\n\n .. code-block:: python\n\n from langchain_core.messages import HumanMessage, SystemMessage\n\n messages = [\n SystemMessage(\n content=\"You are a helpful assistant! Your name is Bob.\"\n ),\n HumanMessage(\n content=\"What is your name?\"\n )\n ]\n\n # Instantiate a chat model and invoke it with the messages\n model = ...\n print(model.invoke(messages))" + HumanMessageChunk: + title: HumanMessageChunk + required: + - content + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - HumanMessageChunk + type: string + default: HumanMessageChunk + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + example: + title: Example + type: boolean + default: false + description: Human Message chunk. Identity: title: Identity required: @@ -13978,6 +14363,51 @@ components: title: Instance Flags type: object description: The LangSmith server info. + InputTokenDetails: + title: InputTokenDetails + type: object + properties: + audio: + title: Audio + type: integer + cache_creation: + title: Cache Creation + type: integer + cache_read: + title: Cache Read + type: integer + description: "Breakdown of input token counts.\n\nDoes *not* need to sum to full input token count. Does *not* need to have all keys.\n\nExample:\n\n .. code-block:: python\n\n {\n \"audio\": 10,\n \"cache_creation\": 200,\n \"cache_read\": 100,\n }\n\n.. versionadded:: 0.3.9" + InvalidToolCall: + title: InvalidToolCall + required: + - name + - args + - id + - error + type: object + properties: + name: + title: Name + type: string + nullable: true + args: + title: Args + type: string + nullable: true + id: + title: Id + type: string + nullable: true + error: + title: Error + type: string + nullable: true + type: + title: Type + enum: + - invalid_tool_call + type: string + description: "Allowance for errors made by LLM.\n\nHere we add an `error` key to surface errors made during generation\n(e.g., invalid JSON arguments.)" InvokePromptPayload: title: InvokePromptPayload required: @@ -15020,6 +15450,17 @@ components: type: string nullable: true description: Update organization schema. only support display_name for now. + OutputTokenDetails: + title: OutputTokenDetails + type: object + properties: + audio: + title: Audio + type: integer + reasoning: + title: Reasoning + type: integer + description: "Breakdown of output token counts.\n\nDoes *not* need to sum to full output token count. Does *not* need to have all keys.\n\nExample:\n\n .. code-block:: python\n\n {\n \"audio\": 10,\n \"reasoning\": 200,\n }\n\n.. versionadded:: 0.3.9" PagerdutySeverity: title: PagerdutySeverity enum: @@ -15167,34 +15608,60 @@ components: type: string access_scope: $ref: '#/components/schemas/AccessScope' - PlaygroundOptimizePromptRequestSchema: - title: PlaygroundOptimizePromptRequestSchema + PlayGroundGraph: + title: PlayGroundGraph required: - - prompt - - improvement_instruction - - template_format + - messages + - artifact type: object properties: - prompt: - title: Prompt + messages: + title: Messages + type: array + items: + oneOf: + - $ref: '#/components/schemas/AIMessage' + - $ref: '#/components/schemas/HumanMessage' + - $ref: '#/components/schemas/ChatMessage' + - $ref: '#/components/schemas/SystemMessage' + - $ref: '#/components/schemas/FunctionMessage' + - $ref: '#/components/schemas/ToolMessage' + - $ref: '#/components/schemas/AIMessageChunk' + - $ref: '#/components/schemas/HumanMessageChunk' + - $ref: '#/components/schemas/ChatMessageChunk' + - $ref: '#/components/schemas/SystemMessageChunk' + - $ref: '#/components/schemas/FunctionMessageChunk' + - $ref: '#/components/schemas/ToolMessageChunk' + highlighted: + $ref: '#/components/schemas/Highlight' + artifact: + $ref: '#/components/schemas/Artifact' + next: + title: Next + type: string + nullable: true + artifact_length: + title: Artifact Length + enum: + - shortest + - short + - long + - longest type: string - highlight_start: - title: Highlight Start - type: integer nullable: true - highlight_end: - title: Highlight End - type: integer - nullable: true - improvement_instruction: - title: Improvement Instruction - type: string - template_format: - title: Template Format + reading_level: + title: Reading Level enum: - - f-string - - mustache + - child + - teenager + - college + - phd type: string + nullable: true + last_node_name: + title: Last Node Name + type: string + nullable: true PlaygroundRunOverDatasetRequestSchema: title: PlaygroundRunOverDatasetRequestSchema required: @@ -18137,6 +18604,78 @@ components: title: Type type: string description: Stripe tax ID. + SystemMessage: + title: SystemMessage + required: + - content + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - system + type: string + default: system + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + description: "Message for priming AI behavior.\n\nThe system message is usually passed in as the first of a sequence\nof input messages.\n\nExample:\n\n .. code-block:: python\n\n from langchain_core.messages import HumanMessage, SystemMessage\n\n messages = [\n SystemMessage(\n content=\"You are a helpful assistant! Your name is Bob.\"\n ),\n HumanMessage(\n content=\"What is your name?\"\n )\n ]\n\n # Define a chat model and invoke it with the messages\n print(model.invoke(messages))" + SystemMessageChunk: + title: SystemMessageChunk + required: + - content + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - SystemMessageChunk + type: string + default: SystemMessageChunk + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + description: System Message chunk. TTLSettings: title: TTLSettings required: @@ -18816,6 +19355,159 @@ components: type: integer default: 0 description: Timedelta input. + ToolCall: + title: ToolCall + required: + - name + - args + - id + type: object + properties: + name: + title: Name + type: string + args: + title: Args + type: object + id: + title: Id + type: string + nullable: true + type: + title: Type + enum: + - tool_call + type: string + description: "Represents a request to call a tool.\n\nExample:\n\n .. code-block:: python\n\n {\n \"name\": \"foo\",\n \"args\": {\"a\": 1},\n \"id\": \"123\"\n }\n\n This represents a request to call the tool named \"foo\" with arguments {\"a\": 1}\n and an identifier of \"123\"." + ToolCallChunk: + title: ToolCallChunk + required: + - name + - args + - id + - index + type: object + properties: + name: + title: Name + type: string + nullable: true + args: + title: Args + type: string + nullable: true + id: + title: Id + type: string + nullable: true + index: + title: Index + type: integer + nullable: true + type: + title: Type + enum: + - tool_call_chunk + type: string + description: "A chunk of a tool call (e.g., as part of a stream).\n\nWhen merging ToolCallChunks (e.g., via AIMessageChunk.__add__),\nall string attributes are concatenated. Chunks are only merged if their\nvalues of `index` are equal and not None.\n\nExample:\n\n.. code-block:: python\n\n left_chunks = [ToolCallChunk(name=\"foo\", args='{\"a\":', index=0)]\n right_chunks = [ToolCallChunk(name=None, args='1}', index=0)]\n\n (\n AIMessageChunk(content=\"\", tool_call_chunks=left_chunks)\n + AIMessageChunk(content=\"\", tool_call_chunks=right_chunks)\n ).tool_call_chunks == [ToolCallChunk(name='foo', args='{\"a\":1}', index=0)]" + ToolMessage: + title: ToolMessage + required: + - content + - tool_call_id + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - tool + type: string + default: tool + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + tool_call_id: + title: Tool Call Id + type: string + artifact: + title: Artifact + status: + title: Status + enum: + - success + - error + type: string + default: success + description: "Message for passing the result of executing a tool back to a model.\n\nToolMessages contain the result of a tool invocation. Typically, the result\nis encoded inside the `content` field.\n\nExample: A ToolMessage representing a result of 42 from a tool call with id\n\n .. code-block:: python\n\n from langchain_core.messages import ToolMessage\n\n ToolMessage(content='42', tool_call_id='call_Jja7J89XsjrOLA5r!MEOW!SL')\n\n\nExample: A ToolMessage where only part of the tool output is sent to the model\n and the full output is passed in to artifact.\n\n .. versionadded:: 0.2.17\n\n .. code-block:: python\n\n from langchain_core.messages import ToolMessage\n\n tool_output = {\n \"stdout\": \"From the graph we can see that the correlation between x and y is ...\",\n \"stderr\": None,\n \"artifacts\": {\"type\": \"image\", \"base64_data\": \"/9j/4gIcSU...\"},\n }\n\n ToolMessage(\n content=tool_output[\"stdout\"],\n artifact=tool_output,\n tool_call_id='call_Jja7J89XsjrOLA5r!MEOW!SL',\n )\n\nThe tool_call_id field is used to associate the tool call request with the\ntool call response. This is useful in situations where a chat model is able\nto request multiple tool calls in parallel." + ToolMessageChunk: + title: ToolMessageChunk + required: + - content + - tool_call_id + type: object + properties: + content: + title: Content + anyOf: + - type: string + - type: array + items: + anyOf: + - type: string + - type: object + additional_kwargs: + title: Additional Kwargs + type: object + response_metadata: + title: Response Metadata + type: object + type: + title: Type + enum: + - ToolMessageChunk + type: string + default: ToolMessageChunk + name: + title: Name + type: string + nullable: true + id: + title: Id + type: string + nullable: true + tool_call_id: + title: Tool Call Id + type: string + artifact: + title: Artifact + status: + title: Status + enum: + - success + - error + type: string + default: success + description: Tool Message chunk. TraceTier: title: TraceTier enum: @@ -19225,6 +19917,28 @@ components: - monthly_longlived_traces type: string description: Type of usage limit. + UsageMetadata: + title: UsageMetadata + required: + - input_tokens + - output_tokens + - total_tokens + type: object + properties: + input_tokens: + title: Input Tokens + type: integer + output_tokens: + title: Output Tokens + type: integer + total_tokens: + title: Total Tokens + type: integer + input_token_details: + $ref: '#/components/schemas/InputTokenDetails' + output_token_details: + $ref: '#/components/schemas/OutputTokenDetails' + description: "Usage metadata for a message, such as token counts.\n\nThis is a standard representation of token usage that is consistent across models.\n\nExample:\n\n .. code-block:: python\n\n {\n \"input_tokens\": 350,\n \"output_tokens\": 240,\n \"total_tokens\": 590,\n \"input_token_details\": {\n \"audio\": 10,\n \"cache_creation\": 200,\n \"cache_read\": 100,\n },\n \"output_token_details\": {\n \"audio\": 10,\n \"reasoning\": 200,\n }\n }\n\n.. versionchanged:: 0.3.9\n\n Added ``input_token_details`` and ``output_token_details``." UserWithPassword: title: UserWithPassword required: