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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#nullable enable

namespace Baseten
{
public partial interface IBasetenClient
{
/// <summary>
/// Validate a Loops checkpoint bt:// URI.<br/>
/// Whether the caller can manage and use this checkpoint.
/// </summary>
/// <param name="request"></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::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/loops/checkpoints/validate \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100"<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.ValidateLoopsCheckpointResponseV1> CreateLoopsCheckpointsValidateAsync(

global::Baseten.ValidateLoopsCheckpointRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Validate a Loops checkpoint bt:// URI.<br/>
/// Whether the caller can manage and use this checkpoint.
/// </summary>
/// <param name="request"></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::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/loops/checkpoints/validate \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100"<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.AutoSDKHttpResponse<global::Baseten.ValidateLoopsCheckpointResponseV1>> CreateLoopsCheckpointsValidateAsResponseAsync(

global::Baseten.ValidateLoopsCheckpointRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Validate a Loops checkpoint bt:// URI.<br/>
/// Whether the caller can manage and use this checkpoint.
/// </summary>
/// <param name="checkpointPath">
/// bt:// URI of a sampler checkpoint. Form: bt://loops:&lt;run_id&gt;/sampler_weights/&lt;checkpoint_name&gt;.
/// </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>
global::System.Threading.Tasks.Task<global::Baseten.ValidateLoopsCheckpointResponseV1> CreateLoopsCheckpointsValidateAsync(
string checkpointPath,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
2 changes: 2 additions & 0 deletions src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ namespace Baseten
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsCheckpointV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ListLoopsCheckpointsResponseV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Baseten.LoopsCheckpointV1>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ValidateLoopsCheckpointRequestV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ValidateLoopsCheckpointResponseV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsCheckpointFilesResponseV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsDeploymentStatusV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.Name), TypeInfoPropertyName = "Name2")]
Expand Down
Loading