Skip to content
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 @@ -57,7 +57,7 @@ public partial interface IPredictionsClient
/// Optional evaluation run ID to link this prediction as a child call
/// </param>
/// <param name="genaiSpanRef">
/// Optional GenAI span reference produced by this prediction.
/// Optional GenAI span reference(s) produced by this prediction.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -69,7 +69,7 @@ public partial interface IPredictionsClient
object inputs,
object output,
string? evaluationRunId = default,
global::Weave.GenAISpanRef? genaiSpanRef = default,
global::System.Collections.Generic.IList<global::Weave.GenAISpanRef>? genaiSpanRef = default,
global::Weave.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
2 changes: 2 additions & 0 deletions src/libs/Weave/Generated/Weave.JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ namespace Weave
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsSortByMode), TypeInfoPropertyName = "EvalResultsSortByMode2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Weave.EvalResultsEvaluationSummary>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Weave.GenAISpanRef>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.GenAISpanRef))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvaluateModelReq))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvaluateModelRes))]
Expand Down Expand Up @@ -460,6 +461,7 @@ namespace Weave
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Weave.EvalResultsRowEvaluation>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Weave.EvalResultsTrial>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Weave.EvalResultsEvaluationSummary>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Weave.GenAISpanRef>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Weave.FeedbackCreateReq>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Weave.FeedbackCreateRes>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Weave.FeedbackPayloadPath>))]
Expand Down
370 changes: 189 additions & 181 deletions src/libs/Weave/Generated/Weave.JsonSerializerContextTypes.g.cs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/libs/Weave/Generated/Weave.Models.CallsQueryStatsRes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ public sealed partial class CallsQueryStatsRes
[global::System.Text.Json.Serialization.JsonRequired]
public required int Count { get; set; }

/// <summary>
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("has_more")]
public bool? HasMore { get; set; }

/// <summary>
///
/// </summary>
Expand All @@ -31,15 +37,20 @@ public sealed partial class CallsQueryStatsRes
/// Initializes a new instance of the <see cref="CallsQueryStatsRes" /> class.
/// </summary>
/// <param name="count"></param>
/// <param name="hasMore">
/// Default Value: false
/// </param>
/// <param name="totalStorageSizeBytes"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public CallsQueryStatsRes(
int count,
bool? hasMore,
long? totalStorageSizeBytes)
{
this.Count = count;
this.HasMore = hasMore;
this.TotalStorageSizeBytes = totalStorageSizeBytes;
}

Expand Down
4 changes: 2 additions & 2 deletions src/libs/Weave/Generated/Weave.Models.EvalResultsTrial.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public sealed partial class EvalResultsTrial
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("genai_span_ref")]
public global::Weave.GenAISpanRef? GenaiSpanRef { get; set; }
public global::System.Collections.Generic.IList<global::Weave.GenAISpanRef>? GenaiSpanRef { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down Expand Up @@ -85,7 +85,7 @@ public EvalResultsTrial(
double? modelLatencySeconds,
int? totalTokens,
global::System.Collections.Generic.Dictionary<string, string>? scorerCallIds,
global::Weave.GenAISpanRef? genaiSpanRef)
global::System.Collections.Generic.IList<global::Weave.GenAISpanRef>? genaiSpanRef)
{
this.PredictAndScoreCallId = predictAndScoreCallId ?? throw new global::System.ArgumentNullException(nameof(predictAndScoreCallId));
this.PredictCallId = predictCallId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public sealed partial class PredictionCreateBody
public string? EvaluationRunId { get; set; }

/// <summary>
/// Optional GenAI span reference produced by this prediction.
/// Optional GenAI span reference(s) produced by this prediction.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("genai_span_ref")]
public global::Weave.GenAISpanRef? GenaiSpanRef { get; set; }
public global::System.Collections.Generic.IList<global::Weave.GenAISpanRef>? GenaiSpanRef { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -64,7 +64,7 @@ public sealed partial class PredictionCreateBody
/// Optional evaluation run ID to link this prediction as a child call
/// </param>
/// <param name="genaiSpanRef">
/// Optional GenAI span reference produced by this prediction.
/// Optional GenAI span reference(s) produced by this prediction.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand All @@ -74,7 +74,7 @@ public PredictionCreateBody(
object inputs,
object output,
string? evaluationRunId,
global::Weave.GenAISpanRef? genaiSpanRef)
global::System.Collections.Generic.IList<global::Weave.GenAISpanRef>? genaiSpanRef)
{
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Weave
{
/// <summary>
/// Optional GenAI span reference produced by this prediction.
/// Optional GenAI span reference(s) produced by this prediction.
/// </summary>
public sealed partial class PredictionCreateBodyGenaiSpanRef
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ partial void ProcessPredictionCreateV2EntityProjectPredictionsPostResponseConten
/// Optional evaluation run ID to link this prediction as a child call
/// </param>
/// <param name="genaiSpanRef">
/// Optional GenAI span reference produced by this prediction.
/// Optional GenAI span reference(s) produced by this prediction.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -524,7 +524,7 @@ partial void ProcessPredictionCreateV2EntityProjectPredictionsPostResponseConten
object inputs,
object output,
string? evaluationRunId = default,
global::Weave.GenAISpanRef? genaiSpanRef = default,
global::System.Collections.Generic.IList<global::Weave.GenAISpanRef>? genaiSpanRef = default,
global::Weave.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
21 changes: 17 additions & 4 deletions src/libs/Weave/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7369,6 +7369,11 @@
"type": "integer",
"title": "Count"
},
"has_more": {
"type": "boolean",
"title": "Has More",
"default": false
},
"total_storage_size_bytes": {
"anyOf": [
{
Expand Down Expand Up @@ -9035,12 +9040,16 @@
"genai_span_ref": {
"anyOf": [
{
"$ref": "#/components/schemas/GenAISpanRef"
"items": {
"$ref": "#/components/schemas/GenAISpanRef"
},
"type": "array"
},
{
"type": "null"
}
]
],
"title": "Genai Span Ref"
}
},
"type": "object",
Expand Down Expand Up @@ -12782,13 +12791,17 @@
"genai_span_ref": {
"anyOf": [
{
"$ref": "#/components/schemas/GenAISpanRef"
"items": {
"$ref": "#/components/schemas/GenAISpanRef"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Optional GenAI span reference produced by this prediction."
"title": "Genai Span Ref",
"description": "Optional GenAI span reference(s) produced by this prediction."
}
},
"type": "object",
Expand Down