diff --git a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs
index 6978a60..8922b0e 100644
--- a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs
+++ b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs
@@ -54,7 +54,7 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent(
/// 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 ChatAgentsAgentIdSessionsSessionIdChatPostAsync(
+ public async global::System.Threading.Tasks.Task ChatAgentsAgentIdSessionsSessionIdChatPostAsync(
string agentId,
string sessionId,
@@ -82,7 +82,7 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent(
/// 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> ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync(
+ public async global::System.Threading.Tasks.Task> ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync(
string agentId,
string sessionId,
@@ -411,13 +411,11 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- var __value = global::Phoenix.AssistantMessageMetadata.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::Phoenix.AutoSDKHttpResponse(
+ return new global::Phoenix.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Phoenix.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -439,19 +437,17 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent(
try
{
__response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
+ var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
__effectiveCancellationToken
#endif
).ConfigureAwait(false);
- var __value = await global::Phoenix.AssistantMessageMetadata.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::Phoenix.AutoSDKHttpResponse(
+ return new global::Phoenix.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Phoenix.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs
index ec32e9a..b89edf4 100644
--- a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs
+++ b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs
@@ -13,7 +13,7 @@ public partial interface IChatClient
/// 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 ChatAgentsAgentIdSessionsSessionIdChatPostAsync(
+ global::System.Threading.Tasks.Task ChatAgentsAgentIdSessionsSessionIdChatPostAsync(
string agentId,
string sessionId,
@@ -29,7 +29,7 @@ public partial interface IChatClient
/// 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> ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync(
string agentId,
string sessionId,
diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ToolCallProviderMetadataToolExecutionEnvironment.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ToolCallProviderMetadataToolExecutionEnvironment.g.cs
new file mode 100644
index 0000000..1565f01
--- /dev/null
+++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ToolCallProviderMetadataToolExecutionEnvironment.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Phoenix.JsonConverters
+{
+ ///
+ public sealed class ToolCallProviderMetadataToolExecutionEnvironmentJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment 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::Phoenix.ToolCallProviderMetadataToolExecutionEnvironmentExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironmentExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ToolCallProviderMetadataToolExecutionEnvironmentNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ToolCallProviderMetadataToolExecutionEnvironmentNullable.g.cs
new file mode 100644
index 0000000..0af5c97
--- /dev/null
+++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ToolCallProviderMetadataToolExecutionEnvironmentNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Phoenix.JsonConverters
+{
+ ///
+ public sealed class ToolCallProviderMetadataToolExecutionEnvironmentNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment? 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::Phoenix.ToolCallProviderMetadataToolExecutionEnvironmentExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment? 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::Phoenix.ToolCallProviderMetadataToolExecutionEnvironmentExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs
index c9de8b9..38c3636 100644
--- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs
+++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs
@@ -293,6 +293,10 @@ namespace Phoenix
typeof(global::Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderTypeNullableJsonConverter),
+ typeof(global::Phoenix.JsonConverters.ToolCallProviderMetadataToolExecutionEnvironmentJsonConverter),
+
+ typeof(global::Phoenix.JsonConverters.ToolCallProviderMetadataToolExecutionEnvironmentNullableJsonConverter),
+
typeof(global::Phoenix.JsonConverters.UploadDatasetRequestActionJsonConverter),
typeof(global::Phoenix.JsonConverters.UploadDatasetRequestActionNullableJsonConverter),
@@ -842,6 +846,8 @@ namespace Phoenix
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeRequestModelDiscriminator))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeRequestModelDiscriminatorProviderType), TypeInfoPropertyName = "SummarizeRequestModelDiscriminatorProviderType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolCallProviderMetadata))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment), TypeInfoPropertyName = "ToolCallProviderMetadataToolExecutionEnvironment2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UploadDatasetRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UploadDatasetRequestAction), TypeInfoPropertyName = "UploadDatasetRequestAction2_3")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList, object>>))]
diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs
index a18f3d9..1b30cc1 100644
--- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs
+++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs
@@ -1652,63 +1652,71 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Phoenix.UploadDatasetRequest? Type406 { get; set; }
+ public global::Phoenix.ToolCallProviderMetadata? Type406 { get; set; }
///
///
///
- public global::Phoenix.UploadDatasetRequestAction? Type407 { get; set; }
+ public global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment? Type407 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList, object>>? Type408 { get; set; }
+ public global::Phoenix.UploadDatasetRequest? Type408 { get; set; }
///
///
///
- public global::Phoenix.OneOf, object>? Type409 { get; set; }
+ public global::Phoenix.UploadDatasetRequestAction? Type409 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList>? Type410 { get; set; }
+ public global::System.Collections.Generic.IList, object>>? Type410 { get; set; }
///
///
///
- public global::Phoenix.OneOf? Type411 { get; set; }
+ public global::Phoenix.OneOf, object>? Type411 { get; set; }
///
///
///
- public global::Phoenix.UploadDatasetRequest2? Type412 { get; set; }
+ public global::System.Collections.Generic.IList>? Type412 { get; set; }
///
///
///
- public global::Phoenix.UploadDatasetRequestAction2? Type413 { get; set; }
+ public global::Phoenix.OneOf? Type413 { get; set; }
///
///
///
- public byte[]? Type414 { get; set; }
+ public global::Phoenix.UploadDatasetRequest2? Type414 { get; set; }
///
///
///
- public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type415 { get; set; }
+ public global::Phoenix.UploadDatasetRequestAction2? Type415 { get; set; }
///
///
///
- public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type416 { get; set; }
+ public byte[]? Type416 { get; set; }
///
///
///
- public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type417 { get; set; }
+ public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type417 { get; set; }
///
///
///
- public global::Phoenix.ListProjectTracesSort? Type418 { get; set; }
+ public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type418 { get; set; }
///
///
///
- public global::Phoenix.ListProjectTracesOrder? Type419 { get; set; }
+ public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type419 { get; set; }
///
///
///
- public global::Phoenix.ListProjectSessionsOrder? Type420 { get; set; }
+ public global::Phoenix.ListProjectTracesSort? Type420 { get; set; }
+ ///
+ ///
+ ///
+ public global::Phoenix.ListProjectTracesOrder? Type421 { get; set; }
+ ///
+ ///
+ ///
+ public global::Phoenix.ListProjectSessionsOrder? Type422 { get; set; }
///
///
diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostResponse.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostResponse.Json.g.cs
new file mode 100644
index 0000000..21f58cd
--- /dev/null
+++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Phoenix
+{
+ public sealed partial class ChatAgentsAgentIdSessionsSessionIdChatPostResponse
+ {
+ ///
+ /// 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::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostResponse),
+ jsonSerializerContext) as global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostResponse;
+ }
+
+ ///
+ /// 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::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostResponse? 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::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostResponse;
+ }
+
+ ///
+ /// 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/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostResponse.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostResponse.g.cs
new file mode 100644
index 0000000..10fbc05
--- /dev/null
+++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostResponse.g.cs
@@ -0,0 +1,19 @@
+
+#nullable enable
+
+namespace Phoenix
+{
+ ///
+ ///
+ ///
+ public sealed partial class ChatAgentsAgentIdSessionsSessionIdChatPostResponse
+ {
+
+ ///
+ /// 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/Phoenix/Generated/Phoenix.Models.ToolCallProviderMetadata.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ToolCallProviderMetadata.Json.g.cs
new file mode 100644
index 0000000..9d97fe0
--- /dev/null
+++ b/src/libs/Phoenix/Generated/Phoenix.Models.ToolCallProviderMetadata.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Phoenix
+{
+ public sealed partial class ToolCallProviderMetadata
+ {
+ ///
+ /// 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::Phoenix.ToolCallProviderMetadata? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Phoenix.ToolCallProviderMetadata),
+ jsonSerializerContext) as global::Phoenix.ToolCallProviderMetadata;
+ }
+
+ ///
+ /// 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::Phoenix.ToolCallProviderMetadata? 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::Phoenix.ToolCallProviderMetadata),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ToolCallProviderMetadata;
+ }
+
+ ///
+ /// 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/Phoenix/Generated/Phoenix.Models.ToolCallProviderMetadata.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ToolCallProviderMetadata.g.cs
new file mode 100644
index 0000000..9711d01
--- /dev/null
+++ b/src/libs/Phoenix/Generated/Phoenix.Models.ToolCallProviderMetadata.g.cs
@@ -0,0 +1,48 @@
+
+#nullable enable
+
+namespace Phoenix
+{
+ ///
+ /// Payload Phoenix stamps under the ``phoenix`` namespace of Vercel AI
+ /// ``providerMetadata`` on tool-call chunks (``tool-input-start`` and
+ /// ``tool-input-available``).
+ ///
+ public sealed partial class ToolCallProviderMetadata
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tool_execution_environment")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ToolCallProviderMetadataToolExecutionEnvironmentJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment ToolExecutionEnvironment { 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 ToolCallProviderMetadata(
+ global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment toolExecutionEnvironment)
+ {
+ this.ToolExecutionEnvironment = toolExecutionEnvironment;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public ToolCallProviderMetadata()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ToolCallProviderMetadataToolExecutionEnvironment.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ToolCallProviderMetadataToolExecutionEnvironment.g.cs
new file mode 100644
index 0000000..9529020
--- /dev/null
+++ b/src/libs/Phoenix/Generated/Phoenix.Models.ToolCallProviderMetadataToolExecutionEnvironment.g.cs
@@ -0,0 +1,51 @@
+
+#nullable enable
+
+namespace Phoenix
+{
+ ///
+ ///
+ ///
+ public enum ToolCallProviderMetadataToolExecutionEnvironment
+ {
+ ///
+ ///
+ ///
+ Client,
+ ///
+ ///
+ ///
+ Server,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class ToolCallProviderMetadataToolExecutionEnvironmentExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this ToolCallProviderMetadataToolExecutionEnvironment value)
+ {
+ return value switch
+ {
+ ToolCallProviderMetadataToolExecutionEnvironment.Client => "client",
+ ToolCallProviderMetadataToolExecutionEnvironment.Server => "server",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static ToolCallProviderMetadataToolExecutionEnvironment? ToEnum(string value)
+ {
+ return value switch
+ {
+ "client" => ToolCallProviderMetadataToolExecutionEnvironment.Client,
+ "server" => ToolCallProviderMetadataToolExecutionEnvironment.Server,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Phoenix/openapi.json b/src/libs/Phoenix/openapi.json
index cc83069..cdcc4fe 100644
--- a/src/libs/Phoenix/openapi.json
+++ b/src/libs/Phoenix/openapi.json
@@ -6529,12 +6529,10 @@
},
"responses": {
"200": {
- "description": "Vercel-AI-style SSE stream. The turn ends with a `message-metadata` chunk whose `messageMetadata` payload matches `AssistantMessageMetadata`. Declared here so the model is included in the generated OpenAPI components.",
+ "description": "Successful Response",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/AssistantMessageMetadata"
- }
+ "schema": {}
}
}
},
@@ -15438,6 +15436,25 @@
"summary"
],
"title": "_SummarizeResponse"
+ },
+ "ToolCallProviderMetadata": {
+ "additionalProperties": false,
+ "description": "Payload Phoenix stamps under the ``phoenix`` namespace of Vercel AI\n``providerMetadata`` on tool-call chunks (``tool-input-start`` and\n``tool-input-available``).",
+ "properties": {
+ "tool_execution_environment": {
+ "enum": [
+ "client",
+ "server"
+ ],
+ "title": "Tool Execution Environment",
+ "type": "string"
+ }
+ },
+ "required": [
+ "tool_execution_environment"
+ ],
+ "title": "ToolCallProviderMetadata",
+ "type": "object"
}
}
},