diff --git a/src/libs/PromptLayer/Generated/PromptLayer.DatasetsClient.AddTraceToDatasetVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.DatasetsClient.AddTraceToDatasetVersion.g.cs
new file mode 100644
index 0000000..b7c1fef
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.DatasetsClient.AddTraceToDatasetVersion.g.cs
@@ -0,0 +1,663 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ public partial class DatasetsClient
+ {
+
+
+ private static readonly global::PromptLayer.EndPointSecurityRequirement s_AddTraceToDatasetVersionSecurityRequirement0 =
+ new global::PromptLayer.EndPointSecurityRequirement
+ {
+ Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[]
+ { new global::PromptLayer.EndPointAuthorizationRequirement
+ {
+ Type = "ApiKey",
+ SchemeId = "ApikeyXApiKey",
+ Location = "Header",
+ Name = "X-API-KEY",
+ FriendlyName = "ApiKeyInHeader",
+ },
+ },
+ };
+ private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_AddTraceToDatasetVersionSecurityRequirements =
+ new global::PromptLayer.EndPointSecurityRequirement[]
+ { s_AddTraceToDatasetVersionSecurityRequirement0,
+ };
+ partial void PrepareAddTraceToDatasetVersionArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::PromptLayer.AddTraceToDatasetRequest request);
+ partial void PrepareAddTraceToDatasetVersionRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::PromptLayer.AddTraceToDatasetRequest request);
+ partial void ProcessAddTraceToDatasetVersionResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessAddTraceToDatasetVersionResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Add Trace to Draft Dataset
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task AddTraceToDatasetVersionAsync(
+
+ global::PromptLayer.AddTraceToDatasetRequest request,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await AddTraceToDatasetVersionAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Add Trace to Draft Dataset
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> AddTraceToDatasetVersionAsResponseAsync(
+
+ global::PromptLayer.AddTraceToDatasetRequest request,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareAddTraceToDatasetVersionArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AddTraceToDatasetVersionSecurityRequirements,
+ operationName: "AddTraceToDatasetVersionAsync");
+
+ using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::PromptLayer.PathBuilder(
+ path: "/api/public/v2/dataset-versions/add-trace",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareAddTraceToDatasetVersionRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddTraceToDatasetVersion",
+ methodName: "AddTraceToDatasetVersionAsync",
+ pathTemplate: "\"/api/public/v2/dataset-versions/add-trace\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddTraceToDatasetVersion",
+ methodName: "AddTraceToDatasetVersionAsync",
+ pathTemplate: "\"/api/public/v2/dataset-versions/add-trace\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddTraceToDatasetVersion",
+ methodName: "AddTraceToDatasetVersionAsync",
+ pathTemplate: "\"/api/public/v2/dataset-versions/add-trace\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessAddTraceToDatasetVersionResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddTraceToDatasetVersion",
+ methodName: "AddTraceToDatasetVersionAsync",
+ pathTemplate: "\"/api/public/v2/dataset-versions/add-trace\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddTraceToDatasetVersion",
+ methodName: "AddTraceToDatasetVersionAsync",
+ pathTemplate: "\"/api/public/v2/dataset-versions/add-trace\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Invalid request (e.g. dataset not found, wrong workspace, or schema error).
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ global::PromptLayer.ErrorResponse? __value_400 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext);
+ }
+ else
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+ throw new global::PromptLayer.ApiException(
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_400,
+ ResponseObject = __value_400,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // Unauthorized - missing or invalid API key.
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ global::PromptLayer.ErrorResponse? __value_401 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext);
+ }
+ else
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_401 = __ex;
+ }
+
+ throw new global::PromptLayer.ApiException(
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseObject = __value_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // Forbidden - API key does not have access to the requested resource.
+ if ((int)__response.StatusCode == 403)
+ {
+ string? __content_403 = null;
+ global::System.Exception? __exception_403 = null;
+ global::PromptLayer.ErrorResponse? __value_403 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_403 = global::PromptLayer.ErrorResponse.FromJson(__content_403, JsonSerializerContext);
+ }
+ else
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_403 = global::PromptLayer.ErrorResponse.FromJson(__content_403, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_403 = __ex;
+ }
+
+ throw new global::PromptLayer.ApiException(
+ message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_403,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_403,
+ ResponseObject = __value_403,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // Trace not found in the workspace.
+ if ((int)__response.StatusCode == 404)
+ {
+ string? __content_404 = null;
+ global::System.Exception? __exception_404 = null;
+ global::PromptLayer.ErrorResponse? __value_404 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext);
+ }
+ else
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_404 = __ex;
+ }
+
+ throw new global::PromptLayer.ApiException(
+ message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_404,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_404,
+ ResponseObject = __value_404,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // Validation error - request parameters or body are invalid.
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::PromptLayer.OneOf? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::PromptLayer.OneOf.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::PromptLayer.OneOf.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+ throw new global::PromptLayer.ApiException?>(
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_422,
+ ResponseObject = __value_422,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessAddTraceToDatasetVersionResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::PromptLayer.AddTraceToDatasetResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::PromptLayer.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::PromptLayer.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::PromptLayer.AddTraceToDatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::PromptLayer.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::PromptLayer.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Add Trace to Draft Dataset
+ ///
+ ///
+ /// ID of the dataset group to add the trace row to.
+ ///
+ ///
+ /// ID of the trace to add as a dataset row.
+ ///
+ ///
+ /// Optional span ID. When omitted the row anchors on the trace's earliest root span (Trace export). When provided the row anchors on that span and its direct children become the columns (Span export).
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task AddTraceToDatasetVersionAsync(
+ int datasetGroupId,
+ string traceId,
+ string? spanId = default,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::PromptLayer.AddTraceToDatasetRequest
+ {
+ DatasetGroupId = datasetGroupId,
+ TraceId = traceId,
+ SpanId = spanId,
+ };
+
+ return await AddTraceToDatasetVersionAsync(
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.IDatasetsClient.AddTraceToDatasetVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.IDatasetsClient.AddTraceToDatasetVersion.g.cs
new file mode 100644
index 0000000..0af16a4
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.IDatasetsClient.AddTraceToDatasetVersion.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public partial interface IDatasetsClient
+ {
+ ///
+ /// Add Trace to Draft Dataset
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task AddTraceToDatasetVersionAsync(
+
+ global::PromptLayer.AddTraceToDatasetRequest request,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Add Trace to Draft Dataset
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> AddTraceToDatasetVersionAsResponseAsync(
+
+ global::PromptLayer.AddTraceToDatasetRequest request,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Add Trace to Draft Dataset
+ ///
+ ///
+ /// ID of the dataset group to add the trace row to.
+ ///
+ ///
+ /// ID of the trace to add as a dataset row.
+ ///
+ ///
+ /// Optional span ID. When omitted the row anchors on the trace's earliest root span (Trace export). When provided the row anchors on that span and its direct children become the columns (Span export).
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task AddTraceToDatasetVersionAsync(
+ int datasetGroupId,
+ string traceId,
+ string? spanId = default,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.AddTraceToDatasetResponseMode.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.AddTraceToDatasetResponseMode.g.cs
new file mode 100644
index 0000000..d4916c9
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.AddTraceToDatasetResponseMode.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class AddTraceToDatasetResponseModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.AddTraceToDatasetResponseMode 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.AddTraceToDatasetResponseModeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.AddTraceToDatasetResponseMode)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.AddTraceToDatasetResponseMode);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.AddTraceToDatasetResponseMode value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::PromptLayer.AddTraceToDatasetResponseModeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.AddTraceToDatasetResponseModeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.AddTraceToDatasetResponseModeNullable.g.cs
new file mode 100644
index 0000000..101a73f
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.AddTraceToDatasetResponseModeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class AddTraceToDatasetResponseModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.AddTraceToDatasetResponseMode? 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.AddTraceToDatasetResponseModeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.AddTraceToDatasetResponseMode)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.AddTraceToDatasetResponseMode?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.AddTraceToDatasetResponseMode? 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.AddTraceToDatasetResponseModeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs
index 4fdb5ba..b355b05 100644
--- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs
@@ -321,6 +321,10 @@ namespace PromptLayer
typeof(global::PromptLayer.JsonConverters.EvaluationRowCellTypeNullableJsonConverter),
+ typeof(global::PromptLayer.JsonConverters.AddTraceToDatasetResponseModeJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.AddTraceToDatasetResponseModeNullableJsonConverter),
+
typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter),
typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter),
@@ -649,6 +653,8 @@ namespace PromptLayer
typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter),
+ typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter),
+
typeof(global::PromptLayer.JsonConverters.UnixTimestampJsonConverter),
})]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_a2e389e01f671d8d")]
@@ -1057,6 +1063,9 @@ namespace PromptLayer
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DraftDatasetVersionResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddRequestLogToDatasetRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.SaveDraftDatasetVersionRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddTraceToDatasetRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddTraceToDatasetResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddTraceToDatasetResponseMode), TypeInfoPropertyName = "AddTraceToDatasetResponseMode2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreatePromptLabelRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TrackGroupRequest))]
@@ -1148,9 +1157,6 @@ namespace PromptLayer
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetWorkflowLabelsResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AnyOf), TypeInfoPropertyName = "AnyOfFolderExistsErrorString2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListToolRegistriesResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
@@ -1470,6 +1476,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
typeof(global::PromptLayer.JsonConverters.EvaluationRowCellTypeNullableJsonConverter),
+ typeof(global::PromptLayer.JsonConverters.AddTraceToDatasetResponseModeJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.AddTraceToDatasetResponseModeNullableJsonConverter),
+
typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter),
typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter),
@@ -1798,6 +1808,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter),
+ typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter),
+
typeof(global::PromptLayer.JsonConverters.UnixTimestampJsonConverter),
})]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_a2e389e01f671d8d")]
@@ -1805,6 +1817,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>?), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_47a8c666c2b64908")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf?), TypeInfoPropertyName = "GetReportScoreResponseScoreDetailsVariant4_819979ee8daaec57")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_13c51ceff6c2844e")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AnyOf), TypeInfoPropertyName = "AnyOfFolderExistsErrorString2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListToolRegistriesResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListToolRegistriesResponseToolRegistrie))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetToolRegistryResponse))]
@@ -2079,6 +2094,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o
options.Converters.Add(new global::PromptLayer.JsonConverters.DatasetRowCellTypeNullableJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.EvaluationRowCellTypeJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.EvaluationRowCellTypeNullableJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.AddTraceToDatasetResponseModeJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.AddTraceToDatasetResponseModeNullableJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.ListDatasetsStatusJsonConverter());
@@ -2243,6 +2260,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o
options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.UnixTimestampJsonConverter());
return options;
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs
index c721528..98db406 100644
--- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs
@@ -1628,395 +1628,407 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::PromptLayer.CreatePromptLabelRequest? Type400 { get; set; }
+ public global::PromptLayer.AddTraceToDatasetRequest? Type400 { get; set; }
///
///
///
- public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type401 { get; set; }
+ public global::PromptLayer.AddTraceToDatasetResponse? Type401 { get; set; }
///
///
///
- public global::PromptLayer.TrackGroupRequest? Type402 { get; set; }
+ public global::PromptLayer.AddTraceToDatasetResponseMode? Type402 { get; set; }
///
///
///
- public global::PromptLayer.TrackScoreRequest? Type403 { get; set; }
+ public global::PromptLayer.CreatePromptLabelRequest? Type403 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnRequest? Type404 { get; set; }
+ public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type404 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnRequestColumnType? Type405 { get; set; }
+ public global::PromptLayer.TrackGroupRequest? Type405 { get; set; }
///
///
///
- public global::PromptLayer.RunReportRequest? Type406 { get; set; }
+ public global::PromptLayer.TrackScoreRequest? Type406 { get; set; }
///
///
///
- public global::PromptLayer.CreateToolRegistryRequest? Type407 { get; set; }
+ public global::PromptLayer.AddReportColumnRequest? Type407 { get; set; }
///
///
///
- public global::PromptLayer.ListDatasetsStatus? Type408 { get; set; }
+ public global::PromptLayer.AddReportColumnRequestColumnType? Type408 { get; set; }
///
///
///
- public global::PromptLayer.ListDatasetsSortBy? Type409 { get; set; }
+ public global::PromptLayer.RunReportRequest? Type409 { get; set; }
///
///
///
- public global::PromptLayer.ListDatasetsSortOrder? Type410 { get; set; }
+ public global::PromptLayer.CreateToolRegistryRequest? Type410 { get; set; }
///
///
///
- public global::PromptLayer.ListEvaluationsStatus? Type411 { get; set; }
+ public global::PromptLayer.ListDatasetsStatus? Type411 { get; set; }
///
///
///
- public global::PromptLayer.ListEvaluationsSortBy? Type412 { get; set; }
+ public global::PromptLayer.ListDatasetsSortBy? Type412 { get; set; }
///
///
///
- public global::PromptLayer.ListEvaluationsSortOrder? Type413 { get; set; }
+ public global::PromptLayer.ListDatasetsSortOrder? Type413 { get; set; }
///
///
///
- public global::PromptLayer.AnyOf>? Type414 { get; set; }
+ public global::PromptLayer.ListEvaluationsStatus? Type414 { get; set; }
///
///
///
- public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type415 { get; set; }
+ public global::PromptLayer.ListEvaluationsSortBy? Type415 { get; set; }
///
///
///
- public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type416 { get; set; }
+ public global::PromptLayer.ListEvaluationsSortOrder? Type416 { get; set; }
///
///
///
- public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type417 { get; set; }
+ public global::PromptLayer.AnyOf>? Type417 { get; set; }
///
///
///
- public long? Type418 { get; set; }
+ public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type418 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsSortBy? Type419 { get; set; }
+ public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type419 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsSortOrder? Type420 { get; set; }
+ public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type420 { get; set; }
///
///
///
- public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type421 { get; set; }
+ public long? Type421 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type422 { get; set; }
+ public global::PromptLayer.ListWorkflowsSortBy? Type422 { get; set; }
///
///
///
- public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type423 { get; set; }
+ public global::PromptLayer.ListWorkflowsSortOrder? Type423 { get; set; }
///
///
///
- public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type424 { get; set; }
+ public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type424 { get; set; }
///
///
///
- public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type425 { get; set; }
+ public global::System.Collections.Generic.IList? Type425 { get; set; }
///
///
///
- public global::PromptLayer.OneOf>? Type426 { get; set; }
+ public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type426 { get; set; }
///
///
///
- public global::PromptLayer.IngestOtlpTracesContentType? Type427 { get; set; }
+ public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type427 { get; set; }
///
///
///
- public global::PromptLayer.IngestOtlpTracesContentEncoding? Type428 { get; set; }
+ public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type428 { get; set; }
///
///
///
- public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type429 { get; set; }
+ public global::PromptLayer.OneOf>? Type429 { get; set; }
///
///
///
- public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type430 { get; set; }
+ public global::PromptLayer.IngestOtlpTracesContentType? Type430 { get; set; }
///
///
///
- public global::PromptLayer.GetSkillCollectionPublicFormat? Type431 { get; set; }
+ public global::PromptLayer.IngestOtlpTracesContentEncoding? Type431 { get; set; }
///
///
///
- public global::PromptLayer.GetRequestSearchSuggestionsField? Type432 { get; set; }
+ public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type432 { get; set; }
///
///
///
- public global::PromptLayer.ListToolRegistriesSortBy? Type433 { get; set; }
+ public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type433 { get; set; }
///
///
///
- public global::PromptLayer.ListToolRegistriesSortOrder? Type434 { get; set; }
+ public global::PromptLayer.GetSkillCollectionPublicFormat? Type434 { get; set; }
///
///
///
- public global::PromptLayer.OneOf? Type435 { get; set; }
+ public global::PromptLayer.GetRequestSearchSuggestionsField? Type435 { get; set; }
///
///
///
- public global::PromptLayer.CreatePromptLabelResponse? Type436 { get; set; }
+ public global::PromptLayer.ListToolRegistriesSortBy? Type436 { get; set; }
///
///
///
- public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type437 { get; set; }
+ public global::PromptLayer.ListToolRegistriesSortOrder? Type437 { get; set; }
///
///
///
- public global::PromptLayer.TrackGroupResponse? Type438 { get; set; }
+ public global::PromptLayer.OneOf? Type438 { get; set; }
///
///
///
- public global::PromptLayer.TrackScoreResponse? Type439 { get; set; }
+ public global::PromptLayer.CreatePromptLabelResponse? Type439 { get; set; }
///
///
///
- public global::PromptLayer.DeleteReportsByNameResponse? Type440 { get; set; }
+ public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type440 { get; set; }
///
///
///
- public global::PromptLayer.CreateEvaluationPipelineResponse2? Type441 { get; set; }
+ public global::PromptLayer.TrackGroupResponse? Type441 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnResponse? Type442 { get; set; }
+ public global::PromptLayer.TrackScoreResponse? Type442 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnResponse2? Type443 { get; set; }
+ public global::PromptLayer.DeleteReportsByNameResponse? Type443 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnResponse3? Type444 { get; set; }
+ public global::PromptLayer.CreateEvaluationPipelineResponse2? Type444 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnResponse4? Type445 { get; set; }
+ public global::PromptLayer.AddReportColumnResponse? Type445 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse? Type446 { get; set; }
+ public global::PromptLayer.AddReportColumnResponse2? Type446 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse2? Type447 { get; set; }
+ public global::PromptLayer.AddReportColumnResponse3? Type447 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse3? Type448 { get; set; }
+ public global::PromptLayer.AddReportColumnResponse4? Type448 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse4? Type449 { get; set; }
+ public global::PromptLayer.RunReportResponse? Type449 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse5? Type450 { get; set; }
+ public global::PromptLayer.RunReportResponse2? Type450 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponse? Type451 { get; set; }
+ public global::PromptLayer.RunReportResponse3? Type451 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseReport? Type452 { get; set; }
+ public global::PromptLayer.RunReportResponse4? Type452 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseStatus? Type453 { get; set; }
+ public global::PromptLayer.RunReportResponse5? Type453 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseStats? Type454 { get; set; }
+ public global::PromptLayer.GetReportResponse? Type454 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseStatsStatusCounts? Type455 { get; set; }
+ public global::PromptLayer.GetReportResponseReport? Type455 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type456 { get; set; }
+ public global::PromptLayer.GetReportResponseStatus? Type456 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseReportColumn? Type457 { get; set; }
+ public global::PromptLayer.GetReportResponseStats? Type457 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponse? Type458 { get; set; }
+ public global::PromptLayer.GetReportResponseStatsStatusCounts? Type458 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScore? Type459 { get; set; }
+ public global::System.Collections.Generic.IList? Type459 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type460 { get; set; }
+ public global::PromptLayer.GetReportResponseReportColumn? Type460 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type461 { get; set; }
+ public global::PromptLayer.GetReportScoreResponse? Type461 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type462 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScore? Type462 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type463 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type463 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type464 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type464 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type465 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type465 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type466 { get; set; }
+ public global::System.Collections.Generic.IList? Type466 { get; set; }
///
///
///
- public global::PromptLayer.ListDatasetsResponse? Type467 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type467 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type468 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type468 { get; set; }
///
///
///
- public global::PromptLayer.ListEvaluationsResponse? Type469 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type469 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type470 { get; set; }
+ public global::PromptLayer.ListDatasetsResponse? Type470 { get; set; }
///
///
///
- public global::PromptLayer.AnyOf? Type471 { get; set; }
+ public global::System.Collections.Generic.IList? Type471 { get; set; }
///
///
///
- public global::PromptLayer.OneOf, object>? Type472 { get; set; }
+ public global::PromptLayer.ListEvaluationsResponse? Type472 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type473 { get; set; }
+ public global::System.Collections.Generic.IList? Type473 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type474 { get; set; }
+ public global::PromptLayer.AnyOf? Type474 { get; set; }
///
///
///
- public global::PromptLayer.OneOf, object>? Type475 { get; set; }
+ public global::PromptLayer.OneOf, object>? Type475 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type476 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type476 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type477 { get; set; }
+ public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type477 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsResponse? Type478 { get; set; }
+ public global::PromptLayer.OneOf, object>? Type478 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type479 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type479 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsResponseItem? Type480 { get; set; }
+ public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type480 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsResponse2? Type481 { get; set; }
+ public global::PromptLayer.ListWorkflowsResponse? Type481 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsResponse3? Type482 { get; set; }
+ public global::System.Collections.Generic.IList? Type482 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowResponse? Type483 { get; set; }
+ public global::PromptLayer.ListWorkflowsResponseItem? Type483 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type484 { get; set; }
+ public global::PromptLayer.ListWorkflowsResponse2? Type484 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowResponseNode? Type485 { get; set; }
+ public global::PromptLayer.ListWorkflowsResponse3? Type485 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type486 { get; set; }
+ public global::PromptLayer.GetWorkflowResponse? Type486 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowResponseEdge? Type487 { get; set; }
+ public global::System.Collections.Generic.IList? Type487 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowLabelsResponse? Type488 { get; set; }
+ public global::PromptLayer.GetWorkflowResponseNode? Type488 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type489 { get; set; }
+ public global::System.Collections.Generic.IList? Type489 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type490 { get; set; }
+ public global::PromptLayer.GetWorkflowResponseEdge? Type490 { get; set; }
///
///
///
- public global::PromptLayer.AnyOf? Type491 { get; set; }
+ public global::PromptLayer.GetWorkflowLabelsResponse? Type491 { get; set; }
///
///
///
- public global::PromptLayer.ListToolRegistriesResponse? Type492 { get; set; }
+ public global::System.Collections.Generic.IList? Type492 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type493 { get; set; }
+ public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type493 { get; set; }
///
///
///
- public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type494 { get; set; }
+ public global::PromptLayer.AnyOf? Type494 { get; set; }
///
///
///
- public global::PromptLayer.CreateToolRegistryResponse? Type495 { get; set; }
+ public global::PromptLayer.ListToolRegistriesResponse? Type495 { get; set; }
///
///
///
- public global::PromptLayer.GetToolRegistryResponse? Type496 { get; set; }
+ public global::System.Collections.Generic.IList? Type496 { get; set; }
///
///
///
- public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type497 { get; set; }
+ public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type497 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.CreateToolRegistryResponse? Type498 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.GetToolRegistryResponse? Type499 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type500 { get; set; }
///
///
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetRequest.Json.g.cs
new file mode 100644
index 0000000..2785436
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class AddTraceToDatasetRequest
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::PromptLayer.AddTraceToDatasetRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.AddTraceToDatasetRequest),
+ jsonSerializerContext) as global::PromptLayer.AddTraceToDatasetRequest;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::PromptLayer.AddTraceToDatasetRequest? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::PromptLayer.AddTraceToDatasetRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.AddTraceToDatasetRequest;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetRequest.g.cs
new file mode 100644
index 0000000..6edfe92
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetRequest.g.cs
@@ -0,0 +1,70 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public sealed partial class AddTraceToDatasetRequest
+ {
+ ///
+ /// ID of the dataset group to add the trace row to.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("dataset_group_id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int DatasetGroupId { get; set; }
+
+ ///
+ /// ID of the trace to add as a dataset row.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("trace_id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string TraceId { get; set; }
+
+ ///
+ /// Optional span ID. When omitted the row anchors on the trace's earliest root span (Trace export). When provided the row anchors on that span and its direct children become the columns (Span export).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("span_id")]
+ public string? SpanId { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// ID of the dataset group to add the trace row to.
+ ///
+ ///
+ /// ID of the trace to add as a dataset row.
+ ///
+ ///
+ /// Optional span ID. When omitted the row anchors on the trace's earliest root span (Trace export). When provided the row anchors on that span and its direct children become the columns (Span export).
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public AddTraceToDatasetRequest(
+ int datasetGroupId,
+ string traceId,
+ string? spanId)
+ {
+ this.DatasetGroupId = datasetGroupId;
+ this.TraceId = traceId ?? throw new global::System.ArgumentNullException(nameof(traceId));
+ this.SpanId = spanId;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AddTraceToDatasetRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetResponse.Json.g.cs
new file mode 100644
index 0000000..3d04232
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class AddTraceToDatasetResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::PromptLayer.AddTraceToDatasetResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.AddTraceToDatasetResponse),
+ jsonSerializerContext) as global::PromptLayer.AddTraceToDatasetResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::PromptLayer.AddTraceToDatasetResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::PromptLayer.AddTraceToDatasetResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.AddTraceToDatasetResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetResponse.g.cs
new file mode 100644
index 0000000..073629f
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetResponse.g.cs
@@ -0,0 +1,67 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public sealed partial class AddTraceToDatasetResponse
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ public bool? Success { get; set; }
+
+ ///
+ /// ID of the draft dataset the trace row was added to.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("draft_dataset_id")]
+ public int? DraftDatasetId { get; set; }
+
+ ///
+ /// Indicates whether the row was created from a full trace root (`trace`) or a specific span subtree (`span`).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mode")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.AddTraceToDatasetResponseModeJsonConverter))]
+ public global::PromptLayer.AddTraceToDatasetResponseMode? Mode { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ ///
+ /// ID of the draft dataset the trace row was added to.
+ ///
+ ///
+ /// Indicates whether the row was created from a full trace root (`trace`) or a specific span subtree (`span`).
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public AddTraceToDatasetResponse(
+ bool? success,
+ int? draftDatasetId,
+ global::PromptLayer.AddTraceToDatasetResponseMode? mode)
+ {
+ this.Success = success;
+ this.DraftDatasetId = draftDatasetId;
+ this.Mode = mode;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AddTraceToDatasetResponse()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetResponseMode.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetResponseMode.g.cs
new file mode 100644
index 0000000..2643576
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTraceToDatasetResponseMode.g.cs
@@ -0,0 +1,51 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ /// Indicates whether the row was created from a full trace root (`trace`) or a specific span subtree (`span`).
+ ///
+ public enum AddTraceToDatasetResponseMode
+ {
+ ///
+ ///
+ ///
+ Span,
+ ///
+ ///
+ ///
+ Trace,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class AddTraceToDatasetResponseModeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this AddTraceToDatasetResponseMode value)
+ {
+ return value switch
+ {
+ AddTraceToDatasetResponseMode.Span => "span",
+ AddTraceToDatasetResponseMode.Trace => "trace",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static AddTraceToDatasetResponseMode? ToEnum(string value)
+ {
+ return value switch
+ {
+ "span" => AddTraceToDatasetResponseMode.Span,
+ "trace" => AddTraceToDatasetResponseMode.Trace,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/autosdk.generated-examples.json b/src/libs/PromptLayer/Generated/autosdk.generated-examples.json
index 91e64e5..506b5be 100644
--- a/src/libs/PromptLayer/Generated/autosdk.generated-examples.json
+++ b/src/libs/PromptLayer/Generated/autosdk.generated-examples.json
@@ -13,6 +13,17 @@
},
{
"Order": 2,
+ "Title": "Add Trace to Draft Dataset",
+ "Slug": "addtracetodatasetversion",
+ "Description": "Generated from OpenAPI examples.",
+ "Language": "csharp",
+ "Code": "using var client = new PromptLayerClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::PromptLayer.AddTraceToDatasetRequest\u003E(\n @\u0022{\n \u0022\u0022dataset_group_id\u0022\u0022: 123,\n \u0022\u0022trace_id\u0022\u0022: \u0022\u0022abc123def456\u0022\u0022,\n \u0022\u0022span_id\u0022\u0022: \u0022\u0022span789xyz\u0022\u0022\n}\u0022)!;\n\nvar response = await client.Datasets.AddTraceToDatasetVersionAsync(\n request: request\n);\n\n// Example response:\n// {\n// \u0022success\u0022: true,\n// \u0022draft_dataset_id\u0022: 789,\n// \u0022mode\u0022: \u0022trace\u0022\n// }",
+ "Format": "sdk",
+ "OperationId": "addTraceToDatasetVersion",
+ "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
+ },
+ {
+ "Order": 3,
"Title": "Create Dataset Group",
"Slug": "createdatasetgroup",
"Description": "Generated from OpenAPI examples.",
@@ -23,7 +34,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 3,
+ "Order": 4,
"Title": "Create Dataset Version from File",
"Slug": "createdatasetversionfromfile",
"Description": "Generated from OpenAPI examples.",
@@ -34,7 +45,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 4,
+ "Order": 5,
"Title": "Create Dataset Version from Filter Params",
"Slug": "createdatasetversionfromfilterparams",
"Description": "Generated from OpenAPI examples.",
@@ -45,7 +56,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 5,
+ "Order": 6,
"Title": "Create Draft Dataset Version",
"Slug": "createdraftdatasetversion",
"Description": "Generated from OpenAPI examples.",
@@ -56,7 +67,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 6,
+ "Order": 7,
"Title": "Get Dataset Rows",
"Slug": "getdatasetrows",
"Description": "Generated from OpenAPI examples.",
@@ -67,7 +78,7 @@
"Setup": null
},
{
- "Order": 7,
+ "Order": 8,
"Title": "Save Draft Dataset Version",
"Slug": "savedraftdatasetversion",
"Description": "Generated from OpenAPI examples.",
@@ -78,7 +89,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 8,
+ "Order": 9,
"Title": "Get Evaluation Rows",
"Slug": "getevaluationrows",
"Description": "Generated from OpenAPI examples.",
@@ -89,7 +100,7 @@
"Setup": null
},
{
- "Order": 9,
+ "Order": 10,
"Title": "Track Metadata",
"Slug": "trackmetadata",
"Description": "Generated from OpenAPI examples.",
@@ -100,7 +111,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 10,
+ "Order": 11,
"Title": "Ingest Traces (OTLP)",
"Slug": "ingestotlptraces",
"Description": "Generated from OpenAPI examples.",
@@ -111,7 +122,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 11,
+ "Order": 12,
"Title": "Track Prompt",
"Slug": "trackprompt",
"Description": "Generated from OpenAPI examples.",
@@ -122,7 +133,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 12,
+ "Order": 13,
"Title": "Get Prompt Template Raw Data",
"Slug": "get-prompt-template-raw",
"Description": "Generated from OpenAPI examples.",
@@ -133,7 +144,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 13,
+ "Order": 14,
"Title": "Add Column to Evaluation Pipeline",
"Slug": "addreportcolumn",
"Description": "Generated from OpenAPI examples.",
@@ -144,7 +155,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 14,
+ "Order": 15,
"Title": "Create Evaluation Pipeline",
"Slug": "createevaluationpipeline",
"Description": "Generated from OpenAPI examples.",
@@ -155,7 +166,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 15,
+ "Order": 16,
"Title": "Delete Evaluation Pipeline",
"Slug": "deletereport",
"Description": "Generated from OpenAPI examples.",
@@ -166,7 +177,7 @@
"Setup": null
},
{
- "Order": 16,
+ "Order": 17,
"Title": "Edit Evaluation Pipeline Column",
"Slug": "editreportcolumn",
"Description": "Generated from OpenAPI examples.",
@@ -177,7 +188,7 @@
"Setup": null
},
{
- "Order": 17,
+ "Order": 18,
"Title": "Rename Evaluation Pipeline",
"Slug": "renamereport",
"Description": "Generated from OpenAPI examples.",
@@ -188,7 +199,7 @@
"Setup": null
},
{
- "Order": 18,
+ "Order": 19,
"Title": "Configure Custom Scoring",
"Slug": "updatereportscorecard",
"Description": "Generated from OpenAPI examples.",
@@ -199,7 +210,7 @@
"Setup": null
},
{
- "Order": 19,
+ "Order": 20,
"Title": "Log Request",
"Slug": "logrequest",
"Description": "Generated from OpenAPI examples.",
@@ -210,7 +221,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 20,
+ "Order": 21,
"Title": "Patch Prompt Template Version",
"Slug": "patch-prompt-template-version",
"Description": "Generated from OpenAPI examples.",
@@ -221,7 +232,7 @@
"Setup": null
},
{
- "Order": 21,
+ "Order": 22,
"Title": "Get Skill Collection",
"Slug": "getskillcollectionpublic",
"Description": "Generated from OpenAPI examples.",
@@ -232,7 +243,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 22,
+ "Order": 23,
"Title": "Create Spans Bulk",
"Slug": "createspansbulk",
"Description": "Generated from OpenAPI examples.",
@@ -243,7 +254,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 23,
+ "Order": 24,
"Title": "Get Request",
"Slug": "getrequest",
"Description": "Generated from OpenAPI examples.",
@@ -254,7 +265,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 24,
+ "Order": 25,
"Title": "Request Analytics",
"Slug": "getrequestanalytics",
"Description": "Generated from OpenAPI examples.",
@@ -265,7 +276,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 25,
+ "Order": 26,
"Title": "Search Request Suggestions",
"Slug": "getrequestsearchsuggestions",
"Description": "Generated from OpenAPI examples.",
@@ -276,7 +287,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 26,
+ "Order": 27,
"Title": "Get Trace",
"Slug": "gettrace",
"Description": "Generated from OpenAPI examples.",
@@ -287,7 +298,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 27,
+ "Order": 28,
"Title": "Search Request Logs",
"Slug": "searchrequestlogs",
"Description": "Generated from OpenAPI examples.",
@@ -298,7 +309,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 28,
+ "Order": 29,
"Title": "Create Workflow",
"Slug": "createworkflow",
"Description": "Generated from OpenAPI examples.",
@@ -309,7 +320,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 29,
+ "Order": 30,
"Title": "Get Agent",
"Slug": "getworkflow",
"Description": "Generated from OpenAPI examples.",
@@ -320,7 +331,7 @@
"Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
},
{
- "Order": 30,
+ "Order": 31,
"Title": "Patch Workflow",
"Slug": "patchworkflow",
"Description": "Generated from OpenAPI examples.",
@@ -331,7 +342,7 @@
"Setup": null
},
{
- "Order": 31,
+ "Order": 32,
"Title": "Run Workflow",
"Slug": "runworkflow",
"Description": "Generated from OpenAPI examples.",
diff --git a/src/libs/PromptLayer/openapi.json b/src/libs/PromptLayer/openapi.json
index 3b03591..d938a00 100644
--- a/src/libs/PromptLayer/openapi.json
+++ b/src/libs/PromptLayer/openapi.json
@@ -9596,6 +9596,93 @@
}
}
}
+ },
+ "/api/public/v2/dataset-versions/add-trace": {
+ "post": {
+ "summary": "Add Trace to Draft Dataset",
+ "operationId": "addTraceToDatasetVersion",
+ "tags": [
+ "datasets"
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddTraceToDatasetRequest"
+ },
+ "examples": {
+ "addTrace": {
+ "summary": "Add a full trace as a dataset row",
+ "value": {
+ "dataset_group_id": 123,
+ "trace_id": "abc123def456"
+ }
+ },
+ "addSpan": {
+ "summary": "Add a specific span subtree as a dataset row",
+ "value": {
+ "dataset_group_id": 123,
+ "trace_id": "abc123def456",
+ "span_id": "span789xyz"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "Trace added to draft dataset.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddTraceToDatasetResponse"
+ },
+ "examples": {
+ "added": {
+ "summary": "Trace added successfully",
+ "value": {
+ "success": true,
+ "draft_dataset_id": 789,
+ "mode": "trace"
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Invalid request (e.g. dataset not found, wrong workspace, or schema error).",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "401": {
+ "$ref": "#/components/responses/UnauthorizedError"
+ },
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
+ "404": {
+ "description": "Trace not found in the workspace.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "422": {
+ "$ref": "#/components/responses/ValidationError"
+ }
+ }
+ }
}
},
"components": {
@@ -17892,6 +17979,56 @@
"description": "ID of the dataset group containing the draft to save."
}
}
+ },
+ "AddTraceToDatasetRequest": {
+ "type": "object",
+ "title": "AddTraceToDatasetRequest",
+ "required": [
+ "dataset_group_id",
+ "trace_id"
+ ],
+ "properties": {
+ "dataset_group_id": {
+ "type": "integer",
+ "minimum": 1,
+ "description": "ID of the dataset group to add the trace row to."
+ },
+ "trace_id": {
+ "type": "string",
+ "minLength": 1,
+ "description": "ID of the trace to add as a dataset row."
+ },
+ "span_id": {
+ "type": "string",
+ "minLength": 1,
+ "nullable": true,
+ "description": "Optional span ID. When omitted the row anchors on the trace's earliest root span (Trace export). When provided the row anchors on that span and its direct children become the columns (Span export)."
+ }
+ }
+ },
+ "AddTraceToDatasetResponse": {
+ "type": "object",
+ "title": "AddTraceToDatasetResponse",
+ "properties": {
+ "success": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
+ },
+ "draft_dataset_id": {
+ "type": "integer",
+ "description": "ID of the draft dataset the trace row was added to."
+ },
+ "mode": {
+ "type": "string",
+ "enum": [
+ "trace",
+ "span"
+ ],
+ "description": "Indicates whether the row was created from a full trace root (`trace`) or a specific span subtree (`span`)."
+ }
+ }
}
},
"responses": {