Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public sealed partial class DynamicToolApprovalRequestedPart
[global::System.Text.Json.Serialization.JsonRequired]
public required string ToolCallId { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("title")]
public string? Title { get; set; }

/// <summary>
/// Default Value: approval-requested
/// </summary>
Expand All @@ -41,6 +47,12 @@ public sealed partial class DynamicToolApprovalRequestedPart
[global::System.Text.Json.Serialization.JsonRequired]
public required object Input { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("providerExecuted")]
public bool? ProviderExecuted { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -69,9 +81,11 @@ public sealed partial class DynamicToolApprovalRequestedPart
/// <param name="type">
/// Default Value: dynamic-tool
/// </param>
/// <param name="title"></param>
/// <param name="state">
/// Default Value: approval-requested
/// </param>
/// <param name="providerExecuted"></param>
/// <param name="callProviderMetadata"></param>
/// <param name="approval"></param>
#if NET7_0_OR_GREATER
Expand All @@ -82,15 +96,19 @@ public DynamicToolApprovalRequestedPart(
string toolCallId,
object input,
string? type,
string? title,
string? state,
bool? providerExecuted,
global::System.Collections.Generic.Dictionary<string, object>? callProviderMetadata,
global::Phoenix.AnyOf<global::Phoenix.ToolApprovalRequested, global::Phoenix.ToolApprovalResponded, object>? approval)
{
this.Type = type;
this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName));
this.ToolCallId = toolCallId ?? throw new global::System.ArgumentNullException(nameof(toolCallId));
this.Title = title;
this.State = state;
this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input));
this.ProviderExecuted = providerExecuted;
this.CallProviderMetadata = callProviderMetadata;
this.Approval = approval;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#nullable enable

namespace Phoenix
{
public sealed partial class DynamicToolApprovalRequestedPartProviderExecuted
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#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);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::Phoenix.DynamicToolApprovalRequestedPartProviderExecuted? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Phoenix.DynamicToolApprovalRequestedPartProviderExecuted),
jsonSerializerContext) as global::Phoenix.DynamicToolApprovalRequestedPartProviderExecuted;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#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.DynamicToolApprovalRequestedPartProviderExecuted? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Phoenix.DynamicToolApprovalRequestedPartProviderExecuted>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::Phoenix.DynamicToolApprovalRequestedPartProviderExecuted?> 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.DynamicToolApprovalRequestedPartProviderExecuted),
jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.DynamicToolApprovalRequestedPartProviderExecuted;
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
/// </summary>
#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<global::Phoenix.DynamicToolApprovalRequestedPartProviderExecuted?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Phoenix.DynamicToolApprovalRequestedPartProviderExecuted?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#nullable enable

namespace Phoenix
{
/// <summary>
///
/// </summary>
public sealed partial class DynamicToolApprovalRequestedPartProviderExecuted
{

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

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

namespace Phoenix
{
public sealed partial class DynamicToolApprovalRequestedPartTitle
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#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);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::Phoenix.DynamicToolApprovalRequestedPartTitle? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Phoenix.DynamicToolApprovalRequestedPartTitle),
jsonSerializerContext) as global::Phoenix.DynamicToolApprovalRequestedPartTitle;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#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.DynamicToolApprovalRequestedPartTitle? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Phoenix.DynamicToolApprovalRequestedPartTitle>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::Phoenix.DynamicToolApprovalRequestedPartTitle?> 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.DynamicToolApprovalRequestedPartTitle),
jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.DynamicToolApprovalRequestedPartTitle;
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
/// </summary>
#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<global::Phoenix.DynamicToolApprovalRequestedPartTitle?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Phoenix.DynamicToolApprovalRequestedPartTitle?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#nullable enable

namespace Phoenix
{
/// <summary>
///
/// </summary>
public sealed partial class DynamicToolApprovalRequestedPartTitle
{

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public sealed partial class DynamicToolApprovalRespondedPart
[global::System.Text.Json.Serialization.JsonRequired]
public required string ToolCallId { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("title")]
public string? Title { get; set; }

/// <summary>
/// Default Value: approval-responded
/// </summary>
Expand All @@ -41,6 +47,12 @@ public sealed partial class DynamicToolApprovalRespondedPart
[global::System.Text.Json.Serialization.JsonRequired]
public required object Input { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("providerExecuted")]
public bool? ProviderExecuted { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -69,9 +81,11 @@ public sealed partial class DynamicToolApprovalRespondedPart
/// <param name="type">
/// Default Value: dynamic-tool
/// </param>
/// <param name="title"></param>
/// <param name="state">
/// Default Value: approval-responded
/// </param>
/// <param name="providerExecuted"></param>
/// <param name="callProviderMetadata"></param>
/// <param name="approval"></param>
#if NET7_0_OR_GREATER
Expand All @@ -82,15 +96,19 @@ public DynamicToolApprovalRespondedPart(
string toolCallId,
object input,
string? type,
string? title,
string? state,
bool? providerExecuted,
global::System.Collections.Generic.Dictionary<string, object>? callProviderMetadata,
global::Phoenix.AnyOf<global::Phoenix.ToolApprovalRequested, global::Phoenix.ToolApprovalResponded, object>? approval)
{
this.Type = type;
this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName));
this.ToolCallId = toolCallId ?? throw new global::System.ArgumentNullException(nameof(toolCallId));
this.Title = title;
this.State = state;
this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input));
this.ProviderExecuted = providerExecuted;
this.CallProviderMetadata = callProviderMetadata;
this.Approval = approval;
}
Expand Down
Loading