Skip to content

Commit b1bcd32

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent 73fcb10 commit b1bcd32

21 files changed

+1029
-2
lines changed

src/libs/LangSmith/Generated/LangSmith.Models.OrganizationConfig.g.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ public sealed partial class OrganizationConfig
224224
[global::System.Text.Json.Serialization.JsonPropertyName("enable_run_tree_streaming")]
225225
public bool? EnableRunTreeStreaming { get; set; }
226226

227+
/// <summary>
228+
/// Default Value: false
229+
/// </summary>
230+
[global::System.Text.Json.Serialization.JsonPropertyName("enable_threads_improvements")]
231+
public bool? EnableThreadsImprovements { get; set; }
232+
227233
/// <summary>
228234
/// Default Value: 1
229235
/// </summary>
@@ -395,6 +401,9 @@ public sealed partial class OrganizationConfig
395401
/// <param name="enableRunTreeStreaming">
396402
/// Default Value: false
397403
/// </param>
404+
/// <param name="enableThreadsImprovements">
405+
/// Default Value: false
406+
/// </param>
398407
/// <param name="maxPromptWebhooks">
399408
/// Default Value: 1
400409
/// </param>
@@ -465,6 +474,7 @@ public OrganizationConfig(
465474
bool? langsmithExperimentalSearchEnabled,
466475
bool? enableAlignEvaluators,
467476
bool? enableRunTreeStreaming,
477+
bool? enableThreadsImprovements,
468478
int? maxPromptWebhooks,
469479
string? playgroundEvaluatorStrategy,
470480
bool? enableMonthlyUsageCharts,
@@ -512,6 +522,7 @@ public OrganizationConfig(
512522
this.LangsmithExperimentalSearchEnabled = langsmithExperimentalSearchEnabled;
513523
this.EnableAlignEvaluators = enableAlignEvaluators;
514524
this.EnableRunTreeStreaming = enableRunTreeStreaming;
525+
this.EnableThreadsImprovements = enableThreadsImprovements;
515526
this.MaxPromptWebhooks = maxPromptWebhooks;
516527
this.PlaygroundEvaluatorStrategy = playgroundEvaluatorStrategy;
517528
this.EnableMonthlyUsageCharts = enableMonthlyUsageCharts;

src/libs/LangSmith/Generated/LangSmith.Models.RunGroupStats.g.cs

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,30 @@ public sealed partial class RunGroupStats
152152
[global::System.Text.Json.Serialization.JsonPropertyName("cost_p99")]
153153
public string? CostP99 { get; set; }
154154

155+
/// <summary>
156+
///
157+
/// </summary>
158+
[global::System.Text.Json.Serialization.JsonPropertyName("prompt_token_details")]
159+
public object? PromptTokenDetails { get; set; }
160+
161+
/// <summary>
162+
///
163+
/// </summary>
164+
[global::System.Text.Json.Serialization.JsonPropertyName("completion_token_details")]
165+
public object? CompletionTokenDetails { get; set; }
166+
167+
/// <summary>
168+
///
169+
/// </summary>
170+
[global::System.Text.Json.Serialization.JsonPropertyName("prompt_cost_details")]
171+
public object? PromptCostDetails { get; set; }
172+
173+
/// <summary>
174+
///
175+
/// </summary>
176+
[global::System.Text.Json.Serialization.JsonPropertyName("completion_cost_details")]
177+
public object? CompletionCostDetails { get; set; }
178+
155179
/// <summary>
156180
///
157181
/// </summary>
@@ -192,6 +216,10 @@ public sealed partial class RunGroupStats
192216
/// <param name="completionCost"></param>
193217
/// <param name="costP50"></param>
194218
/// <param name="costP99"></param>
219+
/// <param name="promptTokenDetails"></param>
220+
/// <param name="completionTokenDetails"></param>
221+
/// <param name="promptCostDetails"></param>
222+
/// <param name="completionCostDetails"></param>
195223
/// <param name="groupCount"></param>
196224
#if NET7_0_OR_GREATER
197225
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
@@ -221,7 +249,11 @@ public RunGroupStats(
221249
string? promptCost,
222250
string? completionCost,
223251
string? costP50,
224-
string? costP99)
252+
string? costP99,
253+
object? promptTokenDetails,
254+
object? completionTokenDetails,
255+
object? promptCostDetails,
256+
object? completionCostDetails)
225257
{
226258
this.GroupCount = groupCount;
227259
this.RunCount = runCount;
@@ -248,6 +280,10 @@ public RunGroupStats(
248280
this.CompletionCost = completionCost;
249281
this.CostP50 = costP50;
250282
this.CostP99 = costP99;
283+
this.PromptTokenDetails = promptTokenDetails;
284+
this.CompletionTokenDetails = completionTokenDetails;
285+
this.PromptCostDetails = promptCostDetails;
286+
this.CompletionCostDetails = completionCostDetails;
251287
}
252288

253289
/// <summary>
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
#nullable enable
2+
3+
namespace LangSmith
4+
{
5+
public sealed partial class RunGroupStatsCompletionCostDetails
6+
{
7+
/// <summary>
8+
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
9+
/// </summary>
10+
public string ToJson(
11+
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
12+
{
13+
return global::System.Text.Json.JsonSerializer.Serialize(
14+
this,
15+
this.GetType(),
16+
jsonSerializerContext);
17+
}
18+
19+
/// <summary>
20+
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
21+
/// </summary>
22+
#if NET8_0_OR_GREATER
23+
[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.")]
24+
[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.")]
25+
#endif
26+
public string ToJson(
27+
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
28+
{
29+
return global::System.Text.Json.JsonSerializer.Serialize(
30+
this,
31+
jsonSerializerOptions);
32+
}
33+
34+
/// <summary>
35+
/// Deserializes a JSON string using the provided JsonSerializerContext.
36+
/// </summary>
37+
public static global::LangSmith.RunGroupStatsCompletionCostDetails? FromJson(
38+
string json,
39+
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
40+
{
41+
return global::System.Text.Json.JsonSerializer.Deserialize(
42+
json,
43+
typeof(global::LangSmith.RunGroupStatsCompletionCostDetails),
44+
jsonSerializerContext) as global::LangSmith.RunGroupStatsCompletionCostDetails;
45+
}
46+
47+
/// <summary>
48+
/// Deserializes a JSON string using the provided JsonSerializerOptions.
49+
/// </summary>
50+
#if NET8_0_OR_GREATER
51+
[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.")]
52+
[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.")]
53+
#endif
54+
public static global::LangSmith.RunGroupStatsCompletionCostDetails? FromJson(
55+
string json,
56+
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
57+
{
58+
return global::System.Text.Json.JsonSerializer.Deserialize<global::LangSmith.RunGroupStatsCompletionCostDetails>(
59+
json,
60+
jsonSerializerOptions);
61+
}
62+
63+
/// <summary>
64+
/// Deserializes a JSON stream using the provided JsonSerializerContext.
65+
/// </summary>
66+
public static async global::System.Threading.Tasks.ValueTask<global::LangSmith.RunGroupStatsCompletionCostDetails?> FromJsonStreamAsync(
67+
global::System.IO.Stream jsonStream,
68+
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
69+
{
70+
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
71+
jsonStream,
72+
typeof(global::LangSmith.RunGroupStatsCompletionCostDetails),
73+
jsonSerializerContext).ConfigureAwait(false)) as global::LangSmith.RunGroupStatsCompletionCostDetails;
74+
}
75+
76+
/// <summary>
77+
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
78+
/// </summary>
79+
#if NET8_0_OR_GREATER
80+
[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.")]
81+
[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.")]
82+
#endif
83+
public static global::System.Threading.Tasks.ValueTask<global::LangSmith.RunGroupStatsCompletionCostDetails?> FromJsonStreamAsync(
84+
global::System.IO.Stream jsonStream,
85+
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
86+
{
87+
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::LangSmith.RunGroupStatsCompletionCostDetails?>(
88+
jsonStream,
89+
jsonSerializerOptions);
90+
}
91+
}
92+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
#nullable enable
3+
4+
namespace LangSmith
5+
{
6+
/// <summary>
7+
///
8+
/// </summary>
9+
public sealed partial class RunGroupStatsCompletionCostDetails
10+
{
11+
12+
/// <summary>
13+
/// Additional properties that are not explicitly defined in the schema
14+
/// </summary>
15+
[global::System.Text.Json.Serialization.JsonExtensionData]
16+
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
17+
}
18+
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
#nullable enable
2+
3+
namespace LangSmith
4+
{
5+
public sealed partial class RunGroupStatsCompletionTokenDetails
6+
{
7+
/// <summary>
8+
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
9+
/// </summary>
10+
public string ToJson(
11+
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
12+
{
13+
return global::System.Text.Json.JsonSerializer.Serialize(
14+
this,
15+
this.GetType(),
16+
jsonSerializerContext);
17+
}
18+
19+
/// <summary>
20+
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
21+
/// </summary>
22+
#if NET8_0_OR_GREATER
23+
[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.")]
24+
[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.")]
25+
#endif
26+
public string ToJson(
27+
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
28+
{
29+
return global::System.Text.Json.JsonSerializer.Serialize(
30+
this,
31+
jsonSerializerOptions);
32+
}
33+
34+
/// <summary>
35+
/// Deserializes a JSON string using the provided JsonSerializerContext.
36+
/// </summary>
37+
public static global::LangSmith.RunGroupStatsCompletionTokenDetails? FromJson(
38+
string json,
39+
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
40+
{
41+
return global::System.Text.Json.JsonSerializer.Deserialize(
42+
json,
43+
typeof(global::LangSmith.RunGroupStatsCompletionTokenDetails),
44+
jsonSerializerContext) as global::LangSmith.RunGroupStatsCompletionTokenDetails;
45+
}
46+
47+
/// <summary>
48+
/// Deserializes a JSON string using the provided JsonSerializerOptions.
49+
/// </summary>
50+
#if NET8_0_OR_GREATER
51+
[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.")]
52+
[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.")]
53+
#endif
54+
public static global::LangSmith.RunGroupStatsCompletionTokenDetails? FromJson(
55+
string json,
56+
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
57+
{
58+
return global::System.Text.Json.JsonSerializer.Deserialize<global::LangSmith.RunGroupStatsCompletionTokenDetails>(
59+
json,
60+
jsonSerializerOptions);
61+
}
62+
63+
/// <summary>
64+
/// Deserializes a JSON stream using the provided JsonSerializerContext.
65+
/// </summary>
66+
public static async global::System.Threading.Tasks.ValueTask<global::LangSmith.RunGroupStatsCompletionTokenDetails?> FromJsonStreamAsync(
67+
global::System.IO.Stream jsonStream,
68+
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
69+
{
70+
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
71+
jsonStream,
72+
typeof(global::LangSmith.RunGroupStatsCompletionTokenDetails),
73+
jsonSerializerContext).ConfigureAwait(false)) as global::LangSmith.RunGroupStatsCompletionTokenDetails;
74+
}
75+
76+
/// <summary>
77+
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
78+
/// </summary>
79+
#if NET8_0_OR_GREATER
80+
[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.")]
81+
[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.")]
82+
#endif
83+
public static global::System.Threading.Tasks.ValueTask<global::LangSmith.RunGroupStatsCompletionTokenDetails?> FromJsonStreamAsync(
84+
global::System.IO.Stream jsonStream,
85+
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
86+
{
87+
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::LangSmith.RunGroupStatsCompletionTokenDetails?>(
88+
jsonStream,
89+
jsonSerializerOptions);
90+
}
91+
}
92+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
#nullable enable
3+
4+
namespace LangSmith
5+
{
6+
/// <summary>
7+
///
8+
/// </summary>
9+
public sealed partial class RunGroupStatsCompletionTokenDetails
10+
{
11+
12+
/// <summary>
13+
/// Additional properties that are not explicitly defined in the schema
14+
/// </summary>
15+
[global::System.Text.Json.Serialization.JsonExtensionData]
16+
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
17+
}
18+
}

0 commit comments

Comments
 (0)