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 @@ -109,6 +109,11 @@ public partial interface IPromptLayerClient : global::System.IDisposable
/// </summary>
public ScoreClient Score { get; }

/// <summary>
///
/// </summary>
public SkillCollectionsClient SkillCollections { get; }

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

namespace PromptLayer
{
public partial interface ISkillCollectionsClient
{
/// <summary>
/// Create Skill Collection
/// </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::PromptLayer.ApiException"></exception>
global::System.Threading.Tasks.Task<global::PromptLayer.CreateSkillCollectionResponse> CreateSkillCollectionPublicAsync(

global::PromptLayer.CreateSkillCollectionRequest request,
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create Skill Collection
/// </summary>
/// <param name="name"></param>
/// <param name="folderId"></param>
/// <param name="provider"></param>
/// <param name="files">
/// Default Value: []
/// </param>
/// <param name="commitMessage"></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::PromptLayer.CreateSkillCollectionResponse> CreateSkillCollectionPublicAsync(
string name,
int? folderId = default,
string? provider = default,
global::System.Collections.Generic.IList<global::PromptLayer.InitialFileUpdate>? files = default,
string? commitMessage = default,
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#nullable enable

namespace PromptLayer
{
public partial interface ISkillCollectionsClient
{
/// <summary>
/// Get Skill Collection
/// </summary>
/// <param name="identifier"></param>
/// <param name="format"></param>
/// <param name="label"></param>
/// <param name="version"></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::PromptLayer.ApiException"></exception>
global::System.Threading.Tasks.Task<global::PromptLayer.GetSkillCollectionResponse> GetSkillCollectionPublicAsync(
string identifier,
global::PromptLayer.GetSkillCollectionPublicFormat? format = default,
string? label = default,
int? version = default,
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#nullable enable

namespace PromptLayer
{
public partial interface ISkillCollectionsClient
{
/// <summary>
/// List Skill Collections
/// </summary>
/// <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::PromptLayer.ApiException"></exception>
global::System.Threading.Tasks.Task<global::PromptLayer.ListSkillCollectionsResponse> ListSkillCollectionsPublicAsync(
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#nullable enable

namespace PromptLayer
{
public partial interface ISkillCollectionsClient
{
/// <summary>
/// Save Skill Collection Version
/// </summary>
/// <param name="identifier"></param>
/// <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::PromptLayer.ApiException"></exception>
global::System.Threading.Tasks.Task<global::PromptLayer.SaveSkillCollectionVersionResponse> SaveSkillCollectionVersionPublicAsync(
string identifier,

global::PromptLayer.SaveSkillCollectionVersionRequest request,
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Save Skill Collection Version
/// </summary>
/// <param name="identifier"></param>
/// <param name="fileUpdates">
/// Default Value: []
/// </param>
/// <param name="moves">
/// Default Value: []
/// </param>
/// <param name="deletes">
/// Default Value: []
/// </param>
/// <param name="commitMessage"></param>
/// <param name="releaseLabel"></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::PromptLayer.SaveSkillCollectionVersionResponse> SaveSkillCollectionVersionPublicAsync(
string identifier,
global::System.Collections.Generic.IList<global::PromptLayer.FileUpdate>? fileUpdates = default,
global::System.Collections.Generic.IList<global::PromptLayer.FileMove>? moves = default,
global::System.Collections.Generic.IList<string>? deletes = default,
string? commitMessage = default,
string? releaseLabel = default,
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#nullable enable

namespace PromptLayer
{
public partial interface ISkillCollectionsClient
{
/// <summary>
/// Update Skill Collection
/// </summary>
/// <param name="identifier"></param>
/// <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::PromptLayer.ApiException"></exception>
global::System.Threading.Tasks.Task<global::PromptLayer.UpdateSkillCollectionResponse> UpdateSkillCollectionPublicAsync(
string identifier,

global::PromptLayer.UpdateSkillCollectionRequest request,
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Update Skill Collection
/// </summary>
/// <param name="identifier"></param>
/// <param name="name"></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::PromptLayer.UpdateSkillCollectionResponse> UpdateSkillCollectionPublicAsync(
string identifier,
string? name = default,
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

#nullable enable

namespace PromptLayer
{
/// <summary>
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public partial interface ISkillCollectionsClient : global::System.IDisposable
{
/// <summary>
/// The HttpClient instance.
/// </summary>
public global::System.Net.Http.HttpClient HttpClient { get; }

/// <summary>
/// The base URL for the API.
/// </summary>
public System.Uri? BaseUri { get; }

/// <summary>
/// The authorizations to use for the requests.
/// </summary>
public global::System.Collections.Generic.List<global::PromptLayer.EndPointAuthorization> Authorizations { get; }

/// <summary>
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
/// When false, successful responses are deserialized directly from the response stream for better performance.
/// Error responses are always read as strings regardless of this setting,
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }
/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::PromptLayer.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }


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

namespace PromptLayer.JsonConverters
{
/// <inheritdoc />
public sealed class GetSkillCollectionPublicFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::PromptLayer.GetSkillCollectionPublicFormat>
{
/// <inheritdoc />
public override global::PromptLayer.GetSkillCollectionPublicFormat Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::PromptLayer.GetSkillCollectionPublicFormatExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::PromptLayer.GetSkillCollectionPublicFormat)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::PromptLayer.GetSkillCollectionPublicFormat);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::PromptLayer.GetSkillCollectionPublicFormat value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::PromptLayer.GetSkillCollectionPublicFormatExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace PromptLayer.JsonConverters
{
/// <inheritdoc />
public sealed class GetSkillCollectionPublicFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::PromptLayer.GetSkillCollectionPublicFormat?>
{
/// <inheritdoc />
public override global::PromptLayer.GetSkillCollectionPublicFormat? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::PromptLayer.GetSkillCollectionPublicFormatExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::PromptLayer.GetSkillCollectionPublicFormat)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::PromptLayer.GetSkillCollectionPublicFormat?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::PromptLayer.GetSkillCollectionPublicFormat? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::PromptLayer.GetSkillCollectionPublicFormatExtensions.ToValueString(value.Value));
}
}
}
}
Loading