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 @@ -500,6 +500,9 @@ partial void ProcessEvaluationRunCreateV2EntityProjectEvaluationRunsPostResponse
/// <param name="model">
/// Reference to the model (weave:// URI)
/// </param>
/// <param name="sourceEvaluationRunId">
/// Source evaluation run ID if this run was created by rescoring — provenance link
/// </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>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand All @@ -508,13 +511,15 @@ partial void ProcessEvaluationRunCreateV2EntityProjectEvaluationRunsPostResponse
string project,
string evaluation,
string model,
string? sourceEvaluationRunId = default,
global::Weave.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Weave.EvaluationRunCreateBody
{
Evaluation = evaluation,
Model = model,
SourceEvaluationRunId = sourceEvaluationRunId,
};

return await EvaluationRunCreateV2EntityProjectEvaluationRunsPostAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public partial interface IEvaluationRunsClient
/// <param name="model">
/// Reference to the model (weave:// URI)
/// </param>
/// <param name="sourceEvaluationRunId">
/// Source evaluation run ID if this run was created by rescoring — provenance link
/// </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>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand All @@ -58,6 +61,7 @@ public partial interface IEvaluationRunsClient
string project,
string evaluation,
string model,
string? sourceEvaluationRunId = default,
global::Weave.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public partial interface IScoresClient
/// The scorer reference (weave:// URI)
/// </param>
/// <param name="value">
/// The value of the score
/// The raw output of the scorer
/// </param>
/// <param name="evaluationRunId">
/// Optional evaluation run ID to link this score as a child call
Expand All @@ -64,7 +64,7 @@ public partial interface IScoresClient
string project,
string predictionId,
string scorer,
double value,
object value,
string? evaluationRunId = default,
global::Weave.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public sealed partial class EndedCallSchemaForInsert
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTime EndedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("started_at")]
public global::System.DateTime? StartedAt { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -67,6 +73,7 @@ public sealed partial class EndedCallSchemaForInsert
/// <param name="id"></param>
/// <param name="endedAt"></param>
/// <param name="summary"></param>
/// <param name="startedAt"></param>
/// <param name="exception"></param>
/// <param name="output"></param>
/// <param name="wbRunStepEnd"></param>
Expand All @@ -78,13 +85,15 @@ public EndedCallSchemaForInsert(
string id,
global::System.DateTime endedAt,
global::Weave.SummaryInsertMap summary,
global::System.DateTime? startedAt,
string? exception,
object? output,
int? wbRunStepEnd)
{
this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId));
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.EndedAt = endedAt;
this.StartedAt = startedAt;
this.Exception = exception;
this.Output = output;
this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#nullable enable

namespace Weave
{
public sealed partial class EndedCallSchemaForInsertStartedAt
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#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);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::Weave.EndedCallSchemaForInsertStartedAt? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Weave.EndedCallSchemaForInsertStartedAt),
jsonSerializerContext) as global::Weave.EndedCallSchemaForInsertStartedAt;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#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::Weave.EndedCallSchemaForInsertStartedAt? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Weave.EndedCallSchemaForInsertStartedAt>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::Weave.EndedCallSchemaForInsertStartedAt?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::Weave.EndedCallSchemaForInsertStartedAt),
jsonSerializerContext).ConfigureAwait(false)) as global::Weave.EndedCallSchemaForInsertStartedAt;
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
/// </summary>
#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::System.Threading.Tasks.ValueTask<global::Weave.EndedCallSchemaForInsertStartedAt?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Weave.EndedCallSchemaForInsertStartedAt?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#nullable enable

namespace Weave
{
/// <summary>
///
/// </summary>
public sealed partial class EndedCallSchemaForInsertStartedAt
{

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public sealed partial class EvaluationRunCreateBody
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; }

/// <summary>
/// Source evaluation run ID if this run was created by rescoring — provenance link
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("source_evaluation_run_id")]
public string? SourceEvaluationRunId { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -37,15 +43,20 @@ public sealed partial class EvaluationRunCreateBody
/// <param name="model">
/// Reference to the model (weave:// URI)
/// </param>
/// <param name="sourceEvaluationRunId">
/// Source evaluation run ID if this run was created by rescoring — provenance link
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public EvaluationRunCreateBody(
string evaluation,
string model)
string model,
string? sourceEvaluationRunId)
{
this.Evaluation = evaluation ?? throw new global::System.ArgumentNullException(nameof(evaluation));
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.SourceEvaluationRunId = sourceEvaluationRunId;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#nullable enable

namespace Weave
{
public sealed partial class EvaluationRunCreateBodySourceEvaluationRunId
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#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);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::Weave.EvaluationRunCreateBodySourceEvaluationRunId? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Weave.EvaluationRunCreateBodySourceEvaluationRunId),
jsonSerializerContext) as global::Weave.EvaluationRunCreateBodySourceEvaluationRunId;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#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::Weave.EvaluationRunCreateBodySourceEvaluationRunId? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Weave.EvaluationRunCreateBodySourceEvaluationRunId>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::Weave.EvaluationRunCreateBodySourceEvaluationRunId?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::Weave.EvaluationRunCreateBodySourceEvaluationRunId),
jsonSerializerContext).ConfigureAwait(false)) as global::Weave.EvaluationRunCreateBodySourceEvaluationRunId;
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
/// </summary>
#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::System.Threading.Tasks.ValueTask<global::Weave.EvaluationRunCreateBodySourceEvaluationRunId?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Weave.EvaluationRunCreateBodySourceEvaluationRunId?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#nullable enable

namespace Weave
{
/// <summary>
/// Source evaluation run ID if this run was created by rescoring — provenance link
/// </summary>
public sealed partial class EvaluationRunCreateBodySourceEvaluationRunId
{

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Loading