Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:Update openapi.yaml with new endpoint and modified JSON schemas #114

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace LangSmith.JsonConverters
{
/// <inheritdoc />
public sealed class PlayGroundGraphReadingLevelJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.PlayGroundGraphReadingLevel>
public sealed class AIMessageChunkInputTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageChunkInputType>
{
/// <inheritdoc />
public override global::LangSmith.PlayGroundGraphReadingLevel Read(
public override global::LangSmith.AIMessageChunkInputType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class PlayGroundGraphReadingLevelJsonConverter : global::System.Te
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LangSmith.PlayGroundGraphReadingLevelExtensions.ToEnum(stringValue) ?? default;
return global::LangSmith.AIMessageChunkInputTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LangSmith.PlayGroundGraphReadingLevel)numValue;
return (global::LangSmith.AIMessageChunkInputType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class PlayGroundGraphReadingLevelJsonConverter : global::System.Te
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LangSmith.PlayGroundGraphReadingLevel value,
global::LangSmith.AIMessageChunkInputType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::LangSmith.PlayGroundGraphReadingLevelExtensions.ToValueString(value));
writer.WriteStringValue(global::LangSmith.AIMessageChunkInputTypeExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace LangSmith.JsonConverters
{
/// <inheritdoc />
public sealed class PlayGroundGraphReadingLevelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.PlayGroundGraphReadingLevel?>
public sealed class AIMessageChunkInputTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageChunkInputType?>
{
/// <inheritdoc />
public override global::LangSmith.PlayGroundGraphReadingLevel? Read(
public override global::LangSmith.AIMessageChunkInputType? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class PlayGroundGraphReadingLevelNullableJsonConverter : global::S
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LangSmith.PlayGroundGraphReadingLevelExtensions.ToEnum(stringValue);
return global::LangSmith.AIMessageChunkInputTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LangSmith.PlayGroundGraphReadingLevel)numValue;
return (global::LangSmith.AIMessageChunkInputType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,7 +38,7 @@ public sealed class PlayGroundGraphReadingLevelNullableJsonConverter : global::S
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LangSmith.PlayGroundGraphReadingLevel? value,
global::LangSmith.AIMessageChunkInputType? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -49,7 +49,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::LangSmith.PlayGroundGraphReadingLevelExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::LangSmith.AIMessageChunkInputTypeExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace LangSmith.JsonConverters
{
/// <inheritdoc />
public sealed class PlayGroundGraphArtifactLengthJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.PlayGroundGraphArtifactLength>
public sealed class AIMessageChunkOutputTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageChunkOutputType>
{
/// <inheritdoc />
public override global::LangSmith.PlayGroundGraphArtifactLength Read(
public override global::LangSmith.AIMessageChunkOutputType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class PlayGroundGraphArtifactLengthJsonConverter : global::System.
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LangSmith.PlayGroundGraphArtifactLengthExtensions.ToEnum(stringValue) ?? default;
return global::LangSmith.AIMessageChunkOutputTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LangSmith.PlayGroundGraphArtifactLength)numValue;
return (global::LangSmith.AIMessageChunkOutputType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class PlayGroundGraphArtifactLengthJsonConverter : global::System.
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LangSmith.PlayGroundGraphArtifactLength value,
global::LangSmith.AIMessageChunkOutputType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::LangSmith.PlayGroundGraphArtifactLengthExtensions.ToValueString(value));
writer.WriteStringValue(global::LangSmith.AIMessageChunkOutputTypeExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace LangSmith.JsonConverters
{
/// <inheritdoc />
public sealed class PlayGroundGraphArtifactLengthNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.PlayGroundGraphArtifactLength?>
public sealed class AIMessageChunkOutputTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageChunkOutputType?>
{
/// <inheritdoc />
public override global::LangSmith.PlayGroundGraphArtifactLength? Read(
public override global::LangSmith.AIMessageChunkOutputType? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class PlayGroundGraphArtifactLengthNullableJsonConverter : global:
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LangSmith.PlayGroundGraphArtifactLengthExtensions.ToEnum(stringValue);
return global::LangSmith.AIMessageChunkOutputTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LangSmith.PlayGroundGraphArtifactLength)numValue;
return (global::LangSmith.AIMessageChunkOutputType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,7 +38,7 @@ public sealed class PlayGroundGraphArtifactLengthNullableJsonConverter : global:
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LangSmith.PlayGroundGraphArtifactLength? value,
global::LangSmith.AIMessageChunkOutputType? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -49,7 +49,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::LangSmith.PlayGroundGraphArtifactLengthExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::LangSmith.AIMessageChunkOutputTypeExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace LangSmith.JsonConverters
{
/// <inheritdoc />
public sealed class AIMessageChunkTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageChunkType>
public sealed class AIMessageInputTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageInputType>
{
/// <inheritdoc />
public override global::LangSmith.AIMessageChunkType Read(
public override global::LangSmith.AIMessageInputType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class AIMessageChunkTypeJsonConverter : global::System.Text.Json.S
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LangSmith.AIMessageChunkTypeExtensions.ToEnum(stringValue) ?? default;
return global::LangSmith.AIMessageInputTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LangSmith.AIMessageChunkType)numValue;
return (global::LangSmith.AIMessageInputType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class AIMessageChunkTypeJsonConverter : global::System.Text.Json.S
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LangSmith.AIMessageChunkType value,
global::LangSmith.AIMessageInputType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::LangSmith.AIMessageChunkTypeExtensions.ToValueString(value));
writer.WriteStringValue(global::LangSmith.AIMessageInputTypeExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace LangSmith.JsonConverters
{
/// <inheritdoc />
public sealed class AIMessageChunkTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageChunkType?>
public sealed class AIMessageInputTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageInputType?>
{
/// <inheritdoc />
public override global::LangSmith.AIMessageChunkType? Read(
public override global::LangSmith.AIMessageInputType? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class AIMessageChunkTypeNullableJsonConverter : global::System.Tex
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LangSmith.AIMessageChunkTypeExtensions.ToEnum(stringValue);
return global::LangSmith.AIMessageInputTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LangSmith.AIMessageChunkType)numValue;
return (global::LangSmith.AIMessageInputType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,7 +38,7 @@ public sealed class AIMessageChunkTypeNullableJsonConverter : global::System.Tex
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LangSmith.AIMessageChunkType? value,
global::LangSmith.AIMessageInputType? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -49,7 +49,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::LangSmith.AIMessageChunkTypeExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::LangSmith.AIMessageInputTypeExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace LangSmith.JsonConverters
{
/// <inheritdoc />
public sealed class AIMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageType>
public sealed class AIMessageOutputTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LangSmith.AIMessageOutputType>
{
/// <inheritdoc />
public override global::LangSmith.AIMessageType Read(
public override global::LangSmith.AIMessageOutputType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class AIMessageTypeJsonConverter : global::System.Text.Json.Serial
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LangSmith.AIMessageTypeExtensions.ToEnum(stringValue) ?? default;
return global::LangSmith.AIMessageOutputTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LangSmith.AIMessageType)numValue;
return (global::LangSmith.AIMessageOutputType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class AIMessageTypeJsonConverter : global::System.Text.Json.Serial
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LangSmith.AIMessageType value,
global::LangSmith.AIMessageOutputType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::LangSmith.AIMessageTypeExtensions.ToValueString(value));
writer.WriteStringValue(global::LangSmith.AIMessageOutputTypeExtensions.ToValueString(value));
}
}
}
Loading