diff --git a/src/libs/PromptLayer/Generated/PromptLayer.IToolRegistryClient.CreateToolRegistry.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.IToolRegistryClient.CreateToolRegistry.g.cs
index f790bfe..3dd92a7 100644
--- a/src/libs/PromptLayer/Generated/PromptLayer.IToolRegistryClient.CreateToolRegistry.g.cs
+++ b/src/libs/PromptLayer/Generated/PromptLayer.IToolRegistryClient.CreateToolRegistry.g.cs
@@ -37,6 +37,9 @@ public partial interface IToolRegistryClient
///
/// Tool definition in OpenAI function-calling format
///
+ ///
+ /// Optional human-readable description of the tool
+ ///
///
/// Folder ID to place tool in
///
@@ -46,15 +49,20 @@ public partial interface IToolRegistryClient
///
/// Identifiers from other systems.
///
+ ///
+ /// Optional sandbox-executable body for the tool. When set, PromptLayer auto-runs the body between LLM turns. See the Auto Tool Execution feature page.
+ ///
/// 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 CreateToolRegistryAsync(
string name,
object toolDefinition,
+ string? description = default,
int? folderId = default,
string? commitMessage = default,
global::System.Collections.Generic.IList? externalIds = default,
+ global::PromptLayer.CreateToolRegistryRequestExecution? execution = default,
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.IToolRegistryClient.CreateToolVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.IToolRegistryClient.CreateToolVersion.g.cs
new file mode 100644
index 0000000..ee02dc5
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.IToolRegistryClient.CreateToolVersion.g.cs
@@ -0,0 +1,65 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public partial interface IToolRegistryClient
+ {
+ ///
+ /// Create Tool Version
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// 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 CreateToolVersionAsync(
+ string identifier,
+
+ global::PromptLayer.CreateToolVersionRequest request,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Tool Version
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// 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> CreateToolVersionAsResponseAsync(
+ string identifier,
+
+ global::PromptLayer.CreateToolVersionRequest request,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Tool Version
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// Tool definition in OpenAI function-calling format
+ ///
+ ///
+ /// Optional sandbox-executable body. When set, PromptLayer auto-runs the body between LLM turns whenever a prompt uses this version. See Auto Tool Execution.
+ ///
+ ///
+ /// Commit message for the new version
+ ///
+ /// 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 CreateToolVersionAsync(
+ string identifier,
+ object toolDefinition,
+ global::PromptLayer.CreateToolVersionRequestExecution? execution = default,
+ string? commitMessage = 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.IToolRegistryClient.TestExecuteTool.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.IToolRegistryClient.TestExecuteTool.g.cs
new file mode 100644
index 0000000..48cfbd1
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.IToolRegistryClient.TestExecuteTool.g.cs
@@ -0,0 +1,89 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public partial interface IToolRegistryClient
+ {
+ ///
+ /// Test Execute Tool
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied.
+ ///
+ ///
+ /// Resolve by specific version number
+ ///
+ ///
+ /// 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 TestExecuteToolAsync(
+ string identifier,
+
+ global::PromptLayer.TestExecuteToolRequest request,
+ string? label = default,
+ string? version = default,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Test Execute Tool
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied.
+ ///
+ ///
+ /// Resolve by specific version number
+ ///
+ ///
+ /// 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> TestExecuteToolAsResponseAsync(
+ string identifier,
+
+ global::PromptLayer.TestExecuteToolRequest request,
+ string? label = default,
+ string? version = default,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Test Execute Tool
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied.
+ ///
+ ///
+ /// Resolve by specific version number
+ ///
+ ///
+ /// Arguments passed to the tool body. Same shape the LLM would emit — keys match the tool's parameter names.
+ ///
+ ///
+ /// In-flight override of the stored execution config. Lets you test unsaved code.
+ ///
+ ///
+ /// In-flight override of the stored tool definition. Used to test against a different function name without saving.
+ ///
+ /// 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 TestExecuteToolAsync(
+ string identifier,
+ string? label = default,
+ string? version = default,
+ object? inputs = default,
+ global::PromptLayer.TestExecuteToolRequestExecution? execution = default,
+ object? toolDefinition = 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.CreateToolRegistryRequestExecutionLanguage.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguage.g.cs
new file mode 100644
index 0000000..43a16f6
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguage.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class CreateToolRegistryRequestExecutionLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.CreateToolRegistryRequestExecutionLanguage 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.CreateToolRegistryRequestExecutionLanguageExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.CreateToolRegistryRequestExecutionLanguage)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.CreateToolRegistryRequestExecutionLanguage);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.CreateToolRegistryRequestExecutionLanguage value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::PromptLayer.CreateToolRegistryRequestExecutionLanguageExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageNullable.g.cs
new file mode 100644
index 0000000..d43b223
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class CreateToolRegistryRequestExecutionLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? 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.CreateToolRegistryRequestExecutionLanguageExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.CreateToolRegistryRequestExecutionLanguage)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.CreateToolRegistryRequestExecutionLanguage?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? 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.CreateToolRegistryRequestExecutionLanguageExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionType.g.cs
new file mode 100644
index 0000000..6b94816
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class CreateToolRegistryRequestExecutionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.CreateToolRegistryRequestExecutionType 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.CreateToolRegistryRequestExecutionTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.CreateToolRegistryRequestExecutionType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.CreateToolRegistryRequestExecutionType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.CreateToolRegistryRequestExecutionType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::PromptLayer.CreateToolRegistryRequestExecutionTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeNullable.g.cs
new file mode 100644
index 0000000..df56642
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class CreateToolRegistryRequestExecutionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.CreateToolRegistryRequestExecutionType? 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.CreateToolRegistryRequestExecutionTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.CreateToolRegistryRequestExecutionType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.CreateToolRegistryRequestExecutionType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.CreateToolRegistryRequestExecutionType? 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.CreateToolRegistryRequestExecutionTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguage.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguage.g.cs
new file mode 100644
index 0000000..da7e50e
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguage.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class CreateToolVersionRequestExecutionLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.CreateToolVersionRequestExecutionLanguage 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.CreateToolVersionRequestExecutionLanguageExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.CreateToolVersionRequestExecutionLanguage)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.CreateToolVersionRequestExecutionLanguage);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.CreateToolVersionRequestExecutionLanguage value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::PromptLayer.CreateToolVersionRequestExecutionLanguageExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageNullable.g.cs
new file mode 100644
index 0000000..f133aa4
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class CreateToolVersionRequestExecutionLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.CreateToolVersionRequestExecutionLanguage? 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.CreateToolVersionRequestExecutionLanguageExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.CreateToolVersionRequestExecutionLanguage)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.CreateToolVersionRequestExecutionLanguage?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.CreateToolVersionRequestExecutionLanguage? 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.CreateToolVersionRequestExecutionLanguageExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionType.g.cs
new file mode 100644
index 0000000..785c85b
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class CreateToolVersionRequestExecutionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.CreateToolVersionRequestExecutionType 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.CreateToolVersionRequestExecutionTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.CreateToolVersionRequestExecutionType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.CreateToolVersionRequestExecutionType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.CreateToolVersionRequestExecutionType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::PromptLayer.CreateToolVersionRequestExecutionTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeNullable.g.cs
new file mode 100644
index 0000000..8737200
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class CreateToolVersionRequestExecutionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.CreateToolVersionRequestExecutionType? 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.CreateToolVersionRequestExecutionTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.CreateToolVersionRequestExecutionType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.CreateToolVersionRequestExecutionType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.CreateToolVersionRequestExecutionType? 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.CreateToolVersionRequestExecutionTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguage.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguage.g.cs
new file mode 100644
index 0000000..11af55e
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguage.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class TestExecuteToolRequestExecutionLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.TestExecuteToolRequestExecutionLanguage 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.TestExecuteToolRequestExecutionLanguageExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.TestExecuteToolRequestExecutionLanguage)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.TestExecuteToolRequestExecutionLanguage);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.TestExecuteToolRequestExecutionLanguage value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::PromptLayer.TestExecuteToolRequestExecutionLanguageExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageNullable.g.cs
new file mode 100644
index 0000000..a85fb36
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class TestExecuteToolRequestExecutionLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.TestExecuteToolRequestExecutionLanguage? 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.TestExecuteToolRequestExecutionLanguageExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.TestExecuteToolRequestExecutionLanguage)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.TestExecuteToolRequestExecutionLanguage?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.TestExecuteToolRequestExecutionLanguage? 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.TestExecuteToolRequestExecutionLanguageExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionType.g.cs
new file mode 100644
index 0000000..65fa0f3
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class TestExecuteToolRequestExecutionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.TestExecuteToolRequestExecutionType 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.TestExecuteToolRequestExecutionTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.TestExecuteToolRequestExecutionType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.TestExecuteToolRequestExecutionType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.TestExecuteToolRequestExecutionType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::PromptLayer.TestExecuteToolRequestExecutionTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeNullable.g.cs
new file mode 100644
index 0000000..a43c5d4
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class TestExecuteToolRequestExecutionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.TestExecuteToolRequestExecutionType? 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.TestExecuteToolRequestExecutionTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.TestExecuteToolRequestExecutionType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.TestExecuteToolRequestExecutionType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.TestExecuteToolRequestExecutionType? 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.TestExecuteToolRequestExecutionTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolResponseResultStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolResponseResultStatus.g.cs
new file mode 100644
index 0000000..03010ae
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolResponseResultStatus.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class TestExecuteToolResponseResultStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.TestExecuteToolResponseResultStatus 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.TestExecuteToolResponseResultStatusExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.TestExecuteToolResponseResultStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.TestExecuteToolResponseResultStatus);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.TestExecuteToolResponseResultStatus value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::PromptLayer.TestExecuteToolResponseResultStatusExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusNullable.g.cs
new file mode 100644
index 0000000..1663cbb
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace PromptLayer.JsonConverters
+{
+ ///
+ public sealed class TestExecuteToolResponseResultStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::PromptLayer.TestExecuteToolResponseResultStatus? 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.TestExecuteToolResponseResultStatusExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::PromptLayer.TestExecuteToolResponseResultStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::PromptLayer.TestExecuteToolResponseResultStatus?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::PromptLayer.TestExecuteToolResponseResultStatus? 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.TestExecuteToolResponseResultStatusExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs
index b355b05..fc0a1cc 100644
--- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs
@@ -329,6 +329,30 @@ namespace PromptLayer
typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter),
+ typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageNullableJsonConverter),
+
typeof(global::PromptLayer.JsonConverters.ListDatasetsStatusJsonConverter),
typeof(global::PromptLayer.JsonConverters.ListDatasetsStatusNullableJsonConverter),
@@ -429,6 +453,10 @@ namespace PromptLayer
typeof(global::PromptLayer.JsonConverters.GetReportScoreResponseScoreScoreTypeNullableJsonConverter),
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusNullableJsonConverter),
+
typeof(global::PromptLayer.JsonConverters.ContentItemJsonConverter),
typeof(global::PromptLayer.JsonConverters.ContentItem2JsonConverter),
@@ -1074,6 +1102,17 @@ namespace PromptLayer
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddReportColumnRequestColumnType), TypeInfoPropertyName = "AddReportColumnRequestColumnType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RunReportRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecution))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecutionType), TypeInfoPropertyName = "CreateToolRegistryRequestExecutionType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecutionLanguage), TypeInfoPropertyName = "CreateToolRegistryRequestExecutionLanguage2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequestExecution))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequestExecutionType), TypeInfoPropertyName = "CreateToolVersionRequestExecutionType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequestExecutionLanguage), TypeInfoPropertyName = "CreateToolVersionRequestExecutionLanguage2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequestExecution))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequestExecutionType), TypeInfoPropertyName = "TestExecuteToolRequestExecutionType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequestExecutionLanguage), TypeInfoPropertyName = "TestExecuteToolRequestExecutionLanguage2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListDatasetsStatus), TypeInfoPropertyName = "ListDatasetsStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListDatasetsSortBy), TypeInfoPropertyName = "ListDatasetsSortBy2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListDatasetsSortOrder), TypeInfoPropertyName = "ListDatasetsSortOrder2")]
@@ -1146,17 +1185,6 @@ namespace PromptLayer
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsResponseItem))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsResponse2))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsResponse3))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetWorkflowResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetWorkflowResponseNode))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetWorkflowResponseEdge))]
- [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))]
internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
@@ -1484,6 +1512,30 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter),
+ typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeNullableJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageNullableJsonConverter),
+
typeof(global::PromptLayer.JsonConverters.ListDatasetsStatusJsonConverter),
typeof(global::PromptLayer.JsonConverters.ListDatasetsStatusNullableJsonConverter),
@@ -1584,6 +1636,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
typeof(global::PromptLayer.JsonConverters.GetReportScoreResponseScoreScoreTypeNullableJsonConverter),
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusJsonConverter),
+
+ typeof(global::PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusNullableJsonConverter),
+
typeof(global::PromptLayer.JsonConverters.ContentItemJsonConverter),
typeof(global::PromptLayer.JsonConverters.ContentItem2JsonConverter),
@@ -1817,6 +1873,17 @@ 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.ListWorkflowsResponseItem))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsResponse2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsResponse3))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetWorkflowResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetWorkflowResponseNode))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetWorkflowResponseEdge))]
+ [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))]
@@ -1824,6 +1891,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetToolRegistryResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetToolRegistryResponseToolRegistry))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolResponseResult))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolResponseResultStatus), TypeInfoPropertyName = "TestExecuteToolResponseResultStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
@@ -2098,6 +2169,18 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o
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.CreateToolRegistryRequestExecutionTypeJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeNullableJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageNullableJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeNullableJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageNullableJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeNullableJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageNullableJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.ListDatasetsStatusJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.ListDatasetsStatusNullableJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.ListDatasetsSortByJsonConverter());
@@ -2148,6 +2231,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o
options.Converters.Add(new global::PromptLayer.JsonConverters.GetReportResponseStatusNullableJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.GetReportScoreResponseScoreScoreTypeJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.GetReportScoreResponseScoreScoreTypeNullableJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusJsonConverter());
+ options.Converters.Add(new global::PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusNullableJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.ContentItemJsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.ContentItem2JsonConverter());
options.Converters.Add(new global::PromptLayer.JsonConverters.ContentItem3JsonConverter());
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs
index 98db406..d9f9894 100644
--- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs
+++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs
@@ -1672,363 +1672,423 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::PromptLayer.ListDatasetsStatus? Type411 { get; set; }
+ public global::PromptLayer.CreateToolRegistryRequestExecution? Type411 { get; set; }
///
///
///
- public global::PromptLayer.ListDatasetsSortBy? Type412 { get; set; }
+ public global::PromptLayer.CreateToolRegistryRequestExecutionType? Type412 { get; set; }
///
///
///
- public global::PromptLayer.ListDatasetsSortOrder? Type413 { get; set; }
+ public global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? Type413 { get; set; }
///
///
///
- public global::PromptLayer.ListEvaluationsStatus? Type414 { get; set; }
+ public global::PromptLayer.CreateToolVersionRequest? Type414 { get; set; }
///
///
///
- public global::PromptLayer.ListEvaluationsSortBy? Type415 { get; set; }
+ public global::PromptLayer.CreateToolVersionRequestExecution? Type415 { get; set; }
///
///
///
- public global::PromptLayer.ListEvaluationsSortOrder? Type416 { get; set; }
+ public global::PromptLayer.CreateToolVersionRequestExecutionType? Type416 { get; set; }
///
///
///
- public global::PromptLayer.AnyOf>? Type417 { get; set; }
+ public global::PromptLayer.CreateToolVersionRequestExecutionLanguage? Type417 { get; set; }
///
///
///
- public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type418 { get; set; }
+ public global::PromptLayer.TestExecuteToolRequest? Type418 { get; set; }
///
///
///
- public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type419 { get; set; }
+ public global::PromptLayer.TestExecuteToolRequestExecution? Type419 { get; set; }
///
///
///
- public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type420 { get; set; }
+ public global::PromptLayer.TestExecuteToolRequestExecutionType? Type420 { get; set; }
///
///
///
- public long? Type421 { get; set; }
+ public global::PromptLayer.TestExecuteToolRequestExecutionLanguage? Type421 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsSortBy? Type422 { get; set; }
+ public global::PromptLayer.ListDatasetsStatus? Type422 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsSortOrder? Type423 { get; set; }
+ public global::PromptLayer.ListDatasetsSortBy? Type423 { get; set; }
///
///
///
- public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type424 { get; set; }
+ public global::PromptLayer.ListDatasetsSortOrder? Type424 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type425 { get; set; }
+ public global::PromptLayer.ListEvaluationsStatus? Type425 { get; set; }
///
///
///
- public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type426 { get; set; }
+ public global::PromptLayer.ListEvaluationsSortBy? Type426 { get; set; }
///
///
///
- public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type427 { get; set; }
+ public global::PromptLayer.ListEvaluationsSortOrder? Type427 { get; set; }
///
///
///
- public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type428 { get; set; }
+ public global::PromptLayer.AnyOf>? Type428 { get; set; }
///
///
///
- public global::PromptLayer.OneOf>? Type429 { get; set; }
+ public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type429 { get; set; }
///
///
///
- public global::PromptLayer.IngestOtlpTracesContentType? Type430 { get; set; }
+ public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type430 { get; set; }
///
///
///
- public global::PromptLayer.IngestOtlpTracesContentEncoding? Type431 { get; set; }
+ public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type431 { get; set; }
///
///
///
- public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type432 { get; set; }
+ public long? Type432 { get; set; }
///
///
///
- public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type433 { get; set; }
+ public global::PromptLayer.ListWorkflowsSortBy? Type433 { get; set; }
///
///
///
- public global::PromptLayer.GetSkillCollectionPublicFormat? Type434 { get; set; }
+ public global::PromptLayer.ListWorkflowsSortOrder? Type434 { get; set; }
///
///
///
- public global::PromptLayer.GetRequestSearchSuggestionsField? Type435 { get; set; }
+ public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type435 { get; set; }
///
///
///
- public global::PromptLayer.ListToolRegistriesSortBy? Type436 { get; set; }
+ public global::System.Collections.Generic.IList? Type436 { get; set; }
///
///
///
- public global::PromptLayer.ListToolRegistriesSortOrder? Type437 { get; set; }
+ public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type437 { get; set; }
///
///
///
- public global::PromptLayer.OneOf? Type438 { get; set; }
+ public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type438 { get; set; }
///
///
///
- public global::PromptLayer.CreatePromptLabelResponse? Type439 { get; set; }
+ public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type439 { get; set; }
///
///
///
- public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type440 { get; set; }
+ public global::PromptLayer.OneOf>? Type440 { get; set; }
///
///
///
- public global::PromptLayer.TrackGroupResponse? Type441 { get; set; }
+ public global::PromptLayer.IngestOtlpTracesContentType? Type441 { get; set; }
///
///
///
- public global::PromptLayer.TrackScoreResponse? Type442 { get; set; }
+ public global::PromptLayer.IngestOtlpTracesContentEncoding? Type442 { get; set; }
///
///
///
- public global::PromptLayer.DeleteReportsByNameResponse? Type443 { get; set; }
+ public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type443 { get; set; }
///
///
///
- public global::PromptLayer.CreateEvaluationPipelineResponse2? Type444 { get; set; }
+ public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type444 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnResponse? Type445 { get; set; }
+ public global::PromptLayer.GetSkillCollectionPublicFormat? Type445 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnResponse2? Type446 { get; set; }
+ public global::PromptLayer.GetRequestSearchSuggestionsField? Type446 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnResponse3? Type447 { get; set; }
+ public global::PromptLayer.ListToolRegistriesSortBy? Type447 { get; set; }
///
///
///
- public global::PromptLayer.AddReportColumnResponse4? Type448 { get; set; }
+ public global::PromptLayer.ListToolRegistriesSortOrder? Type448 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse? Type449 { get; set; }
+ public global::PromptLayer.OneOf? Type449 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse2? Type450 { get; set; }
+ public global::PromptLayer.CreatePromptLabelResponse? Type450 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse3? Type451 { get; set; }
+ public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type451 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse4? Type452 { get; set; }
+ public global::PromptLayer.TrackGroupResponse? Type452 { get; set; }
///
///
///
- public global::PromptLayer.RunReportResponse5? Type453 { get; set; }
+ public global::PromptLayer.TrackScoreResponse? Type453 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponse? Type454 { get; set; }
+ public global::PromptLayer.DeleteReportsByNameResponse? Type454 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseReport? Type455 { get; set; }
+ public global::PromptLayer.CreateEvaluationPipelineResponse2? Type455 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseStatus? Type456 { get; set; }
+ public global::PromptLayer.AddReportColumnResponse? Type456 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseStats? Type457 { get; set; }
+ public global::PromptLayer.AddReportColumnResponse2? Type457 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseStatsStatusCounts? Type458 { get; set; }
+ public global::PromptLayer.AddReportColumnResponse3? Type458 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type459 { get; set; }
+ public global::PromptLayer.AddReportColumnResponse4? Type459 { get; set; }
///
///
///
- public global::PromptLayer.GetReportResponseReportColumn? Type460 { get; set; }
+ public global::PromptLayer.RunReportResponse? Type460 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponse? Type461 { get; set; }
+ public global::PromptLayer.RunReportResponse2? Type461 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScore? Type462 { get; set; }
+ public global::PromptLayer.RunReportResponse3? Type462 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type463 { get; set; }
+ public global::PromptLayer.RunReportResponse4? Type463 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type464 { get; set; }
+ public global::PromptLayer.RunReportResponse5? Type464 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type465 { get; set; }
+ public global::PromptLayer.GetReportResponse? Type465 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type466 { get; set; }
+ public global::PromptLayer.GetReportResponseReport? Type466 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type467 { get; set; }
+ public global::PromptLayer.GetReportResponseStatus? Type467 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type468 { get; set; }
+ public global::PromptLayer.GetReportResponseStats? Type468 { get; set; }
///
///
///
- public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type469 { get; set; }
+ public global::PromptLayer.GetReportResponseStatsStatusCounts? Type469 { get; set; }
///
///
///
- public global::PromptLayer.ListDatasetsResponse? Type470 { get; set; }
+ public global::System.Collections.Generic.IList? Type470 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type471 { get; set; }
+ public global::PromptLayer.GetReportResponseReportColumn? Type471 { get; set; }
///
///
///
- public global::PromptLayer.ListEvaluationsResponse? Type472 { get; set; }
+ public global::PromptLayer.GetReportScoreResponse? Type472 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type473 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScore? Type473 { get; set; }
///
///
///
- public global::PromptLayer.AnyOf? Type474 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type474 { get; set; }
///
///
///
- public global::PromptLayer.OneOf, object>? Type475 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type475 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type476 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type476 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type477 { get; set; }
+ public global::System.Collections.Generic.IList? Type477 { get; set; }
///
///
///
- public global::PromptLayer.OneOf, object>? Type478 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type478 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type479 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type479 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type480 { get; set; }
+ public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type480 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsResponse? Type481 { get; set; }
+ public global::PromptLayer.ListDatasetsResponse? Type481 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type482 { get; set; }
+ public global::System.Collections.Generic.IList? Type482 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsResponseItem? Type483 { get; set; }
+ public global::PromptLayer.ListEvaluationsResponse? Type483 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsResponse2? Type484 { get; set; }
+ public global::System.Collections.Generic.IList? Type484 { get; set; }
///
///
///
- public global::PromptLayer.ListWorkflowsResponse3? Type485 { get; set; }
+ public global::PromptLayer.AnyOf? Type485 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowResponse? Type486 { get; set; }
+ public global::PromptLayer.OneOf, object>? Type486 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type487 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type487 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowResponseNode? Type488 { get; set; }
+ public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type488 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type489 { get; set; }
+ public global::PromptLayer.OneOf, object>? Type489 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowResponseEdge? Type490 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type490 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowLabelsResponse? Type491 { get; set; }
+ public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type491 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type492 { get; set; }
+ public global::PromptLayer.ListWorkflowsResponse? Type492 { get; set; }
///
///
///
- public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type493 { get; set; }
+ public global::System.Collections.Generic.IList? Type493 { get; set; }
///
///
///
- public global::PromptLayer.AnyOf? Type494 { get; set; }
+ public global::PromptLayer.ListWorkflowsResponseItem? Type494 { get; set; }
///
///
///
- public global::PromptLayer.ListToolRegistriesResponse? Type495 { get; set; }
+ public global::PromptLayer.ListWorkflowsResponse2? Type495 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type496 { get; set; }
+ public global::PromptLayer.ListWorkflowsResponse3? Type496 { get; set; }
///
///
///
- public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type497 { get; set; }
+ public global::PromptLayer.GetWorkflowResponse? Type497 { get; set; }
///
///
///
- public global::PromptLayer.CreateToolRegistryResponse? Type498 { get; set; }
+ public global::System.Collections.Generic.IList? Type498 { get; set; }
///
///
///
- public global::PromptLayer.GetToolRegistryResponse? Type499 { get; set; }
+ public global::PromptLayer.GetWorkflowResponseNode? Type499 { get; set; }
///
///
///
- public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type500 { get; set; }
+ public global::System.Collections.Generic.IList? Type500 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.GetWorkflowResponseEdge? Type501 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.GetWorkflowLabelsResponse? Type502 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type503 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type504 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.AnyOf? Type505 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.ListToolRegistriesResponse? Type506 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type507 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type508 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.CreateToolRegistryResponse? Type509 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.GetToolRegistryResponse? Type510 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type511 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.CreateToolVersionResponse? Type512 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.TestExecuteToolResponse? Type513 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.TestExecuteToolResponseResult? Type514 { get; set; }
+ ///
+ ///
+ ///
+ public global::PromptLayer.TestExecuteToolResponseResultStatus? Type515 { get; set; }
///
///
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequest.g.cs
index a01377a..d04879b 100644
--- a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequest.g.cs
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequest.g.cs
@@ -22,6 +22,12 @@ public sealed partial class CreateToolRegistryRequest
[global::System.Text.Json.Serialization.JsonRequired]
public required object ToolDefinition { get; set; }
+ ///
+ /// Optional human-readable description of the tool
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("description")]
+ public string? Description { get; set; }
+
///
/// Folder ID to place tool in
///
@@ -40,6 +46,12 @@ public sealed partial class CreateToolRegistryRequest
[global::System.Text.Json.Serialization.JsonPropertyName("external_ids")]
public global::System.Collections.Generic.IList? ExternalIds { get; set; }
+ ///
+ /// Optional sandbox-executable body for the tool. When set, PromptLayer auto-runs the body between LLM turns. See the Auto Tool Execution feature page.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("execution")]
+ public global::PromptLayer.CreateToolRegistryRequestExecution? Execution { get; set; }
+
///
/// Additional properties that are not explicitly defined in the schema
///
@@ -55,6 +67,9 @@ public sealed partial class CreateToolRegistryRequest
///
/// Tool definition in OpenAI function-calling format
///
+ ///
+ /// Optional human-readable description of the tool
+ ///
///
/// Folder ID to place tool in
///
@@ -64,21 +79,28 @@ public sealed partial class CreateToolRegistryRequest
///
/// Identifiers from other systems.
///
+ ///
+ /// Optional sandbox-executable body for the tool. When set, PromptLayer auto-runs the body between LLM turns. See the Auto Tool Execution feature page.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public CreateToolRegistryRequest(
string name,
object toolDefinition,
+ string? description,
int? folderId,
string? commitMessage,
- global::System.Collections.Generic.IList? externalIds)
+ global::System.Collections.Generic.IList? externalIds,
+ global::PromptLayer.CreateToolRegistryRequestExecution? execution)
{
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.ToolDefinition = toolDefinition ?? throw new global::System.ArgumentNullException(nameof(toolDefinition));
+ this.Description = description;
this.FolderId = folderId;
this.CommitMessage = commitMessage;
this.ExternalIds = externalIds;
+ this.Execution = execution;
}
///
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecution.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecution.Json.g.cs
new file mode 100644
index 0000000..98047fe
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecution.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class CreateToolRegistryRequestExecution
+ {
+ ///
+ /// 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.CreateToolRegistryRequestExecution? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.CreateToolRegistryRequestExecution),
+ jsonSerializerContext) as global::PromptLayer.CreateToolRegistryRequestExecution;
+ }
+
+ ///
+ /// 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.CreateToolRegistryRequestExecution? 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.CreateToolRegistryRequestExecution),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateToolRegistryRequestExecution;
+ }
+
+ ///
+ /// 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.CreateToolRegistryRequestExecution.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecution.g.cs
new file mode 100644
index 0000000..3847e25
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecution.g.cs
@@ -0,0 +1,68 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ /// Optional sandbox-executable body for the tool. When set, PromptLayer auto-runs the body between LLM turns. See the Auto Tool Execution feature page.
+ ///
+ public sealed partial class CreateToolRegistryRequestExecution
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeJsonConverter))]
+ public global::PromptLayer.CreateToolRegistryRequestExecutionType Type { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("language")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionLanguageJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::PromptLayer.CreateToolRegistryRequestExecutionLanguage Language { get; set; }
+
+ ///
+ /// The function BODY only — the signature `def <name>(args):` (Python) or `function <name>(args) { ... }` (JavaScript) is generated automatically. The LLM's arguments arrive as a single `args` object.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Code { 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.
+ ///
+ ///
+ ///
+ /// The function BODY only — the signature `def <name>(args):` (Python) or `function <name>(args) { ... }` (JavaScript) is generated automatically. The LLM's arguments arrive as a single `args` object.
+ ///
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateToolRegistryRequestExecution(
+ global::PromptLayer.CreateToolRegistryRequestExecutionLanguage language,
+ string code,
+ global::PromptLayer.CreateToolRegistryRequestExecutionType type)
+ {
+ this.Type = type;
+ this.Language = language;
+ this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateToolRegistryRequestExecution()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecutionLanguage.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecutionLanguage.g.cs
new file mode 100644
index 0000000..3a770b7
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecutionLanguage.g.cs
@@ -0,0 +1,51 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public enum CreateToolRegistryRequestExecutionLanguage
+ {
+ ///
+ ///
+ ///
+ Javascript,
+ ///
+ ///
+ ///
+ Python,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class CreateToolRegistryRequestExecutionLanguageExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this CreateToolRegistryRequestExecutionLanguage value)
+ {
+ return value switch
+ {
+ CreateToolRegistryRequestExecutionLanguage.Javascript => "javascript",
+ CreateToolRegistryRequestExecutionLanguage.Python => "python",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static CreateToolRegistryRequestExecutionLanguage? ToEnum(string value)
+ {
+ return value switch
+ {
+ "javascript" => CreateToolRegistryRequestExecutionLanguage.Javascript,
+ "python" => CreateToolRegistryRequestExecutionLanguage.Python,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecutionType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecutionType.g.cs
new file mode 100644
index 0000000..9543513
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolRegistryRequestExecutionType.g.cs
@@ -0,0 +1,45 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public enum CreateToolRegistryRequestExecutionType
+ {
+ ///
+ ///
+ ///
+ Code,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class CreateToolRegistryRequestExecutionTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this CreateToolRegistryRequestExecutionType value)
+ {
+ return value switch
+ {
+ CreateToolRegistryRequestExecutionType.Code => "code",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static CreateToolRegistryRequestExecutionType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "code" => CreateToolRegistryRequestExecutionType.Code,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequest.Json.g.cs
new file mode 100644
index 0000000..5ce4689
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class CreateToolVersionRequest
+ {
+ ///
+ /// 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.CreateToolVersionRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.CreateToolVersionRequest),
+ jsonSerializerContext) as global::PromptLayer.CreateToolVersionRequest;
+ }
+
+ ///
+ /// 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.CreateToolVersionRequest? 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.CreateToolVersionRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateToolVersionRequest;
+ }
+
+ ///
+ /// 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.CreateToolVersionRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequest.g.cs
new file mode 100644
index 0000000..35f92b1
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequest.g.cs
@@ -0,0 +1,69 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateToolVersionRequest
+ {
+ ///
+ /// Tool definition in OpenAI function-calling format
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tool_definition")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required object ToolDefinition { get; set; }
+
+ ///
+ /// Optional sandbox-executable body. When set, PromptLayer auto-runs the body between LLM turns whenever a prompt uses this version. See Auto Tool Execution.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("execution")]
+ public global::PromptLayer.CreateToolVersionRequestExecution? Execution { get; set; }
+
+ ///
+ /// Commit message for the new version
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("commit_message")]
+ public string? CommitMessage { 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.
+ ///
+ ///
+ /// Tool definition in OpenAI function-calling format
+ ///
+ ///
+ /// Optional sandbox-executable body. When set, PromptLayer auto-runs the body between LLM turns whenever a prompt uses this version. See Auto Tool Execution.
+ ///
+ ///
+ /// Commit message for the new version
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateToolVersionRequest(
+ object toolDefinition,
+ global::PromptLayer.CreateToolVersionRequestExecution? execution,
+ string? commitMessage)
+ {
+ this.ToolDefinition = toolDefinition ?? throw new global::System.ArgumentNullException(nameof(toolDefinition));
+ this.Execution = execution;
+ this.CommitMessage = commitMessage;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateToolVersionRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecution.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecution.Json.g.cs
new file mode 100644
index 0000000..65c28d8
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecution.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class CreateToolVersionRequestExecution
+ {
+ ///
+ /// 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.CreateToolVersionRequestExecution? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.CreateToolVersionRequestExecution),
+ jsonSerializerContext) as global::PromptLayer.CreateToolVersionRequestExecution;
+ }
+
+ ///
+ /// 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.CreateToolVersionRequestExecution? 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.CreateToolVersionRequestExecution),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateToolVersionRequestExecution;
+ }
+
+ ///
+ /// 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.CreateToolVersionRequestExecution.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecution.g.cs
new file mode 100644
index 0000000..910775f
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecution.g.cs
@@ -0,0 +1,68 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ /// Optional sandbox-executable body. When set, PromptLayer auto-runs the body between LLM turns whenever a prompt uses this version. See Auto Tool Execution.
+ ///
+ public sealed partial class CreateToolVersionRequestExecution
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionTypeJsonConverter))]
+ public global::PromptLayer.CreateToolVersionRequestExecutionType Type { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("language")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CreateToolVersionRequestExecutionLanguageJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::PromptLayer.CreateToolVersionRequestExecutionLanguage Language { get; set; }
+
+ ///
+ /// The function BODY only — the signature `def <name>(args):` (Python) or `function <name>(args) { ... }` (JavaScript) is generated automatically. LLM arguments arrive as a single `args` object.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Code { 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.
+ ///
+ ///
+ ///
+ /// The function BODY only — the signature `def <name>(args):` (Python) or `function <name>(args) { ... }` (JavaScript) is generated automatically. LLM arguments arrive as a single `args` object.
+ ///
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateToolVersionRequestExecution(
+ global::PromptLayer.CreateToolVersionRequestExecutionLanguage language,
+ string code,
+ global::PromptLayer.CreateToolVersionRequestExecutionType type)
+ {
+ this.Type = type;
+ this.Language = language;
+ this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateToolVersionRequestExecution()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecutionLanguage.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecutionLanguage.g.cs
new file mode 100644
index 0000000..985639b
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecutionLanguage.g.cs
@@ -0,0 +1,51 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public enum CreateToolVersionRequestExecutionLanguage
+ {
+ ///
+ ///
+ ///
+ Javascript,
+ ///
+ ///
+ ///
+ Python,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class CreateToolVersionRequestExecutionLanguageExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this CreateToolVersionRequestExecutionLanguage value)
+ {
+ return value switch
+ {
+ CreateToolVersionRequestExecutionLanguage.Javascript => "javascript",
+ CreateToolVersionRequestExecutionLanguage.Python => "python",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static CreateToolVersionRequestExecutionLanguage? ToEnum(string value)
+ {
+ return value switch
+ {
+ "javascript" => CreateToolVersionRequestExecutionLanguage.Javascript,
+ "python" => CreateToolVersionRequestExecutionLanguage.Python,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecutionType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecutionType.g.cs
new file mode 100644
index 0000000..8fdd8b1
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestExecutionType.g.cs
@@ -0,0 +1,45 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public enum CreateToolVersionRequestExecutionType
+ {
+ ///
+ ///
+ ///
+ Code,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class CreateToolVersionRequestExecutionTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this CreateToolVersionRequestExecutionType value)
+ {
+ return value switch
+ {
+ CreateToolVersionRequestExecutionType.Code => "code",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static CreateToolVersionRequestExecutionType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "code" => CreateToolVersionRequestExecutionType.Code,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestToolDefinition.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestToolDefinition.Json.g.cs
new file mode 100644
index 0000000..3beccab
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestToolDefinition.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class CreateToolVersionRequestToolDefinition
+ {
+ ///
+ /// 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.CreateToolVersionRequestToolDefinition? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.CreateToolVersionRequestToolDefinition),
+ jsonSerializerContext) as global::PromptLayer.CreateToolVersionRequestToolDefinition;
+ }
+
+ ///
+ /// 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.CreateToolVersionRequestToolDefinition? 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.CreateToolVersionRequestToolDefinition),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateToolVersionRequestToolDefinition;
+ }
+
+ ///
+ /// 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.CreateToolVersionRequestToolDefinition.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestToolDefinition.g.cs
new file mode 100644
index 0000000..f2bf1df
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionRequestToolDefinition.g.cs
@@ -0,0 +1,19 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ /// Tool definition in OpenAI function-calling format
+ ///
+ public sealed partial class CreateToolVersionRequestToolDefinition
+ {
+
+ ///
+ /// 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();
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponse.Json.g.cs
new file mode 100644
index 0000000..3874444
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class CreateToolVersionResponse
+ {
+ ///
+ /// 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.CreateToolVersionResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.CreateToolVersionResponse),
+ jsonSerializerContext) as global::PromptLayer.CreateToolVersionResponse;
+ }
+
+ ///
+ /// 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.CreateToolVersionResponse? 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.CreateToolVersionResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateToolVersionResponse;
+ }
+
+ ///
+ /// 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.CreateToolVersionResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponse.g.cs
new file mode 100644
index 0000000..51ab9e0
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponse.g.cs
@@ -0,0 +1,53 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateToolVersionResponse
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ public bool? Success { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("version")]
+ public object? Version { 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.
+ ///
+ ///
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateToolVersionResponse(
+ bool? success,
+ object? version)
+ {
+ this.Success = success;
+ this.Version = version;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateToolVersionResponse()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponseVersion.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponseVersion.Json.g.cs
new file mode 100644
index 0000000..07b8210
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponseVersion.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class CreateToolVersionResponseVersion
+ {
+ ///
+ /// 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.CreateToolVersionResponseVersion? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.CreateToolVersionResponseVersion),
+ jsonSerializerContext) as global::PromptLayer.CreateToolVersionResponseVersion;
+ }
+
+ ///
+ /// 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.CreateToolVersionResponseVersion? 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.CreateToolVersionResponseVersion),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateToolVersionResponseVersion;
+ }
+
+ ///
+ /// 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.CreateToolVersionResponseVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponseVersion.g.cs
new file mode 100644
index 0000000..8bb0863
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateToolVersionResponseVersion.g.cs
@@ -0,0 +1,19 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateToolVersionResponseVersion
+ {
+
+ ///
+ /// 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();
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetToolRegistryResponseToolRegistry.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetToolRegistryResponseToolRegistry.g.cs
index f233bf2..c4fb1a4 100644
--- a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetToolRegistryResponseToolRegistry.g.cs
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetToolRegistryResponseToolRegistry.g.cs
@@ -20,6 +20,12 @@ public sealed partial class GetToolRegistryResponseToolRegistry
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; }
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("description")]
+ public string? Description { get; set; }
+
///
///
///
@@ -33,7 +39,7 @@ public sealed partial class GetToolRegistryResponseToolRegistry
public global::System.Collections.Generic.IList
///
///
+ ///
///
///
- ///
+ ///
+ /// Resolved version object — includes `tool_definition` and (if set) `execution: { type, language, code }`.
+ ///
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
@@ -65,6 +74,7 @@ public sealed partial class GetToolRegistryResponseToolRegistry
public GetToolRegistryResponseToolRegistry(
int? id,
string? name,
+ string? description,
int? workspaceId,
global::System.Collections.Generic.IList
///
///
+ ///
///
///
///
@@ -74,6 +81,7 @@ public sealed partial class ListToolRegistriesResponseToolRegistrie
public ListToolRegistriesResponseToolRegistrie(
int? id,
string? name,
+ string? description,
int? workspaceId,
int? folderId,
string? createdAt,
@@ -82,6 +90,7 @@ public ListToolRegistriesResponseToolRegistrie(
{
this.Id = id;
this.Name = name;
+ this.Description = description;
this.WorkspaceId = workspaceId;
this.FolderId = folderId;
this.CreatedAt = createdAt;
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequest.Json.g.cs
new file mode 100644
index 0000000..4acd7ac
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class TestExecuteToolRequest
+ {
+ ///
+ /// 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.TestExecuteToolRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.TestExecuteToolRequest),
+ jsonSerializerContext) as global::PromptLayer.TestExecuteToolRequest;
+ }
+
+ ///
+ /// 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.TestExecuteToolRequest? 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.TestExecuteToolRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TestExecuteToolRequest;
+ }
+
+ ///
+ /// 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.TestExecuteToolRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequest.g.cs
new file mode 100644
index 0000000..b75650e
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequest.g.cs
@@ -0,0 +1,68 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public sealed partial class TestExecuteToolRequest
+ {
+ ///
+ /// Arguments passed to the tool body. Same shape the LLM would emit — keys match the tool's parameter names.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("inputs")]
+ public object? Inputs { get; set; }
+
+ ///
+ /// In-flight override of the stored execution config. Lets you test unsaved code.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("execution")]
+ public global::PromptLayer.TestExecuteToolRequestExecution? Execution { get; set; }
+
+ ///
+ /// In-flight override of the stored tool definition. Used to test against a different function name without saving.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tool_definition")]
+ public object? ToolDefinition { 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.
+ ///
+ ///
+ /// Arguments passed to the tool body. Same shape the LLM would emit — keys match the tool's parameter names.
+ ///
+ ///
+ /// In-flight override of the stored execution config. Lets you test unsaved code.
+ ///
+ ///
+ /// In-flight override of the stored tool definition. Used to test against a different function name without saving.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public TestExecuteToolRequest(
+ object? inputs,
+ global::PromptLayer.TestExecuteToolRequestExecution? execution,
+ object? toolDefinition)
+ {
+ this.Inputs = inputs;
+ this.Execution = execution;
+ this.ToolDefinition = toolDefinition;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public TestExecuteToolRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecution.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecution.Json.g.cs
new file mode 100644
index 0000000..87b22dc
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecution.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class TestExecuteToolRequestExecution
+ {
+ ///
+ /// 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.TestExecuteToolRequestExecution? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.TestExecuteToolRequestExecution),
+ jsonSerializerContext) as global::PromptLayer.TestExecuteToolRequestExecution;
+ }
+
+ ///
+ /// 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.TestExecuteToolRequestExecution? 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.TestExecuteToolRequestExecution),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TestExecuteToolRequestExecution;
+ }
+
+ ///
+ /// 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.TestExecuteToolRequestExecution.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecution.g.cs
new file mode 100644
index 0000000..5ec9251
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecution.g.cs
@@ -0,0 +1,66 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ /// In-flight override of the stored execution config. Lets you test unsaved code.
+ ///
+ public sealed partial class TestExecuteToolRequestExecution
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionTypeJsonConverter))]
+ public global::PromptLayer.TestExecuteToolRequestExecutionType Type { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("language")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TestExecuteToolRequestExecutionLanguageJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::PromptLayer.TestExecuteToolRequestExecutionLanguage Language { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Code { 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.
+ ///
+ ///
+ ///
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public TestExecuteToolRequestExecution(
+ global::PromptLayer.TestExecuteToolRequestExecutionLanguage language,
+ string code,
+ global::PromptLayer.TestExecuteToolRequestExecutionType type)
+ {
+ this.Type = type;
+ this.Language = language;
+ this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public TestExecuteToolRequestExecution()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecutionLanguage.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecutionLanguage.g.cs
new file mode 100644
index 0000000..129a836
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecutionLanguage.g.cs
@@ -0,0 +1,51 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public enum TestExecuteToolRequestExecutionLanguage
+ {
+ ///
+ ///
+ ///
+ Javascript,
+ ///
+ ///
+ ///
+ Python,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class TestExecuteToolRequestExecutionLanguageExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this TestExecuteToolRequestExecutionLanguage value)
+ {
+ return value switch
+ {
+ TestExecuteToolRequestExecutionLanguage.Javascript => "javascript",
+ TestExecuteToolRequestExecutionLanguage.Python => "python",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static TestExecuteToolRequestExecutionLanguage? ToEnum(string value)
+ {
+ return value switch
+ {
+ "javascript" => TestExecuteToolRequestExecutionLanguage.Javascript,
+ "python" => TestExecuteToolRequestExecutionLanguage.Python,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecutionType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecutionType.g.cs
new file mode 100644
index 0000000..0d8981f
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestExecutionType.g.cs
@@ -0,0 +1,45 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public enum TestExecuteToolRequestExecutionType
+ {
+ ///
+ ///
+ ///
+ Code,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class TestExecuteToolRequestExecutionTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this TestExecuteToolRequestExecutionType value)
+ {
+ return value switch
+ {
+ TestExecuteToolRequestExecutionType.Code => "code",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static TestExecuteToolRequestExecutionType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "code" => TestExecuteToolRequestExecutionType.Code,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestInputs.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestInputs.Json.g.cs
new file mode 100644
index 0000000..b9469b6
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestInputs.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class TestExecuteToolRequestInputs
+ {
+ ///
+ /// 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.TestExecuteToolRequestInputs? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.TestExecuteToolRequestInputs),
+ jsonSerializerContext) as global::PromptLayer.TestExecuteToolRequestInputs;
+ }
+
+ ///
+ /// 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.TestExecuteToolRequestInputs? 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.TestExecuteToolRequestInputs),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TestExecuteToolRequestInputs;
+ }
+
+ ///
+ /// 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.TestExecuteToolRequestInputs.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestInputs.g.cs
new file mode 100644
index 0000000..43e4a27
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestInputs.g.cs
@@ -0,0 +1,19 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ /// Arguments passed to the tool body. Same shape the LLM would emit — keys match the tool's parameter names.
+ ///
+ public sealed partial class TestExecuteToolRequestInputs
+ {
+
+ ///
+ /// 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();
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestToolDefinition.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestToolDefinition.Json.g.cs
new file mode 100644
index 0000000..2419088
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestToolDefinition.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class TestExecuteToolRequestToolDefinition
+ {
+ ///
+ /// 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.TestExecuteToolRequestToolDefinition? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.TestExecuteToolRequestToolDefinition),
+ jsonSerializerContext) as global::PromptLayer.TestExecuteToolRequestToolDefinition;
+ }
+
+ ///
+ /// 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.TestExecuteToolRequestToolDefinition? 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.TestExecuteToolRequestToolDefinition),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TestExecuteToolRequestToolDefinition;
+ }
+
+ ///
+ /// 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.TestExecuteToolRequestToolDefinition.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestToolDefinition.g.cs
new file mode 100644
index 0000000..a4de686
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolRequestToolDefinition.g.cs
@@ -0,0 +1,19 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ /// In-flight override of the stored tool definition. Used to test against a different function name without saving.
+ ///
+ public sealed partial class TestExecuteToolRequestToolDefinition
+ {
+
+ ///
+ /// 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();
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponse.Json.g.cs
new file mode 100644
index 0000000..e093d75
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class TestExecuteToolResponse
+ {
+ ///
+ /// 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.TestExecuteToolResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.TestExecuteToolResponse),
+ jsonSerializerContext) as global::PromptLayer.TestExecuteToolResponse;
+ }
+
+ ///
+ /// 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.TestExecuteToolResponse? 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.TestExecuteToolResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TestExecuteToolResponse;
+ }
+
+ ///
+ /// 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.TestExecuteToolResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponse.g.cs
new file mode 100644
index 0000000..087d439
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponse.g.cs
@@ -0,0 +1,62 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public sealed partial class TestExecuteToolResponse
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ public bool? Success { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("message")]
+ public string? Message { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("result")]
+ public global::PromptLayer.TestExecuteToolResponseResult? Result { 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.
+ ///
+ ///
+ ///
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public TestExecuteToolResponse(
+ bool? success,
+ string? message,
+ global::PromptLayer.TestExecuteToolResponseResult? result)
+ {
+ this.Success = success;
+ this.Message = message;
+ this.Result = result;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public TestExecuteToolResponse()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResult.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResult.Json.g.cs
new file mode 100644
index 0000000..5d15fb7
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResult.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class TestExecuteToolResponseResult
+ {
+ ///
+ /// 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.TestExecuteToolResponseResult? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.TestExecuteToolResponseResult),
+ jsonSerializerContext) as global::PromptLayer.TestExecuteToolResponseResult;
+ }
+
+ ///
+ /// 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.TestExecuteToolResponseResult? 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.TestExecuteToolResponseResult),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TestExecuteToolResponseResult;
+ }
+
+ ///
+ /// 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.TestExecuteToolResponseResult.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResult.g.cs
new file mode 100644
index 0000000..e782b61
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResult.g.cs
@@ -0,0 +1,94 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public sealed partial class TestExecuteToolResponseResult
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TestExecuteToolResponseResultStatusJsonConverter))]
+ public global::PromptLayer.TestExecuteToolResponseResultStatus? Status { get; set; }
+
+ ///
+ /// The tool body's return value (any JSON-serializable type). Present on status="success".
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("result")]
+ public object? Result { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stdout")]
+ public string? Stdout { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stderr")]
+ public string? Stderr { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("duration_ms")]
+ public int? DurationMs { get; set; }
+
+ ///
+ /// Present on status="error". Includes `type` and `message`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ public object? Error { 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.
+ ///
+ ///
+ ///
+ /// The tool body's return value (any JSON-serializable type). Present on status="success".
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Present on status="error". Includes `type` and `message`.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public TestExecuteToolResponseResult(
+ global::PromptLayer.TestExecuteToolResponseResultStatus? status,
+ object? result,
+ string? stdout,
+ string? stderr,
+ int? durationMs,
+ object? error)
+ {
+ this.Status = status;
+ this.Result = result;
+ this.Stdout = stdout;
+ this.Stderr = stderr;
+ this.DurationMs = durationMs;
+ this.Error = error;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public TestExecuteToolResponseResult()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResultError.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResultError.Json.g.cs
new file mode 100644
index 0000000..e7de777
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResultError.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace PromptLayer
+{
+ public sealed partial class TestExecuteToolResponseResultError
+ {
+ ///
+ /// 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.TestExecuteToolResponseResultError? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::PromptLayer.TestExecuteToolResponseResultError),
+ jsonSerializerContext) as global::PromptLayer.TestExecuteToolResponseResultError;
+ }
+
+ ///
+ /// 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.TestExecuteToolResponseResultError? 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.TestExecuteToolResponseResultError),
+ jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TestExecuteToolResponseResultError;
+ }
+
+ ///
+ /// 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.TestExecuteToolResponseResultError.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResultError.g.cs
new file mode 100644
index 0000000..57ddd2f
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResultError.g.cs
@@ -0,0 +1,19 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ /// Present on status="error". Includes `type` and `message`.
+ ///
+ public sealed partial class TestExecuteToolResponseResultError
+ {
+
+ ///
+ /// 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();
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResultStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResultStatus.g.cs
new file mode 100644
index 0000000..f52e7fc
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TestExecuteToolResponseResultStatus.g.cs
@@ -0,0 +1,51 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ ///
+ ///
+ ///
+ public enum TestExecuteToolResponseResultStatus
+ {
+ ///
+ ///
+ ///
+ Error,
+ ///
+ ///
+ ///
+ Success,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class TestExecuteToolResponseResultStatusExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this TestExecuteToolResponseResultStatus value)
+ {
+ return value switch
+ {
+ TestExecuteToolResponseResultStatus.Error => "error",
+ TestExecuteToolResponseResultStatus.Success => "success",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static TestExecuteToolResponseResultStatus? ToEnum(string value)
+ {
+ return value switch
+ {
+ "error" => TestExecuteToolResponseResultStatus.Error,
+ "success" => TestExecuteToolResponseResultStatus.Success,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.CreateToolRegistry.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.CreateToolRegistry.g.cs
index 60a9aae..5e50aa9 100644
--- a/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.CreateToolRegistry.g.cs
+++ b/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.CreateToolRegistry.g.cs
@@ -558,6 +558,9 @@ partial void ProcessCreateToolRegistryResponseContent(
///
/// Tool definition in OpenAI function-calling format
///
+ ///
+ /// Optional human-readable description of the tool
+ ///
///
/// Folder ID to place tool in
///
@@ -567,15 +570,20 @@ partial void ProcessCreateToolRegistryResponseContent(
///
/// Identifiers from other systems.
///
+ ///
+ /// Optional sandbox-executable body for the tool. When set, PromptLayer auto-runs the body between LLM turns. See the Auto Tool Execution feature page.
+ ///
/// 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 CreateToolRegistryAsync(
string name,
object toolDefinition,
+ string? description = default,
int? folderId = default,
string? commitMessage = default,
global::System.Collections.Generic.IList? externalIds = default,
+ global::PromptLayer.CreateToolRegistryRequestExecution? execution = default,
global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -583,9 +591,11 @@ partial void ProcessCreateToolRegistryResponseContent(
{
Name = name,
ToolDefinition = toolDefinition,
+ Description = description,
FolderId = folderId,
CommitMessage = commitMessage,
ExternalIds = externalIds,
+ Execution = execution,
};
return await CreateToolRegistryAsync(
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.CreateToolVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.CreateToolVersion.g.cs
new file mode 100644
index 0000000..6d16a56
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.CreateToolVersion.g.cs
@@ -0,0 +1,524 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ public partial class ToolRegistryClient
+ {
+
+
+ private static readonly global::PromptLayer.EndPointSecurityRequirement s_CreateToolVersionSecurityRequirement0 =
+ 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_CreateToolVersionSecurityRequirements =
+ new global::PromptLayer.EndPointSecurityRequirement[]
+ { s_CreateToolVersionSecurityRequirement0,
+ };
+ partial void PrepareCreateToolVersionArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string identifier,
+ global::PromptLayer.CreateToolVersionRequest request);
+ partial void PrepareCreateToolVersionRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string identifier,
+ global::PromptLayer.CreateToolVersionRequest request);
+ partial void ProcessCreateToolVersionResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreateToolVersionResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Create Tool Version
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// 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 CreateToolVersionAsync(
+ string identifier,
+
+ global::PromptLayer.CreateToolVersionRequest request,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateToolVersionAsResponseAsync(
+ identifier: identifier,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create Tool Version
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// 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> CreateToolVersionAsResponseAsync(
+ string identifier,
+
+ global::PromptLayer.CreateToolVersionRequest request,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateToolVersionArguments(
+ httpClient: HttpClient,
+ identifier: ref identifier,
+ request: request);
+
+
+ var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateToolVersionSecurityRequirements,
+ operationName: "CreateToolVersionAsync");
+
+ 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/tool-registry/{identifier}/versions",
+ 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);
+ PrepareCreateToolVersionRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ identifier: identifier!,
+ 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: "CreateToolVersion",
+ methodName: "CreateToolVersionAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/versions\"",
+ 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: "CreateToolVersion",
+ methodName: "CreateToolVersionAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/versions\"",
+ 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: "CreateToolVersion",
+ methodName: "CreateToolVersionAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/versions\"",
+ 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);
+ ProcessCreateToolVersionResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateToolVersion",
+ methodName: "CreateToolVersionAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/versions\"",
+ 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: "CreateToolVersion",
+ methodName: "CreateToolVersionAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/versions\"",
+ 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);
+ }
+ //
+ if ((int)__response.StatusCode == 404)
+ {
+ string? __content_404 = null;
+ global::System.Exception? __exception_404 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ }
+ }
+ 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,
+ 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);
+ ProcessCreateToolVersionResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::PromptLayer.CreateToolVersionResponse.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.CreateToolVersionResponse.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();
+ }
+ }
+ ///
+ /// Create Tool Version
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// Tool definition in OpenAI function-calling format
+ ///
+ ///
+ /// Optional sandbox-executable body. When set, PromptLayer auto-runs the body between LLM turns whenever a prompt uses this version. See Auto Tool Execution.
+ ///
+ ///
+ /// Commit message for the new version
+ ///
+ /// 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 CreateToolVersionAsync(
+ string identifier,
+ object toolDefinition,
+ global::PromptLayer.CreateToolVersionRequestExecution? execution = default,
+ string? commitMessage = default,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::PromptLayer.CreateToolVersionRequest
+ {
+ ToolDefinition = toolDefinition,
+ Execution = execution,
+ CommitMessage = commitMessage,
+ };
+
+ return await CreateToolVersionAsync(
+ identifier: identifier,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.TestExecuteTool.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.TestExecuteTool.g.cs
new file mode 100644
index 0000000..9324256
--- /dev/null
+++ b/src/libs/PromptLayer/Generated/PromptLayer.ToolRegistryClient.TestExecuteTool.g.cs
@@ -0,0 +1,630 @@
+
+#nullable enable
+
+namespace PromptLayer
+{
+ public partial class ToolRegistryClient
+ {
+
+
+ private static readonly global::PromptLayer.EndPointSecurityRequirement s_TestExecuteToolSecurityRequirement0 =
+ 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_TestExecuteToolSecurityRequirements =
+ new global::PromptLayer.EndPointSecurityRequirement[]
+ { s_TestExecuteToolSecurityRequirement0,
+ };
+ partial void PrepareTestExecuteToolArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string identifier,
+ ref string? label,
+ ref string? version,
+ global::PromptLayer.TestExecuteToolRequest request);
+ partial void PrepareTestExecuteToolRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string identifier,
+ string? label,
+ string? version,
+ global::PromptLayer.TestExecuteToolRequest request);
+ partial void ProcessTestExecuteToolResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessTestExecuteToolResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Test Execute Tool
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied.
+ ///
+ ///
+ /// Resolve by specific version number
+ ///
+ ///
+ /// 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 TestExecuteToolAsync(
+ string identifier,
+
+ global::PromptLayer.TestExecuteToolRequest request,
+ string? label = default,
+ string? version = default,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await TestExecuteToolAsResponseAsync(
+ identifier: identifier,
+
+ request: request,
+ label: label,
+ version: version,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Test Execute Tool
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied.
+ ///
+ ///
+ /// Resolve by specific version number
+ ///
+ ///
+ /// 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> TestExecuteToolAsResponseAsync(
+ string identifier,
+
+ global::PromptLayer.TestExecuteToolRequest request,
+ string? label = default,
+ string? version = default,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareTestExecuteToolArguments(
+ httpClient: HttpClient,
+ identifier: ref identifier,
+ label: ref label,
+ version: ref version,
+ request: request);
+
+
+ var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_TestExecuteToolSecurityRequirements,
+ operationName: "TestExecuteToolAsync");
+
+ 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/tool-registry/{identifier}/test-execute",
+ baseUri: HttpClient.BaseAddress);
+ __pathBuilder
+ .AddOptionalParameter("label", label)
+ .AddOptionalParameter("version", version)
+ ;
+ 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);
+ PrepareTestExecuteToolRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ identifier: identifier!,
+ label: label,
+ version: version,
+ 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: "TestExecuteTool",
+ methodName: "TestExecuteToolAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/test-execute\"",
+ 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: "TestExecuteTool",
+ methodName: "TestExecuteToolAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/test-execute\"",
+ 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: "TestExecuteTool",
+ methodName: "TestExecuteToolAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/test-execute\"",
+ 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);
+ ProcessTestExecuteToolResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "TestExecuteTool",
+ methodName: "TestExecuteToolAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/test-execute\"",
+ 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: "TestExecuteTool",
+ methodName: "TestExecuteToolAsync",
+ pathTemplate: "$\"/api/public/v2/tool-registry/{identifier}/test-execute\"",
+ 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);
+ }
+ //
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ }
+ }
+ 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,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 404)
+ {
+ string? __content_404 = null;
+ global::System.Exception? __exception_404 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ }
+ }
+ 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,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 502)
+ {
+ string? __content_502 = null;
+ global::System.Exception? __exception_502 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_502 = __ex;
+ }
+
+ throw new global::PromptLayer.ApiException(
+ message: __content_502 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_502,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_502,
+ 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);
+ ProcessTestExecuteToolResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::PromptLayer.TestExecuteToolResponse.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.TestExecuteToolResponse.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();
+ }
+ }
+ ///
+ /// Test Execute Tool
+ ///
+ ///
+ /// Tool ID (numeric) or name
+ ///
+ ///
+ /// Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied.
+ ///
+ ///
+ /// Resolve by specific version number
+ ///
+ ///
+ /// Arguments passed to the tool body. Same shape the LLM would emit — keys match the tool's parameter names.
+ ///
+ ///
+ /// In-flight override of the stored execution config. Lets you test unsaved code.
+ ///
+ ///
+ /// In-flight override of the stored tool definition. Used to test against a different function name without saving.
+ ///
+ /// 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 TestExecuteToolAsync(
+ string identifier,
+ string? label = default,
+ string? version = default,
+ object? inputs = default,
+ global::PromptLayer.TestExecuteToolRequestExecution? execution = default,
+ object? toolDefinition = default,
+ global::PromptLayer.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::PromptLayer.TestExecuteToolRequest
+ {
+ Inputs = inputs,
+ Execution = execution,
+ ToolDefinition = toolDefinition,
+ };
+
+ return await TestExecuteToolAsync(
+ identifier: identifier,
+ label: label,
+ version: version,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/PromptLayer/openapi.json b/src/libs/PromptLayer/openapi.json
index d938a00..5e0fd74 100644
--- a/src/libs/PromptLayer/openapi.json
+++ b/src/libs/PromptLayer/openapi.json
@@ -7259,6 +7259,10 @@
"name": {
"type": "string"
},
+ "description": {
+ "type": "string",
+ "nullable": true
+ },
"workspace_id": {
"type": "integer"
},
@@ -7418,6 +7422,11 @@
"type": "object",
"description": "Tool definition in OpenAI function-calling format"
},
+ "description": {
+ "type": "string",
+ "description": "Optional human-readable description of the tool",
+ "nullable": true
+ },
"folder_id": {
"type": "integer",
"description": "Folder ID to place tool in",
@@ -7434,6 +7443,35 @@
"$ref": "#/components/schemas/ExternalId"
},
"description": "Identifiers from other systems."
+ },
+ "execution": {
+ "type": "object",
+ "description": "Optional sandbox-executable body for the tool. When set, PromptLayer auto-runs the body between LLM turns. See the Auto Tool Execution feature page.",
+ "nullable": true,
+ "required": [
+ "type",
+ "language",
+ "code"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "code"
+ ]
+ },
+ "language": {
+ "type": "string",
+ "enum": [
+ "python",
+ "javascript"
+ ]
+ },
+ "code": {
+ "type": "string",
+ "description": "The function BODY only — the signature `def (args):` (Python) or `function (args) { ... }` (JavaScript) is generated automatically. The LLM's arguments arrive as a single `args` object."
+ }
+ }
}
}
}
@@ -7547,6 +7585,10 @@
"name": {
"type": "string"
},
+ "description": {
+ "type": "string",
+ "nullable": true
+ },
"workspace_id": {
"type": "integer"
},
@@ -7558,7 +7600,8 @@
},
"version": {
"type": "object",
- "nullable": true
+ "nullable": true,
+ "description": "Resolved version object — includes `tool_definition` and (if set) `execution: { type, language, code }`."
},
"tool_definition": {
"type": "object",
@@ -8988,6 +9031,249 @@
}
}
},
+ "/api/public/v2/tool-registry/{identifier}/versions": {
+ "post": {
+ "tags": [
+ "tool-registry"
+ ],
+ "summary": "Create Tool Version",
+ "operationId": "create_tool_version",
+ "parameters": [
+ {
+ "name": "identifier",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "Tool ID (numeric) or name"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "tool_definition"
+ ],
+ "properties": {
+ "tool_definition": {
+ "type": "object",
+ "description": "Tool definition in OpenAI function-calling format"
+ },
+ "execution": {
+ "type": "object",
+ "description": "Optional sandbox-executable body. When set, PromptLayer auto-runs the body between LLM turns whenever a prompt uses this version. See Auto Tool Execution.",
+ "nullable": true,
+ "required": [
+ "type",
+ "language",
+ "code"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "code"
+ ]
+ },
+ "language": {
+ "type": "string",
+ "enum": [
+ "python",
+ "javascript"
+ ]
+ },
+ "code": {
+ "type": "string",
+ "description": "The function BODY only — the signature `def (args):` (Python) or `function (args) { ... }` (JavaScript) is generated automatically. LLM arguments arrive as a single `args` object."
+ }
+ }
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the new version",
+ "nullable": true
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "Version created",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "success": {
+ "type": "boolean"
+ },
+ "version": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Tool not found"
+ }
+ }
+ }
+ },
+ "/api/public/v2/tool-registry/{identifier}/test-execute": {
+ "post": {
+ "tags": [
+ "tool-registry"
+ ],
+ "summary": "Test Execute Tool",
+ "operationId": "test_execute_tool",
+ "parameters": [
+ {
+ "name": "identifier",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "Tool ID (numeric) or name"
+ }
+ },
+ {
+ "name": "label",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "description": "Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied."
+ }
+ },
+ {
+ "name": "version",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "description": "Resolve by specific version number"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "inputs": {
+ "type": "object",
+ "description": "Arguments passed to the tool body. Same shape the LLM would emit — keys match the tool's parameter names.",
+ "additionalProperties": true
+ },
+ "execution": {
+ "type": "object",
+ "description": "In-flight override of the stored execution config. Lets you test unsaved code.",
+ "nullable": true,
+ "required": [
+ "type",
+ "language",
+ "code"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "code"
+ ]
+ },
+ "language": {
+ "type": "string",
+ "enum": [
+ "python",
+ "javascript"
+ ]
+ },
+ "code": {
+ "type": "string"
+ }
+ }
+ },
+ "tool_definition": {
+ "type": "object",
+ "description": "In-flight override of the stored tool definition. Used to test against a different function name without saving.",
+ "nullable": true
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Tool executed (success or user-code error). User-code errors return status=\"error\" inside the result object — they do NOT raise.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "success": {
+ "type": "boolean"
+ },
+ "message": {
+ "type": "string"
+ },
+ "result": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "success",
+ "error"
+ ]
+ },
+ "result": {
+ "description": "The tool body's return value (any JSON-serializable type). Present on status=\"success\".",
+ "nullable": true
+ },
+ "stdout": {
+ "type": "string"
+ },
+ "stderr": {
+ "type": "string"
+ },
+ "duration_ms": {
+ "type": "integer"
+ },
+ "error": {
+ "type": "object",
+ "nullable": true,
+ "description": "Present on status=\"error\". Includes `type` and `message`."
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Missing execution config or function name"
+ },
+ "404": {
+ "description": "Tool or version not found"
+ },
+ "502": {
+ "description": "Sandbox infrastructure failure"
+ }
+ }
+ }
+ },
"/api/public/v2/tool-registry/{tool_id}/external-ids": {
"post": {
"tags": [