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 @@ -32,6 +32,8 @@ public class BetaFunctionToolCallOutputResourceJsonConverter : global::System.Te
if (__jsonProps.Contains("call_id")) __score0++;
if (__jsonProps.Contains("caller")) __score0++;
if (__jsonProps.Contains("id")) __score0++;
if (__jsonProps.Contains("name")) __score0++;
if (__jsonProps.Contains("namespace")) __score0++;
if (__jsonProps.Contains("output")) __score0++;
if (__jsonProps.Contains("status")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ public class BetaItemFieldJsonConverter : global::System.Text.Json.Serialization
if (__jsonProps.Contains("call_id")) __score10++;
if (__jsonProps.Contains("caller")) __score10++;
if (__jsonProps.Contains("id")) __score10++;
if (__jsonProps.Contains("name")) __score10++;
if (__jsonProps.Contains("namespace")) __score10++;
if (__jsonProps.Contains("output")) __score10++;
if (__jsonProps.Contains("status")) __score10++;
if (__jsonProps.Contains("type")) __score10++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J
if (__jsonProps.Contains("call_id")) __score0++;
if (__jsonProps.Contains("caller")) __score0++;
if (__jsonProps.Contains("id")) __score0++;
if (__jsonProps.Contains("name")) __score0++;
if (__jsonProps.Contains("namespace")) __score0++;
if (__jsonProps.Contains("output")) __score0++;
if (__jsonProps.Contains("status")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso
if (__jsonProps.Contains("call_id")) __score7++;
if (__jsonProps.Contains("caller")) __score7++;
if (__jsonProps.Contains("id")) __score7++;
if (__jsonProps.Contains("name")) __score7++;
if (__jsonProps.Contains("namespace")) __score7++;
if (__jsonProps.Contains("output")) __score7++;
if (__jsonProps.Contains("status")) __score7++;
if (__jsonProps.Contains("type")) __score7++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37336,7 +37336,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseUsage))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PromptCacheOptions))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Moderation))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Conversation22))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseConversation))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEventType), TypeInfoPropertyName = "ResponseAudioDeltaEventType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent))]
Expand Down Expand Up @@ -60121,7 +60121,7 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputItem), TypeInfoPropertyName = "BetaOutputItem2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaPromptCacheOptions))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModeration))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaConversation2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseConversation))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Input5), TypeInfoPropertyName = "Input52")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModerationResultBody))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModerationErrorBody))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7984,7 +7984,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.Conversation22? Type1989 { get; set; }
public global::tryAGI.OpenAI.ResponseConversation? Type1989 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -14296,7 +14296,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.BetaConversation2? Type3567 { get; set; }
public global::tryAGI.OpenAI.BetaResponseConversation? Type3567 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ public sealed partial class BetaFunctionCallOutputItemParam
[global::System.Text.Json.Serialization.JsonRequired]
public required global::tryAGI.OpenAI.OneOf<string, global::System.Collections.Generic.IList<global::tryAGI.OpenAI.OutputVariant2Item2>> Output { get; set; }

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

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

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -73,6 +85,8 @@ public sealed partial class BetaFunctionCallOutputItemParam
/// </param>
/// <param name="agent"></param>
/// <param name="id"></param>
/// <param name="name"></param>
/// <param name="namespace"></param>
/// <param name="caller"></param>
/// <param name="status"></param>
/// <param name="type">
Expand All @@ -87,6 +101,8 @@ public BetaFunctionCallOutputItemParam(
global::tryAGI.OpenAI.OneOf<string, global::System.Collections.Generic.IList<global::tryAGI.OpenAI.OutputVariant2Item2>> output,
global::tryAGI.OpenAI.BetaAgentTagParam? agent,
string? id,
string? name,
string? @namespace,
global::tryAGI.OpenAI.BetaToolCallCallerParam? caller,
global::tryAGI.OpenAI.BetaFunctionCallItemStatus? status,
global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType type = global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType.FunctionCallOutput)
Expand All @@ -96,6 +112,8 @@ public BetaFunctionCallOutputItemParam(
this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId));
this.Type = type;
this.Output = output;
this.Name = name;
this.Namespace = @namespace;
this.Caller = caller;
this.Status = status;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
#nullable enable

namespace tryAGI.OpenAI
{
public sealed partial class BetaFunctionCallOutputItemParamName
{
/// <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 generated default JsonSerializerContext.
/// </summary>
public string ToJson()
{
return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default);
}

/// <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)
{
if (jsonSerializerOptions is null)
{
return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

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

/// <summary>
/// Deserializes a JSON string using the generated default JsonSerializerContext.
/// </summary>
public static global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamName? FromJson(
string json)
{
return FromJson(
json,
global::tryAGI.OpenAI.SourceGenerationContext.Default);
}

/// <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::tryAGI.OpenAI.BetaFunctionCallOutputItemParamName? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
if (jsonSerializerOptions is null)
{
return FromJson(
json,
global::tryAGI.OpenAI.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.Deserialize<global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamName>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamName?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamName),
jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamName;
}

/// <summary>
/// Deserializes a JSON stream using the generated default JsonSerializerContext.
/// </summary>
public static global::System.Threading.Tasks.ValueTask<global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamName?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream)
{
return FromJsonStreamAsync(
jsonStream,
global::tryAGI.OpenAI.SourceGenerationContext.Default);
}

/// <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::tryAGI.OpenAI.BetaFunctionCallOutputItemParamName?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
if (jsonSerializerOptions is null)
{
return FromJsonStreamAsync(
jsonStream,
global::tryAGI.OpenAI.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamName?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#nullable enable

namespace tryAGI.OpenAI
{
/// <summary>
///
/// </summary>
public sealed partial class BetaFunctionCallOutputItemParamName
{

/// <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>();

}
}
Loading