diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.1.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/AnyOf.1.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/OneOf.1.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/AnyOf.1.Json.g.cs index 9c78eadf..411096bb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.1.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/AnyOf.1.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public readonly partial struct OneOf + public readonly partial struct AnyOf { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.OneOf? FromJson( + public static global::tryAGI.OpenAI.AnyOf? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.OneOf), - jsonSerializerContext) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.AnyOf), + jsonSerializerContext) as global::tryAGI.OpenAI.AnyOf?; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.OneOf? FromJson( + public static global::tryAGI.OpenAI.AnyOf? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize>( + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + 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::tryAGI.OpenAI.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnyOf?; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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?>( + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.1.g.cs b/src/libs/tryAGI.OpenAI/Generated/AnyOf.1.g.cs similarity index 85% rename from src/libs/tryAGI.OpenAI/Generated/OneOf.1.g.cs rename to src/libs/tryAGI.OpenAI/Generated/AnyOf.1.g.cs index d59cb4d1..b5503c52 100644 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/AnyOf.1.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public readonly partial struct OneOf : global::System.IEquatable> + public readonly partial struct AnyOf : global::System.IEquatable> { /// /// @@ -28,17 +28,17 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); + public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); /// /// /// - public static implicit operator T1?(OneOf @this) => @this.Value1; + public static implicit operator T1?(AnyOf @this) => @this.Value1; /// /// /// - public OneOf(T1? value) + public AnyOf(T1? value) { Value1 = value; } @@ -125,7 +125,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(OneOf other) + public bool Equals(AnyOf other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) @@ -135,15 +135,15 @@ public bool Equals(OneOf other) /// /// /// - public static bool operator ==(OneOf obj1, OneOf obj2) + public static bool operator ==(AnyOf obj1, AnyOf obj2) { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(OneOf obj1, OneOf obj2) + public static bool operator !=(AnyOf obj1, AnyOf obj2) { return !(obj1 == obj2); } @@ -153,7 +153,7 @@ public bool Equals(OneOf other) /// public override bool Equals(object? obj) { - return obj is OneOf o && Equals(o); + return obj is AnyOf o && Equals(o); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.3.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/AnyOf.3.Json.g.cs similarity index 88% rename from src/libs/tryAGI.OpenAI/Generated/OneOf.3.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/AnyOf.3.Json.g.cs index 7d583374..47d4f5ca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.3.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/AnyOf.3.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public readonly partial struct OneOf + public readonly partial struct AnyOf { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.OneOf? FromJson( + public static global::tryAGI.OpenAI.AnyOf? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.OneOf), - jsonSerializerContext) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.AnyOf), + jsonSerializerContext) as global::tryAGI.OpenAI.AnyOf?; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.OneOf? FromJson( + public static global::tryAGI.OpenAI.AnyOf? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize>( + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + 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::tryAGI.OpenAI.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnyOf?; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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?>( + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.3.g.cs b/src/libs/tryAGI.OpenAI/Generated/AnyOf.3.g.cs similarity index 83% rename from src/libs/tryAGI.OpenAI/Generated/OneOf.3.g.cs rename to src/libs/tryAGI.OpenAI/Generated/AnyOf.3.g.cs index 5944470f..e00cf181 100644 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/AnyOf.3.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public readonly partial struct OneOf : global::System.IEquatable> + public readonly partial struct AnyOf : global::System.IEquatable> { /// /// @@ -28,17 +28,17 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); + public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); /// /// /// - public static implicit operator T1?(OneOf @this) => @this.Value1; + public static implicit operator T1?(AnyOf @this) => @this.Value1; /// /// /// - public OneOf(T1? value) + public AnyOf(T1? value) { Value1 = value; } @@ -63,17 +63,17 @@ public OneOf(T1? value) /// /// /// - public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); + public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); /// /// /// - public static implicit operator T2?(OneOf @this) => @this.Value2; + public static implicit operator T2?(AnyOf @this) => @this.Value2; /// /// /// - public OneOf(T2? value) + public AnyOf(T2? value) { Value2 = value; } @@ -98,17 +98,17 @@ public OneOf(T2? value) /// /// /// - public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); + public static implicit operator AnyOf(T3 value) => new AnyOf((T3?)value); /// /// /// - public static implicit operator T3?(OneOf @this) => @this.Value3; + public static implicit operator T3?(AnyOf @this) => @this.Value3; /// /// /// - public OneOf(T3? value) + public AnyOf(T3? value) { Value3 = value; } @@ -116,7 +116,7 @@ public OneOf(T3? value) /// /// /// - public OneOf( + public AnyOf( T1? value1, T2? value2, T3? value3 @@ -150,7 +150,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 || !IsValue1 && IsValue2 && !IsValue3 || !IsValue1 && !IsValue2 && IsValue3; + return IsValue1 || IsValue2 || IsValue3; } /// @@ -237,7 +237,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(OneOf other) + public bool Equals(AnyOf other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && @@ -249,15 +249,15 @@ public bool Equals(OneOf other) /// /// /// - public static bool operator ==(OneOf obj1, OneOf obj2) + public static bool operator ==(AnyOf obj1, AnyOf obj2) { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(OneOf obj1, OneOf obj2) + public static bool operator !=(AnyOf obj1, AnyOf obj2) { return !(obj1 == obj2); } @@ -267,7 +267,7 @@ public bool Equals(OneOf other) /// public override bool Equals(object? obj) { - return obj is OneOf o && Equals(o); + return obj is AnyOf o && Equals(o); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.4.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/AnyOf.4.Json.g.cs similarity index 88% rename from src/libs/tryAGI.OpenAI/Generated/OneOf.4.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/AnyOf.4.Json.g.cs index 8d38ba36..a00313dc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.4.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/AnyOf.4.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public readonly partial struct OneOf + public readonly partial struct AnyOf { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.OneOf? FromJson( + public static global::tryAGI.OpenAI.AnyOf? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.OneOf), - jsonSerializerContext) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.AnyOf), + jsonSerializerContext) as global::tryAGI.OpenAI.AnyOf?; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.OneOf? FromJson( + public static global::tryAGI.OpenAI.AnyOf? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize>( + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + 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::tryAGI.OpenAI.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnyOf?; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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?>( + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.4.g.cs b/src/libs/tryAGI.OpenAI/Generated/AnyOf.4.g.cs similarity index 82% rename from src/libs/tryAGI.OpenAI/Generated/OneOf.4.g.cs rename to src/libs/tryAGI.OpenAI/Generated/AnyOf.4.g.cs index 8956c0ed..e1576318 100644 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/AnyOf.4.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public readonly partial struct OneOf : global::System.IEquatable> + public readonly partial struct AnyOf : global::System.IEquatable> { /// /// @@ -28,17 +28,17 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); + public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); /// /// /// - public static implicit operator T1?(OneOf @this) => @this.Value1; + public static implicit operator T1?(AnyOf @this) => @this.Value1; /// /// /// - public OneOf(T1? value) + public AnyOf(T1? value) { Value1 = value; } @@ -63,17 +63,17 @@ public OneOf(T1? value) /// /// /// - public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); + public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); /// /// /// - public static implicit operator T2?(OneOf @this) => @this.Value2; + public static implicit operator T2?(AnyOf @this) => @this.Value2; /// /// /// - public OneOf(T2? value) + public AnyOf(T2? value) { Value2 = value; } @@ -98,17 +98,17 @@ public OneOf(T2? value) /// /// /// - public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); + public static implicit operator AnyOf(T3 value) => new AnyOf((T3?)value); /// /// /// - public static implicit operator T3?(OneOf @this) => @this.Value3; + public static implicit operator T3?(AnyOf @this) => @this.Value3; /// /// /// - public OneOf(T3? value) + public AnyOf(T3? value) { Value3 = value; } @@ -133,17 +133,17 @@ public OneOf(T3? value) /// /// /// - public static implicit operator OneOf(T4 value) => new OneOf((T4?)value); + public static implicit operator AnyOf(T4 value) => new AnyOf((T4?)value); /// /// /// - public static implicit operator T4?(OneOf @this) => @this.Value4; + public static implicit operator T4?(AnyOf @this) => @this.Value4; /// /// /// - public OneOf(T4? value) + public AnyOf(T4? value) { Value4 = value; } @@ -151,7 +151,7 @@ public OneOf(T4? value) /// /// /// - public OneOf( + public AnyOf( T1? value1, T2? value2, T3? value3, @@ -189,7 +189,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4; + return IsValue1 || IsValue2 || IsValue3 || IsValue4; } /// @@ -288,7 +288,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(OneOf other) + public bool Equals(AnyOf other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && @@ -301,15 +301,15 @@ public bool Equals(OneOf other) /// /// /// - public static bool operator ==(OneOf obj1, OneOf obj2) + public static bool operator ==(AnyOf obj1, AnyOf obj2) { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(OneOf obj1, OneOf obj2) + public static bool operator !=(AnyOf obj1, AnyOf obj2) { return !(obj1 == obj2); } @@ -319,7 +319,7 @@ public bool Equals(OneOf other) /// public override bool Equals(object? obj) { - return obj is OneOf o && Equals(o); + return obj is AnyOf o && Equals(o); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.5.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/AnyOf.5.Json.g.cs similarity index 87% rename from src/libs/tryAGI.OpenAI/Generated/OneOf.5.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/AnyOf.5.Json.g.cs index be119bdb..2baf5f30 100644 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.5.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/AnyOf.5.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public readonly partial struct OneOf + public readonly partial struct AnyOf { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.OneOf? FromJson( + public static global::tryAGI.OpenAI.AnyOf? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.OneOf), - jsonSerializerContext) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.AnyOf), + jsonSerializerContext) as global::tryAGI.OpenAI.AnyOf?; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.OneOf? FromJson( + public static global::tryAGI.OpenAI.AnyOf? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize>( + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + 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::tryAGI.OpenAI.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AnyOf?; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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?>( + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.5.g.cs b/src/libs/tryAGI.OpenAI/Generated/AnyOf.5.g.cs similarity index 81% rename from src/libs/tryAGI.OpenAI/Generated/OneOf.5.g.cs rename to src/libs/tryAGI.OpenAI/Generated/AnyOf.5.g.cs index 3ef481d0..6ecace0c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/AnyOf.5.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public readonly partial struct OneOf : global::System.IEquatable> + public readonly partial struct AnyOf : global::System.IEquatable> { /// /// @@ -28,17 +28,17 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); + public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); /// /// /// - public static implicit operator T1?(OneOf @this) => @this.Value1; + public static implicit operator T1?(AnyOf @this) => @this.Value1; /// /// /// - public OneOf(T1? value) + public AnyOf(T1? value) { Value1 = value; } @@ -63,17 +63,17 @@ public OneOf(T1? value) /// /// /// - public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); + public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); /// /// /// - public static implicit operator T2?(OneOf @this) => @this.Value2; + public static implicit operator T2?(AnyOf @this) => @this.Value2; /// /// /// - public OneOf(T2? value) + public AnyOf(T2? value) { Value2 = value; } @@ -98,17 +98,17 @@ public OneOf(T2? value) /// /// /// - public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); + public static implicit operator AnyOf(T3 value) => new AnyOf((T3?)value); /// /// /// - public static implicit operator T3?(OneOf @this) => @this.Value3; + public static implicit operator T3?(AnyOf @this) => @this.Value3; /// /// /// - public OneOf(T3? value) + public AnyOf(T3? value) { Value3 = value; } @@ -133,17 +133,17 @@ public OneOf(T3? value) /// /// /// - public static implicit operator OneOf(T4 value) => new OneOf((T4?)value); + public static implicit operator AnyOf(T4 value) => new AnyOf((T4?)value); /// /// /// - public static implicit operator T4?(OneOf @this) => @this.Value4; + public static implicit operator T4?(AnyOf @this) => @this.Value4; /// /// /// - public OneOf(T4? value) + public AnyOf(T4? value) { Value4 = value; } @@ -168,17 +168,17 @@ public OneOf(T4? value) /// /// /// - public static implicit operator OneOf(T5 value) => new OneOf((T5?)value); + public static implicit operator AnyOf(T5 value) => new AnyOf((T5?)value); /// /// /// - public static implicit operator T5?(OneOf @this) => @this.Value5; + public static implicit operator T5?(AnyOf @this) => @this.Value5; /// /// /// - public OneOf(T5? value) + public AnyOf(T5? value) { Value5 = value; } @@ -186,7 +186,7 @@ public OneOf(T5? value) /// /// /// - public OneOf( + public AnyOf( T1? value1, T2? value2, T3? value3, @@ -228,7 +228,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5; + return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5; } /// @@ -339,7 +339,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(OneOf other) + public bool Equals(AnyOf other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && @@ -353,15 +353,15 @@ public bool Equals(OneOf other) /// /// /// - public static bool operator ==(OneOf obj1, OneOf obj2) + public static bool operator ==(AnyOf obj1, AnyOf obj2) { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(OneOf obj1, OneOf obj2) + public static bool operator !=(AnyOf obj1, AnyOf obj2) { return !(obj1 == obj2); } @@ -371,7 +371,7 @@ public bool Equals(OneOf other) /// public override bool Equals(object? obj) { - return obj is OneOf o && Equals(o); + return obj is AnyOf o && Equals(o); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.9.g.cs b/src/libs/tryAGI.OpenAI/Generated/OneOf.9.g.cs deleted file mode 100644 index 14e9ce2f..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.9.g.cs +++ /dev/null @@ -1,585 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// - /// - public readonly partial struct OneOf : global::System.IEquatable> - { - /// - /// - /// -#if NET6_0_OR_GREATER - public T1? Value1 { get; init; } -#else - public T1? Value1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] -#endif - public bool IsValue1 => Value1 != null; - - /// - /// - /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); - - /// - /// - /// - public static implicit operator T1?(OneOf @this) => @this.Value1; - - /// - /// - /// - public OneOf(T1? value) - { - Value1 = value; - } - - /// - /// - /// -#if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; - - /// - /// - /// - public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); - - /// - /// - /// - public static implicit operator T2?(OneOf @this) => @this.Value2; - - /// - /// - /// - public OneOf(T2? value) - { - Value2 = value; - } - - /// - /// - /// -#if NET6_0_OR_GREATER - public T3? Value3 { get; init; } -#else - public T3? Value3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] -#endif - public bool IsValue3 => Value3 != null; - - /// - /// - /// - public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); - - /// - /// - /// - public static implicit operator T3?(OneOf @this) => @this.Value3; - - /// - /// - /// - public OneOf(T3? value) - { - Value3 = value; - } - - /// - /// - /// -#if NET6_0_OR_GREATER - public T4? Value4 { get; init; } -#else - public T4? Value4 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] -#endif - public bool IsValue4 => Value4 != null; - - /// - /// - /// - public static implicit operator OneOf(T4 value) => new OneOf((T4?)value); - - /// - /// - /// - public static implicit operator T4?(OneOf @this) => @this.Value4; - - /// - /// - /// - public OneOf(T4? value) - { - Value4 = value; - } - - /// - /// - /// -#if NET6_0_OR_GREATER - public T5? Value5 { get; init; } -#else - public T5? Value5 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] -#endif - public bool IsValue5 => Value5 != null; - - /// - /// - /// - public static implicit operator OneOf(T5 value) => new OneOf((T5?)value); - - /// - /// - /// - public static implicit operator T5?(OneOf @this) => @this.Value5; - - /// - /// - /// - public OneOf(T5? value) - { - Value5 = value; - } - - /// - /// - /// -#if NET6_0_OR_GREATER - public T6? Value6 { get; init; } -#else - public T6? Value6 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value6))] -#endif - public bool IsValue6 => Value6 != null; - - /// - /// - /// - public static implicit operator OneOf(T6 value) => new OneOf((T6?)value); - - /// - /// - /// - public static implicit operator T6?(OneOf @this) => @this.Value6; - - /// - /// - /// - public OneOf(T6? value) - { - Value6 = value; - } - - /// - /// - /// -#if NET6_0_OR_GREATER - public T7? Value7 { get; init; } -#else - public T7? Value7 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value7))] -#endif - public bool IsValue7 => Value7 != null; - - /// - /// - /// - public static implicit operator OneOf(T7 value) => new OneOf((T7?)value); - - /// - /// - /// - public static implicit operator T7?(OneOf @this) => @this.Value7; - - /// - /// - /// - public OneOf(T7? value) - { - Value7 = value; - } - - /// - /// - /// -#if NET6_0_OR_GREATER - public T8? Value8 { get; init; } -#else - public T8? Value8 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value8))] -#endif - public bool IsValue8 => Value8 != null; - - /// - /// - /// - public static implicit operator OneOf(T8 value) => new OneOf((T8?)value); - - /// - /// - /// - public static implicit operator T8?(OneOf @this) => @this.Value8; - - /// - /// - /// - public OneOf(T8? value) - { - Value8 = value; - } - - /// - /// - /// -#if NET6_0_OR_GREATER - public T9? Value9 { get; init; } -#else - public T9? Value9 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value9))] -#endif - public bool IsValue9 => Value9 != null; - - /// - /// - /// - public static implicit operator OneOf(T9 value) => new OneOf((T9?)value); - - /// - /// - /// - public static implicit operator T9?(OneOf @this) => @this.Value9; - - /// - /// - /// - public OneOf(T9? value) - { - Value9 = value; - } - - /// - /// - /// - public OneOf( - T1? value1, - T2? value2, - T3? value3, - T4? value4, - T5? value5, - T6? value6, - T7? value7, - T8? value8, - T9? value9 - ) - { - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - Value5 = value5; - Value6 = value6; - Value7 = value7; - Value8 = value8; - Value9 = value9; - } - - /// - /// - /// - public object? Object => - Value9 as object ?? - Value8 as object ?? - Value7 as object ?? - Value6 as object ?? - Value5 as object ?? - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object - ; - - /// - /// - /// - public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() ?? - Value4?.ToString() ?? - Value5?.ToString() ?? - Value6?.ToString() ?? - Value7?.ToString() ?? - Value8?.ToString() ?? - Value9?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && IsValue7 && !IsValue8 && !IsValue9 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && IsValue8 && !IsValue9 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && IsValue9; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - global::System.Func? value5 = null, - global::System.Func? value6 = null, - global::System.Func? value7 = null, - global::System.Func? value8 = null, - global::System.Func? value9 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1 && value1 != null) - { - return value1(Value1!); - } - else if (IsValue2 && value2 != null) - { - return value2(Value2!); - } - else if (IsValue3 && value3 != null) - { - return value3(Value3!); - } - else if (IsValue4 && value4 != null) - { - return value4(Value4!); - } - else if (IsValue5 && value5 != null) - { - return value5(Value5!); - } - else if (IsValue6 && value6 != null) - { - return value6(Value6!); - } - else if (IsValue7 && value7 != null) - { - return value7(Value7!); - } - else if (IsValue8 && value8 != null) - { - return value8(Value8!); - } - else if (IsValue9 && value9 != null) - { - return value9(Value9!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - global::System.Action? value5 = null, - global::System.Action? value6 = null, - global::System.Action? value7 = null, - global::System.Action? value8 = null, - global::System.Action? value9 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1) - { - value1?.Invoke(Value1!); - } - else if (IsValue2) - { - value2?.Invoke(Value2!); - } - else if (IsValue3) - { - value3?.Invoke(Value3!); - } - else if (IsValue4) - { - value4?.Invoke(Value4!); - } - else if (IsValue5) - { - value5?.Invoke(Value5!); - } - else if (IsValue6) - { - value6?.Invoke(Value6!); - } - else if (IsValue7) - { - value7?.Invoke(Value7!); - } - else if (IsValue8) - { - value8?.Invoke(Value8!); - } - else if (IsValue9) - { - value9?.Invoke(Value9!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Value1, - typeof(T1), - Value2, - typeof(T2), - Value3, - typeof(T3), - Value4, - typeof(T4), - Value5, - typeof(T5), - Value6, - typeof(T6), - Value7, - typeof(T7), - Value8, - typeof(T8), - Value9, - typeof(T9), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(OneOf other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value6, other.Value6) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value7, other.Value7) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value8, other.Value8) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value9, other.Value9) - ; - } - - /// - /// - /// - public static bool operator ==(OneOf obj1, OneOf obj2) - { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(OneOf obj1, OneOf obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is OneOf o && Equals(o); - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI..JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI..JsonSerializerContext.g.cs index a35d6f84..2c139e57 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI..JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI..JsonSerializerContext.g.cs @@ -55,8 +55,8 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RunToolCallObjectTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectRequiredActionTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectStatusJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStatusJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStatusNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionEnumNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsNamedToolChoiceTypeJsonConverter), @@ -113,10 +113,6 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventVariant2EventNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeJsonConverter), @@ -195,10 +191,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventVariant5EventNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ErrorEventEventJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ErrorEventEventNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventDataJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventDataNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventEventJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventEventNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantSupportedModelsNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AudioResponseFormatJsonConverter), @@ -277,8 +273,14 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatModelJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatModelNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyRequestParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ClickButtonJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ClickButtonNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ClickTypeJsonConverter), @@ -337,6 +339,8 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolEnvironmentNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerUsePreviewToolTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileResourceObjectJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileResourceObjectNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileListResourceObjectNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceExpiresAfterAnchorJsonConverter), @@ -371,8 +375,6 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseModalitieJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseModalitieNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeJsonConverter), @@ -487,8 +489,8 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FilePurposeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FilePurposeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierJsonConverter), @@ -571,10 +573,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.MessageRequestContentTextObjectTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateMessageRequestRoleNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ModerationImageURLInputTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ModerationImageURLInputTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ModerationTextInputTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ModerationTextInputTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestModelNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItemJsonConverter), @@ -655,6 +657,8 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamStatusNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemContentItemTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemContentItemTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemStatusNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemSummaryItemTypeJsonConverter), @@ -701,8 +705,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestWithoutStreamModelJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestWithoutStreamModelNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.VadConfigTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.VadConfigTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionIncludeJsonConverter), @@ -743,6 +749,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreFileResponseObjectNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.DeleteVectorStoreResponseObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventDataJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventDataNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventEventJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DoneEventEventNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.EvalCustomDataSourceConfigTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.EvalLogsDataSourceConfigTypeJsonConverter), @@ -881,10 +891,6 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ListModelsResponseObjectNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ListPaginatedFineTuningJobsResponseObjectNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.StaticChunkingStrategyResponseParamTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectLastErrorCodeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectJsonConverter), @@ -1029,6 +1035,8 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateRequestTurnDetectionTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseObjectNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseStatusJsonConverter), @@ -1107,6 +1115,8 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeRateLimitsUpdatedTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeRateLimitsUpdatedRateLimitNameJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeRateLimitsUpdatedRateLimitNameNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedConversationObjectJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedConversationObjectNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemCreatedTypeJsonConverter), @@ -1279,10 +1289,6 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationAddedEventTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseQueuedEventTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventTypeJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventPartTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryPartAddedEventTypeJsonConverter), @@ -1295,6 +1301,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDeltaEventTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryTextDoneEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeJsonConverter), @@ -1309,8 +1319,6 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallInProgressEventTypeNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseWebSearchCallSearchingEventTypeNullableJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyEnumNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UploadObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UploadObjectNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UploadStatusJsonConverter), @@ -1547,12 +1555,23 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ListVectorStoreFilesFilterNullableJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantToolJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantStreamEventJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RunStreamEventJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RunStepStreamEventJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectStepDetailsJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectDeltaStepDetailsJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.MessageStreamEventJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.TextAnnotationJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentDeltaJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.TextAnnotationDeltaJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPartJsonConverter), @@ -1560,32 +1579,53 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPartJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyResponseJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputsItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResourceJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.Content6JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputContentJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateModelResponsePropertiesJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsSharedJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.StopConfigurationJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessagesJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.TemplateItemJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.SourceJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalItemJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.Source2JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalRequestDataSourceConfigJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.TestingCriteriaItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderStringCheckJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarityJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderPythonJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderScoreModelJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessages2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.TextResponseFormatConfigurationJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.Source3JsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolsItemJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContentVariant2ItemJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputVariant3ItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateResponseJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ModelIdsResponsesJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ItemJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseJsonUsageJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.EvalDataSourceConfigJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.EvalGraderLabelModelJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunDataSourceJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FiltersJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessageJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.IntegrationsItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResourceJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallResourceJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventJsonConverter), @@ -1598,135 +1638,98 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RunGraderRequestGraderJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResultItemJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::tryAGI.OpenAI.MCPToolAllowedTools>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, global::tryAGI.OpenAI.MCPToolAllowedTools>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>), typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), - typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter), })] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs index 2742d402..a1d2ca22 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs @@ -24,6 +24,7 @@ partial void ProcessCancelRunResponseContent( ref string content); /// + /// Cancel a run
/// Cancels a run that is `in_progress`. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateAssistant.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateAssistant.g.cs index eaedad3c..4c5089e5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateAssistant.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateAssistant.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateAssistantResponseContent( ref string content); /// + /// Create assistant
/// Create an assistant with a model and instructions. ///
/// @@ -169,6 +170,7 @@ partial void ProcessCreateAssistantResponseContent( } /// + /// Create assistant
/// Create an assistant with a model and instructions. ///
/// @@ -185,7 +187,7 @@ partial void ProcessCreateAssistantResponseContent( /// with a maximum length of 512 characters. /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.
+ /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.
/// Example: gpt-4o /// /// @@ -201,8 +203,8 @@ partial void ProcessCreateAssistantResponseContent( /// Default Value: medium /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -238,7 +240,7 @@ partial void ProcessCreateAssistantResponseContent( global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat = default, double? temperature = default, global::tryAGI.OpenAI.CreateAssistantRequestToolResources? toolResources = default, - global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.IList? tools = default, double? topP = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs index f26cf4b2..e11be246 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs @@ -24,6 +24,7 @@ partial void ProcessCreateMessageResponseContent( ref string content); /// + /// Create message
/// Create a message. ///
/// @@ -175,6 +176,7 @@ partial void ProcessCreateMessageResponseContent( } /// + /// Create message
/// Create a message. ///
/// @@ -201,7 +203,7 @@ partial void ProcessCreateMessageResponseContent( #endif public async global::System.Threading.Tasks.Task CreateMessageAsync( string threadId, - global::tryAGI.OpenAI.OneOf>> content, + global::tryAGI.OpenAI.AnyOf> content, global::tryAGI.OpenAI.CreateMessageRequestRole role, global::System.Collections.Generic.IList? attachments = default, global::System.Collections.Generic.Dictionary? metadata = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs index 236edd07..9fc3db74 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs @@ -26,6 +26,7 @@ partial void ProcessCreateRunResponseContent( ref string content); /// + /// Create run
/// Create a run. ///
/// @@ -184,6 +185,7 @@ partial void ProcessCreateRunResponseContent( } /// + /// Create run
/// Create a run. ///
/// @@ -195,10 +197,10 @@ partial void ProcessCreateRunResponseContent( /// Adds additional messages to the thread before creating the run. /// /// - /// The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. /// /// - /// Overrides the [instructions](/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. + /// Overrides the [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. /// /// /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. @@ -214,11 +216,10 @@ partial void ProcessCreateRunResponseContent( /// with a maximum length of 512 characters. /// /// - /// The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- /// Example: gpt-4o + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. /// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// /// **o-series models only**
@@ -230,8 +231,8 @@ partial void ProcessCreateRunResponseContent( /// Default Value: medium /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -284,7 +285,7 @@ partial void ProcessCreateRunResponseContent( bool? stream = default, double? temperature = default, global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? toolChoice = default, - global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.IList? tools = default, double? topP = default, global::tryAGI.OpenAI.TruncationObject? truncationStrategy = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs index c656d97d..a8fbe1d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateThreadResponseContent( ref string content); /// + /// Create thread
/// Create a thread. ///
/// @@ -169,10 +170,11 @@ partial void ProcessCreateThreadResponseContent( } /// + /// Create thread
/// Create a thread. ///
/// - /// A list of [messages](/docs/api-reference/messages) to start the thread with. + /// A list of [messages](https://platform.openai.com/docs/api-reference/messages) to start the thread with. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs index 4f4bf901..e9a7cf67 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateThreadAndRunResponseContent( ref string content); /// + /// Create thread and run
/// Create a thread and run it in one request. ///
/// @@ -169,10 +170,11 @@ partial void ProcessCreateThreadAndRunResponseContent( } /// + /// Create thread and run
/// Create a thread and run it in one request. ///
/// - /// The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. /// /// /// Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis. @@ -191,15 +193,14 @@ partial void ProcessCreateThreadAndRunResponseContent( /// with a maximum length of 512 characters. /// /// - /// The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- /// Example: gpt-4o + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. /// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -256,7 +257,7 @@ partial void ProcessCreateThreadAndRunResponseContent( global::tryAGI.OpenAI.CreateThreadRequest? thread = default, global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? toolChoice = default, global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? toolResources = default, - global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.IList? tools = default, double? topP = default, global::tryAGI.OpenAI.TruncationObject? truncationStrategy = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteAssistant.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteAssistant.g.cs index ea85ecbc..f689ed3c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteAssistant.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteAssistant.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteAssistantResponseContent( ref string content); /// + /// Delete assistant
/// Delete an assistant. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs index 1c1ab999..81fc8434 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs @@ -24,6 +24,7 @@ partial void ProcessDeleteMessageResponseContent( ref string content); /// + /// Delete message
/// Deletes a message. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs index 751686c3..e441a65c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteThreadResponseContent( ref string content); /// + /// Delete thread
/// Delete a thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetAssistant.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetAssistant.g.cs index ef7899a8..64481d2e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetAssistant.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetAssistant.g.cs @@ -22,6 +22,7 @@ partial void ProcessGetAssistantResponseContent( ref string content); /// + /// Retrieve assistant
/// Retrieves an assistant. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetMessage.g.cs index 210fb752..75a4a4a0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetMessage.g.cs @@ -24,6 +24,7 @@ partial void ProcessGetMessageResponseContent( ref string content); /// + /// Retrieve message
/// Retrieve a message. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRun.g.cs index 20f557b6..7186e5b4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRun.g.cs @@ -24,6 +24,7 @@ partial void ProcessGetRunResponseContent( ref string content); /// + /// Retrieve run
/// Retrieves a run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRunStep.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRunStep.g.cs index 0464f280..d35061fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRunStep.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRunStep.g.cs @@ -28,6 +28,7 @@ partial void ProcessGetRunStepResponseContent( ref string content); /// + /// Retrieve run step
/// Retrieves a run step. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetThread.g.cs index 38ad8c25..8706d80b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetThread.g.cs @@ -22,6 +22,7 @@ partial void ProcessGetThreadResponseContent( ref string content); /// + /// Retrieve thread
/// Retrieves a thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListAssistants.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListAssistants.g.cs index 3230b1c2..bcb467ba 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListAssistants.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListAssistants.g.cs @@ -28,6 +28,7 @@ partial void ProcessListAssistantsResponseContent( ref string content); /// + /// List assistants
/// Returns a list of assistants. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs index f7d47650..4d67315c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs @@ -32,6 +32,7 @@ partial void ProcessListMessagesResponseContent( ref string content); /// + /// List messages
/// Returns a list of messages for a given thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs index a1d9ab30..fa679cc9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs @@ -34,6 +34,7 @@ partial void ProcessListRunStepsResponseContent( ref string content); /// + /// List run steps
/// Returns a list of run steps belonging to a run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs index 5b09c693..acf16138 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs @@ -30,6 +30,7 @@ partial void ProcessListRunsResponseContent( ref string content); /// + /// List runs
/// Returns a list of runs belonging to a thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyAssistant.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyAssistant.g.cs index 9732e383..69310e97 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyAssistant.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyAssistant.g.cs @@ -24,6 +24,7 @@ partial void ProcessModifyAssistantResponseContent( ref string content); /// + /// Modify assistant
/// Modifies an assistant. ///
/// @@ -175,6 +176,7 @@ partial void ProcessModifyAssistantResponseContent( } /// + /// Modify assistant
/// Modifies an assistant. ///
/// @@ -192,7 +194,7 @@ partial void ProcessModifyAssistantResponseContent( /// with a maximum length of 512 characters. /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// /// /// The name of the assistant. The maximum length is 256 characters. @@ -207,8 +209,8 @@ partial void ProcessModifyAssistantResponseContent( /// Default Value: medium /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -245,7 +247,7 @@ partial void ProcessModifyAssistantResponseContent( global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat = default, double? temperature = default, global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? toolResources = default, - global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.IList? tools = default, double? topP = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs index 0248d7c2..1809f814 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs @@ -26,6 +26,7 @@ partial void ProcessModifyMessageResponseContent( ref string content); /// + /// Modify message
/// Modifies a message. ///
/// @@ -181,6 +182,7 @@ partial void ProcessModifyMessageResponseContent( } /// + /// Modify message
/// Modifies a message. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs index a9672f12..98c8b38a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs @@ -26,6 +26,7 @@ partial void ProcessModifyRunResponseContent( ref string content); /// + /// Modify run
/// Modifies a run. ///
/// @@ -181,6 +182,7 @@ partial void ProcessModifyRunResponseContent( } /// + /// Modify run
/// Modifies a run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs index 9538294d..eed26c00 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs @@ -24,6 +24,7 @@ partial void ProcessModifyThreadResponseContent( ref string content); /// + /// Modify thread
/// Modifies a thread. ///
/// @@ -175,6 +176,7 @@ partial void ProcessModifyThreadResponseContent( } /// + /// Modify thread
/// Modifies a thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRun.g.cs index 50ffba28..d3e25913 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRun.g.cs @@ -26,6 +26,7 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( ref string content); /// + /// Submit tool outputs to run
/// When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. ///
/// @@ -181,6 +182,7 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( } /// + /// Submit tool outputs to run
/// When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs index 413b6cf7..715dc12b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateSpeechResponseContent( ref byte[] content); /// + /// Create speech
/// Generates audio from the input text. ///
/// @@ -157,6 +158,7 @@ partial void ProcessCreateSpeechResponseContent( } /// + /// Create speech
/// Generates audio from the input text. ///
/// @@ -166,7 +168,7 @@ partial void ProcessCreateSpeechResponseContent( /// Control the voice of your generated audio with additional instructions. Does not work with `tts-1` or `tts-1-hd`. /// /// - /// One of the available [TTS models](/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. + /// One of the available [TTS models](https://platform.openai.com/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. /// /// /// The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs index a6a9841b..91092b50 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs @@ -22,12 +22,13 @@ partial void ProcessCreateTranscriptionResponseContent( ref string content); /// + /// Create transcription
/// Transcribes audio into the input language. ///
/// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( global::tryAGI.OpenAI.CreateTranscriptionRequest request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -81,7 +82,7 @@ partial void ProcessCreateTranscriptionResponseContent( { __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.Include, x => x.ToValueString()))}]"), - name: "include[]"); + name: "include"); } if (request.Language != default) { @@ -120,7 +121,7 @@ partial void ProcessCreateTranscriptionResponseContent( { __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.TimestampGranularities, x => x.ToValueString()))}]"), - name: "timestamp_granularities[]"); + name: "timestamp_granularities"); } __httpRequest.Content = __httpRequestContent; @@ -166,7 +167,7 @@ partial void ProcessCreateTranscriptionResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.AnyOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -197,7 +198,7 @@ partial void ProcessCreateTranscriptionResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.AnyOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -217,6 +218,7 @@ partial void ProcessCreateTranscriptionResponseContent( } /// + /// Create transcription
/// Transcribes audio into the input language. ///
/// @@ -243,7 +245,7 @@ partial void ProcessCreateTranscriptionResponseContent( /// Example: gpt-4o-transcribe /// /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language. + /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match the audio language. /// /// /// The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, the only supported format is `json`.
@@ -252,7 +254,7 @@ partial void ProcessCreateTranscriptionResponseContent( /// /// If set to true, the model response data will be streamed to the client
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
- /// See the [Streaming section of the Speech-to-Text guide](/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
+ /// See the [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
/// for more information.
/// Note: Streaming is not supported for the `whisper-1` model and will be ignored.
/// Default Value: false @@ -267,11 +269,11 @@ partial void ProcessCreateTranscriptionResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( byte[] file, string filename, global::tryAGI.OpenAI.AnyOf model, - global::tryAGI.OpenAI.AnyOf? chunkingStrategy = default, + global::tryAGI.OpenAI.TranscriptionChunkingStrategy? chunkingStrategy = default, global::System.Collections.Generic.IList? include = default, string? language = default, string? prompt = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs index a6c60ff8..dfec9e9c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs @@ -22,12 +22,13 @@ partial void ProcessCreateTranslationResponseContent( ref string content); /// + /// Create translation
/// Translates audio into English. ///
/// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateTranslationAsync( + public async global::System.Threading.Tasks.Task> CreateTranslationAsync( global::tryAGI.OpenAI.CreateTranslationRequest request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -136,7 +137,7 @@ partial void ProcessCreateTranslationResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.AnyOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -167,7 +168,7 @@ partial void ProcessCreateTranslationResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.AnyOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -187,6 +188,7 @@ partial void ProcessCreateTranslationResponseContent( } /// + /// Create translation
/// Translates audio into English. ///
/// @@ -200,7 +202,7 @@ partial void ProcessCreateTranslationResponseContent( /// Example: whisper-1 /// /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should be in English. + /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should be in English. /// /// /// The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
@@ -212,7 +214,7 @@ partial void ProcessCreateTranslationResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateTranslationAsync( + public async global::System.Threading.Tasks.Task> CreateTranslationAsync( byte[] file, string filename, global::tryAGI.OpenAI.AnyOf model, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs index e5c39f02..000951ef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs @@ -38,6 +38,7 @@ partial void ProcessListAuditLogsResponseContent( ref string content); /// + /// List audit logs
/// List user actions and configuration changes within this organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs index 348f954b..88d49fe9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs @@ -22,6 +22,7 @@ partial void ProcessCancelBatchResponseContent( ref string content); /// + /// Cancel batch
/// Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs index 1db6a5c0..0894ee0d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateBatchResponseContent( ref string content); /// + /// Create batch
/// Creates and executes a batch from an uploaded file of requests ///
/// @@ -166,6 +167,7 @@ partial void ProcessCreateBatchResponseContent( } /// + /// Create batch
/// Creates and executes a batch from an uploaded file of requests ///
/// @@ -176,8 +178,8 @@ partial void ProcessCreateBatchResponseContent( /// /// /// The ID of an uploaded file that contains requests for the new batch.
- /// See [upload file](/docs/api-reference/files/create) for how to upload a file.
- /// Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size. + /// See [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.
+ /// Your input file must be formatted as a [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs index 8f21b4b1..b62e309d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs @@ -24,6 +24,7 @@ partial void ProcessListBatchesResponseContent( ref string content); /// + /// List batch
/// List your organization's batches. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs index 7d075464..87158a1e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs @@ -22,6 +22,7 @@ partial void ProcessRetrieveBatchResponseContent( ref string content); /// + /// Retrieve batch
/// Retrieves a batch. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs index 069c5ecc..11ce44c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs @@ -22,6 +22,7 @@ partial void ProcessActivateOrganizationCertificatesResponseContent( ref string content); /// + /// Activate certificates for organization
/// Activate certificates at the organization level.
/// You can atomically and idempotently activate up to 10 certificates at a time. ///
@@ -167,6 +168,7 @@ partial void ProcessActivateOrganizationCertificatesResponseContent( } /// + /// Activate certificates for organization
/// Activate certificates at the organization level.
/// You can atomically and idempotently activate up to 10 certificates at a time. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs index 5af729e9..b7c2e882 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs @@ -24,6 +24,7 @@ partial void ProcessActivateProjectCertificatesResponseContent( ref string content); /// + /// Activate certificates for project
/// Activate certificates at the project level.
/// You can atomically and idempotently activate up to 10 certificates at a time. ///
@@ -173,6 +174,7 @@ partial void ProcessActivateProjectCertificatesResponseContent( } /// + /// Activate certificates for project
/// Activate certificates at the project level.
/// You can atomically and idempotently activate up to 10 certificates at a time. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs index d92242b1..c98b5a5c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeactivateOrganizationCertificatesResponseContent( ref string content); /// + /// Deactivate certificates for organization
/// Deactivate certificates at the organization level.
/// You can atomically and idempotently deactivate up to 10 certificates at a time. ///
@@ -167,6 +168,7 @@ partial void ProcessDeactivateOrganizationCertificatesResponseContent( } /// + /// Deactivate certificates for organization
/// Deactivate certificates at the organization level.
/// You can atomically and idempotently deactivate up to 10 certificates at a time. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs index 4fab91b6..e7596988 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs @@ -24,6 +24,7 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( ref string content); /// + /// Deactivate certificates for project
/// Deactivate certificates at the project level. You can atomically and
/// idempotently deactivate up to 10 certificates at a time. ///
@@ -173,6 +174,7 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( } /// + /// Deactivate certificates for project
/// Deactivate certificates at the project level. You can atomically and
/// idempotently deactivate up to 10 certificates at a time. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs index 05e9ee06..e8e8f88b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteCertificateResponseContent( ref string content); /// + /// Delete certificate
/// Delete a certificate from the organization.
/// The certificate must be inactive for the organization and all projects. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs index 211d1aa9..23bbe0bb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs @@ -24,6 +24,7 @@ partial void ProcessGetCertificateResponseContent( ref string content); /// + /// Get certificate
/// Get a certificate that has been uploaded to the organization.
/// You can get a certificate regardless of whether it is active or not. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs index 1d048645..5337c15c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs @@ -26,6 +26,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( ref string content); /// + /// List organization certificates
/// List uploaded certificates for this organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs index 632cb79d..5e9a2159 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs @@ -28,6 +28,7 @@ partial void ProcessListProjectCertificatesResponseContent( ref string content); /// + /// List project certificates
/// List certificates for this project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs index d6039237..be98b249 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs @@ -24,6 +24,7 @@ partial void ProcessModifyCertificateResponseContent( ref string content); /// + /// Modify certificate
/// Modify a certificate. Note that only the name can be modified. ///
/// @@ -172,6 +173,7 @@ partial void ProcessModifyCertificateResponseContent( } /// + /// Modify certificate
/// Modify a certificate. Note that only the name can be modified. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs index 2228dca5..476c921f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs @@ -22,6 +22,7 @@ partial void ProcessUploadCertificateResponseContent( ref string content); /// + /// Upload certificate
/// Upload a certificate to the organization. This does **not** automatically activate the certificate.
/// Organizations can upload up to 50 certificates. ///
@@ -167,6 +168,7 @@ partial void ProcessUploadCertificateResponseContent( } /// + /// Upload certificate
/// Upload a certificate to the organization. This does **not** automatically activate the certificate.
/// Organizations can upload up to 50 certificates. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs index 1ef77fa1..78d461d3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs @@ -22,18 +22,19 @@ partial void ProcessCreateChatCompletionResponseContent( ref string content); /// - /// **Starting a new project?** We recommend trying [Responses](/docs/api-reference/responses)
+ /// Create chat completion
+ /// **Starting a new project?** We recommend trying [Responses](https://platform.openai.com/docs/api-reference/responses)
/// to take advantage of the latest OpenAI platform features. Compare
- /// [Chat Completions with Responses](/docs/guides/responses-vs-chat-completions?api-mode=responses).
+ /// [Chat Completions with Responses](https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses).
/// ---
/// Creates a model response for the given chat conversation. Learn more in the
- /// [text generation](/docs/guides/text-generation), [vision](/docs/guides/vision),
- /// and [audio](/docs/guides/audio) guides.
+ /// [text generation](https://platform.openai.com/docs/guides/text-generation), [vision](https://platform.openai.com/docs/guides/vision),
+ /// and [audio](https://platform.openai.com/docs/guides/audio) guides.
/// Parameter support can differ depending on the model used to generate the
/// response, particularly for newer reasoning models. Parameters that are only
/// supported for reasoning models are noted below. For the current state of
/// unsupported parameters in reasoning models,
- /// [refer to the reasoning guide](/docs/guides/reasoning). + /// [refer to the reasoning guide](https://platform.openai.com/docs/guides/reasoning). ///
/// /// The token to cancel the operation with @@ -175,18 +176,19 @@ partial void ProcessCreateChatCompletionResponseContent( } /// - /// **Starting a new project?** We recommend trying [Responses](/docs/api-reference/responses)
+ /// Create chat completion
+ /// **Starting a new project?** We recommend trying [Responses](https://platform.openai.com/docs/api-reference/responses)
/// to take advantage of the latest OpenAI platform features. Compare
- /// [Chat Completions with Responses](/docs/guides/responses-vs-chat-completions?api-mode=responses).
+ /// [Chat Completions with Responses](https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses).
/// ---
/// Creates a model response for the given chat conversation. Learn more in the
- /// [text generation](/docs/guides/text-generation), [vision](/docs/guides/vision),
- /// and [audio](/docs/guides/audio) guides.
+ /// [text generation](https://platform.openai.com/docs/guides/text-generation), [vision](https://platform.openai.com/docs/guides/vision),
+ /// and [audio](https://platform.openai.com/docs/guides/audio) guides.
/// Parameter support can differ depending on the model used to generate the
/// response, particularly for newer reasoning models. Parameters that are only
/// supported for reasoning models are noted below. For the current state of
/// unsupported parameters in reasoning models,
- /// [refer to the reasoning guide](/docs/guides/reasoning). + /// [refer to the reasoning guide](https://platform.openai.com/docs/guides/reasoning). ///
/// The token to cancel the operation with /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs index b65ea974..5c1088e0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteChatCompletionResponseContent( ref string content); /// + /// Delete chat completion
/// Delete a stored chat completion. Only Chat Completions that have been
/// created with the `store` parameter set to `true` can be deleted. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs index 99eb1a40..7d6bd8c1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs @@ -22,6 +22,7 @@ partial void ProcessGetChatCompletionResponseContent( ref string content); /// + /// Get chat completion
/// Get a stored chat completion. Only Chat Completions that have been created
/// with the `store` parameter set to `true` will be returned. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs index 468f21d9..e0e1998d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs @@ -28,6 +28,7 @@ partial void ProcessGetChatCompletionMessagesResponseContent( ref string content); /// + /// Get chat messages
/// Get the messages in a stored chat completion. Only Chat Completions that
/// have been created with the `store` parameter set to `true` will be
/// returned. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs index aab8bbbd..8d06233d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs @@ -30,6 +30,7 @@ partial void ProcessListChatCompletionsResponseContent( ref string content); /// + /// List Chat Completions
/// List stored Chat Completions. Only Chat Completions that have been stored
/// with the `store` parameter set to `true` will be returned. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs index ceee7a44..65c27e03 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs @@ -24,6 +24,7 @@ partial void ProcessUpdateChatCompletionResponseContent( ref string content); /// + /// Update chat completion
/// Modify a stored chat completion. Only Chat Completions that have been
/// created with the `store` parameter set to `true` can be modified. Currently,
/// the only supported modification is to update the `metadata` field. @@ -174,6 +175,7 @@ partial void ProcessUpdateChatCompletionResponseContent( } /// + /// Update chat completion
/// Modify a stored chat completion. Only Chat Completions that have been
/// created with the `store` parameter set to `true` can be modified. Currently,
/// the only supported modification is to update the `metadata` field. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs index 66fe707d..c335bb85 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateCompletionResponseContent( ref string content); /// + /// Create completion
/// Creates a completion for the provided prompt and parameters. ///
/// @@ -166,6 +167,7 @@ partial void ProcessCreateCompletionResponseContent( } /// + /// Create completion
/// Creates a completion for the provided prompt and parameters. ///
/// @@ -180,7 +182,7 @@ partial void ProcessCreateCompletionResponseContent( /// /// /// Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
- /// [See more information about frequency and presence penalties.](/docs/guides/text-generation)
+ /// [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
/// Default Value: 0 /// /// @@ -199,7 +201,7 @@ partial void ProcessCreateCompletionResponseContent( /// Example: 16 /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// /// /// How many completions to generate for each prompt.
@@ -209,13 +211,12 @@ partial void ProcessCreateCompletionResponseContent( /// /// /// Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
- /// [See more information about frequency and presence penalties.](/docs/guides/text-generation)
+ /// [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
/// Default Value: 0 /// /// /// The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
- /// Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
- /// Default Value: <|endoftext|> + /// Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document. /// /// /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.
@@ -251,14 +252,14 @@ partial void ProcessCreateCompletionResponseContent( /// Example: 1 /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateCompletionAsync( global::tryAGI.OpenAI.AnyOf model, - global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? prompt, + global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? prompt, int? bestOf = default, bool? echo = default, double? frequencyPenalty = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs index 34f1e7c2..bce0bc36 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateEmbeddingResponseContent( ref string content); /// + /// Create embeddings
/// Creates an embedding vector representing the input text. ///
/// @@ -166,6 +167,7 @@ partial void ProcessCreateEmbeddingResponseContent( } /// + /// Create embeddings
/// Creates an embedding vector representing the input text. ///
/// @@ -181,17 +183,17 @@ partial void ProcessCreateEmbeddingResponseContent( /// Example: The quick brown fox jumped over the lazy dog /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.
+ /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.
/// Example: text-embedding-3-small /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateEmbeddingAsync( - global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>> input, + global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>> input, global::tryAGI.OpenAI.AnyOf model, int? dimensions = default, global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? encodingFormat = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs index 5d908a8d..b73ade3a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs @@ -24,6 +24,7 @@ partial void ProcessCancelEvalRunResponseContent( ref string content); /// + /// Cancel eval run
/// Cancel an ongoing evaluation run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs index 6c86aad3..8d10ac2d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs @@ -22,9 +22,10 @@ partial void ProcessCreateEvalResponseContent( ref string content); /// + /// Create eval
/// Create the structure of an evaluation that can be used to test a model's performance.
/// An evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources.
- /// For more information, see the [Evals guide](/docs/guides/evals). + /// For more information, see the [Evals guide](https://platform.openai.com/docs/guides/evals). ///
/// /// The token to cancel the operation with @@ -168,9 +169,10 @@ partial void ProcessCreateEvalResponseContent( } /// + /// Create eval
/// Create the structure of an evaluation that can be used to test a model's performance.
/// An evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources.
- /// For more information, see the [Evals guide](/docs/guides/evals). + /// For more information, see the [Evals guide](https://platform.openai.com/docs/guides/evals). ///
/// /// The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation. @@ -192,9 +194,9 @@ partial void ProcessCreateEvalResponseContent( /// public async global::System.Threading.Tasks.Task CreateEvalAsync( #pragma warning disable CS0618 // Type or member is obsolete - global::tryAGI.OpenAI.OneOf dataSourceConfig, + global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig dataSourceConfig, #pragma warning disable CS0618 // Type or member is obsolete - global::System.Collections.Generic.IList> testingCriteria, + global::System.Collections.Generic.IList testingCriteria, global::System.Collections.Generic.Dictionary? metadata = default, string? name = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs index e02248ec..ba515810 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs @@ -24,6 +24,7 @@ partial void ProcessCreateEvalRunResponseContent( ref string content); /// + /// Create eval run
/// Kicks off a new run for a given evaluation, specifying the data source, and what model configuration to use to test. The datasource will be validated against the schema specified in the config of the evaluation. ///
/// @@ -209,6 +210,7 @@ partial void ProcessCreateEvalRunResponseContent( } /// + /// Create eval run
/// Kicks off a new run for a given evaluation, specifying the data source, and what model configuration to use to test. The datasource will be validated against the schema specified in the config of the evaluation. ///
/// @@ -229,7 +231,7 @@ partial void ProcessCreateEvalRunResponseContent( /// public async global::System.Threading.Tasks.Task CreateEvalRunAsync( string evalId, - global::tryAGI.OpenAI.OneOf dataSource, + global::tryAGI.OpenAI.AnyOf dataSource, global::System.Collections.Generic.Dictionary? metadata = default, string? name = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs index 27fdea42..03d46834 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteEvalResponseContent( ref string content); /// + /// Delete an eval
/// Delete an evaluation. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs index ab305a67..83640a7e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs @@ -24,6 +24,7 @@ partial void ProcessDeleteEvalRunResponseContent( ref string content); /// + /// Delete eval run
/// Delete an eval run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs index 9b4314da..8489187d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs @@ -22,6 +22,7 @@ partial void ProcessGetEvalResponseContent( ref string content); /// + /// Get an eval
/// Get an evaluation by ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs index 01e09eab..8ea09b79 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs @@ -24,6 +24,7 @@ partial void ProcessGetEvalRunResponseContent( ref string content); /// + /// Get an eval run
/// Get an evaluation run by ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs index 2b2cc746..4df63a36 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs @@ -26,6 +26,7 @@ partial void ProcessGetEvalRunOutputItemResponseContent( ref string content); /// + /// Get an output item of an eval run
/// Get an evaluation run output item by ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs index 84a92172..2955ca0d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs @@ -32,6 +32,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( ref string content); /// + /// Get eval run output items
/// Get a list of output items for an evaluation run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs index 8c215430..9fe1b16c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs @@ -30,6 +30,7 @@ partial void ProcessGetEvalRunsResponseContent( ref string content); /// + /// Get eval runs
/// Get a list of runs for an evaluation. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs index afdca5c6..59e9a5c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs @@ -28,6 +28,7 @@ partial void ProcessListEvalsResponseContent( ref string content); /// + /// List evals
/// List evaluations for a project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs index 15b6ba89..69c9bb41 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs @@ -24,6 +24,7 @@ partial void ProcessUpdateEvalResponseContent( ref string content); /// + /// Update an eval
/// Update certain properties of an evaluation. ///
/// @@ -172,6 +173,7 @@ partial void ProcessUpdateEvalResponseContent( } /// + /// Update an eval
/// Update certain properties of an evaluation. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs index 55d91d93..afabcf7a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs @@ -22,10 +22,11 @@ partial void ProcessCreateFileResponseContent( ref string content); /// + /// Upload file
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.
- /// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details.
- /// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models.
- /// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input).
+ /// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details.
+ /// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models.
+ /// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input).
/// Please [contact us](https://help.openai.com/) if you need to increase these storage limits. ///
/// @@ -173,10 +174,11 @@ partial void ProcessCreateFileResponseContent( } /// + /// Upload file
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.
- /// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details.
- /// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models.
- /// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input).
+ /// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details.
+ /// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models.
+ /// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input).
/// Please [contact us](https://help.openai.com/) if you need to increase these storage limits. ///
/// @@ -193,7 +195,7 @@ partial void ProcessCreateFileResponseContent( public async global::System.Threading.Tasks.Task CreateFileAsync( byte[] file, string filename, - global::tryAGI.OpenAI.CreateFileRequestPurpose purpose, + global::tryAGI.OpenAI.FilePurpose purpose, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::tryAGI.OpenAI.CreateFileRequest diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs index 97d3f61c..7c05ddaf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteFileResponseContent( ref string content); /// + /// Delete file
/// Delete a file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs index 016ef533..9c785542 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs @@ -22,6 +22,7 @@ partial void ProcessDownloadFileResponseContent( ref byte[] content); /// + /// Retrieve file content
/// Returns the contents of the specified file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs index a914ded0..fe63e145 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs @@ -28,6 +28,7 @@ partial void ProcessListFilesResponseContent( ref string content); /// + /// List files
/// Returns a list of files. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs index 23091bd4..3f2eb5fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs @@ -22,6 +22,7 @@ partial void ProcessRetrieveFileResponseContent( ref string content); /// + /// Retrieve file
/// Returns information about a specific file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs index c0b973a2..cac09749 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs @@ -22,6 +22,7 @@ partial void ProcessCancelFineTuningJobResponseContent( ref string content); /// + /// Cancel fine-tuning
/// Immediately cancel a fine-tune job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs index 801ec134..6a52266c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs @@ -24,6 +24,7 @@ partial void ProcessCreateFineTuningCheckpointPermissionResponseContent( ref string content); /// + /// Create checkpoint permissions
/// **NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).
/// This enables organization owners to share fine-tuned models with other projects in their organization. ///
@@ -175,6 +176,7 @@ partial void ProcessCreateFineTuningCheckpointPermissionResponseContent( } /// + /// Create checkpoint permissions
/// **NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).
/// This enables organization owners to share fine-tuned models with other projects in their organization. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs index 6035a975..353815e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs @@ -22,9 +22,10 @@ partial void ProcessCreateFineTuningJobResponseContent( ref string content); /// + /// Create fine-tuning job
/// Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
/// Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
- /// [Learn more about fine-tuning](/docs/guides/model-optimization) + /// [Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization) ///
/// /// The token to cancel the operation with @@ -168,9 +169,10 @@ partial void ProcessCreateFineTuningJobResponseContent( } /// + /// Create fine-tuning job
/// Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
/// Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
- /// [Learn more about fine-tuning](/docs/guides/model-optimization) + /// [Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization) ///
/// /// A list of integrations to enable for your fine-tuning job. @@ -187,7 +189,7 @@ partial void ProcessCreateFineTuningJobResponseContent( /// /// /// The name of the model to fine-tune. You can select one of the
- /// [supported models](/docs/guides/fine-tuning#which-models-can-be-fine-tuned).
+ /// [supported models](https://platform.openai.com/docs/guides/fine-tuning#which-models-can-be-fine-tuned).
/// Example: gpt-4o-mini /// /// @@ -201,10 +203,10 @@ partial void ProcessCreateFineTuningJobResponseContent( /// /// /// The ID of an uploaded file that contains training data.
- /// See [upload file](/docs/api-reference/files/create) for how to upload a file.
+ /// See [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.
/// Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.
- /// The contents of the file should differ depending on if the model uses the [chat](/docs/api-reference/fine-tuning/chat-input), [completions](/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](/docs/api-reference/fine-tuning/preference-input) format.
- /// See the [fine-tuning guide](/docs/guides/model-optimization) for more details.
+ /// The contents of the file should differ depending on if the model uses the [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input), [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](https://platform.openai.com/docs/api-reference/fine-tuning/preference-input) format.
+ /// See the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.
/// Example: file-abc123 /// /// @@ -214,7 +216,7 @@ partial void ProcessCreateFineTuningJobResponseContent( /// the fine-tuning results file.
/// The same data should not be present in both train and validation files.
/// Your dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.
- /// See the [fine-tuning guide](/docs/guides/model-optimization) for more details.
+ /// See the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.
/// Example: file-abc123 /// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs index 0bc6467f..663e852b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs @@ -24,6 +24,7 @@ partial void ProcessDeleteFineTuningCheckpointPermissionResponseContent( ref string content); /// + /// Delete checkpoint permission
/// **NOTE:** This endpoint requires an [admin API key](../admin-api-keys).
/// Organization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs index 89c3b173..01464f10 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs @@ -30,6 +30,7 @@ partial void ProcessListFineTuningCheckpointPermissionsResponseContent( ref string content); /// + /// List checkpoint permissions
/// **NOTE:** This endpoint requires an [admin API key](../admin-api-keys).
/// Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs index ecae7914..17ce7770 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs @@ -26,6 +26,7 @@ partial void ProcessListFineTuningEventsResponseContent( ref string content); /// + /// List fine-tuning events
/// Get status updates for a fine-tuning job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs index 57146ea4..4e80141c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs @@ -26,6 +26,7 @@ partial void ProcessListFineTuningJobCheckpointsResponseContent( ref string content); /// + /// List fine-tuning checkpoints
/// List checkpoints for a fine-tuning job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs index 3a71dbe4..60cb54f7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs @@ -26,6 +26,7 @@ partial void ProcessListPaginatedFineTuningJobsResponseContent( ref string content); /// + /// List fine-tuning jobs
/// List your organization's fine-tuning jobs ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs index e88479c4..2841879e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs @@ -22,6 +22,7 @@ partial void ProcessPauseFineTuningJobResponseContent( ref string content); /// + /// Pause fine-tuning
/// Pause a fine-tune job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs index 00e809e3..e292fb0c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs @@ -22,6 +22,7 @@ partial void ProcessResumeFineTuningJobResponseContent( ref string content); /// + /// Resume fine-tuning
/// Resume a fine-tune job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs index c7d9e388..f2e5a8fb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs @@ -22,8 +22,9 @@ partial void ProcessRetrieveFineTuningJobResponseContent( ref string content); /// + /// Retrieve fine-tuning job
/// Get info about a fine-tuning job.
- /// [Learn more about fine-tuning](/docs/guides/model-optimization) + /// [Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization) ///
/// /// Example: ft-AF1WoRqd3aJAHsqc9NY7iL8F diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs index 0569404e..be0e7474 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs @@ -22,6 +22,7 @@ partial void ProcessRunGraderResponseContent( ref string content); /// + /// Run grader
/// Run a grader. ///
/// @@ -169,6 +170,7 @@ partial void ProcessRunGraderResponseContent( } /// + /// Run grader
/// Run a grader. ///
/// @@ -176,11 +178,11 @@ partial void ProcessRunGraderResponseContent( /// /// /// The dataset item provided to the grader. This will be used to populate
- /// the `item` namespace. See [the guide](/docs/guides/graders) for more details. + /// the `item` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details. /// /// /// The model sample to be evaluated. This value will be used to populate
- /// the `sample` namespace. See [the guide](/docs/guides/graders) for more details.
+ /// the `sample` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details.
/// The `output_json` variable will be populated if the model sample is a
/// valid JSON string.
/// @@ -191,7 +193,7 @@ partial void ProcessRunGraderResponseContent( [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")] #endif public async global::System.Threading.Tasks.Task RunGraderAsync( - global::tryAGI.OpenAI.OneOf grader, + global::tryAGI.OpenAI.RunGraderRequestGrader grader, string modelSample, object? item = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs index 2e3fdd26..0440ddae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs @@ -22,6 +22,7 @@ partial void ProcessValidateGraderResponseContent( ref string content); /// + /// Validate grader
/// Validate a grader. ///
/// @@ -169,6 +170,7 @@ partial void ProcessValidateGraderResponseContent( } /// + /// Validate grader
/// Validate a grader. ///
/// @@ -180,7 +182,7 @@ partial void ProcessValidateGraderResponseContent( [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")] #endif public async global::System.Threading.Tasks.Task ValidateGraderAsync( - global::tryAGI.OpenAI.OneOf grader, + global::tryAGI.OpenAI.AnyOf grader, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::tryAGI.OpenAI.ValidateGraderRequest diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CancelRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CancelRun.g.cs index cc457351..f986f0a1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CancelRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CancelRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Cancel a run
/// Cancels a run that is `in_progress`. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateAssistant.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateAssistant.g.cs index 32f63ece..c097126c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateAssistant.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateAssistant.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Create assistant
/// Create an assistant with a model and instructions. ///
/// @@ -18,6 +19,7 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create assistant
/// Create an assistant with a model and instructions. ///
/// @@ -34,7 +36,7 @@ public partial interface IAssistantsClient /// with a maximum length of 512 characters. /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.
+ /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.
/// Example: gpt-4o /// /// @@ -50,8 +52,8 @@ public partial interface IAssistantsClient /// Default Value: medium /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -87,7 +89,7 @@ public partial interface IAssistantsClient global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat = default, double? temperature = default, global::tryAGI.OpenAI.CreateAssistantRequestToolResources? toolResources = default, - global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.IList? tools = default, double? topP = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateMessage.g.cs index 96c0a770..a61bd7b9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateMessage.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Create message
/// Create a message. ///
/// @@ -20,6 +21,7 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create message
/// Create a message. ///
/// @@ -46,7 +48,7 @@ public partial interface IAssistantsClient #endif global::System.Threading.Tasks.Task CreateMessageAsync( string threadId, - global::tryAGI.OpenAI.OneOf>> content, + global::tryAGI.OpenAI.AnyOf> content, global::tryAGI.OpenAI.CreateMessageRequestRole role, global::System.Collections.Generic.IList? attachments = default, global::System.Collections.Generic.Dictionary? metadata = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRun.g.cs index afdb4c92..78a3c1e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Create run
/// Create a run. ///
/// @@ -22,6 +23,7 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create run
/// Create a run. ///
/// @@ -33,10 +35,10 @@ public partial interface IAssistantsClient /// Adds additional messages to the thread before creating the run. /// /// - /// The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. /// /// - /// Overrides the [instructions](/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. + /// Overrides the [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. /// /// /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. @@ -52,11 +54,10 @@ public partial interface IAssistantsClient /// with a maximum length of 512 characters. /// /// - /// The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- /// Example: gpt-4o + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. /// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// /// **o-series models only**
@@ -68,8 +69,8 @@ public partial interface IAssistantsClient /// Default Value: medium /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -122,7 +123,7 @@ public partial interface IAssistantsClient bool? stream = default, double? temperature = default, global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? toolChoice = default, - global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.IList? tools = default, double? topP = default, global::tryAGI.OpenAI.TruncationObject? truncationStrategy = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThread.g.cs index 061ba5cc..f0734625 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThread.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Create thread
/// Create a thread. ///
/// @@ -18,10 +19,11 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create thread
/// Create a thread. ///
/// - /// A list of [messages](/docs/api-reference/messages) to start the thread with. + /// A list of [messages](https://platform.openai.com/docs/api-reference/messages) to start the thread with. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRun.g.cs index e41ad276..1fdb64f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Create thread and run
/// Create a thread and run it in one request. ///
/// @@ -18,10 +19,11 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create thread and run
/// Create a thread and run it in one request. ///
/// - /// The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. /// /// /// Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis. @@ -40,15 +42,14 @@ public partial interface IAssistantsClient /// with a maximum length of 512 characters. /// /// - /// The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- /// Example: gpt-4o + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. /// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -105,7 +106,7 @@ public partial interface IAssistantsClient global::tryAGI.OpenAI.CreateThreadRequest? thread = default, global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? toolChoice = default, global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? toolResources = default, - global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.IList? tools = default, double? topP = default, global::tryAGI.OpenAI.TruncationObject? truncationStrategy = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteAssistant.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteAssistant.g.cs index 03cbe29c..90bd9943 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteAssistant.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteAssistant.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Delete assistant
/// Delete an assistant. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteMessage.g.cs index 8d7ddaea..7182f165 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteMessage.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Delete message
/// Deletes a message. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteThread.g.cs index b2030596..cc9d1c3d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.DeleteThread.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Delete thread
/// Delete a thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetAssistant.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetAssistant.g.cs index 7630c254..1d9fde49 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetAssistant.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetAssistant.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Retrieve assistant
/// Retrieves an assistant. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetMessage.g.cs index 14452ecf..e46c6bb7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetMessage.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Retrieve message
/// Retrieve a message. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetRun.g.cs index b7a9372f..0c909d67 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Retrieve run
/// Retrieves a run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetRunStep.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetRunStep.g.cs index d5e8aba4..71b35b5e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetRunStep.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetRunStep.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Retrieve run step
/// Retrieves a run step. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetThread.g.cs index 6e1a2ed1..f7dcec6f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.GetThread.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Retrieve thread
/// Retrieves a thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListAssistants.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListAssistants.g.cs index 43fc5221..fae2efce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListAssistants.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListAssistants.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// List assistants
/// Returns a list of assistants. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListMessages.g.cs index a4f2100e..4369d915 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListMessages.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// List messages
/// Returns a list of messages for a given thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListRunSteps.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListRunSteps.g.cs index 99337451..d26a7f19 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListRunSteps.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListRunSteps.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// List run steps
/// Returns a list of run steps belonging to a run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListRuns.g.cs index 9081464f..dcbbd2d4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListRuns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ListRuns.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// List runs
/// Returns a list of runs belonging to a thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyAssistant.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyAssistant.g.cs index c0cc9e33..ff30afdc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyAssistant.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyAssistant.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Modify assistant
/// Modifies an assistant. ///
/// @@ -20,6 +21,7 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify assistant
/// Modifies an assistant. ///
/// @@ -37,7 +39,7 @@ public partial interface IAssistantsClient /// with a maximum length of 512 characters. /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// /// /// The name of the assistant. The maximum length is 256 characters. @@ -52,8 +54,8 @@ public partial interface IAssistantsClient /// Default Value: medium /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -90,7 +92,7 @@ public partial interface IAssistantsClient global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat = default, double? temperature = default, global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? toolResources = default, - global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.IList? tools = default, double? topP = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyMessage.g.cs index 0c0ac254..fe9b3aac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyMessage.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Modify message
/// Modifies a message. ///
/// @@ -22,6 +23,7 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify message
/// Modifies a message. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyRun.g.cs index 070dba18..0220da12 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Modify run
/// Modifies a run. ///
/// @@ -22,6 +23,7 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify run
/// Modifies a run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyThread.g.cs index c564c721..cc7c9cf7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.ModifyThread.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Modify thread
/// Modifies a thread. ///
/// @@ -20,6 +21,7 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify thread
/// Modifies a thread. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRun.g.cs index 94ed5cec..95a26a11 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAssistantsClient { /// + /// Submit tool outputs to run
/// When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. ///
/// @@ -22,6 +23,7 @@ public partial interface IAssistantsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Submit tool outputs to run
/// When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs index 50a2fea4..98000f42 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAudioClient { /// + /// Create speech
/// Generates audio from the input text. ///
/// @@ -15,6 +16,7 @@ public partial interface IAudioClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create speech
/// Generates audio from the input text. ///
/// @@ -24,7 +26,7 @@ public partial interface IAudioClient /// Control the voice of your generated audio with additional instructions. Does not work with `tts-1` or `tts-1-hd`. /// /// - /// One of the available [TTS models](/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. + /// One of the available [TTS models](https://platform.openai.com/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. /// /// /// The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs index d71b1b11..f0deee90 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs @@ -5,16 +5,18 @@ namespace tryAGI.OpenAI public partial interface IAudioClient { /// + /// Create transcription
/// Transcribes audio into the input language. ///
/// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + global::System.Threading.Tasks.Task> CreateTranscriptionAsync( global::tryAGI.OpenAI.CreateTranscriptionRequest request, global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create transcription
/// Transcribes audio into the input language. ///
/// @@ -41,7 +43,7 @@ public partial interface IAudioClient /// Example: gpt-4o-transcribe /// /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language. + /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match the audio language. /// /// /// The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, the only supported format is `json`.
@@ -50,7 +52,7 @@ public partial interface IAudioClient /// /// If set to true, the model response data will be streamed to the client
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
- /// See the [Streaming section of the Speech-to-Text guide](/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
+ /// See the [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
/// for more information.
/// Note: Streaming is not supported for the `whisper-1` model and will be ignored.
/// Default Value: false @@ -65,11 +67,11 @@ public partial interface IAudioClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + global::System.Threading.Tasks.Task> CreateTranscriptionAsync( byte[] file, string filename, global::tryAGI.OpenAI.AnyOf model, - global::tryAGI.OpenAI.AnyOf? chunkingStrategy = default, + global::tryAGI.OpenAI.TranscriptionChunkingStrategy? chunkingStrategy = default, global::System.Collections.Generic.IList? include = default, string? language = default, string? prompt = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranslation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranslation.g.cs index 63742d62..5f70aab2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranslation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranslation.g.cs @@ -5,16 +5,18 @@ namespace tryAGI.OpenAI public partial interface IAudioClient { /// + /// Create translation
/// Translates audio into English. ///
/// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateTranslationAsync( + global::System.Threading.Tasks.Task> CreateTranslationAsync( global::tryAGI.OpenAI.CreateTranslationRequest request, global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create translation
/// Translates audio into English. ///
/// @@ -28,7 +30,7 @@ public partial interface IAudioClient /// Example: whisper-1 /// /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should be in English. + /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should be in English. /// /// /// The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
@@ -40,7 +42,7 @@ public partial interface IAudioClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateTranslationAsync( + global::System.Threading.Tasks.Task> CreateTranslationAsync( byte[] file, string filename, global::tryAGI.OpenAI.AnyOf model, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.ListAuditLogs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.ListAuditLogs.g.cs index 313ead56..12e2f5dc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.ListAuditLogs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAuditLogsClient.ListAuditLogs.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IAuditLogsClient { /// + /// List audit logs
/// List user actions and configuration changes within this organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.CancelBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.CancelBatch.g.cs index 8380df4b..95cd0f52 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.CancelBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.CancelBatch.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IBatchClient { /// + /// Cancel batch
/// Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.CreateBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.CreateBatch.g.cs index e712253a..83a5a677 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.CreateBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.CreateBatch.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IBatchClient { /// + /// Create batch
/// Creates and executes a batch from an uploaded file of requests ///
/// @@ -15,6 +16,7 @@ public partial interface IBatchClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create batch
/// Creates and executes a batch from an uploaded file of requests ///
/// @@ -25,8 +27,8 @@ public partial interface IBatchClient /// /// /// The ID of an uploaded file that contains requests for the new batch.
- /// See [upload file](/docs/api-reference/files/create) for how to upload a file.
- /// Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size. + /// See [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.
+ /// Your input file must be formatted as a [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.ListBatches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.ListBatches.g.cs index c03d20fb..95a2acd8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.ListBatches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.ListBatches.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IBatchClient { /// + /// List batch
/// List your organization's batches. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.RetrieveBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.RetrieveBatch.g.cs index 29d43e58..7497d322 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.RetrieveBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.RetrieveBatch.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IBatchClient { /// + /// Retrieve batch
/// Retrieves a batch. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ActivateOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ActivateOrganizationCertificates.g.cs index 2acdb78e..02e50bc4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ActivateOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ActivateOrganizationCertificates.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// Activate certificates for organization
/// Activate certificates at the organization level.
/// You can atomically and idempotently activate up to 10 certificates at a time. ///
@@ -16,6 +17,7 @@ public partial interface ICertificatesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Activate certificates for organization
/// Activate certificates at the organization level.
/// You can atomically and idempotently activate up to 10 certificates at a time. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ActivateProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ActivateProjectCertificates.g.cs index 057f43c6..67d296d6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ActivateProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ActivateProjectCertificates.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// Activate certificates for project
/// Activate certificates at the project level.
/// You can atomically and idempotently activate up to 10 certificates at a time. ///
@@ -18,6 +19,7 @@ public partial interface ICertificatesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Activate certificates for project
/// Activate certificates at the project level.
/// You can atomically and idempotently activate up to 10 certificates at a time. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeactivateOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeactivateOrganizationCertificates.g.cs index eaabe1dc..f9b868a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeactivateOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeactivateOrganizationCertificates.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// Deactivate certificates for organization
/// Deactivate certificates at the organization level.
/// You can atomically and idempotently deactivate up to 10 certificates at a time. ///
@@ -16,6 +17,7 @@ public partial interface ICertificatesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Deactivate certificates for organization
/// Deactivate certificates at the organization level.
/// You can atomically and idempotently deactivate up to 10 certificates at a time. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeactivateProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeactivateProjectCertificates.g.cs index efc56377..0cc8ab63 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeactivateProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeactivateProjectCertificates.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// Deactivate certificates for project
/// Deactivate certificates at the project level. You can atomically and
/// idempotently deactivate up to 10 certificates at a time. ///
@@ -18,6 +19,7 @@ public partial interface ICertificatesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Deactivate certificates for project
/// Deactivate certificates at the project level. You can atomically and
/// idempotently deactivate up to 10 certificates at a time. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeleteCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeleteCertificate.g.cs index a986fbf9..c87061c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeleteCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.DeleteCertificate.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// Delete certificate
/// Delete a certificate from the organization.
/// The certificate must be inactive for the organization and all projects. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.GetCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.GetCertificate.g.cs index 69792656..663d984b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.GetCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.GetCertificate.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// Get certificate
/// Get a certificate that has been uploaded to the organization.
/// You can get a certificate regardless of whether it is active or not. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ListOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ListOrganizationCertificates.g.cs index 16fe8fc9..a3c1110b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ListOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ListOrganizationCertificates.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// List organization certificates
/// List uploaded certificates for this organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ListProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ListProjectCertificates.g.cs index 8c8b9d31..1672e37d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ListProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ListProjectCertificates.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// List project certificates
/// List certificates for this project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ModifyCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ModifyCertificate.g.cs index 5909c212..c5ef4dde 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ModifyCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.ModifyCertificate.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// Modify certificate
/// Modify a certificate. Note that only the name can be modified. ///
/// @@ -17,6 +18,7 @@ public partial interface ICertificatesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify certificate
/// Modify a certificate. Note that only the name can be modified. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.UploadCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.UploadCertificate.g.cs index 5e8112b0..c6b308f1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.UploadCertificate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICertificatesClient.UploadCertificate.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICertificatesClient { /// + /// Upload certificate
/// Upload a certificate to the organization. This does **not** automatically activate the certificate.
/// Organizations can upload up to 50 certificates. ///
@@ -16,6 +17,7 @@ public partial interface ICertificatesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Upload certificate
/// Upload a certificate to the organization. This does **not** automatically activate the certificate.
/// Organizations can upload up to 50 certificates. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.CreateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.CreateChatCompletion.g.cs index c52419c9..646eff2a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.CreateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.CreateChatCompletion.g.cs @@ -5,18 +5,19 @@ namespace tryAGI.OpenAI public partial interface IChatClient { /// - /// **Starting a new project?** We recommend trying [Responses](/docs/api-reference/responses)
+ /// Create chat completion
+ /// **Starting a new project?** We recommend trying [Responses](https://platform.openai.com/docs/api-reference/responses)
/// to take advantage of the latest OpenAI platform features. Compare
- /// [Chat Completions with Responses](/docs/guides/responses-vs-chat-completions?api-mode=responses).
+ /// [Chat Completions with Responses](https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses).
/// ---
/// Creates a model response for the given chat conversation. Learn more in the
- /// [text generation](/docs/guides/text-generation), [vision](/docs/guides/vision),
- /// and [audio](/docs/guides/audio) guides.
+ /// [text generation](https://platform.openai.com/docs/guides/text-generation), [vision](https://platform.openai.com/docs/guides/vision),
+ /// and [audio](https://platform.openai.com/docs/guides/audio) guides.
/// Parameter support can differ depending on the model used to generate the
/// response, particularly for newer reasoning models. Parameters that are only
/// supported for reasoning models are noted below. For the current state of
/// unsupported parameters in reasoning models,
- /// [refer to the reasoning guide](/docs/guides/reasoning). + /// [refer to the reasoning guide](https://platform.openai.com/docs/guides/reasoning). ///
/// /// The token to cancel the operation with @@ -26,18 +27,19 @@ public partial interface IChatClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// **Starting a new project?** We recommend trying [Responses](/docs/api-reference/responses)
+ /// Create chat completion
+ /// **Starting a new project?** We recommend trying [Responses](https://platform.openai.com/docs/api-reference/responses)
/// to take advantage of the latest OpenAI platform features. Compare
- /// [Chat Completions with Responses](/docs/guides/responses-vs-chat-completions?api-mode=responses).
+ /// [Chat Completions with Responses](https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses).
/// ---
/// Creates a model response for the given chat conversation. Learn more in the
- /// [text generation](/docs/guides/text-generation), [vision](/docs/guides/vision),
- /// and [audio](/docs/guides/audio) guides.
+ /// [text generation](https://platform.openai.com/docs/guides/text-generation), [vision](https://platform.openai.com/docs/guides/vision),
+ /// and [audio](https://platform.openai.com/docs/guides/audio) guides.
/// Parameter support can differ depending on the model used to generate the
/// response, particularly for newer reasoning models. Parameters that are only
/// supported for reasoning models are noted below. For the current state of
/// unsupported parameters in reasoning models,
- /// [refer to the reasoning guide](/docs/guides/reasoning). + /// [refer to the reasoning guide](https://platform.openai.com/docs/guides/reasoning). ///
/// The token to cancel the operation with /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.DeleteChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.DeleteChatCompletion.g.cs index 083f5cf7..9acbd687 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.DeleteChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.DeleteChatCompletion.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IChatClient { /// + /// Delete chat completion
/// Delete a stored chat completion. Only Chat Completions that have been
/// created with the `store` parameter set to `true` can be deleted. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletion.g.cs index 03fc90db..a35115d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletion.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IChatClient { /// + /// Get chat completion
/// Get a stored chat completion. Only Chat Completions that have been created
/// with the `store` parameter set to `true` will be returned. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletionMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletionMessages.g.cs index bd8bc6b4..b3abef2f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletionMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletionMessages.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IChatClient { /// + /// Get chat messages
/// Get the messages in a stored chat completion. Only Chat Completions that
/// have been created with the `store` parameter set to `true` will be
/// returned. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.ListChatCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.ListChatCompletions.g.cs index 4355091c..d797630a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.ListChatCompletions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.ListChatCompletions.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IChatClient { /// + /// List Chat Completions
/// List stored Chat Completions. Only Chat Completions that have been stored
/// with the `store` parameter set to `true` will be returned. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.UpdateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.UpdateChatCompletion.g.cs index 1d7ed48b..55beeed8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.UpdateChatCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.UpdateChatCompletion.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IChatClient { /// + /// Update chat completion
/// Modify a stored chat completion. Only Chat Completions that have been
/// created with the `store` parameter set to `true` can be modified. Currently,
/// the only supported modification is to update the `metadata` field. @@ -19,6 +20,7 @@ public partial interface IChatClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Update chat completion
/// Modify a stored chat completion. Only Chat Completions that have been
/// created with the `store` parameter set to `true` can be modified. Currently,
/// the only supported modification is to update the `metadata` field. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.CreateCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.CreateCompletion.g.cs index f299590e..459a3c3d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.CreateCompletion.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ICompletionsClient.CreateCompletion.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface ICompletionsClient { /// + /// Create completion
/// Creates a completion for the provided prompt and parameters. ///
/// @@ -15,6 +16,7 @@ public partial interface ICompletionsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create completion
/// Creates a completion for the provided prompt and parameters. ///
/// @@ -29,7 +31,7 @@ public partial interface ICompletionsClient /// /// /// Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
- /// [See more information about frequency and presence penalties.](/docs/guides/text-generation)
+ /// [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
/// Default Value: 0 /// /// @@ -48,7 +50,7 @@ public partial interface ICompletionsClient /// Example: 16 /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// /// /// How many completions to generate for each prompt.
@@ -58,13 +60,12 @@ public partial interface ICompletionsClient /// /// /// Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
- /// [See more information about frequency and presence penalties.](/docs/guides/text-generation)
+ /// [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
/// Default Value: 0 /// /// /// The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
- /// Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
- /// Default Value: <|endoftext|> + /// Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document. /// /// /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.
@@ -100,14 +101,14 @@ public partial interface ICompletionsClient /// Example: 1 /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateCompletionAsync( global::tryAGI.OpenAI.AnyOf model, - global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? prompt, + global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? prompt, int? bestOf = default, bool? echo = default, double? frequencyPenalty = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.CreateEmbedding.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.CreateEmbedding.g.cs index 02653f8e..1511ce2d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.CreateEmbedding.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEmbeddingsClient.CreateEmbedding.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEmbeddingsClient { /// + /// Create embeddings
/// Creates an embedding vector representing the input text. ///
/// @@ -15,6 +16,7 @@ public partial interface IEmbeddingsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create embeddings
/// Creates an embedding vector representing the input text. ///
/// @@ -30,17 +32,17 @@ public partial interface IEmbeddingsClient /// Example: The quick brown fox jumped over the lazy dog /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.
+ /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.
/// Example: text-embedding-3-small /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateEmbeddingAsync( - global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>> input, + global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>> input, global::tryAGI.OpenAI.AnyOf model, int? dimensions = default, global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? encodingFormat = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CancelEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CancelEvalRun.g.cs index 817ce785..126b744f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CancelEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CancelEvalRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Cancel eval run
/// Cancel an ongoing evaluation run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CreateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CreateEval.g.cs index f195ce70..9aacabd6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CreateEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CreateEval.g.cs @@ -5,9 +5,10 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Create eval
/// Create the structure of an evaluation that can be used to test a model's performance.
/// An evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources.
- /// For more information, see the [Evals guide](/docs/guides/evals). + /// For more information, see the [Evals guide](https://platform.openai.com/docs/guides/evals). ///
/// /// The token to cancel the operation with @@ -17,9 +18,10 @@ public partial interface IEvalsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create eval
/// Create the structure of an evaluation that can be used to test a model's performance.
/// An evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources.
- /// For more information, see the [Evals guide](/docs/guides/evals). + /// For more information, see the [Evals guide](https://platform.openai.com/docs/guides/evals). ///
/// /// The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation. @@ -41,9 +43,9 @@ public partial interface IEvalsClient /// global::System.Threading.Tasks.Task CreateEvalAsync( #pragma warning disable CS0618 // Type or member is obsolete - global::tryAGI.OpenAI.OneOf dataSourceConfig, + global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig dataSourceConfig, #pragma warning disable CS0618 // Type or member is obsolete - global::System.Collections.Generic.IList> testingCriteria, + global::System.Collections.Generic.IList testingCriteria, global::System.Collections.Generic.Dictionary? metadata = default, string? name = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CreateEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CreateEvalRun.g.cs index 6b1d9121..d9d50625 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CreateEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.CreateEvalRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Create eval run
/// Kicks off a new run for a given evaluation, specifying the data source, and what model configuration to use to test. The datasource will be validated against the schema specified in the config of the evaluation. ///
/// @@ -17,6 +18,7 @@ public partial interface IEvalsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create eval run
/// Kicks off a new run for a given evaluation, specifying the data source, and what model configuration to use to test. The datasource will be validated against the schema specified in the config of the evaluation. ///
/// @@ -37,7 +39,7 @@ public partial interface IEvalsClient /// global::System.Threading.Tasks.Task CreateEvalRunAsync( string evalId, - global::tryAGI.OpenAI.OneOf dataSource, + global::tryAGI.OpenAI.AnyOf dataSource, global::System.Collections.Generic.Dictionary? metadata = default, string? name = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.DeleteEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.DeleteEval.g.cs index 2c64c560..e1f93d74 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.DeleteEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.DeleteEval.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Delete an eval
/// Delete an evaluation. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.DeleteEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.DeleteEvalRun.g.cs index 3a8df687..d5fbd2ef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.DeleteEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.DeleteEvalRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Delete eval run
/// Delete an eval run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEval.g.cs index e0c22887..20a86370 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEval.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Get an eval
/// Get an evaluation by ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRun.g.cs index f19da03d..7977de99 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRun.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Get an eval run
/// Get an evaluation run by ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRunOutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRunOutputItem.g.cs index bc7b35dc..9e4d434f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRunOutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRunOutputItem.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Get an output item of an eval run
/// Get an evaluation run output item by ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRunOutputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRunOutputItems.g.cs index f3c7d6f2..8ae35369 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRunOutputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRunOutputItems.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Get eval run output items
/// Get a list of output items for an evaluation run. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRuns.g.cs index 5604666f..fdb0c66b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRuns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.GetEvalRuns.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Get eval runs
/// Get a list of runs for an evaluation. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.ListEvals.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.ListEvals.g.cs index eaad65ee..588763bf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.ListEvals.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.ListEvals.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// List evals
/// List evaluations for a project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.UpdateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.UpdateEval.g.cs index b9ca96a3..9f2b6ec2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.UpdateEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IEvalsClient.UpdateEval.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IEvalsClient { /// + /// Update an eval
/// Update certain properties of an evaluation. ///
/// @@ -17,6 +18,7 @@ public partial interface IEvalsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Update an eval
/// Update certain properties of an evaluation. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.CreateFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.CreateFile.g.cs index 2a36b6ff..8105a83e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.CreateFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.CreateFile.g.cs @@ -5,10 +5,11 @@ namespace tryAGI.OpenAI public partial interface IFilesClient { /// + /// Upload file
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.
- /// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details.
- /// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models.
- /// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input).
+ /// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details.
+ /// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models.
+ /// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input).
/// Please [contact us](https://help.openai.com/) if you need to increase these storage limits. ///
/// @@ -19,10 +20,11 @@ public partial interface IFilesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Upload file
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.
- /// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details.
- /// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models.
- /// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input).
+ /// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details.
+ /// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models.
+ /// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input).
/// Please [contact us](https://help.openai.com/) if you need to increase these storage limits. ///
/// @@ -39,7 +41,7 @@ public partial interface IFilesClient global::System.Threading.Tasks.Task CreateFileAsync( byte[] file, string filename, - global::tryAGI.OpenAI.CreateFileRequestPurpose purpose, + global::tryAGI.OpenAI.FilePurpose purpose, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DeleteFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DeleteFile.g.cs index a033e34e..387ac5bc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DeleteFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DeleteFile.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFilesClient { /// + /// Delete file
/// Delete a file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DownloadFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DownloadFile.g.cs index a94c4550..b0f9710c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DownloadFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.DownloadFile.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFilesClient { /// + /// Retrieve file content
/// Returns the contents of the specified file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.ListFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.ListFiles.g.cs index 054b0179..c076248d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.ListFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.ListFiles.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFilesClient { /// + /// List files
/// Returns a list of files. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.RetrieveFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.RetrieveFile.g.cs index d8588017..b1f6bdd5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.RetrieveFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.RetrieveFile.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFilesClient { /// + /// Retrieve file
/// Returns information about a specific file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CancelFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CancelFineTuningJob.g.cs index 8a8f6861..bfe996a7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CancelFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CancelFineTuningJob.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// Cancel fine-tuning
/// Immediately cancel a fine-tune job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CreateFineTuningCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CreateFineTuningCheckpointPermission.g.cs index 3341f335..fb695764 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CreateFineTuningCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CreateFineTuningCheckpointPermission.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// Create checkpoint permissions
/// **NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).
/// This enables organization owners to share fine-tuned models with other projects in their organization. ///
@@ -20,6 +21,7 @@ public partial interface IFineTuningClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create checkpoint permissions
/// **NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).
/// This enables organization owners to share fine-tuned models with other projects in their organization. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CreateFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CreateFineTuningJob.g.cs index 97bbc855..ab239e45 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CreateFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.CreateFineTuningJob.g.cs @@ -5,9 +5,10 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// Create fine-tuning job
/// Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
/// Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
- /// [Learn more about fine-tuning](/docs/guides/model-optimization) + /// [Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization) ///
/// /// The token to cancel the operation with @@ -17,9 +18,10 @@ public partial interface IFineTuningClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create fine-tuning job
/// Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
/// Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
- /// [Learn more about fine-tuning](/docs/guides/model-optimization) + /// [Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization) ///
/// /// A list of integrations to enable for your fine-tuning job. @@ -36,7 +38,7 @@ public partial interface IFineTuningClient /// /// /// The name of the model to fine-tune. You can select one of the
- /// [supported models](/docs/guides/fine-tuning#which-models-can-be-fine-tuned).
+ /// [supported models](https://platform.openai.com/docs/guides/fine-tuning#which-models-can-be-fine-tuned).
/// Example: gpt-4o-mini /// /// @@ -50,10 +52,10 @@ public partial interface IFineTuningClient /// /// /// The ID of an uploaded file that contains training data.
- /// See [upload file](/docs/api-reference/files/create) for how to upload a file.
+ /// See [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.
/// Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.
- /// The contents of the file should differ depending on if the model uses the [chat](/docs/api-reference/fine-tuning/chat-input), [completions](/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](/docs/api-reference/fine-tuning/preference-input) format.
- /// See the [fine-tuning guide](/docs/guides/model-optimization) for more details.
+ /// The contents of the file should differ depending on if the model uses the [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input), [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](https://platform.openai.com/docs/api-reference/fine-tuning/preference-input) format.
+ /// See the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.
/// Example: file-abc123 /// /// @@ -63,7 +65,7 @@ public partial interface IFineTuningClient /// the fine-tuning results file.
/// The same data should not be present in both train and validation files.
/// Your dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.
- /// See the [fine-tuning guide](/docs/guides/model-optimization) for more details.
+ /// See the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.
/// Example: file-abc123 /// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.DeleteFineTuningCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.DeleteFineTuningCheckpointPermission.g.cs index a47ebbf1..11b980cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.DeleteFineTuningCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.DeleteFineTuningCheckpointPermission.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// Delete checkpoint permission
/// **NOTE:** This endpoint requires an [admin API key](../admin-api-keys).
/// Organization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningCheckpointPermissions.g.cs index f163925e..c76f2aa7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningCheckpointPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningCheckpointPermissions.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// List checkpoint permissions
/// **NOTE:** This endpoint requires an [admin API key](../admin-api-keys).
/// Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningEvents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningEvents.g.cs index 1663cbec..bae0872b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningEvents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningEvents.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// List fine-tuning events
/// Get status updates for a fine-tuning job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningJobCheckpoints.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningJobCheckpoints.g.cs index 049df2b9..615403e0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningJobCheckpoints.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListFineTuningJobCheckpoints.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// List fine-tuning checkpoints
/// List checkpoints for a fine-tuning job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListPaginatedFineTuningJobs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListPaginatedFineTuningJobs.g.cs index fbbc2318..d7383d71 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListPaginatedFineTuningJobs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ListPaginatedFineTuningJobs.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// List fine-tuning jobs
/// List your organization's fine-tuning jobs ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.PauseFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.PauseFineTuningJob.g.cs index 732654a0..36eefe54 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.PauseFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.PauseFineTuningJob.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// Pause fine-tuning
/// Pause a fine-tune job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ResumeFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ResumeFineTuningJob.g.cs index 239fe642..797e2edf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ResumeFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ResumeFineTuningJob.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// Resume fine-tuning
/// Resume a fine-tune job. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.RetrieveFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.RetrieveFineTuningJob.g.cs index 9295fde5..9dcb0464 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.RetrieveFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.RetrieveFineTuningJob.g.cs @@ -5,8 +5,9 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// Retrieve fine-tuning job
/// Get info about a fine-tuning job.
- /// [Learn more about fine-tuning](/docs/guides/model-optimization) + /// [Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization) ///
/// /// Example: ft-AF1WoRqd3aJAHsqc9NY7iL8F diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.RunGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.RunGrader.g.cs index c031d7df..546fce8b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.RunGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.RunGrader.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// Run grader
/// Run a grader. ///
/// @@ -18,6 +19,7 @@ public partial interface IFineTuningClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Run grader
/// Run a grader. ///
/// @@ -25,11 +27,11 @@ public partial interface IFineTuningClient /// /// /// The dataset item provided to the grader. This will be used to populate
- /// the `item` namespace. See [the guide](/docs/guides/graders) for more details. + /// the `item` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details. /// /// /// The model sample to be evaluated. This value will be used to populate
- /// the `sample` namespace. See [the guide](/docs/guides/graders) for more details.
+ /// the `sample` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details.
/// The `output_json` variable will be populated if the model sample is a
/// valid JSON string.
/// @@ -40,7 +42,7 @@ public partial interface IFineTuningClient [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")] #endif global::System.Threading.Tasks.Task RunGraderAsync( - global::tryAGI.OpenAI.OneOf grader, + global::tryAGI.OpenAI.RunGraderRequestGrader grader, string modelSample, object? item = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ValidateGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ValidateGrader.g.cs index 332d3dcd..2c43a037 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ValidateGrader.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFineTuningClient.ValidateGrader.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IFineTuningClient { /// + /// Validate grader
/// Validate a grader. ///
/// @@ -18,6 +19,7 @@ public partial interface IFineTuningClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Validate grader
/// Validate a grader. ///
/// @@ -29,7 +31,7 @@ public partial interface IFineTuningClient [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "TRYAGI_OPENAI_BETA_001")] #endif global::System.Threading.Tasks.Task ValidateGraderAsync( - global::tryAGI.OpenAI.OneOf grader, + global::tryAGI.OpenAI.AnyOf grader, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImage.g.cs index a7002ce4..c0fb8fcd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImage.g.cs @@ -5,7 +5,8 @@ namespace tryAGI.OpenAI public partial interface IImagesClient { /// - /// Creates an image given a prompt. [Learn more](/docs/guides/images). + /// Create image
+ /// Creates an image given a prompt. [Learn more](https://platform.openai.com/docs/guides/images). ///
/// /// The token to cancel the operation with @@ -15,7 +16,8 @@ public partial interface IImagesClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Creates an image given a prompt. [Learn more](/docs/guides/images). + /// Create image
+ /// Creates an image given a prompt. [Learn more](https://platform.openai.com/docs/guides/images). ///
/// /// Allows to set transparency for the background of the generated image(s).
@@ -28,9 +30,7 @@ public partial interface IImagesClient /// Example: transparent /// /// - /// The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.
- /// Default Value: dall-e-2
- /// Example: gpt-image-1 + /// The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used. /// /// /// Control the content-moderation level for images generated by `gpt-image-1`. Must be either `low` for less restrictive filtering or `auto` (default value).
@@ -86,7 +86,7 @@ public partial interface IImagesClient /// /// /// Generate the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
+ /// [Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.
/// This parameter is only supported for `gpt-image-1`.
/// Default Value: false
/// Example: false @@ -97,7 +97,7 @@ public partial interface IImagesClient /// Example: vivid /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEdit.g.cs index 0fe4b837..9dffbe7e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEdit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEdit.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IImagesClient { /// + /// Create image edit
/// Creates an edited or extended image given one or more source images and a prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`. ///
/// @@ -15,6 +16,7 @@ public partial interface IImagesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create image edit
/// Creates an edited or extended image given one or more source images and a prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`. ///
/// @@ -47,9 +49,7 @@ public partial interface IImagesClient /// An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`. /// /// - /// The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.
- /// Default Value: dall-e-2
- /// Example: gpt-image-1 + /// The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used. /// /// /// The number of images to generate. Must be between 1 and 10.
@@ -100,12 +100,12 @@ public partial interface IImagesClient /// /// /// Edit the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
+ /// [Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.
/// Default Value: false
/// Example: false /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageVariation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageVariation.g.cs index 489ce20d..75857a98 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageVariation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageVariation.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IImagesClient { /// + /// Create image variation
/// Creates a variation of a given image. This endpoint only supports `dall-e-2`. ///
/// @@ -15,6 +16,7 @@ public partial interface IImagesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create image variation
/// Creates a variation of a given image. This endpoint only supports `dall-e-2`. ///
/// @@ -24,9 +26,7 @@ public partial interface IImagesClient /// The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square. /// /// - /// The model to use for image generation. Only `dall-e-2` is supported at this time.
- /// Default Value: dall-e-2
- /// Example: dall-e-2 + /// The model to use for image generation. Only `dall-e-2` is supported at this time. /// /// /// The number of images to generate. Must be between 1 and 10.
@@ -44,7 +44,7 @@ public partial interface IImagesClient /// Example: 1024x1024 /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.DeleteInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.DeleteInvite.g.cs index dabf9627..d3ff72e6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.DeleteInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.DeleteInvite.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IInvitesClient { /// + /// Delete invite
/// Delete an invite. If the invite has already been accepted, it cannot be deleted. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.InviteUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.InviteUser.g.cs index af195de2..045b3a1a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.InviteUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.InviteUser.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IInvitesClient { /// + /// Create invite
/// Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization. ///
/// @@ -15,6 +16,7 @@ public partial interface IInvitesClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create invite
/// Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.ListInvites.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.ListInvites.g.cs index e38e8006..852a1a54 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.ListInvites.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.ListInvites.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IInvitesClient { /// + /// List invites
/// Returns a list of invites in the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.RetrieveInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.RetrieveInvite.g.cs index 16feba69..43d3daaf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.RetrieveInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IInvitesClient.RetrieveInvite.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IInvitesClient { /// + /// Retrieve invite
/// Retrieves an invite. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.DeleteModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.DeleteModel.g.cs index ec78e20a..d3df81ea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.DeleteModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.DeleteModel.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IModelsClient { /// + /// Delete a fine-tuned model
/// Delete a fine-tuned model. You must have the Owner role in your organization to delete a model. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.ListModels.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.ListModels.g.cs index 67a9e8b8..45aee440 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.ListModels.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.ListModels.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IModelsClient { /// + /// List models
/// Lists the currently available models, and provides basic information about each one such as the owner and availability. ///
/// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.RetrieveModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.RetrieveModel.g.cs index 23f36986..48c9a722 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.RetrieveModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModelsClient.RetrieveModel.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IModelsClient { /// + /// Retrieve model
/// Retrieves a model instance, providing basic information about the model such as the owner and permissioning. ///
/// @@ -12,7 +13,7 @@ public partial interface IModelsClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task RetrieveModelAsync( + global::System.Threading.Tasks.Task RetrieveModelAsync( string model, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.CreateModeration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.CreateModeration.g.cs index 40044c38..81fabca7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.CreateModeration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IModerationsClient.CreateModeration.g.cs @@ -5,8 +5,9 @@ namespace tryAGI.OpenAI public partial interface IModerationsClient { /// + /// Create moderation
/// Classifies if text and/or image inputs are potentially harmful. Learn
- /// more in the [moderation guide](/docs/guides/moderation). + /// more in the [moderation guide](https://platform.openai.com/docs/guides/moderation). ///
/// /// The token to cancel the operation with @@ -16,8 +17,9 @@ public partial interface IModerationsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create moderation
/// Classifies if text and/or image inputs are potentially harmful. Learn
- /// more in the [moderation guide](/docs/guides/moderation). + /// more in the [moderation guide](https://platform.openai.com/docs/guides/moderation). ///
/// /// Input (or inputs) to classify. Can be a single string, an array of strings, or
@@ -25,15 +27,13 @@ public partial interface IModerationsClient /// /// /// The content moderation model you would like to use. Learn more in
- /// [the moderation guide](/docs/guides/moderation), and learn about
- /// available models [here](/docs/models#moderation).
- /// Default Value: omni-moderation-latest
- /// Example: omni-moderation-2024-09-26 + /// [the moderation guide](https://platform.openai.com/docs/guides/moderation), and learn about
+ /// available models [here](https://platform.openai.com/docs/models#moderation). /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateModerationAsync( - global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>> input, + global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList> input, global::tryAGI.OpenAI.AnyOf? model = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysCreate.g.cs index 300640e1..0542d8cb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysCreate.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// Create an organization admin API key
- /// Create a new admin-level API key for the organization. + /// Create admin API key
+ /// Create an organization admin API key ///
/// /// The token to cancel the operation with @@ -16,8 +16,8 @@ public partial interface IOpenAiClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create an organization admin API key
- /// Create a new admin-level API key for the organization. + /// Create admin API key
+ /// Create an organization admin API key ///
/// /// Example: New Admin Key diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysDelete.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysDelete.g.cs index 9db51c6a..b58d9453 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysDelete.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysDelete.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// Delete an organization admin API key
- /// Delete the specified admin API key. + /// Delete admin API key
+ /// Delete an organization admin API key ///
/// /// The ID of the API key to be deleted. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysGet.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysGet.g.cs index 44af2be3..7d13a931 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysGet.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysGet.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// Retrieve a single organization API key
- /// Get details for a specific organization API key by its ID. + /// Retrieve admin API key
+ /// Retrieve a single organization API key ///
/// /// The ID of the API key. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysList.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysList.g.cs index 0ce59dec..c719ec40 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysList.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.AdminApiKeysList.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// List organization API keys
- /// Retrieve a paginated list of organization admin API keys. + /// List all organization and project API keys.
+ /// List organization API keys ///
/// /// Return keys with IDs that come after this ID in the pagination order. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.CreateContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.CreateContainer.g.cs index f5cd3c7f..da8db095 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.CreateContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.CreateContainer.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// Create Container
- /// Creates a container. + /// Create container
+ /// Create Container ///
/// /// The token to cancel the operation with @@ -16,8 +16,8 @@ public partial interface IOpenAiClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create Container
- /// Creates a container. + /// Create container
+ /// Create Container ///
/// /// Container expiration time in seconds relative to the 'anchor' time. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.CreateContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.CreateContainerFile.g.cs index 4e741e34..5ca34fb4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.CreateContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.CreateContainerFile.g.cs @@ -5,9 +5,9 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// + /// Create container file
/// Create a Container File
- /// You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID.
- /// Creates a container file. + /// You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID. ///
/// /// @@ -19,9 +19,9 @@ public partial interface IOpenAiClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create container file
/// Create a Container File
- /// You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID.
- /// Creates a container file. + /// You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID. ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainer.g.cs index 2d246dc4..7c098d43 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainer.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// Delete Container
- /// Delete a container. + /// Delete a container
+ /// Delete Container ///
/// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainerFile.g.cs index 3f0759b7..58b5a91a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainerFile.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// Delete Container File
- /// Delete a container file. + /// Delete a container file
+ /// Delete Container File ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.ListContainerFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.ListContainerFiles.g.cs index 7706581f..6b236fa2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.ListContainerFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.ListContainerFiles.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// List Container files
- /// Lists container files. + /// List container files
+ /// List Container files ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.ListContainers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.ListContainers.g.cs index 93f7bdef..7b89727c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.ListContainers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.ListContainers.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// List Containers
- /// Lists containers. + /// List containers
+ /// List Containers ///
/// /// Default Value: 20 diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainer.g.cs index ff766ea0..ffe48288 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainer.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// Retrieve Container
- /// Retrieves a container. + /// Retrieve container
+ /// Retrieve Container ///
/// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFile.g.cs index 20c11058..9a4b68b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFile.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// Retrieve Container File
- /// Retrieves a container file. + /// Retrieve container file
+ /// Retrieve Container File ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFileContent.g.cs index e72dc2d3..c25cb16d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFileContent.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI public partial interface IOpenAiClient { /// - /// Retrieve Container File Content
- /// Retrieves a container file content. + /// Retrieve container file content
+ /// Retrieve Container File Content ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ArchiveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ArchiveProject.g.cs index e0e70688..cb479e15 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ArchiveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ArchiveProject.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Archive project
/// Archives a project in the organization. Archived projects cannot be used or updated. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProject.g.cs index 28f01d97..2fe01899 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProject.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Create project
/// Create a new project in the organization. Projects can be created and archived, but cannot be deleted. ///
/// @@ -15,6 +16,7 @@ public partial interface IProjectsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create project
/// Create a new project in the organization. Projects can be created and archived, but cannot be deleted. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProjectServiceAccount.g.cs index 1bdf0bac..bb5c9e49 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProjectServiceAccount.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Create project service account
/// Creates a new service account in the project. This also returns an unredacted API key for the service account. ///
/// @@ -17,6 +18,7 @@ public partial interface IProjectsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create project service account
/// Creates a new service account in the project. This also returns an unredacted API key for the service account. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProjectUser.g.cs index 3bfb5062..1483e13b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.CreateProjectUser.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Create project user
/// Adds a user to the project. Users must already be members of the organization to be added to a project. ///
/// @@ -17,6 +18,7 @@ public partial interface IProjectsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create project user
/// Adds a user to the project. Users must already be members of the organization to be added to a project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectApiKey.g.cs index c60bd47e..aafa564d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectApiKey.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Delete project API key
/// Deletes an API key from the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectServiceAccount.g.cs index f27c3b0b..7b7cebca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectServiceAccount.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Delete project service account
/// Deletes a service account from the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectUser.g.cs index 75ffd1e1..d706633b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectUser.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Delete project user
/// Deletes a user from the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectApiKeys.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectApiKeys.g.cs index b8bb1afd..1725ca68 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectApiKeys.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectApiKeys.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// List project API keys
/// Returns a list of API keys in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectRateLimits.g.cs index 0c3338fe..369abd06 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectRateLimits.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectRateLimits.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// List project rate limits
/// Returns the rate limits per model for a project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectServiceAccounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectServiceAccounts.g.cs index c9db3298..e75d9faf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectServiceAccounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectServiceAccounts.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// List project service accounts
/// Returns a list of service accounts in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectUsers.g.cs index 62bc857b..1731e551 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjectUsers.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// List project users
/// Returns a list of users in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjects.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjects.g.cs index 05a8bbd2..1d820662 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjects.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ListProjects.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// List projects
/// Returns a list of projects. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ModifyProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ModifyProject.g.cs index db5b841a..d18cf477 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ModifyProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ModifyProject.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Modify project
/// Modifies a project in the organization. ///
/// @@ -17,6 +18,7 @@ public partial interface IProjectsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify project
/// Modifies a project in the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ModifyProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ModifyProjectUser.g.cs index 9f917804..704d4940 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ModifyProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.ModifyProjectUser.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Modify project user
/// Modifies a user's role in the project. ///
/// @@ -19,6 +20,7 @@ public partial interface IProjectsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify project user
/// Modifies a user's role in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProject.g.cs index f55c6421..4b5f9a3a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProject.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Retrieve project
/// Retrieves a project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectApiKey.g.cs index 341dfc20..d6dad380 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectApiKey.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Retrieve project API key
/// Retrieves an API key in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectServiceAccount.g.cs index a33a55e0..3ff99875 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectServiceAccount.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Retrieve project service account
/// Retrieves a service account in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectUser.g.cs index d6ffaa22..7be7426a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.RetrieveProjectUser.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Retrieve project user
/// Retrieves a user in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.UpdateProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.UpdateProjectRateLimits.g.cs index b12ec0ea..e19a293c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.UpdateProjectRateLimits.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.UpdateProjectRateLimits.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IProjectsClient { /// + /// Modify project rate limit
/// Updates a project rate limit. ///
/// @@ -19,6 +20,7 @@ public partial interface IProjectsClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify project rate limit
/// Updates a project rate limit. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs index f7ee98c6..a2940338 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IRealtimeClient { /// + /// Create session
/// Create an ephemeral API token for use in client-side applications with the
/// Realtime API. Can be configured with the same session parameters as the
/// `session.update` client event.
@@ -20,6 +21,7 @@ public partial interface IRealtimeClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create session
/// Create an ephemeral API token for use in client-side applications with the
/// Realtime API. Can be configured with the same session parameters as the
/// `session.update` client event.
@@ -106,7 +108,7 @@ public partial interface IRealtimeClient global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioNoiseReduction? inputAudioNoiseReduction = default, global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? inputAudioTranscription = default, string? instructions = default, - global::tryAGI.OpenAI.OneOf? maxResponseOutputTokens = default, + global::tryAGI.OpenAI.AnyOf? maxResponseOutputTokens = default, global::System.Collections.Generic.IList? modalities = default, global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel? model = default, global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputAudioFormat? outputAudioFormat = default, @@ -114,7 +116,7 @@ public partial interface IRealtimeClient double? temperature = default, string? toolChoice = default, global::System.Collections.Generic.IList? tools = default, - global::tryAGI.OpenAI.OneOf? tracing = default, + global::tryAGI.OpenAI.AnyOf? tracing = default, global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? turnDetection = default, global::tryAGI.OpenAI.VoiceIdsShared? voice = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeTranscriptionSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeTranscriptionSession.g.cs index 692e6ff1..83a383c1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeTranscriptionSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeTranscriptionSession.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IRealtimeClient { /// + /// Create transcription session
/// Create an ephemeral API token for use in client-side applications with the
/// Realtime API specifically for realtime transcriptions.
/// Can be configured with the same session parameters as the `transcription_session.update` client event.
@@ -20,6 +21,7 @@ public partial interface IRealtimeClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create transcription session
/// Create an ephemeral API token for use in client-side applications with the
/// Realtime API specifically for realtime transcriptions.
/// Can be configured with the same session parameters as the `transcription_session.update` client event.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.CancelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.CancelResponse.g.cs index c0a3b2e3..2104b023 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.CancelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.CancelResponse.g.cs @@ -5,9 +5,10 @@ namespace tryAGI.OpenAI public partial interface IResponsesClient { /// + /// Cancel a response
/// Cancels a model response with the given ID. Only responses created with
/// the `background` parameter set to `true` can be cancelled.
- /// [Learn more](/docs/guides/background). + /// [Learn more](https://platform.openai.com/docs/guides/background). ///
/// /// Example: resp_677efb5139a88190b512bc3fef8e535d diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.CreateResponse.g.cs index 6d12e86b..21e530dc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.CreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.CreateResponse.g.cs @@ -5,12 +5,13 @@ namespace tryAGI.OpenAI public partial interface IResponsesClient { /// - /// Creates a model response. Provide [text](/docs/guides/text) or
- /// [image](/docs/guides/images) inputs to generate [text](/docs/guides/text)
- /// or [JSON](/docs/guides/structured-outputs) outputs. Have the model call
- /// your own [custom code](/docs/guides/function-calling) or use built-in
- /// [tools](/docs/guides/tools) like [web search](/docs/guides/tools-web-search)
- /// or [file search](/docs/guides/tools-file-search) to use your own data
+ /// Create a model response
+ /// Creates a model response. Provide [text](https://platform.openai.com/docs/guides/text) or
+ /// [image](https://platform.openai.com/docs/guides/images) inputs to generate [text](https://platform.openai.com/docs/guides/text)
+ /// or [JSON](https://platform.openai.com/docs/guides/structured-outputs) outputs. Have the model call
+ /// your own [custom code](https://platform.openai.com/docs/guides/function-calling) or use built-in
+ /// [tools](https://platform.openai.com/docs/guides/tools) like [web search](https://platform.openai.com/docs/guides/tools-web-search)
+ /// or [file search](https://platform.openai.com/docs/guides/tools-file-search) to use your own data
/// as input for the model's response. ///
/// @@ -21,12 +22,13 @@ public partial interface IResponsesClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Creates a model response. Provide [text](/docs/guides/text) or
- /// [image](/docs/guides/images) inputs to generate [text](/docs/guides/text)
- /// or [JSON](/docs/guides/structured-outputs) outputs. Have the model call
- /// your own [custom code](/docs/guides/function-calling) or use built-in
- /// [tools](/docs/guides/tools) like [web search](/docs/guides/tools-web-search)
- /// or [file search](/docs/guides/tools-file-search) to use your own data
+ /// Create a model response
+ /// Creates a model response. Provide [text](https://platform.openai.com/docs/guides/text) or
+ /// [image](https://platform.openai.com/docs/guides/images) inputs to generate [text](https://platform.openai.com/docs/guides/text)
+ /// or [JSON](https://platform.openai.com/docs/guides/structured-outputs) outputs. Have the model call
+ /// your own [custom code](https://platform.openai.com/docs/guides/function-calling) or use built-in
+ /// [tools](https://platform.openai.com/docs/guides/tools) like [web search](https://platform.openai.com/docs/guides/tools-web-search)
+ /// or [file search](https://platform.openai.com/docs/guides/tools-file-search) to use your own data
/// as input for the model's response. ///
/// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.DeleteResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.DeleteResponse.g.cs index aabf21c9..01bf8af7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.DeleteResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.DeleteResponse.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IResponsesClient { /// + /// Delete a model response
/// Deletes a model response with the given ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.GetResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.GetResponse.g.cs index 62a9513f..9e674fda 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.GetResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.GetResponse.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IResponsesClient { /// + /// Get a model response
/// Retrieves a model response with the given ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.ListInputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.ListInputItems.g.cs index 007a7232..97abb789 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.ListInputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.ListInputItems.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IResponsesClient { /// + /// List input items
/// Returns a list of input items for a given response. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.AddUploadPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.AddUploadPart.g.cs index 50d2651f..8bd401da 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.AddUploadPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.AddUploadPart.g.cs @@ -5,9 +5,10 @@ namespace tryAGI.OpenAI public partial interface IUploadsClient { /// - /// Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
+ /// Add upload part
+ /// Adds a [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
/// Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.
- /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete). + /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete). ///
/// /// Example: upload_abc123 @@ -21,9 +22,10 @@ public partial interface IUploadsClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
+ /// Add upload part
+ /// Adds a [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
/// Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.
- /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete). + /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete). ///
/// /// Example: upload_abc123 diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CancelUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CancelUpload.g.cs index d1854bd1..cbbb9e44 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CancelUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CancelUpload.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUploadsClient { /// + /// Cancel upload
/// Cancels the Upload. No Parts may be added after an Upload is cancelled. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CompleteUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CompleteUpload.g.cs index 1f2f493c..d8a203ce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CompleteUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CompleteUpload.g.cs @@ -5,8 +5,9 @@ namespace tryAGI.OpenAI public partial interface IUploadsClient { /// - /// Completes the [Upload](/docs/api-reference/uploads/object).
- /// Within the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
+ /// Complete upload
+ /// Completes the [Upload](https://platform.openai.com/docs/api-reference/uploads/object).
+ /// Within the returned Upload object, there is a nested [File](https://platform.openai.com/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
/// You can specify the order of the Parts by passing in an ordered list of the Part IDs.
/// The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed. ///
@@ -22,8 +23,9 @@ public partial interface IUploadsClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Completes the [Upload](/docs/api-reference/uploads/object).
- /// Within the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
+ /// Complete upload
+ /// Completes the [Upload](https://platform.openai.com/docs/api-reference/uploads/object).
+ /// Within the returned Upload object, there is a nested [File](https://platform.openai.com/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
/// You can specify the order of the Parts by passing in an ordered list of the Part IDs.
/// The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CreateUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CreateUpload.g.cs index db2fce9b..5ec14465 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CreateUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUploadsClient.CreateUpload.g.cs @@ -5,20 +5,21 @@ namespace tryAGI.OpenAI public partial interface IUploadsClient { /// - /// Creates an intermediate [Upload](/docs/api-reference/uploads/object) object
- /// that you can add [Parts](/docs/api-reference/uploads/part-object) to.
+ /// Create upload
+ /// Creates an intermediate [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object
+ /// that you can add [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to.
/// Currently, an Upload can accept at most 8 GB in total and expires after an
/// hour after you create it.
/// Once you complete the Upload, we will create a
- /// [File](/docs/api-reference/files/object) object that contains all the parts
+ /// [File](https://platform.openai.com/docs/api-reference/files/object) object that contains all the parts
/// you uploaded. This File is usable in the rest of our platform as a regular
/// File object.
/// For certain `purpose` values, the correct `mime_type` must be specified.
/// Please refer to documentation for the
- /// [supported MIME types for your use case](/docs/assistants/tools/file-search#supported-files).
+ /// [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files).
/// For guidance on the proper filename extensions for each purpose, please
/// follow the documentation on [creating a
- /// File](/docs/api-reference/files/create). + /// File](https://platform.openai.com/docs/api-reference/files/create). ///
/// /// The token to cancel the operation with @@ -28,20 +29,21 @@ public partial interface IUploadsClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Creates an intermediate [Upload](/docs/api-reference/uploads/object) object
- /// that you can add [Parts](/docs/api-reference/uploads/part-object) to.
+ /// Create upload
+ /// Creates an intermediate [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object
+ /// that you can add [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to.
/// Currently, an Upload can accept at most 8 GB in total and expires after an
/// hour after you create it.
/// Once you complete the Upload, we will create a
- /// [File](/docs/api-reference/files/object) object that contains all the parts
+ /// [File](https://platform.openai.com/docs/api-reference/files/object) object that contains all the parts
/// you uploaded. This File is usable in the rest of our platform as a regular
/// File object.
/// For certain `purpose` values, the correct `mime_type` must be specified.
/// Please refer to documentation for the
- /// [supported MIME types for your use case](/docs/assistants/tools/file-search#supported-files).
+ /// [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files).
/// For guidance on the proper filename extensions for each purpose, please
/// follow the documentation on [creating a
- /// File](/docs/api-reference/files/create). + /// File](https://platform.openai.com/docs/api-reference/files/create). ///
/// /// The number of bytes in the file you are uploading. @@ -55,7 +57,7 @@ public partial interface IUploadsClient /// /// /// The intended purpose of the uploaded file.
- /// See the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose). + /// See the [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose). /// /// The token to cancel the operation with /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageAudioSpeeches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageAudioSpeeches.g.cs index 816ccfc4..0dc8325f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageAudioSpeeches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageAudioSpeeches.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsageClient { /// + /// Audio speeches
/// Get audio speeches usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageAudioTranscriptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageAudioTranscriptions.g.cs index a635bf5c..574310b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageAudioTranscriptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageAudioTranscriptions.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsageClient { /// + /// Audio transcriptions
/// Get audio transcriptions usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCodeInterpreterSessions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCodeInterpreterSessions.g.cs index fa6f4256..aac78be1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCodeInterpreterSessions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCodeInterpreterSessions.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsageClient { /// + /// Code interpreter sessions
/// Get code interpreter sessions usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCompletions.g.cs index 1279cce7..21f19872 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCompletions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCompletions.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsageClient { /// + /// Completions
/// Get completions usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCosts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCosts.g.cs index 5f5661cd..7d47debd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCosts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageCosts.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsageClient { /// + /// Costs
/// Get costs details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageEmbeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageEmbeddings.g.cs index f5c146b9..33cc3cd9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageEmbeddings.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageEmbeddings.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsageClient { /// + /// Embeddings
/// Get embeddings usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageImages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageImages.g.cs index 300a0e77..83ad6824 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageImages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageImages.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsageClient { /// + /// Images
/// Get images usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageModerations.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageModerations.g.cs index 26cc4de8..b85aeed9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageModerations.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageModerations.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsageClient { /// + /// Moderations
/// Get moderations usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageVectorStores.g.cs index 93a5b678..81411a4e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageVectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsageClient.UsageVectorStores.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsageClient { /// + /// Vector stores
/// Get vector stores usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.DeleteUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.DeleteUser.g.cs index 06fc8b83..4f11ab48 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.DeleteUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.DeleteUser.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsersClient { /// + /// Delete user
/// Deletes a user from the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.ListUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.ListUsers.g.cs index f328f776..a3132c4b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.ListUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.ListUsers.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsersClient { /// + /// List users
/// Lists all of the users in the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.ModifyUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.ModifyUser.g.cs index 02d3d23f..92fa6a26 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.ModifyUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.ModifyUser.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsersClient { /// + /// Modify user
/// Modifies a user's role in the organization. ///
/// @@ -17,6 +18,7 @@ public partial interface IUsersClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify user
/// Modifies a user's role in the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.RetrieveUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.RetrieveUser.g.cs index 0bc3d34e..35bf69ce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.RetrieveUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IUsersClient.RetrieveUser.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IUsersClient { /// + /// Retrieve user
/// Retrieves a user by their identifier. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CancelVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CancelVectorStoreFileBatch.g.cs index 64331cd5..3a68404f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CancelVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CancelVectorStoreFileBatch.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Cancel vector store file batch
/// Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStore.g.cs index 6bf59eb4..2615942e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStore.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Create vector store
/// Create a vector store. ///
/// @@ -15,6 +16,7 @@ public partial interface IVectorStoresClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create vector store
/// Create a vector store. ///
/// @@ -24,7 +26,7 @@ public partial interface IVectorStoresClient /// The expiration policy for a vector store. /// /// - /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. + /// A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -39,7 +41,7 @@ public partial interface IVectorStoresClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateVectorStoreAsync( - global::tryAGI.OpenAI.OneOf? chunkingStrategy = default, + global::tryAGI.OpenAI.ChunkingStrategyRequestParam? chunkingStrategy = default, global::tryAGI.OpenAI.VectorStoreExpirationAfter? expiresAfter = default, global::System.Collections.Generic.IList? fileIds = default, global::System.Collections.Generic.Dictionary? metadata = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStoreFile.g.cs index 62e863ad..d075fec0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStoreFile.g.cs @@ -5,7 +5,8 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// - /// Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object). + /// Create vector store file
+ /// Create a vector store file by attaching a [File](https://platform.openai.com/docs/api-reference/files) to a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object). ///
/// /// Example: vs_abc123 @@ -19,7 +20,8 @@ public partial interface IVectorStoresClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object). + /// Create vector store file
+ /// Create a vector store file by attaching a [File](https://platform.openai.com/docs/api-reference/files) to a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object). ///
/// /// Example: vs_abc123 @@ -32,10 +34,10 @@ public partial interface IVectorStoresClient /// length of 512 characters, booleans, or numbers. /// /// - /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. /// /// - /// A [File](/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. + /// A [File](https://platform.openai.com/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. /// /// The token to cancel the operation with /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStoreFileBatch.g.cs index 3cc98a88..e87d52ce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.CreateVectorStoreFileBatch.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Create vector store file batch
/// Create a vector store file batch. ///
/// @@ -19,6 +20,7 @@ public partial interface IVectorStoresClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Create vector store file batch
/// Create a vector store file batch. ///
/// @@ -32,10 +34,10 @@ public partial interface IVectorStoresClient /// length of 512 characters, booleans, or numbers. /// /// - /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. /// /// - /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. + /// A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. /// /// The token to cancel the operation with /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.DeleteVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.DeleteVectorStore.g.cs index 66b38668..05f5f7c9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.DeleteVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.DeleteVectorStore.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Delete vector store
/// Delete a vector store. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.DeleteVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.DeleteVectorStoreFile.g.cs index a737f217..eb28486f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.DeleteVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.DeleteVectorStoreFile.g.cs @@ -5,7 +5,8 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// - /// Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint. + /// Delete vector store file
+ /// Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](https://platform.openai.com/docs/api-reference/files/delete) endpoint. ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStore.g.cs index 3c2117b7..a935c130 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStore.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Retrieve vector store
/// Retrieves a vector store. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStoreFile.g.cs index 50a38e2a..b581acc8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStoreFile.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Retrieve vector store file
/// Retrieves a vector store file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStoreFileBatch.g.cs index bb1332d9..a685b2a2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.GetVectorStoreFileBatch.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Retrieve vector store file batch
/// Retrieves a vector store file batch. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListFilesInVectorStoreBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListFilesInVectorStoreBatch.g.cs index f1cfb367..d5ee08e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListFilesInVectorStoreBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListFilesInVectorStoreBatch.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// List vector store files in a batch
/// Returns a list of vector store files in a batch. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListVectorStoreFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListVectorStoreFiles.g.cs index 12768d58..aa5992c9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListVectorStoreFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListVectorStoreFiles.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// List vector store files
/// Returns a list of vector store files. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListVectorStores.g.cs index dc133cbb..030ebd81 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListVectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ListVectorStores.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// List vector stores
/// Returns a list of vector stores. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ModifyVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ModifyVectorStore.g.cs index ac56d6cc..d9c1ba7a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ModifyVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.ModifyVectorStore.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Modify vector store
/// Modifies a vector store. ///
/// @@ -17,6 +18,7 @@ public partial interface IVectorStoresClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Modify vector store
/// Modifies a vector store. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.RetrieveVectorStoreFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.RetrieveVectorStoreFileContent.g.cs index add6436a..19f0ad30 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.RetrieveVectorStoreFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.RetrieveVectorStoreFileContent.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Retrieve vector store file content
/// Retrieve the parsed contents of a vector store file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.SearchVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.SearchVectorStore.g.cs index f4b113f6..f300d16b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.SearchVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.SearchVectorStore.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Search vector store
/// Search a vector store for relevant chunks based on a query and file attributes filter. ///
/// @@ -19,6 +20,7 @@ public partial interface IVectorStoresClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Search vector store
/// Search a vector store for relevant chunks based on a query and file attributes filter. ///
/// @@ -45,8 +47,8 @@ public partial interface IVectorStoresClient /// global::System.Threading.Tasks.Task SearchVectorStoreAsync( string vectorStoreId, - global::tryAGI.OpenAI.OneOf> query, - global::tryAGI.OpenAI.OneOf? filters = default, + global::tryAGI.OpenAI.AnyOf> query, + global::tryAGI.OpenAI.AnyOf? filters = default, int? maxNumResults = default, global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? rankingOptions = default, bool? rewriteQuery = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.UpdateVectorStoreFileAttributes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.UpdateVectorStoreFileAttributes.g.cs index d04e4178..6d863440 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.UpdateVectorStoreFileAttributes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVectorStoresClient.UpdateVectorStoreFileAttributes.g.cs @@ -5,6 +5,7 @@ namespace tryAGI.OpenAI public partial interface IVectorStoresClient { /// + /// Update vector store file attributes
/// Update attributes on a vector store file. ///
/// @@ -23,6 +24,7 @@ public partial interface IVectorStoresClient global::System.Threading.CancellationToken cancellationToken = default); /// + /// Update vector store file attributes
/// Update attributes on a vector store file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs index 7d6c19dd..26a5f76c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs @@ -22,7 +22,8 @@ partial void ProcessCreateImageResponseContent( ref string content); /// - /// Creates an image given a prompt. [Learn more](/docs/guides/images). + /// Create image
+ /// Creates an image given a prompt. [Learn more](https://platform.openai.com/docs/guides/images). ///
/// /// The token to cancel the operation with @@ -166,7 +167,8 @@ partial void ProcessCreateImageResponseContent( } /// - /// Creates an image given a prompt. [Learn more](/docs/guides/images). + /// Create image
+ /// Creates an image given a prompt. [Learn more](https://platform.openai.com/docs/guides/images). ///
/// /// Allows to set transparency for the background of the generated image(s).
@@ -179,9 +181,7 @@ partial void ProcessCreateImageResponseContent( /// Example: transparent /// /// - /// The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.
- /// Default Value: dall-e-2
- /// Example: gpt-image-1 + /// The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used. /// /// /// Control the content-moderation level for images generated by `gpt-image-1`. Must be either `low` for less restrictive filtering or `auto` (default value).
@@ -237,7 +237,7 @@ partial void ProcessCreateImageResponseContent( /// /// /// Generate the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
+ /// [Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.
/// This parameter is only supported for `gpt-image-1`.
/// Default Value: false
/// Example: false @@ -248,7 +248,7 @@ partial void ProcessCreateImageResponseContent( /// Example: vivid /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs index c9d4d3b0..5f127742 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateImageEditResponseContent( ref string content); /// + /// Create image edit
/// Creates an edited or extended image given one or more source images and a prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`. ///
/// @@ -247,6 +248,7 @@ partial void ProcessCreateImageEditResponseContent( } /// + /// Create image edit
/// Creates an edited or extended image given one or more source images and a prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`. ///
/// @@ -279,9 +281,7 @@ partial void ProcessCreateImageEditResponseContent( /// An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`. /// /// - /// The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.
- /// Default Value: dall-e-2
- /// Example: gpt-image-1 + /// The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used. /// /// /// The number of images to generate. Must be between 1 and 10.
@@ -332,12 +332,12 @@ partial void ProcessCreateImageEditResponseContent( /// /// /// Edit the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
+ /// [Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.
/// Default Value: false
/// Example: false /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs index 46ffd499..d9a6970a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateImageVariationResponseContent( ref string content); /// + /// Create image variation
/// Creates a variation of a given image. This endpoint only supports `dall-e-2`. ///
/// @@ -196,6 +197,7 @@ partial void ProcessCreateImageVariationResponseContent( } /// + /// Create image variation
/// Creates a variation of a given image. This endpoint only supports `dall-e-2`. ///
/// @@ -205,9 +207,7 @@ partial void ProcessCreateImageVariationResponseContent( /// The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square. /// /// - /// The model to use for image generation. Only `dall-e-2` is supported at this time.
- /// Default Value: dall-e-2
- /// Example: dall-e-2 + /// The model to use for image generation. Only `dall-e-2` is supported at this time. /// /// /// The number of images to generate. Must be between 1 and 10.
@@ -225,7 +225,7 @@ partial void ProcessCreateImageVariationResponseContent( /// Example: 1024x1024 /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs index 3f6396da..83f811ec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteInviteResponseContent( ref string content); /// + /// Delete invite
/// Delete an invite. If the invite has already been accepted, it cannot be deleted. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs index 47b0c881..c95929fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs @@ -22,6 +22,7 @@ partial void ProcessInviteUserResponseContent( ref string content); /// + /// Create invite
/// Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization. ///
/// @@ -166,6 +167,7 @@ partial void ProcessInviteUserResponseContent( } /// + /// Create invite
/// Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs index 875f3c7b..3caca863 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs @@ -24,6 +24,7 @@ partial void ProcessListInvitesResponseContent( ref string content); /// + /// List invites
/// Returns a list of invites in the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs index 2c94e62f..48028385 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs @@ -22,6 +22,7 @@ partial void ProcessRetrieveInviteResponseContent( ref string content); /// + /// Retrieve invite
/// Retrieves an invite. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf1.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf1.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf1.g.cs index 7c6c6878..f6093261 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf1.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> { /// - public override global::tryAGI.OpenAI.OneOf Read( + public override global::tryAGI.OpenAI.AnyOf Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -27,7 +27,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization.Jso { } - var result = new global::tryAGI.OpenAI.OneOf( + var result = new global::tryAGI.OpenAI.AnyOf( value1 ); @@ -44,7 +44,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization.Jso /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.OneOf value, + global::tryAGI.OpenAI.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs similarity index 94% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs index fcd7dd2f..4b85f89d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> { /// - public override global::tryAGI.OpenAI.OneOf Read( + public override global::tryAGI.OpenAI.AnyOf Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -51,7 +51,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa { } - var result = new global::tryAGI.OpenAI.OneOf( + var result = new global::tryAGI.OpenAI.AnyOf( value1, value2, value3 @@ -82,7 +82,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.OneOf value, + global::tryAGI.OpenAI.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf4.g.cs similarity index 96% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf4.g.cs index b9073925..e8d17c00 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf4.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> { /// - public override global::tryAGI.OpenAI.OneOf Read( + public override global::tryAGI.OpenAI.AnyOf Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -63,7 +63,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria { } - var result = new global::tryAGI.OpenAI.OneOf( + var result = new global::tryAGI.OpenAI.AnyOf( value1, value2, value3, @@ -101,7 +101,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.OneOf value, + global::tryAGI.OpenAI.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf5.g.cs similarity index 96% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf5.g.cs index 8bd7d073..8baff18a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf5.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> { /// - public override global::tryAGI.OpenAI.OneOf Read( + public override global::tryAGI.OpenAI.AnyOf Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -75,7 +75,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S { } - var result = new global::tryAGI.OpenAI.OneOf( + var result = new global::tryAGI.OpenAI.AnyOf( value1, value2, value3, @@ -120,7 +120,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.OneOf value, + global::tryAGI.OpenAI.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs index f885bed7..14f7f9b9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs @@ -76,25 +76,12 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { } - readerCopy = reader; - global::tryAGI.OpenAI.DoneEvent? done = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); - done = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - var result = new global::tryAGI.OpenAI.AssistantStreamEvent( thread, run, runStep, message, - error, - done + error ); if (thread != null) @@ -127,12 +114,6 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ErrorEvent).Name}"); _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - else if (done != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } return result; } @@ -176,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ErrorEvent).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeInfo); } - else if (value.IsDone) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Done, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantTool.g.cs new file mode 100644 index 00000000..307aaea8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantTool.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class AssistantToolJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AssistantTool Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.AssistantToolsCode? toolsCode = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsCode).Name}"); + toolsCode = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.AssistantToolsFileSearch? toolsFileSearch = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsFileSearch).Name}"); + toolsFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.AssistantToolsFunction? toolsFunction = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsFunction).Name}"); + toolsFunction = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.AssistantTool( + toolsCode, + toolsFileSearch, + toolsFunction + ); + + if (toolsCode != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsCode).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (toolsFileSearch != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsFileSearch).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (toolsFunction != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsFunction).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AssistantTool value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsToolsCode) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsCode).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolsCode, typeInfo); + } + else if (value.IsToolsFileSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsFileSearch).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolsFileSearch, typeInfo); + } + else if (value.IsToolsFunction) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsFunction).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolsFunction, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunObjectStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatModel.g.cs similarity index 68% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunObjectStatus.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatModel.g.cs index f401aa93..0cc95364 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunObjectStatus.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatModel.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RunObjectStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RunObjectStatus Read( + public override global::tryAGI.OpenAI.ChatModel Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RunObjectStatusJsonConverter : global::System.Text.Json.Seri var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RunObjectStatusExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.ChatModelExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class RunObjectStatusJsonConverter : global::System.Text.Json.Seri case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RunObjectStatus)numValue; + return (global::tryAGI.OpenAI.ChatModel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RunObjectStatus); + return default(global::tryAGI.OpenAI.ChatModel); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class RunObjectStatusJsonConverter : global::System.Text.Json.Seri /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RunObjectStatus value, + global::tryAGI.OpenAI.ChatModel value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.RunObjectStatusExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.ChatModelExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatModelNullable.g.cs similarity index 68% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatModelNullable.g.cs index 66969efe..61bde480 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatModelNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class CreateFileRequestPurposeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.CreateFileRequestPurpose? Read( + public override global::tryAGI.OpenAI.ChatModel? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateFileRequestPurposeNullableJsonConverter : global::Syst var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.CreateFileRequestPurposeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.ChatModelExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateFileRequestPurposeNullableJsonConverter : global::Syst case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.CreateFileRequestPurpose)numValue; + return (global::tryAGI.OpenAI.ChatModel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.CreateFileRequestPurpose?); + return default(global::tryAGI.OpenAI.ChatModel?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateFileRequestPurposeNullableJsonConverter : global::Syst /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.CreateFileRequestPurpose? value, + global::tryAGI.OpenAI.ChatModel? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.CreateFileRequestPurposeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.ChatModelExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyResponse.g.cs new file mode 100644 index 00000000..32ed65db --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyResponse.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class ChunkingStrategyResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChunkingStrategyResponse Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? staticParam = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam).Name}"); + staticParam = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? otherParam = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam).Name}"); + otherParam = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.ChunkingStrategyResponse( + staticParam, + otherParam + ); + + if (staticParam != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (otherParam != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChunkingStrategyResponse value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsStaticParam) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StaticParam, typeInfo); + } + else if (value.IsOtherParam) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OtherParam, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerFileResourceObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerFileResourceObject.g.cs new file mode 100644 index 00000000..804a6bfe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerFileResourceObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ContainerFileResourceObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ContainerFileResourceObject 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::tryAGI.OpenAI.ContainerFileResourceObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ContainerFileResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ContainerFileResourceObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ContainerFileResourceObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ContainerFileResourceObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerFileResourceObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerFileResourceObjectNullable.g.cs new file mode 100644 index 00000000..0ed114dc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerFileResourceObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ContainerFileResourceObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ContainerFileResourceObject? 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::tryAGI.OpenAI.ContainerFileResourceObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ContainerFileResourceObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ContainerFileResourceObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ContainerFileResourceObject? 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::tryAGI.OpenAI.ContainerFileResourceObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant2Item.g.cs new file mode 100644 index 00000000..bad42db2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant2Item.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class ContentVariant2ItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ContentVariant2Item Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.MessageContentImageFileObject? messageImageFileObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageFileObject).Name}"); + messageImageFileObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageContentImageUrlObject? messageImageUrlObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject).Name}"); + messageImageUrlObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageRequestContentTextObject? messageRequestTextObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageRequestContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageRequestContentTextObject).Name}"); + messageRequestTextObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.ContentVariant2Item( + messageImageFileObject, + messageImageUrlObject, + messageRequestTextObject + ); + + if (messageImageFileObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageFileObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (messageImageUrlObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (messageRequestTextObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageRequestContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageRequestContentTextObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ContentVariant2Item value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsMessageImageFileObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageFileObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageImageFileObject, typeInfo); + } + else if (value.IsMessageImageUrlObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageImageUrlObject, typeInfo); + } + else if (value.IsMessageRequestTextObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageRequestContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageRequestContentTextObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageRequestTextObject, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs new file mode 100644 index 00000000..5190b9d9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value1 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value2 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy( + value1, + value2 + ); + + if (value1 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (value2 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsValue1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + } + else if (value.IsValue2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalRequestDataSourceConfig.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalRequestDataSourceConfig.g.cs new file mode 100644 index 00000000..022f5552 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalRequestDataSourceConfig.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class CreateEvalRequestDataSourceConfigJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? custom = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig).Name}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? logs = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig).Name}"); + logs = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? storedCompletions = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig).Name}"); + storedCompletions = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig( + custom, + logs, + storedCompletions + ); + + if (custom != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (logs != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (storedCompletions != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom, typeInfo); + } + else if (value.IsLogs) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Logs, typeInfo); + } + else if (value.IsStoredCompletions) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StoredCompletions, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs deleted file mode 100644 index 2dee4df0..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public sealed class CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullable.g.cs deleted file mode 100644 index be5145bf..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public sealed class CreateModerationRequestInputVariant3ItemVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullable.g.cs deleted file mode 100644 index b1d8a40d..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public sealed class CreateModerationRequestInputVariant3ItemVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestWithoutStreamModel.g.cs similarity index 67% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategy.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestWithoutStreamModel.g.cs index 7a295c2f..854b92d2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestWithoutStreamModel.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class CreateTranscriptionRequestChunkingStrategyJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateThreadAndRunRequestWithoutStreamModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategy Read( + public override global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateTranscriptionRequestChunkingStrategyJsonConverter : gl var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModelExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateTranscriptionRequestChunkingStrategyJsonConverter : gl case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategy)numValue; + return (global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategy); + return default(global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateTranscriptionRequestChunkingStrategyJsonConverter : gl /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategy value, + global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModelExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestWithoutStreamModelNullable.g.cs similarity index 69% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestWithoutStreamModelNullable.g.cs index 9f48048f..2d92e14d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestWithoutStreamModelNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class CreateTranscriptionRequestChunkingStrategyNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateThreadAndRunRequestWithoutStreamModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategy? Read( + public override global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateTranscriptionRequestChunkingStrategyNullableJsonConver var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModelExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateTranscriptionRequestChunkingStrategyNullableJsonConver case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategy)numValue; + return (global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategy?); + return default(global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateTranscriptionRequestChunkingStrategyNullableJsonConver /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategy? value, + global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModelExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs new file mode 100644 index 00000000..3e4eb0b6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value1 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value2 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy( + value1, + value2 + ); + + if (value1 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (value2 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsValue1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + } + else if (value.IsValue2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseJsonUsage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseJsonUsage.g.cs new file mode 100644 index 00000000..66f01ca5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseJsonUsage.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class CreateTranscriptionResponseJsonUsageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.TranscriptTextUsageTokens? transcriptTextTokens = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); + transcriptTextTokens = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.TranscriptTextUsageDuration? transcriptTextDuration = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); + transcriptTextDuration = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage( + transcriptTextTokens, + transcriptTextDuration + ); + + if (transcriptTextTokens != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (transcriptTextDuration != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsTranscriptTextTokens) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextTokens, typeInfo); + } + else if (value.IsTranscriptTextDuration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptTextDuration, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalDataSourceConfig.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalDataSourceConfig.g.cs new file mode 100644 index 00000000..c1174c7c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalDataSourceConfig.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class EvalDataSourceConfigJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.EvalDataSourceConfig Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.EvalCustomDataSourceConfig? custom = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig).Name}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalLogsDataSourceConfig? logs = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig).Name}"); + logs = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? storedCompletions = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig).Name}"); + storedCompletions = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.EvalDataSourceConfig( + custom, + logs, + storedCompletions + ); + + if (custom != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (logs != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (storedCompletions != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.EvalDataSourceConfig value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom, typeInfo); + } + else if (value.IsLogs) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Logs, typeInfo); + } + else if (value.IsStoredCompletions) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StoredCompletions, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalRunDataSource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalRunDataSource.g.cs new file mode 100644 index 00000000..e9484fbe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalRunDataSource.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class EvalRunDataSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.EvalRunDataSource Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? createJsonl = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource).Name}"); + createJsonl = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? createCompletions = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource).Name}"); + createCompletions = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? createResponses = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource).Name}"); + createResponses = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.EvalRunDataSource( + createJsonl, + createCompletions, + createResponses + ); + + if (createJsonl != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (createCompletions != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (createResponses != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.EvalRunDataSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCreateJsonl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateJsonl, typeInfo); + } + else if (value.IsCreateCompletions) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateCompletions, typeInfo); + } + else if (value.IsCreateResponses) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponses, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FilePurpose.g.cs similarity index 67% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnum.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FilePurpose.g.cs index 2b785f90..464ade68 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FilePurpose.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class ModelIdsSharedEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class FilePurposeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.ModelIdsSharedEnum Read( + public override global::tryAGI.OpenAI.FilePurpose Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ModelIdsSharedEnumJsonConverter : global::System.Text.Json.S var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.ModelIdsSharedEnumExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.FilePurposeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ModelIdsSharedEnumJsonConverter : global::System.Text.Json.S case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.ModelIdsSharedEnum)numValue; + return (global::tryAGI.OpenAI.FilePurpose)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.ModelIdsSharedEnum); + return default(global::tryAGI.OpenAI.FilePurpose); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ModelIdsSharedEnumJsonConverter : global::System.Text.Json.S /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.ModelIdsSharedEnum value, + global::tryAGI.OpenAI.FilePurpose value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.ModelIdsSharedEnumExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.FilePurposeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FilePurposeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FilePurposeNullable.g.cs new file mode 100644 index 00000000..e009d996 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FilePurposeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FilePurposeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FilePurpose? 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::tryAGI.OpenAI.FilePurposeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FilePurpose)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FilePurpose?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FilePurpose? 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::tryAGI.OpenAI.FilePurposeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessages.g.cs new file mode 100644 index 00000000..7efa864b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessages.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class InputMessagesJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.InputMessages Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1? value1 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2? value2 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.InputMessages( + value1, + value2 + ); + + if (value1 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (value2 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.InputMessages value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsValue1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + } + else if (value.IsValue2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessages2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessages2.g.cs new file mode 100644 index 00000000..86344a7a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessages2.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class InputMessages2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.InputMessages2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1? value1 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2? value2 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.InputMessages2( + value1, + value2 + ); + + if (value1 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (value2 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.InputMessages2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsValue1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + } + else if (value.IsValue2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputVariant3Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputVariant3Item.g.cs new file mode 100644 index 00000000..d6579f10 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputVariant3Item.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class InputVariant3ItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.InputVariant3Item Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.ModerationImageURLInput? moderationImageURL = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationImageURLInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationImageURLInput).Name}"); + moderationImageURL = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.ModerationTextInput? moderationText = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationTextInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationTextInput).Name}"); + moderationText = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.InputVariant3Item( + moderationImageURL, + moderationText + ); + + if (moderationImageURL != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationImageURLInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationImageURLInput).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (moderationText != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationTextInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationTextInput).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.InputVariant3Item value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsModerationImageURL) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationImageURLInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationImageURLInput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModerationImageURL, typeInfo); + } + else if (value.IsModerationText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationTextInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationTextInput).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModerationText, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.IntegrationsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.IntegrationsItem.g.cs new file mode 100644 index 00000000..c2d73882 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.IntegrationsItem.g.cs @@ -0,0 +1,62 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class IntegrationsItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.IntegrationsItem Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.FineTuningIntegration? fineTuningIntegration = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuningIntegration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuningIntegration).Name}"); + fineTuningIntegration = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.IntegrationsItem( + fineTuningIntegration + ); + + if (fineTuningIntegration != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuningIntegration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuningIntegration).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.IntegrationsItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsFineTuningIntegration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuningIntegration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuningIntegration).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FineTuningIntegration, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContent.g.cs new file mode 100644 index 00000000..326d581a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContent.g.cs @@ -0,0 +1,137 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class MessageContentJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.MessageContent Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.MessageContentImageFileObject? imageFileObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageFileObject).Name}"); + imageFileObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageContentImageUrlObject? imageUrlObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject).Name}"); + imageUrlObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageContentTextObject? textObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentTextObject).Name}"); + textObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageContentRefusalObject? refusalObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentRefusalObject).Name}"); + refusalObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.MessageContent( + imageFileObject, + imageUrlObject, + textObject, + refusalObject + ); + + if (imageFileObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageFileObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (imageUrlObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (textObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentTextObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (refusalObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentRefusalObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.MessageContent value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsImageFileObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageFileObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageFileObject, typeInfo); + } + else if (value.IsImageUrlObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrlObject, typeInfo); + } + else if (value.IsTextObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentTextObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextObject, typeInfo); + } + else if (value.IsRefusalObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentRefusalObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RefusalObject, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentDelta.g.cs new file mode 100644 index 00000000..db66c31a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentDelta.g.cs @@ -0,0 +1,137 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class MessageContentDeltaJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.MessageContentDelta Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? imageFileObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject).Name}"); + imageFileObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageDeltaContentTextObject? textObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObject).Name}"); + textObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? refusalObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject).Name}"); + refusalObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? imageUrlObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject).Name}"); + imageUrlObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.MessageContentDelta( + imageFileObject, + textObject, + refusalObject, + imageUrlObject + ); + + if (imageFileObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (textObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (refusalObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (imageUrlObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.MessageContentDelta value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsImageFileObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageFileObject, typeInfo); + } + else if (value.IsTextObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextObject, typeInfo); + } + else if (value.IsRefusalObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RefusalObject, typeInfo); + } + else if (value.IsImageUrlObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrlObject, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs index e58dd4c1..27e5a218 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs @@ -29,11 +29,11 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio } readerCopy = reader; - global::tryAGI.OpenAI.ModelIdsSharedEnum? value2 = default; + global::tryAGI.OpenAI.ChatModel? value2 = default; try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatModel).Name}"); value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); } catch (global::System.Text.Json.JsonException) @@ -53,8 +53,8 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio } else if (value2 != null) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatModel).Name}"); _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -78,8 +78,8 @@ public override void Write( } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatModel).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationImageURLInputType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationImageURLInputType.g.cs new file mode 100644 index 00000000..7a0557a6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationImageURLInputType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ModerationImageURLInputTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ModerationImageURLInputType 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::tryAGI.OpenAI.ModerationImageURLInputTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ModerationImageURLInputType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ModerationImageURLInputType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ModerationImageURLInputType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ModerationImageURLInputTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationImageURLInputTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationImageURLInputTypeNullable.g.cs new file mode 100644 index 00000000..4e772a6f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationImageURLInputTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ModerationImageURLInputTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ModerationImageURLInputType? 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::tryAGI.OpenAI.ModerationImageURLInputTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ModerationImageURLInputType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ModerationImageURLInputType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ModerationImageURLInputType? 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::tryAGI.OpenAI.ModerationImageURLInputTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateFileRequestPurpose.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationTextInputType.g.cs similarity index 66% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateFileRequestPurpose.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationTextInputType.g.cs index eb7051f2..cfce30d6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateFileRequestPurpose.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationTextInputType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class CreateFileRequestPurposeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ModerationTextInputTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.CreateFileRequestPurpose Read( + public override global::tryAGI.OpenAI.ModerationTextInputType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateFileRequestPurposeJsonConverter : global::System.Text. var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.CreateFileRequestPurposeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.ModerationTextInputTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateFileRequestPurposeJsonConverter : global::System.Text. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.CreateFileRequestPurpose)numValue; + return (global::tryAGI.OpenAI.ModerationTextInputType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.CreateFileRequestPurpose); + return default(global::tryAGI.OpenAI.ModerationTextInputType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateFileRequestPurposeJsonConverter : global::System.Text. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.CreateFileRequestPurpose value, + global::tryAGI.OpenAI.ModerationTextInputType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.CreateFileRequestPurposeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.ModerationTextInputTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationTextInputTypeNullable.g.cs similarity index 71% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationTextInputTypeNullable.g.cs index 71c6f3d0..ae29818f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsSharedEnumNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModerationTextInputTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class ModelIdsSharedEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ModerationTextInputTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.ModelIdsSharedEnum? Read( + public override global::tryAGI.OpenAI.ModerationTextInputType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ModelIdsSharedEnumNullableJsonConverter : global::System.Tex var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.ModelIdsSharedEnumExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.ModerationTextInputTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ModelIdsSharedEnumNullableJsonConverter : global::System.Tex case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.ModelIdsSharedEnum)numValue; + return (global::tryAGI.OpenAI.ModerationTextInputType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.ModelIdsSharedEnum?); + return default(global::tryAGI.OpenAI.ModerationTextInputType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ModelIdsSharedEnumNullableJsonConverter : global::System.Tex /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.ModelIdsSharedEnum? value, + global::tryAGI.OpenAI.ModerationTextInputType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.ModelIdsSharedEnumExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.ModerationTextInputTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs deleted file mode 100644 index 7f9e34a8..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf9.g.cs +++ /dev/null @@ -1,261 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI.JsonConverters -{ - /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> - { - /// - public override global::tryAGI.OpenAI.OneOf Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - var - readerCopy = reader; - T1? value1 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - readerCopy = reader; - T2? value2 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - readerCopy = reader; - T3? value3 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - readerCopy = reader; - T4? value4 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - readerCopy = reader; - T5? value5 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - readerCopy = reader; - T6? value6 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - readerCopy = reader; - T7? value7 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - readerCopy = reader; - T8? value8 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - readerCopy = reader; - T9? value9 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - value9 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - var result = new global::tryAGI.OpenAI.OneOf( - value1, - value2, - value3, - value4, - value5, - value6, - value7, - value8, - value9 - ); - - if (value1 != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (value2 != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (value3 != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (value4 != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (value5 != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (value6 != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (value7 != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (value8 != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (value9 != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - - return result; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.OneOf value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsValue1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); - } - else if (value.IsValue2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); - } - else if (value.IsValue3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo); - } - else if (value.IsValue4) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeInfo); - } - else if (value.IsValue5) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5, typeInfo); - } - else if (value.IsValue6) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6, typeInfo); - } - else if (value.IsValue7) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7, typeInfo); - } - else if (value.IsValue8) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8, typeInfo); - } - else if (value.IsValue9) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsItem.g.cs new file mode 100644 index 00000000..9a3fedff --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsItem.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class OutputsItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OutputsItem Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.CodeInterpreterOutputLogs? codeInterpreterOutputLogs = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); + codeInterpreterOutputLogs = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CodeInterpreterOutputImage? codeInterpreterOutputImage = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); + codeInterpreterOutputImage = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.OutputsItem( + codeInterpreterOutputLogs, + codeInterpreterOutputImage + ); + + if (codeInterpreterOutputLogs != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (codeInterpreterOutputImage != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OutputsItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCodeInterpreterOutputLogs) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterOutputLogs, typeInfo); + } + else if (value.IsCodeInterpreterOutputImage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterOutputImage, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentType.g.cs new file mode 100644 index 00000000..983bfca9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeConversationItemContentTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeConversationItemContentType 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::tryAGI.OpenAI.RealtimeConversationItemContentTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeConversationItemContentType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeConversationItemContentType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeConversationItemContentType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeConversationItemContentTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentTypeNullable.g.cs new file mode 100644 index 00000000..3d40ff5c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeConversationItemContentTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeConversationItemContentType? 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::tryAGI.OpenAI.RealtimeConversationItemContentTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeConversationItemContentType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeConversationItemContentType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeConversationItemContentType? 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::tryAGI.OpenAI.RealtimeConversationItemContentTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedConversationObject.g.cs similarity index 59% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedConversationObject.g.cs index a6a32f74..6eba90df 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedConversationObject.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RealtimeServerEventConversationCreatedConversationObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type Read( + public override global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateModerationRequestInputVariant3ItemVariant2TypeJsonConv var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2TypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObjectExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateModerationRequestInputVariant3ItemVariant2TypeJsonConv case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type)numValue; + return (global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type); + return default(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateModerationRequestInputVariant3ItemVariant2TypeJsonConv /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type value, + global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObjectExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedConversationObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedConversationObjectNullable.g.cs new file mode 100644 index 00000000..7ce96b46 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedConversationObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeServerEventConversationCreatedConversationObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject? 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::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject? 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::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningItemContentItemType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningItemContentItemType.g.cs new file mode 100644 index 00000000..7b9b7e1b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningItemContentItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ReasoningItemContentItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ReasoningItemContentItemType 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::tryAGI.OpenAI.ReasoningItemContentItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ReasoningItemContentItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ReasoningItemContentItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ReasoningItemContentItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ReasoningItemContentItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningItemContentItemTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningItemContentItemTypeNullable.g.cs new file mode 100644 index 00000000..4ba4b9fe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningItemContentItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ReasoningItemContentItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ReasoningItemContentItemType? 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::tryAGI.OpenAI.ReasoningItemContentItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ReasoningItemContentItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ReasoningItemContentItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ReasoningItemContentItemType? 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::tryAGI.OpenAI.ReasoningItemContentItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventType.g.cs similarity index 74% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventType.g.cs index 5aae4ecc..2211942c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class ResponseReasoningSummaryDoneEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ResponseReasoningTextDeltaEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType Read( + public override global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ResponseReasoningSummaryDoneEventTypeJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ResponseReasoningSummaryDoneEventTypeJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType)numValue; + return (global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType); + return default(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ResponseReasoningSummaryDoneEventTypeJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType value, + global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeNullable.g.cs similarity index 75% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeNullable.g.cs index af1a2157..6cad973d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class ResponseReasoningSummaryDoneEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ResponseReasoningTextDeltaEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType? Read( + public override global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ResponseReasoningSummaryDoneEventTypeNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ResponseReasoningSummaryDoneEventTypeNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType)numValue; + return (global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType?); + return default(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ResponseReasoningSummaryDoneEventTypeNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType? value, + global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventType.g.cs similarity index 74% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventType.g.cs index c1251811..2f29502f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventType.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class ResponseReasoningSummaryDeltaEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ResponseReasoningTextDoneEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType Read( + public override global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ResponseReasoningSummaryDeltaEventTypeJsonConverter : global var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventTypeExtensions.ToEnum(stringValue) ?? default; + return global::tryAGI.OpenAI.ResponseReasoningTextDoneEventTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ResponseReasoningSummaryDeltaEventTypeJsonConverter : global case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType)numValue; + return (global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType); + return default(global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ResponseReasoningSummaryDeltaEventTypeJsonConverter : global /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType value, + global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::tryAGI.OpenAI.ResponseReasoningTextDoneEventTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeNullable.g.cs similarity index 75% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeNullable.g.cs index ec01070f..b664e25c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class ResponseReasoningSummaryDeltaEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ResponseReasoningTextDoneEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType? Read( + public override global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ResponseReasoningSummaryDeltaEventTypeNullableJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventTypeExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.ResponseReasoningTextDoneEventTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ResponseReasoningSummaryDeltaEventTypeNullableJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType)numValue; + return (global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType?); + return default(global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ResponseReasoningSummaryDeltaEventTypeNullableJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType? value, + global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.ResponseReasoningTextDoneEventTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs index 61c2fd9d..2d00901e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs @@ -352,6 +352,30 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { } + readerCopy = reader; + global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? reasoningTextDelta = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); + reasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? reasoningTextDone = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); + reasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + readerCopy = reader; global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? refusalDelta = default; try @@ -604,30 +628,6 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali { } - readerCopy = reader; - global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent? reasoningSummaryDelta = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent).Name}"); - reasoningSummaryDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - - readerCopy = reader; - global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent? reasoningSummaryDone = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent).Name}"); - reasoningSummaryDone = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - var result = new global::tryAGI.OpenAI.ResponseStreamEvent( audioDelta, audioDone, @@ -657,6 +657,8 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali reasoningSummaryPartDone, reasoningSummaryTextDelta, reasoningSummaryTextDone, + reasoningTextDelta, + reasoningTextDone, refusalDelta, refusalDone, textDelta, @@ -677,9 +679,7 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali mCPListToolsFailed, mCPListToolsInProgress, outputTextAnnotationAdded, - queued, - reasoningSummaryDelta, - reasoningSummaryDone + queued ); if (audioDelta != null) @@ -850,6 +850,18 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + else if (reasoningTextDelta != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (reasoningTextDone != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } else if (refusalDelta != null) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -976,18 +988,6 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - else if (reasoningSummaryDelta != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (reasoningSummaryDone != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } return result; } @@ -1169,6 +1169,18 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningSummaryTextDone, typeInfo); } + else if (value.IsReasoningTextDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningTextDelta, typeInfo); + } + else if (value.IsReasoningTextDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningTextDone, typeInfo); + } else if (value.IsRefusalDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -1295,18 +1307,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Queued, typeInfo); } - else if (value.IsReasoningSummaryDelta) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningSummaryDelta, typeInfo); - } - else if (value.IsReasoningSummaryDone) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningSummaryDone, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultItem.g.cs new file mode 100644 index 00000000..15a3fcd5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultItem.g.cs @@ -0,0 +1,262 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class ResultItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ResultItem Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.UsageCompletionsResult? usageCompletions = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCompletionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCompletionsResult).Name}"); + usageCompletions = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.UsageEmbeddingsResult? usageEmbeddings = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult).Name}"); + usageEmbeddings = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.UsageModerationsResult? usageModerations = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageModerationsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageModerationsResult).Name}"); + usageModerations = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.UsageImagesResult? usageImages = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageImagesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageImagesResult).Name}"); + usageImages = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.UsageAudioSpeechesResult? usageAudioSpeeches = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult).Name}"); + usageAudioSpeeches = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? usageAudioTranscriptions = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult).Name}"); + usageAudioTranscriptions = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.UsageVectorStoresResult? usageVectorStores = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageVectorStoresResult).Name}"); + usageVectorStores = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? usageCodeInterpreterSessions = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult).Name}"); + usageCodeInterpreterSessions = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.CostsResult? costs = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CostsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CostsResult).Name}"); + costs = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.ResultItem( + usageCompletions, + usageEmbeddings, + usageModerations, + usageImages, + usageAudioSpeeches, + usageAudioTranscriptions, + usageVectorStores, + usageCodeInterpreterSessions, + costs + ); + + if (usageCompletions != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCompletionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCompletionsResult).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (usageEmbeddings != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (usageModerations != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageModerationsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageModerationsResult).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (usageImages != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageImagesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageImagesResult).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (usageAudioSpeeches != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (usageAudioTranscriptions != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (usageVectorStores != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageVectorStoresResult).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (usageCodeInterpreterSessions != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (costs != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CostsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CostsResult).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ResultItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsUsageCompletions) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCompletionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCompletionsResult).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UsageCompletions, typeInfo); + } + else if (value.IsUsageEmbeddings) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UsageEmbeddings, typeInfo); + } + else if (value.IsUsageModerations) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageModerationsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageModerationsResult).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UsageModerations, typeInfo); + } + else if (value.IsUsageImages) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageImagesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageImagesResult).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UsageImages, typeInfo); + } + else if (value.IsUsageAudioSpeeches) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UsageAudioSpeeches, typeInfo); + } + else if (value.IsUsageAudioTranscriptions) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UsageAudioTranscriptions, typeInfo); + } + else if (value.IsUsageVectorStores) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageVectorStoresResult).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UsageVectorStores, typeInfo); + } + else if (value.IsUsageCodeInterpreterSessions) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UsageCodeInterpreterSessions, typeInfo); + } + else if (value.IsCosts) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CostsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CostsResult).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Costs, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunGraderRequestGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunGraderRequestGrader.g.cs new file mode 100644 index 00000000..d78b3360 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunGraderRequestGrader.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class RunGraderRequestGraderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RunGraderRequestGrader Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.GraderStringCheck? stringCheck = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); + stringCheck = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.GraderTextSimilarity? textSimilarity = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); + textSimilarity = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.GraderPython? python = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); + python = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.GraderScoreModel? scoreModel = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); + scoreModel = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.GraderMulti? multi = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderMulti), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderMulti).Name}"); + multi = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.RunGraderRequestGrader( + stringCheck, + textSimilarity, + python, + scoreModel, + multi + ); + + if (stringCheck != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (textSimilarity != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (python != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (scoreModel != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (multi != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderMulti), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderMulti).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RunGraderRequestGrader value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsStringCheck) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StringCheck, typeInfo); + } + else if (value.IsTextSimilarity) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextSimilarity, typeInfo); + } + else if (value.IsPython) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Python, typeInfo); + } + else if (value.IsScoreModel) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ScoreModel, typeInfo); + } + else if (value.IsMulti) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderMulti), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderMulti).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Multi, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStatus.g.cs new file mode 100644 index 00000000..cf9015f2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RunStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RunStatus 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::tryAGI.OpenAI.RunStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RunStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RunStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RunStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RunStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunObjectStatusNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStatusNullable.g.cs similarity index 73% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunObjectStatusNullable.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStatusNullable.g.cs index 42f08734..a2e25b28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunObjectStatusNullable.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStatusNullable.g.cs @@ -3,10 +3,10 @@ namespace tryAGI.OpenAI.JsonConverters { /// - public sealed class RunObjectStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RunStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::tryAGI.OpenAI.RunObjectStatus? Read( + public override global::tryAGI.OpenAI.RunStatus? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class RunObjectStatusNullableJsonConverter : global::System.Text.J var stringValue = reader.GetString(); if (stringValue != null) { - return global::tryAGI.OpenAI.RunObjectStatusExtensions.ToEnum(stringValue); + return global::tryAGI.OpenAI.RunStatusExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class RunObjectStatusNullableJsonConverter : global::System.Text.J case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::tryAGI.OpenAI.RunObjectStatus)numValue; + return (global::tryAGI.OpenAI.RunStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::tryAGI.OpenAI.RunObjectStatus?); + return default(global::tryAGI.OpenAI.RunStatus?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class RunObjectStatusNullableJsonConverter : global::System.Text.J /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::tryAGI.OpenAI.RunObjectStatus? value, + global::tryAGI.OpenAI.RunStatus? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::tryAGI.OpenAI.RunObjectStatusExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::tryAGI.OpenAI.RunStatusExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectDeltaStepDetails.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectDeltaStepDetails.g.cs new file mode 100644 index 00000000..b8c23bb1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectDeltaStepDetails.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class RunStepDeltaObjectDeltaStepDetailsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? messageCreation = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject).Name}"); + messageCreation = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? toolCalls = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject).Name}"); + toolCalls = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails( + messageCreation, + toolCalls + ); + + if (messageCreation != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (toolCalls != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsMessageCreation) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageCreation, typeInfo); + } + else if (value.IsToolCalls) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolCalls, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCall.g.cs new file mode 100644 index 00000000..a77edcb7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCall.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class RunStepDeltaStepDetailsToolCallJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? callsCodeObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject).Name}"); + callsCodeObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? callsFileSearchObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject).Name}"); + callsFileSearchObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? callsFunctionObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject).Name}"); + callsFunctionObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall( + callsCodeObject, + callsFileSearchObject, + callsFunctionObject + ); + + if (callsCodeObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (callsFileSearchObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (callsFunctionObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCallsCodeObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CallsCodeObject, typeInfo); + } + else if (value.IsCallsFileSearchObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CallsFileSearchObject, typeInfo); + } + else if (value.IsCallsFunctionObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CallsFunctionObject, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs new file mode 100644 index 00000000..fc475bb3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? logs = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject).Name}"); + logs = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? image = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject).Name}"); + image = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput( + logs, + image + ); + + if (logs != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (image != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsLogs) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Logs, typeInfo); + } + else if (value.IsImage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCall.g.cs new file mode 100644 index 00000000..14cd1d0e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCall.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class RunStepDetailsToolCallJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RunStepDetailsToolCall Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? callsCodeObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject).Name}"); + callsCodeObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? callsFileSearchObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject).Name}"); + callsFileSearchObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? callsFunctionObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject).Name}"); + callsFunctionObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.RunStepDetailsToolCall( + callsCodeObject, + callsFileSearchObject, + callsFunctionObject + ); + + if (callsCodeObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (callsFileSearchObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (callsFunctionObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RunStepDetailsToolCall value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCallsCodeObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CallsCodeObject, typeInfo); + } + else if (value.IsCallsFileSearchObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CallsFileSearchObject, typeInfo); + } + else if (value.IsCallsFunctionObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CallsFunctionObject, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs new file mode 100644 index 00000000..f0da225a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? logs = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject).Name}"); + logs = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? image = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject).Name}"); + image = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput( + logs, + image + ); + + if (logs != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (image != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsLogs) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Logs, typeInfo); + } + else if (value.IsImage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepObjectStepDetails.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepObjectStepDetails.g.cs new file mode 100644 index 00000000..29a7f41e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepObjectStepDetails.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class RunStepObjectStepDetailsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RunStepObjectStepDetails Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? messageCreation = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject).Name}"); + messageCreation = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? toolCalls = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject).Name}"); + toolCalls = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.RunStepObjectStepDetails( + messageCreation, + toolCalls + ); + + if (messageCreation != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (toolCalls != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RunStepObjectStepDetails value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsMessageCreation) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageCreation, typeInfo); + } + else if (value.IsToolCalls) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolCalls, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Source.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Source.g.cs new file mode 100644 index 00000000..cfa2d9a4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Source.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class SourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Source Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.EvalJsonlFileContentSource? evalJsonlFileContent = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource).Name}"); + evalJsonlFileContent = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalJsonlFileIdSource? evalJsonlFileId = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource).Name}"); + evalJsonlFileId = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalStoredCompletionsSource? evalStoredCompletions = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSource).Name}"); + evalStoredCompletions = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.Source( + evalJsonlFileContent, + evalJsonlFileId, + evalStoredCompletions + ); + + if (evalJsonlFileContent != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (evalJsonlFileId != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (evalStoredCompletions != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Source value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsEvalJsonlFileContent) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalJsonlFileContent, typeInfo); + } + else if (value.IsEvalJsonlFileId) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalJsonlFileId, typeInfo); + } + else if (value.IsEvalStoredCompletions) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalStoredCompletions, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Source2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Source2.g.cs new file mode 100644 index 00000000..da7f9455 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Source2.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class Source2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Source2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.EvalJsonlFileContentSource? evalJsonlFileContentSource = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource).Name}"); + evalJsonlFileContentSource = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalJsonlFileIdSource? evalJsonlFileIdSource = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource).Name}"); + evalJsonlFileIdSource = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.Source2( + evalJsonlFileContentSource, + evalJsonlFileIdSource + ); + + if (evalJsonlFileContentSource != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (evalJsonlFileIdSource != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Source2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsEvalJsonlFileContentSource) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalJsonlFileContentSource, typeInfo); + } + else if (value.IsEvalJsonlFileIdSource) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalJsonlFileIdSource, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Source3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Source3.g.cs new file mode 100644 index 00000000..62903b9c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Source3.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class Source3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Source3 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.EvalJsonlFileContentSource? evalJsonlFileContentSource = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource).Name}"); + evalJsonlFileContentSource = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalJsonlFileIdSource? evalJsonlFileIdSource = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource).Name}"); + evalJsonlFileIdSource = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalResponsesSource? evalResponsesSource = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalResponsesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalResponsesSource).Name}"); + evalResponsesSource = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.Source3( + evalJsonlFileContentSource, + evalJsonlFileIdSource, + evalResponsesSource + ); + + if (evalJsonlFileContentSource != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (evalJsonlFileIdSource != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (evalResponsesSource != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalResponsesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalResponsesSource).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Source3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsEvalJsonlFileContentSource) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalJsonlFileContentSource, typeInfo); + } + else if (value.IsEvalJsonlFileIdSource) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalJsonlFileIdSource, typeInfo); + } + else if (value.IsEvalResponsesSource) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalResponsesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalResponsesSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalResponsesSource, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TemplateItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TemplateItem.g.cs new file mode 100644 index 00000000..eb64c750 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TemplateItem.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class TemplateItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.TemplateItem Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.EasyInputMessage? easyInputMessage = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); + easyInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalItem? eval = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); + eval = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.TemplateItem( + easyInputMessage, + eval + ); + + if (easyInputMessage != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (eval != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.TemplateItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsEasyInputMessage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EasyInputMessage, typeInfo); + } + else if (value.IsEval) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Eval, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TestingCriteriaItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TestingCriteriaItem.g.cs new file mode 100644 index 00000000..a24ac582 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TestingCriteriaItem.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class TestingCriteriaItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.TestingCriteriaItem Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.CreateEvalLabelModelGrader? createEvalLabelModelGrader = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGrader), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGrader).Name}"); + createEvalLabelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalGraderStringCheck? evalGraderStringCheck = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderStringCheck).Name}"); + evalGraderStringCheck = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalGraderTextSimilarity? evalGraderTextSimilarity = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity).Name}"); + evalGraderTextSimilarity = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalGraderPython? evalGraderPython = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPython).Name}"); + evalGraderPython = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.EvalGraderScoreModel? evalGraderScoreModel = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModel).Name}"); + evalGraderScoreModel = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.TestingCriteriaItem( + createEvalLabelModelGrader, + evalGraderStringCheck, + evalGraderTextSimilarity, + evalGraderPython, + evalGraderScoreModel + ); + + if (createEvalLabelModelGrader != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGrader), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGrader).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (evalGraderStringCheck != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderStringCheck).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (evalGraderTextSimilarity != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (evalGraderPython != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPython).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (evalGraderScoreModel != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModel).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.TestingCriteriaItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCreateEvalLabelModelGrader) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGrader), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGrader).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateEvalLabelModelGrader, typeInfo); + } + else if (value.IsEvalGraderStringCheck) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderStringCheck).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderStringCheck, typeInfo); + } + else if (value.IsEvalGraderTextSimilarity) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderTextSimilarity, typeInfo); + } + else if (value.IsEvalGraderPython) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPython).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderPython, typeInfo); + } + else if (value.IsEvalGraderScoreModel) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModel).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderScoreModel, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextAnnotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextAnnotation.g.cs new file mode 100644 index 00000000..05abd412 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextAnnotation.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class TextAnnotationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.TextAnnotation Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? messageContentAnnotationsFileCitationObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject).Name}"); + messageContentAnnotationsFileCitationObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? messageContentAnnotationsFilePathObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject).Name}"); + messageContentAnnotationsFilePathObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.TextAnnotation( + messageContentAnnotationsFileCitationObject, + messageContentAnnotationsFilePathObject + ); + + if (messageContentAnnotationsFileCitationObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (messageContentAnnotationsFilePathObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.TextAnnotation value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsMessageContentAnnotationsFileCitationObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageContentAnnotationsFileCitationObject, typeInfo); + } + else if (value.IsMessageContentAnnotationsFilePathObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageContentAnnotationsFilePathObject, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextAnnotationDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextAnnotationDelta.g.cs new file mode 100644 index 00000000..5125c417 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextAnnotationDelta.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class TextAnnotationDeltaJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.TextAnnotationDelta Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? messageContentAnnotationsFileCitationObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject).Name}"); + messageContentAnnotationsFileCitationObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? messageContentAnnotationsFilePathObject = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject).Name}"); + messageContentAnnotationsFilePathObject = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.TextAnnotationDelta( + messageContentAnnotationsFileCitationObject, + messageContentAnnotationsFilePathObject + ); + + if (messageContentAnnotationsFileCitationObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (messageContentAnnotationsFilePathObject != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.TextAnnotationDelta value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsMessageContentAnnotationsFileCitationObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageContentAnnotationsFileCitationObject, typeInfo); + } + else if (value.IsMessageContentAnnotationsFilePathObject) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageContentAnnotationsFilePathObject, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem.g.cs new file mode 100644 index 00000000..cd115a1d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class ToolsItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolsItem Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.AssistantToolsCode? assistantCode = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsCode).Name}"); + assistantCode = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly? assistantFileSearchTypeOnly = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly).Name}"); + assistantFileSearchTypeOnly = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.ToolsItem( + assistantCode, + assistantFileSearchTypeOnly + ); + + if (assistantCode != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsCode).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (assistantFileSearchTypeOnly != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolsItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsAssistantCode) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsCode).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantCode, typeInfo); + } + else if (value.IsAssistantFileSearchTypeOnly) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFileSearchTypeOnly, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs new file mode 100644 index 00000000..862fc3d9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs @@ -0,0 +1,112 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.WebSearchToolCallAction Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::tryAGI.OpenAI.WebSearchActionSearch? value1 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.WebSearchActionOpenPage? value2 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::tryAGI.OpenAI.WebSearchActionFind? value3 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::tryAGI.OpenAI.WebSearchToolCallAction( + value1, + value2, + value3 + ); + + if (value1 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (value2 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (value3 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.WebSearchToolCallAction value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsValue1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + } + else if (value.IsValue2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + } + else if (value.IsValue3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs index 60cb615e..bab5a9ed 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs @@ -186,11 +186,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList>? Type40 { get; set; } + public global::System.Collections.Generic.IList? Type40 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type41 { get; set; } + public global::tryAGI.OpenAI.AssistantTool? Type41 { get; set; } /// /// /// @@ -234,7678 +234,7946 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::tryAGI.OpenAI.AssistantStreamEvent? Type52 { get; set; } + public global::tryAGI.OpenAI.AssistantToolDiscriminator? Type52 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEvent? Type53 { get; set; } + public global::tryAGI.OpenAI.AssistantStreamEvent? Type53 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type54 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEvent? Type54 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObject? Type55 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type55 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectObject? Type56 { get; set; } + public global::tryAGI.OpenAI.ThreadObject? Type56 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResources? Type57 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectObject? Type57 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type58 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResources? Type58 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type59 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type59 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type60 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type60 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEvent? Type61 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type61 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1? Type62 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventDiscriminator? Type62 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObject? Type63 { get; set; } + public global::tryAGI.OpenAI.RunStreamEvent? Type63 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type64 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1? Type64 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type65 { get; set; } + public global::tryAGI.OpenAI.RunObject? Type65 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastError? Type66 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type66 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type67 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type67 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectObject? Type68 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastError? Type68 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredAction? Type69 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type69 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type70 { get; set; } + public global::tryAGI.OpenAI.RunObjectObject? Type70 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type71 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredAction? Type71 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObject? Type72 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type72 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type73 { get; set; } + public global::System.Collections.Generic.IList? Type73 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectType? Type74 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObject? Type74 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type75 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type75 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectStatus? Type76 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectType? Type76 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? Type77 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type77 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? Type78 { get; set; } + public global::tryAGI.OpenAI.RunStatus? Type78 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantsNamedToolChoice? Type79 { get; set; } + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? Type79 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantsNamedToolChoiceFunction? Type80 { get; set; } + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? Type80 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantsNamedToolChoiceType? Type81 { get; set; } + public global::tryAGI.OpenAI.AssistantsNamedToolChoice? Type81 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationObject? Type82 { get; set; } + public global::tryAGI.OpenAI.AssistantsNamedToolChoiceFunction? Type82 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationObjectType? Type83 { get; set; } + public global::tryAGI.OpenAI.AssistantsNamedToolChoiceType? Type83 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunCompletionUsage? Type84 { get; set; } + public global::tryAGI.OpenAI.TruncationObject? Type84 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type85 { get; set; } + public global::tryAGI.OpenAI.TruncationObjectType? Type85 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2? Type86 { get; set; } + public global::tryAGI.OpenAI.RunCompletionUsage? Type86 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type87 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type87 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3? Type88 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2? Type88 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type89 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type89 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4? Type90 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3? Type90 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type91 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type91 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5? Type92 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4? Type92 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type93 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type93 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6? Type94 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5? Type94 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type95 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type95 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7? Type96 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6? Type96 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type97 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type97 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8? Type98 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7? Type98 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type99 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type99 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9? Type100 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8? Type100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type101 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10? Type102 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9? Type102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type103 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEvent? Type104 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10? Type104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type105 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObject? Type106 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventDiscriminator? Type106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastError? Type107 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEvent? Type107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type108 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectObject? Type109 { get; set; } + public global::tryAGI.OpenAI.RunStepObject? Type109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectStatus? Type110 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastError? Type110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type111 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type112 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectObject? Type112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type113 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectStatus? Type113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type114 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectStepDetails? Type114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type115 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type115 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type116 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type117 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type118 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type119 { get; set; } + public global::System.Collections.Generic.IList? Type119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type120 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCall? Type120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type121 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type122 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type123 { get; set; } + public global::System.Collections.Generic.IList? Type123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type124 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput? Type124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type125 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type126 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type127 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type128 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type129 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type130 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type132 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type133 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type134 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type135 { get; set; } + public global::System.Collections.Generic.IList? Type135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type136 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type137 { get; set; } + public global::System.Collections.Generic.IList? Type137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type138 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type139 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type140 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectType? Type141 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepCompletionUsage? Type142 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type143 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type144 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallDiscriminator? Type144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type145 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type146 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectStepDetailsDiscriminator? Type146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObject? Type147 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectType? Type147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type148 { get; set; } + public global::tryAGI.OpenAI.RunStepCompletionUsage? Type148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type149 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type150 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type151 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type152 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type153 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObject? Type153 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type154 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type155 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails? Type155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type156 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type157 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type158 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type159 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type160 { get; set; } + public global::System.Collections.Generic.IList? Type160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type161 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall? Type161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type162 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type163 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type164 { get; set; } + public global::System.Collections.Generic.IList? Type164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type165 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput? Type165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type166 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type167 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type168 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator? Type168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type169 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type170 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type171 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type172 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type173 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type174 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type175 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallDiscriminator? Type175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type176 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type177 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetailsDiscriminator? Type177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type178 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type179 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type180 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type181 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEvent? Type182 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type183 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObject? Type184 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type184 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type185 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectAttachment? Type186 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type187 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type188 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventDiscriminator? Type188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly? Type189 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEvent? Type189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnlyType? Type190 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type190 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type191 { get; set; } + public global::tryAGI.OpenAI.MessageObject? Type191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type192 { get; set; } + public global::System.Collections.Generic.IList? Type192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObject? Type193 { get; set; } + public global::tryAGI.OpenAI.MessageObjectAttachment? Type193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type194 { get; set; } + public global::System.Collections.Generic.IList>? Type194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type195 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type196 { get; set; } + public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly? Type196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObject? Type197 { get; set; } + public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnlyType? Type197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type198 { get; set; } + public global::System.Collections.Generic.IList? Type198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type199 { get; set; } + public global::tryAGI.OpenAI.MessageContent? Type199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type200 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObject? Type200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObject? Type201 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObjectText? Type202 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type203 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type204 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObject? Type204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type205 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type206 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type207 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type208 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObject? Type208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type209 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObjectText? Type209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type210 { get; set; } + public global::System.Collections.Generic.IList? Type210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObjectType? Type211 { get; set; } + public global::tryAGI.OpenAI.TextAnnotation? Type211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentRefusalObject? Type212 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type213 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetails? Type214 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type215 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectObject? Type216 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectRole? Type217 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectStatus? Type218 { get; set; } + public global::tryAGI.OpenAI.TextAnnotationDiscriminator? Type218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type219 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObjectType? Type219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type220 { get; set; } + public global::tryAGI.OpenAI.MessageContentRefusalObject? Type220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type221 { get; set; } + public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type222 { get; set; } + public global::tryAGI.OpenAI.MessageContentDiscriminator? Type222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObject? Type223 { get; set; } + public global::tryAGI.OpenAI.MessageObjectIncompleteDetails? Type223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type224 { get; set; } + public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type225 { get; set; } + public global::tryAGI.OpenAI.MessageObjectObject? Type225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type226 { get; set; } + public global::tryAGI.OpenAI.MessageObjectRole? Type226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type227 { get; set; } + public global::tryAGI.OpenAI.MessageObjectStatus? Type227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type228 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type229 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type230 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type231 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type232 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObject? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type233 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type234 { get; set; } + public global::System.Collections.Generic.IList? Type234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type235 { get; set; } + public global::tryAGI.OpenAI.MessageContentDelta? Type235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type236 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type237 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type238 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type239 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type240 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type241 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type243 { get; set; } + public global::tryAGI.OpenAI.TextAnnotationDelta? Type243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type244 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type245 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type246 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type247 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type248 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type249 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type250 { get; set; } + public global::tryAGI.OpenAI.TextAnnotationDeltaDiscriminator? Type250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type251 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type252 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type253 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type254 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorEvent? Type255 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error? Type256 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorEventEvent? Type257 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEvent? Type258 { get; set; } + public global::tryAGI.OpenAI.MessageContentDeltaDiscriminator? Type258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventData? Type259 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventEvent? Type260 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantSupportedModels? Type261 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AudioResponseFormat? Type262 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLog? Type263 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActor? Type264 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorApiKey? Type265 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorServiceAccount? Type266 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventDiscriminator? Type266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorApiKeyType? Type267 { get; set; } + public global::tryAGI.OpenAI.ErrorEvent? Type267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorUser? Type268 { get; set; } + public global::tryAGI.OpenAI.Error? Type268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorSession? Type269 { get; set; } + public global::tryAGI.OpenAI.ErrorEventEvent? Type269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogActorType? Type270 { get; set; } + public global::tryAGI.OpenAI.AssistantStreamEventDiscriminator? Type270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyCreated? Type271 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyCreatedData? Type272 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyDeleted? Type273 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyUpdated? Type274 { get; set; } + public global::tryAGI.OpenAI.AssistantSupportedModels? Type274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogApiKeyUpdatedChangesRequested? Type275 { get; set; } + public global::tryAGI.OpenAI.AudioResponseFormat? Type275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificateCreated? Type276 { get; set; } + public global::tryAGI.OpenAI.AuditLog? Type276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificateDeleted? Type277 { get; set; } + public global::tryAGI.OpenAI.AuditLogActor? Type277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificateUpdated? Type278 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorApiKey? Type278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificatesActivated? Type279 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorServiceAccount? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorApiKeyType? Type280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificatesActivatedCertificate? Type281 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorUser? Type281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificatesDeactivated? Type282 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorSession? Type282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::tryAGI.OpenAI.AuditLogActorType? Type283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCertificatesDeactivatedCertificate? Type284 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyCreated? Type284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreated? Type285 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyCreatedData? Type285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreatedData? Type286 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyDeleted? Type286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogCheckpointPermissionDeleted? Type287 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyUpdated? Type287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogInviteAccepted? Type288 { get; set; } + public global::tryAGI.OpenAI.AuditLogApiKeyUpdatedChangesRequested? Type288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogInviteDeleted? Type289 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificateCreated? Type289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogInviteSent? Type290 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificateDeleted? Type290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogInviteSentData? Type291 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificateUpdated? Type291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogLoginFailed? Type292 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificatesActivated? Type292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogLogoutFailed? Type293 { get; set; } + public global::System.Collections.Generic.IList? Type293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogOrganizationUpdated? Type294 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificatesActivatedCertificate? Type294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogOrganizationUpdatedChangesRequested? Type295 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificatesDeactivated? Type295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProject? Type296 { get; set; } + public global::System.Collections.Generic.IList? Type296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectArchived? Type297 { get; set; } + public global::tryAGI.OpenAI.AuditLogCertificatesDeactivatedCertificate? Type297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectCreated? Type298 { get; set; } + public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreated? Type298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectCreatedData? Type299 { get; set; } + public global::tryAGI.OpenAI.AuditLogCheckpointPermissionCreatedData? Type299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectUpdated? Type300 { get; set; } + public global::tryAGI.OpenAI.AuditLogCheckpointPermissionDeleted? Type300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogProjectUpdatedChangesRequested? Type301 { get; set; } + public global::tryAGI.OpenAI.AuditLogInviteAccepted? Type301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogRateLimitDeleted? Type302 { get; set; } + public global::tryAGI.OpenAI.AuditLogInviteDeleted? Type302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogRateLimitUpdated? Type303 { get; set; } + public global::tryAGI.OpenAI.AuditLogInviteSent? Type303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogRateLimitUpdatedChangesRequested? Type304 { get; set; } + public global::tryAGI.OpenAI.AuditLogInviteSentData? Type304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountCreated? Type305 { get; set; } + public global::tryAGI.OpenAI.AuditLogLoginFailed? Type305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountCreatedData? Type306 { get; set; } + public global::tryAGI.OpenAI.AuditLogLogoutFailed? Type306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountDeleted? Type307 { get; set; } + public global::tryAGI.OpenAI.AuditLogOrganizationUpdated? Type307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountUpdated? Type308 { get; set; } + public global::tryAGI.OpenAI.AuditLogOrganizationUpdatedChangesRequested? Type308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogServiceAccountUpdatedChangesRequested? Type309 { get; set; } + public global::tryAGI.OpenAI.AuditLogProject? Type309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogEventType? Type310 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectArchived? Type310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserAdded? Type311 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectCreated? Type311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserAddedData? Type312 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectCreatedData? Type312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserDeleted? Type313 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectUpdated? Type313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserUpdated? Type314 { get; set; } + public global::tryAGI.OpenAI.AuditLogProjectUpdatedChangesRequested? Type314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AuditLogUserUpdatedChangesRequested? Type315 { get; set; } + public global::tryAGI.OpenAI.AuditLogRateLimitDeleted? Type315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam? Type316 { get; set; } + public global::tryAGI.OpenAI.AuditLogRateLimitUpdated? Type316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParamType? Type317 { get; set; } + public global::tryAGI.OpenAI.AuditLogRateLimitUpdatedChangesRequested? Type317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Batch? Type318 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountCreated? Type318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchErrors? Type319 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountCreatedData? Type319 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type320 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountDeleted? Type320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchErrorsDataItem? Type321 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountUpdated? Type321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchObject? Type322 { get; set; } + public global::tryAGI.OpenAI.AuditLogServiceAccountUpdatedChangesRequested? Type322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestCounts? Type323 { get; set; } + public global::tryAGI.OpenAI.AuditLogEventType? Type323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchStatus? Type324 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserAdded? Type324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestInput? Type325 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserAddedData? Type325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestInputMethod? Type326 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserDeleted? Type326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestOutput? Type327 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserUpdated? Type327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestOutputError? Type328 { get; set; } + public global::tryAGI.OpenAI.AuditLogUserUpdatedChangesRequested? Type328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BatchRequestOutputResponse? Type329 { get; set; } + public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam? Type329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Certificate? Type330 { get; set; } + public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParamType? Type330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CertificateCertificateDetails? Type331 { get; set; } + public global::tryAGI.OpenAI.Batch? Type331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CertificateObject? Type332 { get; set; } + public global::tryAGI.OpenAI.BatchErrors? Type332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionDeleted? Type333 { get; set; } + public global::System.Collections.Generic.IList? Type333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionDeletedObject? Type334 { get; set; } + public global::tryAGI.OpenAI.BatchError? Type334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionFunctionCallOption? Type335 { get; set; } + public global::tryAGI.OpenAI.BatchObject? Type335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionFunctions? Type336 { get; set; } + public global::tryAGI.OpenAI.BatchRequestCounts? Type336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionList? Type337 { get; set; } + public global::tryAGI.OpenAI.BatchStatus? Type337 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type338 { get; set; } + public global::tryAGI.OpenAI.BatchRequestInput? Type338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponse? Type339 { get; set; } + public global::tryAGI.OpenAI.BatchRequestInputMethod? Type339 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type340 { get; set; } + public global::tryAGI.OpenAI.BatchRequestOutput? Type340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type341 { get; set; } + public global::tryAGI.OpenAI.BatchRequestOutputError? Type341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type342 { get; set; } + public global::tryAGI.OpenAI.BatchRequestOutputResponse? Type342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs? Type343 { get; set; } + public global::tryAGI.OpenAI.Certificate? Type343 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type344 { get; set; } + public global::tryAGI.OpenAI.CertificateCertificateDetails? Type344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type345 { get; set; } + public global::tryAGI.OpenAI.CertificateObject? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionDeleted? Type346 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type347 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionDeletedObject? Type347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type348 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionFunctionCallOption? Type348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessage? Type349 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionFunctions? Type349 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type350 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionList? Type350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type351 { get; set; } + public global::System.Collections.Generic.IList? Type351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type352 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponse? Type352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type353 { get; set; } + public global::System.Collections.Generic.IList? Type353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio? Type354 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type355 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type356 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type357 { get; set; } + public global::System.Collections.Generic.IList? Type357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCall? Type358 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction? Type359 { get; set; } + public global::System.Collections.Generic.IList? Type359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallType? Type360 { get; set; } + public global::System.Collections.Generic.IList? Type360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type361 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTier? Type362 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessage? Type362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsage? Type363 { get; set; } + public global::System.Collections.Generic.IList? Type363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type364 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type365 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionListObject? Type366 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageList? Type367 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio? Type367 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type368 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type369 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageListDataItem? Type370 { get; set; } + public global::System.Collections.Generic.IList? Type370 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type371 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCall? Type371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type372 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction? Type372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Type373 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallType? Type373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type374 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? Type375 { get; set; } + public global::tryAGI.OpenAI.ServiceTier? Type375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type376 { get; set; } + public global::tryAGI.OpenAI.CompletionUsage? Type376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type377 { get; set; } + public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type378 { get; set; } + public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageListObject? Type379 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionListObject? Type379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk? Type380 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageList? Type380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction? Type381 { get; set; } + public global::System.Collections.Generic.IList>? Type381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType? Type382 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type382 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type383 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItem? Type383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModalitie? Type384 { get; set; } + public global::System.Collections.Generic.IList>? Type384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type385 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type386 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Type386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type387 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type388 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? Type388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio? Type389 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type390 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type390 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type391 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type392 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListObject? Type392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type393 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk? Type393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type394 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction? Type394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall? Type395 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType? Type395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type396 { get; set; } + public global::System.Collections.Generic.IList? Type396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type397 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModalitie? Type397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type398 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type398 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type399 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type400 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type401 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type402 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio? Type402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type403 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type404 { get; set; } + public global::System.Collections.Generic.IList? Type404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type405 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type405 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type406 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type407 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type408 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? Type408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type409 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall? Type409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type410 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type410 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type411 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type412 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type413 { get; set; } + public global::System.Collections.Generic.IList? Type413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type414 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type415 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type416 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type417 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type418 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type419 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type420 { get; set; } + public global::System.Collections.Generic.IList? Type420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type421 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type422 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type422 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type423 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type424 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type425 { get; set; } + public global::System.Collections.Generic.IList? Type425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRole? Type426 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamOptions? Type427 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type428 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type429 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type430 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type430 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type431 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTool? Type432 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolType? Type433 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type434 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminator? Type434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type435 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type436 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type437 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategy? Type438 { get; set; } + public global::System.Collections.Generic.IList? Type438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type439 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Click? Type440 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickButton? Type441 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? Type441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickType? Type442 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRole? Type442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type443 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamOptions? Type443 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type444 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type445 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type446 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type447 { get; set; } + public global::System.Collections.Generic.IList? Type447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type448 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTool? Type448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type449 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolType? Type449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type450 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type451 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type452 { get; set; } + public global::tryAGI.OpenAI.ChatModel? Type452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTool? Type453 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type454 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolAuto? Type455 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategy? Type455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolAutoType? Type456 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolType? Type457 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? Type457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type458 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyResponse? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type459 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type460 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsDiscriminator? Type461 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type462 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type463 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyResponseDiscriminator? Type463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComparisonFilter? Type464 { get; set; } + public global::tryAGI.OpenAI.Click? Type464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComparisonFilterType? Type465 { get; set; } + public global::tryAGI.OpenAI.ClickButton? Type465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type466 { get; set; } + public global::tryAGI.OpenAI.ClickType? Type466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompleteUploadRequest? Type467 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilter? Type468 { get; set; } + public global::System.Collections.Generic.IList? Type468 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type469 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type470 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilterType? Type471 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerAction? Type472 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClick? Type473 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClickType? Type474 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Drag? Type475 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type475 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type476 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Coordinate? Type477 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTool? Type477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragType? Type478 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPress? Type479 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolAuto? Type479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPressType? Type480 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolAutoType? Type480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Move? Type481 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolType? Type481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MoveType? Type482 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Screenshot? Type483 { get; set; } + public global::System.Collections.Generic.IList? Type483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScreenshotType? Type484 { get; set; } + public global::tryAGI.OpenAI.OutputsItem? Type484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Scroll? Type485 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputDiscriminator? Type485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScrollType? Type486 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsDiscriminator? Type486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Type? Type487 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TypeType1? Type488 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Wait? Type489 { get; set; } + public global::tryAGI.OpenAI.ComparisonFilter? Type489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitType? Type490 { get; set; } + public global::tryAGI.OpenAI.ComparisonFilterType? Type490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type491 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type491 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type492 { get; set; } + public global::tryAGI.OpenAI.CompleteUploadRequest? Type492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type493 { get; set; } + public global::tryAGI.OpenAI.CompoundFilter? Type493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotImage? Type494 { get; set; } + public global::System.Collections.Generic.IList>? Type494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type495 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamStatus? Type496 { get; set; } + public global::tryAGI.OpenAI.CompoundFilterType? Type496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type497 { get; set; } + public global::tryAGI.OpenAI.ComputerAction? Type497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCall? Type498 { get; set; } + public global::tryAGI.OpenAI.DoubleClick? Type498 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type499 { get; set; } + public global::tryAGI.OpenAI.DoubleClickType? Type499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallSafetyCheck? Type500 { get; set; } + public global::tryAGI.OpenAI.Drag? Type500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallStatus? Type501 { get; set; } + public global::System.Collections.Generic.IList? Type501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallType? Type502 { get; set; } + public global::tryAGI.OpenAI.Coordinate? Type502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutput? Type503 { get; set; } + public global::tryAGI.OpenAI.DragType? Type503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type504 { get; set; } + public global::tryAGI.OpenAI.KeyPress? Type504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type505 { get; set; } + public global::tryAGI.OpenAI.KeyPressType? Type505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type506 { get; set; } + public global::tryAGI.OpenAI.Move? Type506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type507 { get; set; } + public global::tryAGI.OpenAI.MoveType? Type507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type508 { get; set; } + public global::tryAGI.OpenAI.Screenshot? Type508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolEnvironment? Type509 { get; set; } + public global::tryAGI.OpenAI.ScreenshotType? Type509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type510 { get; set; } + public global::tryAGI.OpenAI.Scroll? Type510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileListResource? Type511 { get; set; } + public global::tryAGI.OpenAI.ScrollType? Type511 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type512 { get; set; } + public global::tryAGI.OpenAI.Type? Type512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileResource? Type513 { get; set; } + public global::tryAGI.OpenAI.TypeType1? Type513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type514 { get; set; } + public global::tryAGI.OpenAI.Wait? Type514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerListResource? Type515 { get; set; } + public global::tryAGI.OpenAI.WaitType? Type515 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type516 { get; set; } + public global::tryAGI.OpenAI.ComputerActionDiscriminator? Type516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResource? Type517 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type518 { get; set; } + public global::System.Collections.Generic.IList? Type518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type519 { get; set; } + public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerListResourceObject? Type520 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotImage? Type520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Content6? Type521 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContent? Type522 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParamStatus? Type522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContent? Type523 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentType? Type524 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCall? Type524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContent? Type525 { get; set; } + public global::System.Collections.Generic.IList? Type525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentDetail? Type526 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallSafetyCheck? Type526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentType? Type527 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallStatus? Type527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContent? Type528 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallType? Type528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentType? Type529 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutput? Type529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContent? Type530 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContent? Type531 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type531 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type532 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type532 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type533 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProb? Type534 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type534 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type535 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewToolEnvironment? Type535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TopLogProb? Type536 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContentType? Type537 { get; set; } + public global::tryAGI.OpenAI.ContainerFileListResource? Type537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContent? Type538 { get; set; } + public global::System.Collections.Generic.IList? Type538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContentType? Type539 { get; set; } + public global::tryAGI.OpenAI.ContainerFileResource? Type539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResult? Type540 { get; set; } + public global::tryAGI.OpenAI.ContainerFileResourceObject? Type540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResultAmount? Type541 { get; set; } + public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResultObject? Type542 { get; set; } + public global::tryAGI.OpenAI.ContainerListResource? Type542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequest? Type543 { get; set; } + public global::System.Collections.Generic.IList? Type543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type544 { get; set; } + public global::tryAGI.OpenAI.ContainerResource? Type544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffort? Type545 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResources? Type546 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type547 { get; set; } + public global::tryAGI.OpenAI.ContainerListResourceObject? Type547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type548 { get; set; } + public global::tryAGI.OpenAI.Content6? Type548 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type549 { get; set; } + public global::tryAGI.OpenAI.InputContent? Type549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type550 { get; set; } + public global::tryAGI.OpenAI.InputTextContent? Type550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type551 { get; set; } + public global::tryAGI.OpenAI.InputTextContentType? Type551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type552 { get; set; } + public global::tryAGI.OpenAI.InputImageContent? Type552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type553 { get; set; } + public global::tryAGI.OpenAI.InputImageContentDetail? Type553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type554 { get; set; } + public global::tryAGI.OpenAI.InputImageContentType? Type554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type555 { get; set; } + public global::tryAGI.OpenAI.InputFileContent? Type555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type556 { get; set; } + public global::tryAGI.OpenAI.InputFileContentType? Type556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type557 { get; set; } + public global::tryAGI.OpenAI.InputContentDiscriminator? Type557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModelResponseProperties? Type558 { get; set; } + public global::tryAGI.OpenAI.OutputContent? Type558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelResponseProperties? Type559 { get; set; } + public global::tryAGI.OpenAI.OutputTextContent? Type559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type560 { get; set; } + public global::System.Collections.Generic.IList? Type560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type561 { get; set; } + public global::System.Collections.Generic.IList? Type561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type562 { get; set; } + public global::tryAGI.OpenAI.LogProb? Type562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type563 { get; set; } + public global::System.Collections.Generic.IList? Type563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsShared? Type564 { get; set; } + public global::tryAGI.OpenAI.TopLogProb? Type564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type565 { get; set; } + public global::tryAGI.OpenAI.OutputTextContentType? Type565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type566 { get; set; } + public global::tryAGI.OpenAI.RefusalContent? Type566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type567 { get; set; } + public global::tryAGI.OpenAI.RefusalContentType? Type567 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type568 { get; set; } + public global::tryAGI.OpenAI.OutputContentDiscriminator? Type568 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type569 { get; set; } + public global::tryAGI.OpenAI.CostsResult? Type569 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type570 { get; set; } + public global::tryAGI.OpenAI.CostsResultAmount? Type570 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type571 { get; set; } + public global::tryAGI.OpenAI.CostsResultObject? Type571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseModalitie? Type572 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequest? Type572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsShared? Type573 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsSharedEnum? Type574 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffort? Type574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PredictionContent? Type575 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResources? Type575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PredictionContentType? Type576 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type577 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StopConfiguration? Type578 { get; set; } + public global::System.Collections.Generic.IList? Type578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type579 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type580 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy? Type580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSize? Type581 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type582 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocation? Type583 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type584 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type585 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type585 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type586 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? Type586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type587 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type588 { get; set; } + public global::tryAGI.OpenAI.CreateModelResponseProperties? Type588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type589 { get; set; } + public global::tryAGI.OpenAI.ModelResponseProperties? Type589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type590 { get; set; } + public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionRequest? Type591 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type592 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type593 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type594 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsShared? Type594 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type595 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type595 { get; set; } /// /// /// - public long? Type596 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponse? Type597 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type597 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type598 { get; set; } + public global::System.Collections.Generic.IList? Type598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type599 { get; set; } + public global::System.Collections.Generic.Dictionary? Type599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type600 { get; set; } + public global::System.Collections.Generic.IList? Type600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type602 { get; set; } + public global::tryAGI.OpenAI.ResponseModalitie? Type602 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type603 { get; set; } + public global::tryAGI.OpenAI.ModelIdsShared? Type603 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type604 { get; set; } + public global::tryAGI.OpenAI.PredictionContent? Type604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type605 { get; set; } + public global::tryAGI.OpenAI.PredictionContentType? Type605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBody? Type606 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator? Type606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type607 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type608 { get; set; } + public global::tryAGI.OpenAI.StopConfiguration? Type608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerFileBody? Type609 { get; set; } + public global::System.Collections.Generic.IList? Type609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type610 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type611 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSize? Type611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type612 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type613 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocation? Type613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type614 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type614 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type615 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Embedding? Type616 { get; set; } + public global::System.Collections.Generic.IList? Type616 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type617 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type617 { get; set; } /// /// /// - public float? Type618 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmbeddingObject? Type619 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type620 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type621 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionRequest? Type621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type622 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type623 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1? Type624 { get; set; } + public global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type624 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type625 { get; set; } + public global::System.Collections.Generic.IList>? Type625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type626 { get; set; } + public long? Type626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessage? Type627 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponse? Type627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type628 { get; set; } + public global::System.Collections.Generic.IList? Type628 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type629 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageRole? Type630 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageType? Type631 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs? Type631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItem? Type632 { get; set; } + public global::System.Collections.Generic.IList? Type632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type633 { get; set; } + public global::System.Collections.Generic.IList>? Type633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentVariant3? Type634 { get; set; } + public global::System.Collections.Generic.Dictionary? Type634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentVariant3Type? Type635 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentVariant4? Type636 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBody? Type636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentVariant4Type? Type637 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemRole? Type638 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemType? Type639 { get; set; } + public global::tryAGI.OpenAI.CreateContainerFileBody? Type639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1Type? Type640 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2? Type641 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2Type? Type642 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type643 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type644 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type645 { get; set; } + public global::System.Collections.Generic.IList? Type645 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type646 { get; set; } + public global::tryAGI.OpenAI.Embedding? Type646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type647 { get; set; } + public global::System.Collections.Generic.IList? Type647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type648 { get; set; } + public float? Type648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type649 { get; set; } + public global::tryAGI.OpenAI.EmbeddingObject? Type649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type650 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type651 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type652 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type653 { get; set; } + public global::tryAGI.OpenAI.InputMessages? Type653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type654 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1? Type654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type655 { get; set; } + public global::System.Collections.Generic.IList? Type655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalItem? Type656 { get; set; } + public global::tryAGI.OpenAI.TemplateItem? Type656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalItemVariant1? Type657 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessage? Type657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type658 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type659 { get; set; } + public global::System.Collections.Generic.IList? Type659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type660 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageRole? Type660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type661 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageType? Type661 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type662 { get; set; } + public global::tryAGI.OpenAI.EvalItem? Type662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type663 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type664 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentVariant3? Type664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type665 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentVariant3Type? Type665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRequest? Type666 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentVariant4? Type666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type667 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentVariant4Type? Type667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type668 { get; set; } + public global::tryAGI.OpenAI.EvalItemRole? Type668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type669 { get; set; } + public global::tryAGI.OpenAI.EvalItemType? Type669 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type670 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator? Type670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type671 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1Type? Type671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderStringCheck? Type672 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2? Type672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheck? Type673 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2Type? Type673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckOperation? Type674 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator? Type674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckType? Type675 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type676 { get; set; } + public global::tryAGI.OpenAI.Source? Type676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarity? Type677 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type678 { get; set; } + public global::System.Collections.Generic.IList? Type678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityType? Type679 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type680 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderPython? Type681 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPython? Type682 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPythonType? Type683 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type684 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModel? Type685 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSourceDiscriminator? Type685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModel? Type686 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type686 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type687 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModelType? Type688 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type689 { get; set; } + public global::tryAGI.OpenAI.CreateEvalItem? Type689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type690 { get; set; } + public global::tryAGI.OpenAI.CreateEvalItemVariant1? Type690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type691 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1? Type692 { get; set; } + public global::tryAGI.OpenAI.Source2? Type692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type693 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceSourceDiscriminator? Type693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type694 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1TemplateItem? Type695 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1Type? Type696 { get; set; } + public global::System.Collections.Generic.IList? Type696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2? Type697 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2Type? Type698 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type699 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type700 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequest? Type700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type701 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig? Type701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type702 { get; set; } + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type703 { get; set; } + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type703 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type704 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfigDiscriminator? Type704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Tool? Type705 { get; set; } + public global::System.Collections.Generic.IList? Type705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionTool? Type706 { get; set; } + public global::tryAGI.OpenAI.TestingCriteriaItem? Type706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolType? Type707 { get; set; } + public global::tryAGI.OpenAI.EvalGraderStringCheck? Type707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchTool? Type708 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheck? Type708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankingOptions? Type709 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckOperation? Type709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankingOptionsRanker? Type710 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckType? Type710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolType? Type711 { get; set; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewTool? Type712 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarity? Type712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewToolSearchContextSize? Type713 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type714 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityType? Type714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPTool? Type715 { get; set; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolAllowedTools>? Type716 { get; set; } + public global::tryAGI.OpenAI.EvalGraderPython? Type716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolAllowedTools? Type717 { get; set; } + public global::tryAGI.OpenAI.GraderPython? Type717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type718 { get; set; } + public global::tryAGI.OpenAI.GraderPythonType? Type718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalEnum? Type719 { get; set; } + public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalEnumAlways? Type720 { get; set; } + public global::tryAGI.OpenAI.EvalGraderScoreModel? Type720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalEnumNever? Type721 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModel? Type721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalEnum2? Type722 { get; set; } + public global::System.Collections.Generic.IList? Type722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolType? Type723 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModelType? Type723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenTool? Type724 { get; set; } + public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolBackground? Type725 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequestTestingCriteriaItemDiscriminator? Type725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageInputFidelity? Type726 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type727 { get; set; } + public global::tryAGI.OpenAI.InputMessages2? Type727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModel? Type728 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1? Type728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModeration? Type729 { get; set; } + public global::System.Collections.Generic.IList>? Type729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type730 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolQuality? Type731 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1TemplateItem? Type731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolSize? Type732 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1Type? Type732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolType? Type733 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2? Type733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellTool? Type734 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2Type? Type734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolType? Type735 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator? Type735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolDiscriminator? Type736 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type737 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalResponsesSource? Type738 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalResponsesSourceType? Type739 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type740 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRunRequest? Type741 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatConfigurationDiscriminator? Type741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type742 { get; set; } + public global::System.Collections.Generic.IList? Type742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFileRequest? Type743 { get; set; } + public global::tryAGI.OpenAI.Tool? Type743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFileRequestPurpose? Type744 { get; set; } + public global::tryAGI.OpenAI.FunctionTool? Type744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type745 { get; set; } + public global::tryAGI.OpenAI.FunctionToolType? Type745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type746 { get; set; } + public global::tryAGI.OpenAI.FileSearchTool? Type746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type747 { get; set; } + public global::tryAGI.OpenAI.RankingOptions? Type747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type748 { get; set; } + public global::tryAGI.OpenAI.RankingOptionsRanker? Type748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type749 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolType? Type749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type750 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewTool? Type750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type751 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewToolSearchContextSize? Type751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type752 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type753 { get; set; } + public global::tryAGI.OpenAI.MCPTool? Type753 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type754 { get; set; } + public global::tryAGI.OpenAI.AnyOf, global::tryAGI.OpenAI.MCPToolAllowedTools>? Type754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type755 { get; set; } + public global::tryAGI.OpenAI.MCPToolAllowedTools? Type755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type756 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type757 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalEnum? Type757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneMethod? Type758 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalEnumAlways? Type758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOMethod? Type759 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalEnumNever? Type759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type760 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalEnum2? Type760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type761 { get; set; } + public global::tryAGI.OpenAI.MCPToolType? Type761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type762 { get; set; } + public global::tryAGI.OpenAI.ImageGenTool? Type762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type763 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolBackground? Type763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type764 { get; set; } + public global::tryAGI.OpenAI.ImageInputFidelity? Type764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type765 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type766 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModel? Type766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type767 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModeration? Type767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type768 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type769 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolQuality? Type769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type770 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolSize? Type770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMulti? Type771 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolType? Type771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type772 { get; set; } + public global::tryAGI.OpenAI.LocalShellTool? Type772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModel? Type773 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolType? Type773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModelType? Type774 { get; set; } + public global::tryAGI.OpenAI.ToolDiscriminator? Type774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMultiType? Type775 { get; set; } + public global::tryAGI.OpenAI.Source3? Type775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type776 { get; set; } + public global::tryAGI.OpenAI.EvalResponsesSource? Type776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type777 { get; set; } + public global::tryAGI.OpenAI.EvalResponsesSourceType? Type777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type778 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSourceDiscriminator? Type778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type779 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type780 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRunRequest? Type780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type781 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type782 { get; set; } + public global::tryAGI.OpenAI.CreateFileRequest? Type782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type783 { get; set; } + public global::tryAGI.OpenAI.FilePurpose? Type783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type784 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type785 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type786 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type787 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type788 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type789 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type790 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type791 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type792 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type793 { get; set; } + public global::System.Collections.Generic.IList? Type793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type794 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type795 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type796 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type797 { get; set; } + public global::tryAGI.OpenAI.FineTuneMethod? Type797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneMethodType? Type798 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOMethod? Type798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type799 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type800 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequest? Type801 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type802 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type803 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type803 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type804 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type805 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type806 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type807 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type808 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type809 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type810 { get; set; } + public global::tryAGI.OpenAI.GraderMulti? Type810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequest? Type811 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestBackground? Type812 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModel? Type812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type813 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModelType? Type813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestModel? Type814 { get; set; } + public global::tryAGI.OpenAI.GraderMultiType? Type814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestModeration? Type815 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type816 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestQuality? Type817 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type818 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestSize? Type819 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestStyle? Type820 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequest? Type821 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type822 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type823 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type824 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type825 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequest? Type826 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type826 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type827 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestAttachment? Type828 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>>? Type829 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type829 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type830 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type831 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type832 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type833 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestRole? Type834 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequest? Type835 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>>? Type836 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type836 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type837 { get; set; } + public global::tryAGI.OpenAI.FineTuneMethodType? Type837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type838 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type839 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type840 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequest? Type840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type841 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type842 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type843 { get; set; } + public global::System.Collections.Generic.IList? Type843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type844 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestModel? Type845 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponse? Type846 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type846 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type847 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResult? Type848 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type849 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type850 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequest? Type850 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type851 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestBackground? Type851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type852 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type852 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type853 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestModel? Type853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type854 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestModeration? Type854 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type855 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type856 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestQuality? Type856 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type857 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type858 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestSize? Type858 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type859 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestStyle? Type859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type860 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequest? Type860 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type861 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type862 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type862 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type863 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type864 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type864 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type865 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequest? Type865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type866 { get; set; } + public global::System.Collections.Generic.IList? Type866 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type867 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestAttachment? Type867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type868 { get; set; } + public global::System.Collections.Generic.IList? Type868 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type869 { get; set; } + public global::tryAGI.OpenAI.ToolsItem? Type869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type870 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestAttachmentToolDiscriminator? Type870 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type871 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type872 { get; set; } + public global::System.Collections.Generic.IList? Type872 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type873 { get; set; } + public global::tryAGI.OpenAI.ContentVariant2Item? Type873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type874 { get; set; } + public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type874 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type875 { get; set; } + public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type876 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator? Type876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type877 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestRole? Type877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateResponse? Type878 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequest? Type878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseProperties? Type879 { get; set; } + public global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList>? Type879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponses? Type880 { get; set; } + public global::System.Collections.Generic.IList? Type880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type881 { get; set; } + public global::tryAGI.OpenAI.InputVariant3Item? Type881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Prompt2? Type882 { get; set; } + public global::tryAGI.OpenAI.ModerationImageURLInput? Type882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type883 { get; set; } + public global::tryAGI.OpenAI.ModerationImageURLInputImageUrl? Type883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Reasoning? Type884 { get; set; } + public global::tryAGI.OpenAI.ModerationImageURLInputType? Type884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningGenerateSummary? Type885 { get; set; } + public global::tryAGI.OpenAI.ModerationTextInput? Type885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummary? Type886 { get; set; } + public global::tryAGI.OpenAI.ModerationTextInputType? Type886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsePropertiesText? Type887 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator? Type887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type888 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceOptions? Type889 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestModel? Type889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypes? Type890 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponse? Type890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypesType? Type891 { get; set; } + public global::System.Collections.Generic.IList? Type891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunction? Type892 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResult? Type892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type893 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCP? Type894 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCPType? Type895 { get; set; } + public global::System.Collections.Generic.IList? Type895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsePropertiesTruncation? Type896 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateResponseVariant3? Type897 { get; set; } + public global::System.Collections.Generic.IList? Type897 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type898 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Includable? Type899 { get; set; } + public global::System.Collections.Generic.IList? Type899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type900 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type900 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type901 { get; set; } + public global::System.Collections.Generic.IList? Type901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItem? Type902 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Item? Type903 { get; set; } + public global::System.Collections.Generic.IList? Type903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessage? Type904 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageRole? Type905 { get; set; } + public global::System.Collections.Generic.IList? Type905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageStatus? Type906 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageType? Type907 { get; set; } + public global::System.Collections.Generic.IList? Type907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessage? Type908 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type908 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type909 { get; set; } + public global::System.Collections.Generic.IList? Type909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageRole? Type910 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageStatus? Type911 { get; set; } + public global::System.Collections.Generic.IList? Type911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageType? Type912 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCall? Type913 { get; set; } + public global::System.Collections.Generic.IList? Type913 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type914 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallResult? Type915 { get; set; } + public global::System.Collections.Generic.IList? Type915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type916 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallType? Type917 { get; set; } + public global::System.Collections.Generic.IList? Type917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCall? Type918 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type919 { get; set; } + public global::System.Collections.Generic.IList? Type919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearch? Type920 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchType? Type921 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type922 { get; set; } + public global::tryAGI.OpenAI.CreateResponse? Type922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type923 { get; set; } + public global::tryAGI.OpenAI.ResponseProperties? Type923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFind? Type924 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponses? Type924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFindType? Type925 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type926 { get; set; } + public global::tryAGI.OpenAI.Prompt2? Type926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallType? Type927 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCall? Type928 { get; set; } + public global::tryAGI.OpenAI.Reasoning? Type928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallStatus? Type929 { get; set; } + public global::tryAGI.OpenAI.ReasoningGenerateSummary? Type929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallType? Type930 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummary? Type930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type931 { get; set; } + public global::tryAGI.OpenAI.ResponsePropertiesText? Type931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamStatus? Type932 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type933 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceOptions? Type933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItem? Type934 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypes? Type934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemStatus? Type935 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypesType? Type935 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type936 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunction? Type936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemSummaryItem? Type937 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemSummaryItemType? Type938 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCP? Type938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemType? Type939 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCPType? Type939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCall? Type940 { get; set; } + public global::tryAGI.OpenAI.ResponsePropertiesTruncation? Type940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type941 { get; set; } + public global::tryAGI.OpenAI.CreateResponseVariant3? Type941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallType? Type942 { get; set; } + public global::System.Collections.Generic.IList? Type942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCall? Type943 { get; set; } + public global::tryAGI.OpenAI.Includable? Type943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecAction? Type944 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecActionType? Type945 { get; set; } + public global::System.Collections.Generic.IList? Type945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type946 { get; set; } + public global::tryAGI.OpenAI.InputItem? Type946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallType? Type947 { get; set; } + public global::tryAGI.OpenAI.Item? Type947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type948 { get; set; } + public global::tryAGI.OpenAI.InputMessage? Type948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus? Type949 { get; set; } + public global::tryAGI.OpenAI.InputMessageRole? Type949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type950 { get; set; } + public global::tryAGI.OpenAI.InputMessageStatus? Type950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListTools? Type951 { get; set; } + public global::tryAGI.OpenAI.InputMessageType? Type951 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type952 { get; set; } + public global::tryAGI.OpenAI.OutputMessage? Type952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsTool? Type953 { get; set; } + public global::System.Collections.Generic.IList? Type953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsType? Type954 { get; set; } + public global::tryAGI.OpenAI.OutputMessageRole? Type954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequest? Type955 { get; set; } + public global::tryAGI.OpenAI.OutputMessageStatus? Type955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequestType? Type956 { get; set; } + public global::tryAGI.OpenAI.OutputMessageType? Type956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponse? Type957 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCall? Type957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseType? Type958 { get; set; } + public global::System.Collections.Generic.IList? Type958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCall? Type959 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallResult? Type959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallType? Type960 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemDiscriminator? Type961 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallType? Type961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParam? Type962 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCall? Type962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParamType? Type963 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallAction? Type963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItemDiscriminator? Type964 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearch? Type964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunRequest? Type965 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchType? Type965 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type966 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequest? Type967 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type968 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFind? Type968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type969 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFindType? Type969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type970 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type971 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type972 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallType? Type972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type973 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCall? Type973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type974 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallStatus? Type974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type975 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallType? Type975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type976 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type977 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamStatus? Type977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type978 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type979 { get; set; } + public global::tryAGI.OpenAI.ReasoningItem? Type979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type980 { get; set; } + public global::System.Collections.Generic.IList? Type980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type981 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemContentItem? Type981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequest? Type982 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemContentItemType? Type982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResources? Type983 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemStatus? Type983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type984 { get; set; } + public global::System.Collections.Generic.IList? Type984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type985 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemSummaryItem? Type985 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type986 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemSummaryItemType? Type986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type987 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemType? Type987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type988 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCall? Type988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type989 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type990 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallType? Type990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type991 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCall? Type991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type992 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecAction? Type992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type993 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecActionType? Type993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type994 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type995 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallType? Type995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type996 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type997 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus? Type997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type998 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategy? Type999 { get; set; } + public global::tryAGI.OpenAI.MCPListTools? Type999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfig? Type1000 { get; set; } + public global::System.Collections.Generic.IList? Type1000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfigType? Type1001 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsTool? Type1001 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1002 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsType? Type1002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionInclude? Type1003 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalRequest? Type1003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1004 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalRequestType? Type1004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type1005 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponse? Type1005 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1006 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseType? Type1006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type1007 { get; set; } + public global::tryAGI.OpenAI.MCPToolCall? Type1007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type1008 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallType? Type1008 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1009 { get; set; } + public global::tryAGI.OpenAI.ItemDiscriminator? Type1009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type1010 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParam? Type1010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1011 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParamType? Type1011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type1012 { get; set; } + public global::tryAGI.OpenAI.InputItemDiscriminator? Type1012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type1013 { get; set; } + public global::tryAGI.OpenAI.CreateRunRequest? Type1013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type1014 { get; set; } + public global::System.Collections.Generic.IList? Type1014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type1015 { get; set; } + public global::tryAGI.OpenAI.CreateRunRequestWithoutStream? Type1015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type1016 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequest? Type1016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type1017 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type1018 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type1018 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1019 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type1019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type1020 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type1020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type1021 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type1021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type1022 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type1022 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1023 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type1023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type1024 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type1024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type1025 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type1025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type1026 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type1026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type1027 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type1027 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1028 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type1028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionSegment? Type1029 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1029 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1030 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type1030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionWord? Type1031 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequest? Type1031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequest? Type1032 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResources? Type1032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1033 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type1033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type1034 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type1034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type1035 { get; set; } + public global::System.Collections.Generic.IList? Type1035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type1036 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type1036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type1037 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy? Type1037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequest? Type1038 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Type1038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type1039 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Type1039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type1040 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Type1040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type1041 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Static? Type1041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type1042 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Type1042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1043 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? Type1043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type1044 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type1044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type1045 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type1045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponse? Type1046 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type1046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type1047 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStream? Type1047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponse? Type1048 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type1049 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamModel? Type1049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponse? Type1050 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources? Type1050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponseObject? Type1051 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter? Type1051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type1052 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch? Type1052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type1053 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type1053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponse? Type1054 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type1054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type1055 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type1055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteModelResponse? Type1056 { get; set; } + public global::tryAGI.OpenAI.VadConfig? Type1056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponse? Type1057 { get; set; } + public global::tryAGI.OpenAI.VadConfigType? Type1057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type1058 { get; set; } + public global::System.Collections.Generic.IList? Type1058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type1059 { get; set; } + public global::tryAGI.OpenAI.TranscriptionInclude? Type1059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type1060 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type1061 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type1061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type1062 { get; set; } + public global::System.Collections.Generic.IList? Type1062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorResponse? Type1063 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type1063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Eval? Type1064 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type1064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1065 { get; set; } + public global::System.Collections.Generic.IList? Type1065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type1066 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type1066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type1067 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage? Type1067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type1068 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type1068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type1069 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type1069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type1070 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type1070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type1071 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type1071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalObject? Type1072 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type1072 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1073 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsageDiscriminator? Type1073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1074 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type1074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderLabelModel? Type1075 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type1075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalApiError? Type1076 { get; set; } + public global::System.Collections.Generic.IList? Type1076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalList? Type1077 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type1077 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1078 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type1078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalListObject? Type1079 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type1079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRun? Type1080 { get; set; } + public global::System.Collections.Generic.IList? Type1080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunObject? Type1081 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type1081 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1082 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type1082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type1083 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type1083 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1084 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type1084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type1085 { get; set; } + public global::System.Collections.Generic.IList? Type1085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunResultCounts? Type1086 { get; set; } + public global::tryAGI.OpenAI.TranscriptionSegment? Type1086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunList? Type1087 { get; set; } + public global::System.Collections.Generic.IList? Type1087 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1088 { get; set; } + public global::tryAGI.OpenAI.TranscriptionWord? Type1088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunListObject? Type1089 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequest? Type1089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItem? Type1090 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type1091 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type1091 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1092 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type1092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type1093 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type1093 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1094 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type1094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type1095 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequest? Type1095 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1096 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type1096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type1097 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type1097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type1098 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type1098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemList? Type1099 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type1099 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1100 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type1100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type1101 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type1101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Filters? Type1102 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponse? Type1102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type1103 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type1103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageVariant1? Type1104 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponse? Type1104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatRequestInput? Type1105 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type1105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1106 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponse? Type1106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1107 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponseObject? Type1107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTunePreferenceRequestInput? Type1108 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type1108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTunePreferenceRequestInputInput? Type1109 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type1109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1110 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponse? Type1110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1111 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type1111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementRequestInput? Type1112 { get; set; } + public global::tryAGI.OpenAI.DeleteModelResponse? Type1112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1113 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponse? Type1113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1114 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type1114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type1115 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type1115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type1116 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type1116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegration? Type1117 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type1117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationType? Type1118 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type1118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type1119 { get; set; } + public global::tryAGI.OpenAI.DoneEvent? Type1119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJob? Type1120 { get; set; } + public global::tryAGI.OpenAI.DoneEventData? Type1120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobError? Type1121 { get; set; } + public global::tryAGI.OpenAI.DoneEventEvent? Type1121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type1122 { get; set; } + public global::tryAGI.OpenAI.ErrorResponse? Type1122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1123 { get; set; } + public global::tryAGI.OpenAI.Eval? Type1123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSize? Type1124 { get; set; } + public global::tryAGI.OpenAI.EvalDataSourceConfig? Type1124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1125 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type1125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type1126 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type1126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1127 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type1127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type1128 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type1128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1129 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type1129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1130 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type1130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobObject? Type1131 { get; set; } + public global::tryAGI.OpenAI.EvalDataSourceConfigDiscriminator? Type1131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobStatus? Type1132 { get; set; } + public global::tryAGI.OpenAI.EvalObject? Type1132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type1133 { get; set; } + public global::System.Collections.Generic.IList>? Type1133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type1134 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type1135 { get; set; } + public global::tryAGI.OpenAI.EvalGraderLabelModel? Type1135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEvent? Type1136 { get; set; } + public global::tryAGI.OpenAI.EvalApiError? Type1136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type1137 { get; set; } + public global::tryAGI.OpenAI.EvalList? Type1137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventObject? Type1138 { get; set; } + public global::System.Collections.Generic.IList? Type1138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventType? Type1139 { get; set; } + public global::tryAGI.OpenAI.EvalListObject? Type1139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutput? Type1140 { get; set; } + public global::tryAGI.OpenAI.EvalRun? Type1140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type1141 { get; set; } + public global::tryAGI.OpenAI.EvalRunDataSource? Type1141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type1142 { get; set; } + public global::tryAGI.OpenAI.EvalRunDataSourceDiscriminator? Type1142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type1143 { get; set; } + public global::tryAGI.OpenAI.EvalRunObject? Type1143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type1144 { get; set; } + public global::System.Collections.Generic.IList? Type1144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResource? Type1145 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type1145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type1146 { get; set; } + public global::System.Collections.Generic.IList? Type1146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Image2? Type1147 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type1147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type1148 { get; set; } + public global::tryAGI.OpenAI.EvalRunResultCounts? Type1148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type1149 { get; set; } + public global::tryAGI.OpenAI.EvalRunList? Type1149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type1150 { get; set; } + public global::System.Collections.Generic.IList? Type1150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type1151 { get; set; } + public global::tryAGI.OpenAI.EvalRunListObject? Type1151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type1152 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItem? Type1152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type1153 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type1153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsage? Type1154 { get; set; } + public global::System.Collections.Generic.IList? Type1154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1155 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type1155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type1156 { get; set; } + public global::System.Collections.Generic.IList? Type1156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type1157 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type1157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type1158 { get; set; } + public global::System.Collections.Generic.IList? Type1158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type1159 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type1159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type1160 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type1160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type1161 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemList? Type1161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEvent? Type1162 { get; set; } + public global::System.Collections.Generic.IList? Type1162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type1163 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type1163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type1164 { get; set; } + public global::tryAGI.OpenAI.Filters? Type1164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type1165 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type1165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type1166 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageVariant1? Type1166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type1167 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatRequestInput? Type1167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type1168 { get; set; } + public global::System.Collections.Generic.IList>? Type1168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type1169 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type1170 { get; set; } + public global::tryAGI.OpenAI.FineTunePreferenceRequestInput? Type1170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type1171 { get; set; } + public global::tryAGI.OpenAI.FineTunePreferenceRequestInputInput? Type1171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type1172 { get; set; } + public global::System.Collections.Generic.IList>? Type1172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type1173 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type1174 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementRequestInput? Type1174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type1175 { get; set; } + public global::System.Collections.Generic.IList>? Type1175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type1176 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEvent? Type1177 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type1177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type1178 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type1178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenUsage? Type1179 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegration? Type1179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponse? Type1180 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationType? Type1180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseBackground? Type1181 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type1181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1182 { get; set; } + public global::tryAGI.OpenAI.FineTuningJob? Type1182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type1183 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobError? Type1183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseQuality? Type1184 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type1184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseSize? Type1185 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudio? Type1186 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSize? Type1186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioFormat? Type1187 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioType? Type1188 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type1188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResource? Type1189 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1190 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type1190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Invite? Type1191 { get; set; } + public global::System.Collections.Generic.IList? Type1191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteObject? Type1192 { get; set; } + public global::tryAGI.OpenAI.IntegrationsItem? Type1192 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1193 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobIntegrationDiscriminator? Type1193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProject? Type1194 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobObject? Type1194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProjectRole? Type1195 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobStatus? Type1195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRole? Type1196 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type1196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteStatus? Type1197 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type1197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponse? Type1198 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type1198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1199 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEvent? Type1199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponse? Type1200 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type1200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1201 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventObject? Type1201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponseObject? Type1202 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventType? Type1202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequest? Type1203 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutput? Type1203 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1204 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type1204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProject? Type1205 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type1205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1206 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type1206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestRole? Type1207 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type1207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResource? Type1208 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallResource? Type1208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type1209 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type1209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1210 { get; set; } + public global::tryAGI.OpenAI.Image2? Type1210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1211 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type1211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsResponse? Type1212 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type1212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1213 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type1213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1214 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type1214 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1215 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type1215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1216 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type1216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponse? Type1217 { get; set; } + public global::tryAGI.OpenAI.ImagesUsage? Type1217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1218 { get; set; } + public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1219 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type1219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponse? Type1220 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type1220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1221 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type1221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1222 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type1222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesResponse? Type1223 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type1223 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1224 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type1224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFile? Type1225 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEvent? Type1225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileObject? Type1226 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type1226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1227 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type1227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileStatus? Type1228 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type1228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1229 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type1229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1230 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type1230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1231 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type1231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1232 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type1232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1233 { get; set; } + public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type1233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1234 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type1234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1235 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type1235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1236 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type1236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1237 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type1237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesResponse? Type1238 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type1238 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1239 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type1239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponse? Type1240 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEvent? Type1240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1241 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type1241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Model14? Type1242 { get; set; } + public global::tryAGI.OpenAI.ImageGenUsage? Type1242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelObject? Type1243 { get; set; } + public global::tryAGI.OpenAI.ImagesResponse? Type1243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponseObject? Type1244 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseBackground? Type1244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1245 { get; set; } + public global::System.Collections.Generic.IList? Type1245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1246 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type1246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1247 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseQuality? Type1247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsResponse? Type1248 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseSize? Type1248 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1249 { get; set; } + public global::tryAGI.OpenAI.InputAudio? Type1249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsResponse? Type1250 { get; set; } + public global::tryAGI.OpenAI.InputAudioFormat? Type1250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1251 { get; set; } + public global::tryAGI.OpenAI.InputAudioType? Type1251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1252 { get; set; } + public global::tryAGI.OpenAI.InputMessageResource? Type1252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1253 { get; set; } + public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObject? Type1254 { get; set; } + public global::tryAGI.OpenAI.Invite? Type1254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1255 { get; set; } + public global::tryAGI.OpenAI.InviteObject? Type1255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type1256 { get; set; } + public global::System.Collections.Generic.IList? Type1256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type1257 { get; set; } + public global::tryAGI.OpenAI.InviteProject? Type1257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type1258 { get; set; } + public global::tryAGI.OpenAI.InviteProjectRole? Type1258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type1259 { get; set; } + public global::tryAGI.OpenAI.InviteRole? Type1259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type1260 { get; set; } + public global::tryAGI.OpenAI.InviteStatus? Type1260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type1261 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponse? Type1261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type1262 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type1263 { get; set; } + public global::tryAGI.OpenAI.InviteListResponse? Type1263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1264 { get; set; } + public global::System.Collections.Generic.IList? Type1264 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1265 { get; set; } + public global::tryAGI.OpenAI.InviteListResponseObject? Type1265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObject? Type1266 { get; set; } + public global::tryAGI.OpenAI.InviteRequest? Type1266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type1267 { get; set; } + public global::System.Collections.Generic.IList? Type1267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectObject? Type1268 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProject? Type1268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type1269 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProbProperties? Type1270 { get; set; } + public global::tryAGI.OpenAI.InviteRequestRole? Type1270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIds? Type1271 { get; set; } + public global::tryAGI.OpenAI.ItemResource? Type1271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1272 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type1272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? Type1273 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1274 { get; set; } + public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1275 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsResponse? Type1275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1276 { get; set; } + public global::System.Collections.Generic.IList? Type1276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyMessageRequest? Type1277 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyRunRequest? Type1278 { get; set; } + public global::System.Collections.Generic.IList? Type1278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequest? Type1279 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResources? Type1280 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponse? Type1280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1281 { get; set; } + public global::System.Collections.Generic.IList? Type1281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1282 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudio? Type1283 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponse? Type1283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudioType? Type1284 { get; set; } + public global::System.Collections.Generic.IList? Type1284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItem? Type1285 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1286 { get; set; } + public global::tryAGI.OpenAI.ListFilesResponse? Type1286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Project? Type1287 { get; set; } + public global::System.Collections.Generic.IList? Type1287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectObject? Type1288 { get; set; } + public global::tryAGI.OpenAI.OpenAIFile? Type1288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectStatus? Type1289 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileObject? Type1289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKey? Type1290 { get; set; } + public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1291 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileStatus? Type1291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1292 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccount? Type1293 { get; set; } + public global::System.Collections.Generic.IList? Type1293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1294 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1295 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1296 { get; set; } + public global::System.Collections.Generic.IList? Type1296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUser? Type1297 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserObject? Type1298 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserRole? Type1299 { get; set; } + public global::System.Collections.Generic.IList? Type1299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1300 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1301 { get; set; } + public global::tryAGI.OpenAI.ListMessagesResponse? Type1301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1302 { get; set; } + public global::System.Collections.Generic.IList? Type1302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1303 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponse? Type1303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1304 { get; set; } + public global::System.Collections.Generic.IList? Type1304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectCreateRequest? Type1305 { get; set; } + public global::tryAGI.OpenAI.Model16? Type1305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponse? Type1306 { get; set; } + public global::tryAGI.OpenAI.ModelObject? Type1306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1307 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponseObject? Type1307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponseObject? Type1308 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimit? Type1309 { get; set; } + public global::System.Collections.Generic.IList? Type1309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1310 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1311 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsResponse? Type1311 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1312 { get; set; } + public global::System.Collections.Generic.IList? Type1312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1313 { get; set; } + public global::tryAGI.OpenAI.ListRunsResponse? Type1313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1314 { get; set; } + public global::System.Collections.Generic.IList? Type1314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1315 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1316 { get; set; } + public global::System.Collections.Generic.IList? Type1316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1317 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObject? Type1317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1318 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type1318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1319 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type1319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1320 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type1320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1321 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type1321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1322 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1323 { get; set; } + public global::System.Collections.Generic.IList? Type1323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1324 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObject? Type1324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1325 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type1325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1326 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectObject? Type1326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1327 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type1327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserCreateRequestRole? Type1328 { get; set; } + public global::tryAGI.OpenAI.LogProbProperties? Type1328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1329 { get; set; } + public global::tryAGI.OpenAI.ModelIds? Type1329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1330 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserListResponse? Type1331 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? Type1331 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1332 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1333 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserUpdateRequestRole? Type1334 { get; set; } + public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEvent? Type1335 { get; set; } + public global::tryAGI.OpenAI.ModifyMessageRequest? Type1335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1336 { get; set; } + public global::tryAGI.OpenAI.ModifyRunRequest? Type1336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItem? Type1337 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequest? Type1337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemObject? Type1338 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResources? Type1338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemType? Type1339 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemStatus? Type1340 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemRole? Type1341 { get; set; } + public global::tryAGI.OpenAI.OutputAudio? Type1341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1342 { get; set; } + public global::tryAGI.OpenAI.OutputAudioType? Type1342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemContentItem? Type1343 { get; set; } + public global::tryAGI.OpenAI.OutputItem? Type1343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemContentItemType? Type1344 { get; set; } + public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1345 { get; set; } + public global::tryAGI.OpenAI.Project? Type1345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1346 { get; set; } + public global::tryAGI.OpenAI.ProjectObject? Type1346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1347 { get; set; } + public global::tryAGI.OpenAI.ProjectStatus? Type1347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1348 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKey? Type1348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1349 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1350 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1351 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccount? Type1351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1352 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1353 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1354 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1355 { get; set; } + public global::tryAGI.OpenAI.ProjectUser? Type1355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1356 { get; set; } + public global::tryAGI.OpenAI.ProjectUserObject? Type1356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1357 { get; set; } + public global::tryAGI.OpenAI.ProjectUserRole? Type1357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1358 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1359 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1360 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1361 { get; set; } + public global::System.Collections.Generic.IList? Type1361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1362 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1363 { get; set; } + public global::tryAGI.OpenAI.ProjectCreateRequest? Type1363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1364 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponse? Type1364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1365 { get; set; } + public global::System.Collections.Generic.IList? Type1365 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1366 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponseObject? Type1366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1367 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimit? Type1367 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1368 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1369 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1370 { get; set; } + public global::System.Collections.Generic.IList? Type1370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1371 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1372 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1373 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1374 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1375 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxResponseOutputTokens? Type1376 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1376 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1377 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie? Type1378 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat? Type1379 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1379 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1380 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsTool? Type1381 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType? Type1382 { get; set; } + public global::System.Collections.Generic.IList? Type1382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1383 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1384 { get; set; } + public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1385 { get; set; } + public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1386 { get; set; } + public global::tryAGI.OpenAI.ProjectUserCreateRequestRole? Type1386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfter? Type1387 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor? Type1388 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioFormat? Type1389 { get; set; } + public global::tryAGI.OpenAI.ProjectUserListResponse? Type1389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioNoiseReduction? Type1390 { get; set; } + public global::System.Collections.Generic.IList? Type1390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioNoiseReductionType? Type1391 { get; set; } + public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1392 { get; set; } + public global::tryAGI.OpenAI.ProjectUserUpdateRequestRole? Type1392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1393 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEvent? Type1393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1394 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1394 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1395 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItem? Type1395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1396 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemObject? Type1396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel? Type1397 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemType? Type1397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputAudioFormat? Type1398 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemStatus? Type1398 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1399 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemRole? Type1399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1400 { get; set; } + public global::System.Collections.Generic.IList? Type1400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1401 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemContentItem? Type1401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1402 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemContentItemType? Type1402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1403 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1404 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1405 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetectionEagerness? Type1406 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetectionType? Type1407 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1408 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1409 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1410 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestClientSecret? Type1411 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestClientSecretExpiresAt? Type1412 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestClientSecretExpiresAtAnchor? Type1413 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1414 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1415 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType? Type1416 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription? Type1417 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel? Type1418 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1418 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1419 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModalitie? Type1420 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1421 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness? Type1422 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1423 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1424 { get; set; } + public global::System.Collections.Generic.IList? Type1424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1425 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponse? Type1426 { get; set; } + public global::System.Collections.Generic.IList? Type1426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseObject? Type1427 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1428 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1428 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1429 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1430 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEvent? Type1431 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeError? Type1432 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeErrorType? Type1433 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeErrorDetails? Type1434 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxResponseOutputTokens? Type1434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreated? Type1435 { get; set; } + public global::System.Collections.Generic.IList? Type1435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreatedType? Type1436 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsModalitie? Type1436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSession? Type1437 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat? Type1437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionObject? Type1438 { get; set; } + public global::System.Collections.Generic.IList? Type1438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionVoice? Type1439 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsTool? Type1439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormat? Type1440 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsToolType? Type1440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioTranscription? Type1441 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTurnDetection? Type1442 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTurnDetectionType? Type1443 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1443 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1444 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTool? Type1445 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfter? Type1445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionToolChoice? Type1446 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecretExpiresAfterAnchor? Type1446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1447 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioFormat? Type1447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionMaxOutputTokens? Type1448 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioNoiseReduction? Type1448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionUpdated? Type1449 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioNoiseReductionType? Type1449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionUpdatedType? Type1450 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationCreated? Type1451 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationCreatedType? Type1452 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversation? Type1453 { get; set; } + public global::System.Collections.Generic.IList? Type1453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationObject? Type1454 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemCreated? Type1455 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel? Type1455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemCreatedType? Type1456 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputAudioFormat? Type1456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionCompleted? Type1457 { get; set; } + public global::System.Collections.Generic.IList? Type1457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionCompletedType? Type1458 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionFailed? Type1459 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionFailedType? Type1460 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemTruncated? Type1461 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemTruncatedType? Type1462 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDeleted? Type1463 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDeletedType? Type1464 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetectionEagerness? Type1464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommitted? Type1465 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetectionType? Type1465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommittedType? Type1466 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCleared? Type1467 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferClearedType? Type1468 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStarted? Type1469 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestClientSecret? Type1469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStartedType? Type1470 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestClientSecretExpiresAt? Type1470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStopped? Type1471 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestClientSecretExpiresAtAnchor? Type1471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStoppedType? Type1472 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreated? Type1473 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreatedType? Type1474 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType? Type1474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseDone? Type1475 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription? Type1475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseDoneType? Type1476 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel? Type1476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputItemAdded? Type1477 { get; set; } + public global::System.Collections.Generic.IList? Type1477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputItemAddedType? Type1478 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestModalitie? Type1478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputItemDone? Type1479 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputItemDoneType? Type1480 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness? Type1480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseContentPartAdded? Type1481 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseContentPartAddedType? Type1482 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeContentPart? Type1483 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeContentPartType? Type1484 { get; set; } + public global::tryAGI.OpenAI.RealtimeConnectParams? Type1484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseContentPartDone? Type1485 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemContent? Type1485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseContentPartDoneType? Type1486 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemContentType? Type1486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseTextDelta? Type1487 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponse? Type1487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseTextDeltaType? Type1488 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseObject? Type1488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseTextDone? Type1489 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseTextDoneType? Type1490 { get; set; } + public global::System.Collections.Generic.IList? Type1490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDelta? Type1491 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDeltaType? Type1492 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEvent? Type1492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDone? Type1493 { get; set; } + public global::tryAGI.OpenAI.RealtimeError? Type1493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDoneType? Type1494 { get; set; } + public global::tryAGI.OpenAI.RealtimeErrorType? Type1494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioDelta? Type1495 { get; set; } + public global::tryAGI.OpenAI.RealtimeErrorDetails? Type1495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioDeltaType? Type1496 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreated? Type1496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioDone? Type1497 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreatedType? Type1497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioDoneType? Type1498 { get; set; } + public global::tryAGI.OpenAI.RealtimeSession? Type1498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDelta? Type1499 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionObject? Type1499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDeltaType? Type1500 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionVoice? Type1500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDone? Type1501 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormat? Type1501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDoneType? Type1502 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionInputAudioTranscription? Type1502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeRateLimitsUpdated? Type1503 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTurnDetection? Type1503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedType? Type1504 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTurnDetectionType? Type1504 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1505 { get; set; } + public global::System.Collections.Generic.IList? Type1505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedRateLimit? Type1506 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTool? Type1506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedRateLimitName? Type1507 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionToolChoice? Type1507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1508 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1509 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionMaxOutputTokens? Type1509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1510 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionUpdated? Type1510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1511 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionUpdatedType? Type1511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1512 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationCreated? Type1512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1513 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationCreatedType? Type1513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1514 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversation? Type1514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1515 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationObject? Type1515 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1516 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemCreated? Type1516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1517 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemCreatedType? Type1517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1518 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionCompleted? Type1518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1519 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionCompletedType? Type1519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1520 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionFailed? Type1520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1521 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemInputAudioTranscriptionFailedType? Type1521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1522 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemTruncated? Type1522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1523 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemTruncatedType? Type1523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1524 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDeleted? Type1524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1525 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDeletedType? Type1525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1526 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommitted? Type1526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventError? Type1527 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommittedType? Type1527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1528 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCleared? Type1528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1529 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferClearedType? Type1529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1530 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStarted? Type1530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1531 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStartedType? Type1531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1532 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStopped? Type1532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1533 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferSpeechStoppedType? Type1533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1534 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreated? Type1534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1535 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreatedType? Type1535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1536 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseDone? Type1536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1537 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseDoneType? Type1537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1538 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputItemAdded? Type1538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1539 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputItemAddedType? Type1539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1540 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputItemDone? Type1540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1541 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputItemDoneType? Type1541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1542 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseContentPartAdded? Type1542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1543 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseContentPartAddedType? Type1543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1544 { get; set; } + public global::tryAGI.OpenAI.RealtimeContentPart? Type1544 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1545 { get; set; } + public global::tryAGI.OpenAI.RealtimeContentPartType? Type1545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1546 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseContentPartDone? Type1546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1547 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseContentPartDoneType? Type1547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1548 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseTextDelta? Type1548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1549 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseTextDeltaType? Type1549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1550 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseTextDone? Type1550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1551 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseTextDoneType? Type1551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1552 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDelta? Type1552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1553 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDeltaType? Type1553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1554 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDone? Type1554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1555 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioTranscriptDoneType? Type1555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1556 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioDelta? Type1556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1557 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioDeltaType? Type1557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1558 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioDone? Type1558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1559 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioDoneType? Type1559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1560 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDelta? Type1560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1561 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDeltaType? Type1561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1562 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDone? Type1562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1563 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseFunctionCallArgumentsDoneType? Type1563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1564 { get; set; } + public global::tryAGI.OpenAI.RealtimeRateLimitsUpdated? Type1564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1565 { get; set; } + public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedType? Type1565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1566 { get; set; } + public global::System.Collections.Generic.IList? Type1566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1567 { get; set; } + public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedRateLimit? Type1567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1568 { get; set; } + public global::tryAGI.OpenAI.RealtimeRateLimitsUpdatedRateLimitName? Type1568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1569 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1570 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1571 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject? Type1571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1572 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1573 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1574 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1575 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1576 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1577 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1578 { get; set; } + public global::System.Collections.Generic.IList? Type1578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1579 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1580 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1581 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1582 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1583 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1584 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1585 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1586 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1587 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseInputAudioTranscription? Type1588 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel? Type1589 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1589 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1590 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventError? Type1590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1591 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1592 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1593 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1594 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseClientSecret? Type1595 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseInputAudioTranscription? Type1596 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1597 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxResponseOutputTokens? Type1598 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1598 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1599 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseModalitie? Type1600 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1600 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1601 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTool? Type1602 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType? Type1603 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1604 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1605 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1606 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1607 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Response? Type1608 { get; set; } + public global::System.Collections.Generic.IList? Type1608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3? Type1609 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseError? Type1610 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorCode? Type1611 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails? Type1612 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type1613 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Object? Type1614 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1614 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1615 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Status? Type1616 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsage? Type1617 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type1618 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type1619 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type1620 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type1621 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type1622 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type1623 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type1624 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type1625 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type1626 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type1627 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type1628 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type1629 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type1630 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type1631 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type1632 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type1633 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type1634 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type1635 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type1636 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type1637 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEvent? Type1638 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEventType? Type1639 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type1640 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type1641 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type1642 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type1643 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEvent? Type1644 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEventType? Type1645 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEvent? Type1646 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEventType? Type1647 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEvent? Type1648 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEventType? Type1649 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type1650 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type1651 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseInputAudioTranscription? Type1651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type1652 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel? Type1652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type1653 { get; set; } + public global::System.Collections.Generic.IList? Type1653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type1654 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type1655 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type1656 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type1657 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type1658 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseClientSecret? Type1658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type1659 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseInputAudioTranscription? Type1659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type1660 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type1661 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxResponseOutputTokens? Type1661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type1662 { get; set; } + public global::System.Collections.Generic.IList? Type1662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type1663 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseModalitie? Type1663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type1664 { get; set; } + public global::System.Collections.Generic.IList? Type1664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type1665 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTool? Type1665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type1666 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseToolType? Type1666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type1667 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEvent? Type1668 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEventType? Type1669 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type1670 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type1671 { get; set; } + public global::tryAGI.OpenAI.Response? Type1671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemList? Type1672 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3? Type1672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1673 { get; set; } + public global::tryAGI.OpenAI.ResponseError? Type1673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemListObject? Type1674 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorCode? Type1674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProb? Type1675 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails? Type1675 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1676 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type1676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type1677 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Object? Type1677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type1678 { get; set; } + public global::System.Collections.Generic.IList? Type1678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type1679 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Status? Type1679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type1680 { get; set; } + public global::tryAGI.OpenAI.ResponseUsage? Type1680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type1681 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type1681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type1682 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type1682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type1683 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type1683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type1684 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type1684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type1685 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type1685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type1686 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type1686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type1687 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type1687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type1688 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type1688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type1689 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type1689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type1690 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type1690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type1691 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type1691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type1692 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type1692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type1693 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type1693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type1694 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type1694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type1695 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type1695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type1696 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type1696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type1697 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type1697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type1698 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type1698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type1699 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type1699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEvent? Type1700 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type1700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEventType? Type1701 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEvent? Type1701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent? Type1702 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEventType? Type1702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType? Type1703 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type1703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent? Type1704 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type1704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType? Type1705 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type1705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type1706 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type1706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type1707 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEvent? Type1707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type1708 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEventType? Type1708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type1709 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEvent? Type1709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type1710 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEventType? Type1710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type1711 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEvent? Type1711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type1712 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEventType? Type1712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type1713 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type1713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type1714 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type1714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type1715 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type1715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type1716 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type1716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type1717 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type1717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type1718 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type1718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type1719 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type1719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type1720 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type1720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type1721 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type1721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEvent? Type1722 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type1722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type1723 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type1723 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1724 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type1724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type1725 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type1725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type1726 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type1726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type1727 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type1727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type1728 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type1728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type1729 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type1729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type1730 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type1730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type1731 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEvent? Type1731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type1732 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEventType? Type1732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type1733 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type1733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type1734 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type1734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderRequest? Type1735 { get; set; } + public global::tryAGI.OpenAI.ResponseItemList? Type1735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponse? Type1736 { get; set; } + public global::System.Collections.Generic.IList? Type1736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type1737 { get; set; } + public global::tryAGI.OpenAI.ResponseItemListObject? Type1737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type1738 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProb? Type1738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type1739 { get; set; } + public global::System.Collections.Generic.IList? Type1739 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1740 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type1740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type1741 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type1741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type1742 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type1742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type1743 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type1743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type1744 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type1744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type1745 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type1745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type1746 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type1746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Upload? Type1747 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type1747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadObject? Type1748 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type1748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadStatus? Type1749 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type1749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadCertificateRequest? Type1750 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type1750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPart? Type1751 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type1751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPartObject? Type1752 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type1752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type1753 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type1753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type1754 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type1754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type1755 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type1755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type1756 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type1756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type1757 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type1757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type1758 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type1758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResult? Type1759 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type1759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type1760 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type1760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type1761 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type1761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type1762 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type1762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResult? Type1763 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEvent? Type1763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResultObject? Type1764 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEventType? Type1764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResult? Type1765 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type1765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResultObject? Type1766 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type1766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponse? Type1767 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type1767 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1768 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type1768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucket? Type1769 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type1769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketObject? Type1770 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type1770 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1771 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type1771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1772 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type1772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResult? Type1773 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type1773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type1774 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type1774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponseObject? Type1775 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type1775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.User? Type1776 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type1776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserObject? Type1777 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type1777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRole? Type1778 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type1778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponse? Type1779 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type1779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponseObject? Type1780 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type1780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponse? Type1781 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type1781 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1782 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type1782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponseObject? Type1783 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type1783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type1784 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type1784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleUpdateRequestRole? Type1785 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEvent? Type1785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderRequest? Type1786 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type1786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderResponse? Type1787 { get; set; } + public global::System.Collections.Generic.IList? Type1787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type1788 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type1788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type1789 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type1789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type1790 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type1790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type1791 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type1791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type1792 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type1792 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1793 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type1793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type1794 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type1794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type1795 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type1795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type1796 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type1796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1797 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type1797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type1798 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequest? Type1798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type1799 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequestGrader? Type1799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type1800 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequestGraderDiscriminator? Type1800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type1801 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponse? Type1801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type1802 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type1802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type1803 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type1803 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1804 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type1804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type1805 { get; set; } + public global::System.Collections.Generic.IList? Type1805 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1806 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type1806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type1807 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStream? Type1807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelled? Type1808 { get; set; } + public global::System.Collections.Generic.IList? Type1808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type1809 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStreamToolOutput? Type1809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type1810 { get; set; } + public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type1810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type1811 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type1811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompleted? Type1812 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type1812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type1813 { get; set; } + public global::tryAGI.OpenAI.Upload? Type1813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type1814 { get; set; } + public global::tryAGI.OpenAI.UploadObject? Type1814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type1815 { get; set; } + public global::tryAGI.OpenAI.UploadStatus? Type1815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpired? Type1816 { get; set; } + public global::tryAGI.OpenAI.UploadCertificateRequest? Type1816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type1817 { get; set; } + public global::tryAGI.OpenAI.UploadPart? Type1817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type1818 { get; set; } + public global::tryAGI.OpenAI.UploadPartObject? Type1818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type1819 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type1819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailed? Type1820 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type1820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedData? Type1821 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type1821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type1822 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type1822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedType? Type1823 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type1823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type1824 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type1824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type1825 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResult? Type1825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type1826 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type1826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type1827 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type1827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type1828 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type1828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type1829 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResult? Type1829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type1830 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResultObject? Type1830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type1831 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResult? Type1831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type1832 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResultObject? Type1832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type1833 { get; set; } + public global::tryAGI.OpenAI.UsageResponse? Type1833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type1834 { get; set; } + public global::System.Collections.Generic.IList? Type1834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type1835 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucket? Type1835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type1836 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketObject? Type1836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type1837 { get; set; } + public global::System.Collections.Generic.IList? Type1837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type1838 { get; set; } + public global::tryAGI.OpenAI.ResultItem? Type1838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type1839 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResult? Type1839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type1840 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type1840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type1841 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultItemDiscriminator? Type1841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type1842 { get; set; } + public global::tryAGI.OpenAI.UsageResponseObject? Type1842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type1843 { get; set; } + public global::tryAGI.OpenAI.User? Type1843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type1844 { get; set; } + public global::tryAGI.OpenAI.UserObject? Type1844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type1845 { get; set; } + public global::tryAGI.OpenAI.UserRole? Type1845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type1846 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponse? Type1846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type1847 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponseObject? Type1847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelled? Type1848 { get; set; } + public global::tryAGI.OpenAI.UserListResponse? Type1848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type1849 { get; set; } + public global::System.Collections.Generic.IList? Type1849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type1850 { get; set; } + public global::tryAGI.OpenAI.UserListResponseObject? Type1850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type1851 { get; set; } + public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type1851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompleted? Type1852 { get; set; } + public global::tryAGI.OpenAI.UserRoleUpdateRequestRole? Type1852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type1853 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderRequest? Type1853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type1854 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderResponse? Type1854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type1855 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type1855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailed? Type1856 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type1856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedData? Type1857 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type1857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type1858 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type1858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedType? Type1859 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type1859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type1860 { get; set; } + public global::System.Collections.Generic.IList? Type1860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type1861 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type1861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type1862 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type1862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type1863 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type1863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventType? Type1864 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventBase? Type1865 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type1865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionUpdate? Type1866 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type1866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionUpdateType? Type1867 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type1867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferAppend? Type1868 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type1868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferAppendType? Type1869 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type1869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommit? Type1870 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type1870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommitType? Type1871 { get; set; } + public global::System.Collections.Generic.IList? Type1871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferClear? Type1872 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type1872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeInputAudioBufferClearType? Type1873 { get; set; } + public global::System.Collections.Generic.IList? Type1873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemCreate? Type1874 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type1874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemCreateType? Type1875 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelled? Type1875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemTruncate? Type1876 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type1876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemTruncateType? Type1877 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type1877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDelete? Type1878 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type1878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDeleteType? Type1879 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompleted? Type1879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreate? Type1880 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type1880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateType? Type1881 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type1881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponse? Type1882 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type1882 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1883 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpired? Type1883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseModalitie? Type1884 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type1884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseVoice? Type1885 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type1885 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1886 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type1886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseTool? Type1887 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailed? Type1887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1888 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedData? Type1888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseToolChoice? Type1889 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type1889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1890 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedType? Type1890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateResponseMaxOutputTokens? Type1891 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type1891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCancel? Type1892 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type1892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCancelType? Type1893 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type1893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequest? Type1894 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type1894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type1895 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type1895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type1896 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type1896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type1897 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type1897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEvalRequest? Type1898 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type1898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type1899 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type1899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsOrder? Type1900 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type1900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type1901 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type1901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type1902 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type1902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainersOrder? Type1903 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type1903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainerFilesOrder? Type1904 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type1904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrder? Type1905 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type1905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrderBy? Type1906 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type1906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsOrder? Type1907 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type1907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsStatus? Type1908 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type1908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type1909 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type1909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type1910 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type1910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesOrder? Type1911 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type1911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type1912 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type1912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type1913 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type1913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type1914 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type1914 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1915 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelled? Type1915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type1916 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type1916 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1917 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type1917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type1918 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type1918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type1919 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompleted? Type1919 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1920 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type1920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type1921 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type1921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type1922 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type1922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type1923 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailed? Type1923 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1924 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedData? Type1924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type1925 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type1925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type1926 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedType? Type1926 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1927 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type1927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type1928 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type1928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type1929 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type1929 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1930 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type1930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type1931 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventType? Type1931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type1932 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventBase? Type1932 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1933 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionUpdate? Type1933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type1934 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionUpdateType? Type1934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type1935 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferAppend? Type1935 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1936 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferAppendType? Type1936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type1937 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommit? Type1937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type1938 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferCommitType? Type1938 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1939 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferClear? Type1939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSource? Type1940 { get; set; } + public global::tryAGI.OpenAI.RealtimeInputAudioBufferClearType? Type1940 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1941 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemCreate? Type1941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSize? Type1942 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemCreateType? Type1942 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1943 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemTruncate? Type1943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type1944 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemTruncateType? Type1944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type1945 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDelete? Type1945 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1946 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDeleteType? Type1946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type1947 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreate? Type1947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type1948 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateType? Type1948 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1949 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateResponse? Type1949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type1950 { get; set; } + public global::System.Collections.Generic.IList? Type1950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListInputItemsOrder? Type1951 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseModalitie? Type1951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesOrder? Type1952 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseVoice? Type1952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsOrder? Type1953 { get; set; } + public global::System.Collections.Generic.IList? Type1953 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1954 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseTool? Type1954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunIncludeItem? Type1955 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsOrder? Type1956 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseToolChoice? Type1956 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1957 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type1958 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateResponseMaxOutputTokens? Type1958 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1959 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCancel? Type1959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type1960 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCancelType? Type1960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresOrder? Type1961 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequest? Type1961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type1962 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type1962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type1963 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type1963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type1964 { get; set; } + public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type1964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type1965 { get; set; } + public global::tryAGI.OpenAI.UpdateEvalRequest? Type1965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1966 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type1966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1967 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsOrder? Type1967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalResponse? Type1968 { get; set; } + public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type1968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type1969 { get; set; } + public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type1969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type1970 { get; set; } + public global::tryAGI.OpenAI.ListContainersOrder? Type1970 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListContainerFilesOrder? Type1971 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListEvalsOrder? Type1972 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListEvalsOrderBy? Type1973 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunsOrder? Type1974 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunsStatus? Type1975 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type1976 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type1977 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesOrder? Type1978 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type1979 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type1980 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type1981 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1982 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type1983 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1984 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type1985 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type1986 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1987 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type1988 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type1989 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type1990 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1991 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type1992 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type1993 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1994 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type1995 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type1996 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1997 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type1998 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type1999 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2000 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type2001 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type2002 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2003 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type2004 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type2005 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2006 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSource? Type2007 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2008 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSize? Type2009 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2010 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type2011 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type2012 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2013 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type2014 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type2015 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2016 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type2017 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListInputItemsOrder? Type2018 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListMessagesOrder? Type2019 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunsOrder? Type2020 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2021 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateRunIncludeItem? Type2022 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsOrder? Type2023 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2024 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type2025 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2026 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type2027 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoresOrder? Type2028 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type2029 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type2030 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type2031 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type2032 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type2033 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AnyOf? Type2034 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalResponse? Type2035 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type2036 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type2037 { get; set; } } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs index 93af15de..4fd2d3e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs @@ -190,7 +190,7 @@ FileCitationBody as object /// public bool Validate() { - return IsFileCitationBody && !IsUrlCitationBody && !IsContainerFileCitationBody && !IsFilePath || !IsFileCitationBody && IsUrlCitationBody && !IsContainerFileCitationBody && !IsFilePath || !IsFileCitationBody && !IsUrlCitationBody && IsContainerFileCitationBody && !IsFilePath || !IsFileCitationBody && !IsUrlCitationBody && !IsContainerFileCitationBody && IsFilePath; + return IsFileCitationBody || IsUrlCitationBody || IsContainerFileCitationBody || IsFilePath; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObject.g.cs index 8de7105a..405124bd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObject.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -51,7 +49,7 @@ public sealed partial class AssistantObject public required global::System.Collections.Generic.Dictionary? Metadata { get; set; } /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonRequired] @@ -72,8 +70,8 @@ public sealed partial class AssistantObject public global::tryAGI.OpenAI.AssistantObjectObject Object { get; set; } /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. ///
@@ -101,7 +99,7 @@ public sealed partial class AssistantObject ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Tools { get; set; } + public required global::System.Collections.Generic.IList Tools { get; set; } /// /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
@@ -142,7 +140,7 @@ public sealed partial class AssistantObject /// with a maximum length of 512 characters. /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// /// /// The name of the assistant. The maximum length is 256 characters. @@ -151,8 +149,8 @@ public sealed partial class AssistantObject /// The object type, which is always `assistant`. /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -184,7 +182,7 @@ public AssistantObject( global::System.Collections.Generic.Dictionary? metadata, string model, string? name, - global::System.Collections.Generic.IList> tools, + global::System.Collections.Generic.IList tools, global::tryAGI.OpenAI.AssistantObjectObject @object, global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat, double? temperature, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObjectToolResourcesCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObjectToolResourcesCodeInterpreter.g.cs index 3522b153..f867604a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObjectToolResourcesCodeInterpreter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObjectToolResourcesCodeInterpreter.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class AssistantObjectToolResourcesCodeInterpreter { /// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter`` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter`` tool. There can be a maximum of 20 files associated with the tool. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class AssistantObjectToolResourcesCodeInterpreter /// Initializes a new instance of the class. ///
/// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter`` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter`` tool. There can be a maximum of 20 files associated with the tool. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObjectToolResourcesFileSearch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObjectToolResourcesFileSearch.g.cs index 9e379619..c203a2df 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObjectToolResourcesFileSearch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantObjectToolResourcesFileSearch.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class AssistantObjectToolResourcesFileSearch { /// - /// The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_ids")] public global::System.Collections.Generic.IList? VectorStoreIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class AssistantObjectToolResourcesFileSearch /// Initializes a new instance of the class. /// /// - /// The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs index 36f6e61c..4b65d4f1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs @@ -18,7 +18,7 @@ namespace tryAGI.OpenAI /// `thread.message.in_progress` event, many `thread.message.delta` events, and finally a
/// `thread.message.completed` event.
/// We may add additional events over time, so we recommend handling unknown events gracefully
- /// in your code. See the [Assistants API quickstart](/docs/assistants/overview) to learn how to
+ /// in your code. See the [Assistants API quickstart](https://platform.openai.com/docs/assistants/overview) to learn how to
/// integrate the Assistants API with streaming. /// public readonly partial struct AssistantStreamEvent : global::System.IEquatable @@ -164,7 +164,7 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.MessageStreamEvent? value) } /// - /// Occurs when an [error](/docs/guides/error-codes#api-errors) occurs. This can happen due to an internal server error or a timeout. + /// Occurs when an [error](https://platform.openai.com/docs/guides/error-codes#api-errors) occurs. This can happen due to an internal server error or a timeout. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ErrorEvent? Error { get; init; } @@ -198,41 +198,6 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.ErrorEvent? value) Error = value; } - /// - /// Occurs when a stream ends. - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.DoneEvent? Done { get; init; } -#else - public global::tryAGI.OpenAI.DoneEvent? Done { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Done))] -#endif - public bool IsDone => Done != null; - - /// - /// - /// - public static implicit operator AssistantStreamEvent(global::tryAGI.OpenAI.DoneEvent value) => new AssistantStreamEvent((global::tryAGI.OpenAI.DoneEvent?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.DoneEvent?(AssistantStreamEvent @this) => @this.Done; - - /// - /// - /// - public AssistantStreamEvent(global::tryAGI.OpenAI.DoneEvent? value) - { - Done = value; - } - /// /// /// @@ -241,8 +206,7 @@ public AssistantStreamEvent( global::tryAGI.OpenAI.RunStreamEvent? run, global::tryAGI.OpenAI.RunStepStreamEvent? runStep, global::tryAGI.OpenAI.MessageStreamEvent? message, - global::tryAGI.OpenAI.ErrorEvent? error, - global::tryAGI.OpenAI.DoneEvent? done + global::tryAGI.OpenAI.ErrorEvent? error ) { Thread = thread; @@ -250,14 +214,12 @@ public AssistantStreamEvent( RunStep = runStep; Message = message; Error = error; - Done = done; } /// /// /// public object? Object => - Done as object ?? Error as object ?? Message as object ?? RunStep as object ?? @@ -273,8 +235,7 @@ Thread as object Run?.ToString() ?? RunStep?.ToString() ?? Message?.ToString() ?? - Error?.ToString() ?? - Done?.ToString() + Error?.ToString() ; /// @@ -282,7 +243,7 @@ Thread as object /// public bool Validate() { - return IsThread && !IsRun && !IsRunStep && !IsMessage && !IsError && !IsDone || !IsThread && IsRun && !IsRunStep && !IsMessage && !IsError && !IsDone || !IsThread && !IsRun && IsRunStep && !IsMessage && !IsError && !IsDone || !IsThread && !IsRun && !IsRunStep && IsMessage && !IsError && !IsDone || !IsThread && !IsRun && !IsRunStep && !IsMessage && IsError && !IsDone || !IsThread && !IsRun && !IsRunStep && !IsMessage && !IsError && IsDone; + return IsThread || IsRun || IsRunStep || IsMessage || IsError; } /// @@ -294,7 +255,6 @@ public bool Validate() global::System.Func? runStep = null, global::System.Func? message = null, global::System.Func? error = null, - global::System.Func? done = null, bool validate = true) { if (validate) @@ -322,10 +282,6 @@ public bool Validate() { return error(Error!); } - else if (IsDone && done != null) - { - return done(Done!); - } return default(TResult); } @@ -339,7 +295,6 @@ public void Match( global::System.Action? runStep = null, global::System.Action? message = null, global::System.Action? error = null, - global::System.Action? done = null, bool validate = true) { if (validate) @@ -367,10 +322,6 @@ public void Match( { error?.Invoke(Error!); } - else if (IsDone) - { - done?.Invoke(Done!); - } } /// @@ -390,8 +341,6 @@ public override int GetHashCode() typeof(global::tryAGI.OpenAI.MessageStreamEvent), Error, typeof(global::tryAGI.OpenAI.ErrorEvent), - Done, - typeof(global::tryAGI.OpenAI.DoneEvent), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -412,8 +361,7 @@ public bool Equals(AssistantStreamEvent other) global::System.Collections.Generic.EqualityComparer.Default.Equals(Run, other.Run) && global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStep, other.RunStep) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Message, other.Message) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Error, other.Error) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Done, other.Done) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Error, other.Error) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDoneEvent.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEventDiscriminator.Json.g.cs similarity index 85% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDoneEvent.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEventDiscriminator.Json.g.cs index 6077e76c..59d6d408 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDoneEvent.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEventDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class ResponseReasoningSummaryDoneEvent + public sealed partial class AssistantStreamEventDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent? FromJson( + public static global::tryAGI.OpenAI.AssistantStreamEventDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent), - jsonSerializerContext) as global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent; + typeof(global::tryAGI.OpenAI.AssistantStreamEventDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.AssistantStreamEventDiscriminator; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.ResponseReasoningSummaryDoneEvent? FromJson( + public static global::tryAGI.OpenAI.AssistantStreamEventDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent; + typeof(global::tryAGI.OpenAI.AssistantStreamEventDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AssistantStreamEventDiscriminator; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEventDiscriminator.g.cs new file mode 100644 index 00000000..35cdcbc1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEventDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class AssistantStreamEventDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event")] + public string? Event { 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 AssistantStreamEventDiscriminator( + string? @event) + { + this.Event = @event; + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantStreamEventDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantTool.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantTool.Json.g.cs new file mode 100644 index 00000000..4bf62cff --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantTool.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct AssistantTool + { + /// + /// 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::tryAGI.OpenAI.AssistantTool? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.AssistantTool), + jsonSerializerContext) as global::tryAGI.OpenAI.AssistantTool?; + } + + /// + /// 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::tryAGI.OpenAI.AssistantTool? 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::tryAGI.OpenAI.AssistantTool), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AssistantTool?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantTool.g.cs new file mode 100644 index 00000000..2493cd1d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantTool.g.cs @@ -0,0 +1,274 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct AssistantTool : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.AssistantToolsCode? ToolsCode { get; init; } +#else + public global::tryAGI.OpenAI.AssistantToolsCode? ToolsCode { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolsCode))] +#endif + public bool IsToolsCode => ToolsCode != null; + + /// + /// + /// + public static implicit operator AssistantTool(global::tryAGI.OpenAI.AssistantToolsCode value) => new AssistantTool((global::tryAGI.OpenAI.AssistantToolsCode?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.AssistantToolsCode?(AssistantTool @this) => @this.ToolsCode; + + /// + /// + /// + public AssistantTool(global::tryAGI.OpenAI.AssistantToolsCode? value) + { + ToolsCode = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.AssistantToolsFileSearch? ToolsFileSearch { get; init; } +#else + public global::tryAGI.OpenAI.AssistantToolsFileSearch? ToolsFileSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolsFileSearch))] +#endif + public bool IsToolsFileSearch => ToolsFileSearch != null; + + /// + /// + /// + public static implicit operator AssistantTool(global::tryAGI.OpenAI.AssistantToolsFileSearch value) => new AssistantTool((global::tryAGI.OpenAI.AssistantToolsFileSearch?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.AssistantToolsFileSearch?(AssistantTool @this) => @this.ToolsFileSearch; + + /// + /// + /// + public AssistantTool(global::tryAGI.OpenAI.AssistantToolsFileSearch? value) + { + ToolsFileSearch = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.AssistantToolsFunction? ToolsFunction { get; init; } +#else + public global::tryAGI.OpenAI.AssistantToolsFunction? ToolsFunction { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolsFunction))] +#endif + public bool IsToolsFunction => ToolsFunction != null; + + /// + /// + /// + public static implicit operator AssistantTool(global::tryAGI.OpenAI.AssistantToolsFunction value) => new AssistantTool((global::tryAGI.OpenAI.AssistantToolsFunction?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.AssistantToolsFunction?(AssistantTool @this) => @this.ToolsFunction; + + /// + /// + /// + public AssistantTool(global::tryAGI.OpenAI.AssistantToolsFunction? value) + { + ToolsFunction = value; + } + + /// + /// + /// + public AssistantTool( + global::tryAGI.OpenAI.AssistantToolsCode? toolsCode, + global::tryAGI.OpenAI.AssistantToolsFileSearch? toolsFileSearch, + global::tryAGI.OpenAI.AssistantToolsFunction? toolsFunction + ) + { + ToolsCode = toolsCode; + ToolsFileSearch = toolsFileSearch; + ToolsFunction = toolsFunction; + } + + /// + /// + /// + public object? Object => + ToolsFunction as object ?? + ToolsFileSearch as object ?? + ToolsCode as object + ; + + /// + /// + /// + public override string? ToString() => + ToolsCode?.ToString() ?? + ToolsFileSearch?.ToString() ?? + ToolsFunction?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsToolsCode || IsToolsFileSearch || IsToolsFunction; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? toolsCode = null, + global::System.Func? toolsFileSearch = null, + global::System.Func? toolsFunction = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsToolsCode && toolsCode != null) + { + return toolsCode(ToolsCode!); + } + else if (IsToolsFileSearch && toolsFileSearch != null) + { + return toolsFileSearch(ToolsFileSearch!); + } + else if (IsToolsFunction && toolsFunction != null) + { + return toolsFunction(ToolsFunction!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? toolsCode = null, + global::System.Action? toolsFileSearch = null, + global::System.Action? toolsFunction = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsToolsCode) + { + toolsCode?.Invoke(ToolsCode!); + } + else if (IsToolsFileSearch) + { + toolsFileSearch?.Invoke(ToolsFileSearch!); + } + else if (IsToolsFunction) + { + toolsFunction?.Invoke(ToolsFunction!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ToolsCode, + typeof(global::tryAGI.OpenAI.AssistantToolsCode), + ToolsFileSearch, + typeof(global::tryAGI.OpenAI.AssistantToolsFileSearch), + ToolsFunction, + typeof(global::tryAGI.OpenAI.AssistantToolsFunction), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(AssistantTool other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolsCode, other.ToolsCode) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolsFileSearch, other.ToolsFileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolsFunction, other.ToolsFunction) + ; + } + + /// + /// + /// + public static bool operator ==(AssistantTool obj1, AssistantTool obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AssistantTool obj1, AssistantTool obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AssistantTool o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolDiscriminator.Json.g.cs new file mode 100644 index 00000000..8d3999cd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class AssistantToolDiscriminator + { + /// + /// 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::tryAGI.OpenAI.AssistantToolDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.AssistantToolDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.AssistantToolDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.AssistantToolDiscriminator? 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::tryAGI.OpenAI.AssistantToolDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.AssistantToolDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolDiscriminator.g.cs new file mode 100644 index 00000000..b5f9d3e9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class AssistantToolDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 AssistantToolDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantToolDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolsFileSearchFileSearch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolsFileSearchFileSearch.g.cs index 7af6a0a3..b375e516 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolsFileSearchFileSearch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantToolsFileSearchFileSearch.g.cs @@ -10,14 +10,14 @@ public sealed partial class AssistantToolsFileSearchFileSearch { /// /// The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.
- /// Note that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. + /// Note that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. ///
[global::System.Text.Json.Serialization.JsonPropertyName("max_num_results")] public int? MaxNumResults { get; set; } /// /// The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.
- /// See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. + /// See the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. ///
[global::System.Text.Json.Serialization.JsonPropertyName("ranking_options")] public global::tryAGI.OpenAI.FileSearchRankingOptions? RankingOptions { get; set; } @@ -33,11 +33,11 @@ public sealed partial class AssistantToolsFileSearchFileSearch ///
/// /// The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.
- /// Note that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. + /// Note that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. /// /// /// The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.
- /// See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. + /// See the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs index ce28a74b..b595946b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs @@ -5,8 +5,8 @@ namespace tryAGI.OpenAI { /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. ///
@@ -122,7 +122,7 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.ResponseFormatJso /// /// JSON Schema response format. Used to generate structured JSON responses.
- /// Learn more about [Structured Outputs](/docs/guides/structured-outputs). + /// Learn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs). ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ResponseFormatJsonSchema? Value4 { get; init; } @@ -197,7 +197,7 @@ Value1 as object ///
public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4; + return IsValue1 || IsValue2 || IsValue3 || IsValue4; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs index e3a9c365..b5ae7ea6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs @@ -116,7 +116,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsValue1 || IsValue2; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchError.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchError.Json.g.cs new file mode 100644 index 00000000..2980c24d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchError.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class BatchError + { + /// + /// 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::tryAGI.OpenAI.BatchError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.BatchError), + jsonSerializerContext) as global::tryAGI.OpenAI.BatchError; + } + + /// + /// 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::tryAGI.OpenAI.BatchError? 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::tryAGI.OpenAI.BatchError), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BatchError; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrorsDataItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchError.g.cs similarity index 93% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrorsDataItem.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchError.g.cs index 36a422a8..ca655f17 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrorsDataItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchError.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public sealed partial class BatchErrorsDataItem + public sealed partial class BatchError { /// /// An error code identifying the error type. @@ -39,7 +39,7 @@ public sealed partial class BatchErrorsDataItem public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// An error code identifying the error type. @@ -56,7 +56,7 @@ public sealed partial class BatchErrorsDataItem #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BatchErrorsDataItem( + public BatchError( string? code, int? line, string? message, @@ -69,9 +69,9 @@ public BatchErrorsDataItem( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BatchErrorsDataItem() + public BatchError() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrors.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrors.g.cs index 22393c3c..a33b39ce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrors.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrors.g.cs @@ -12,7 +12,7 @@ public sealed partial class BatchErrors /// /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public global::System.Collections.Generic.IList? Data { get; set; } + public global::System.Collections.Generic.IList? Data { get; set; } /// /// The object type, which is always `list`. @@ -37,7 +37,7 @@ public sealed partial class BatchErrors [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BatchErrors( - global::System.Collections.Generic.IList? data, + global::System.Collections.Generic.IList? data, string? @object) { this.Data = data; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionFunctions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionFunctions.g.cs index 0b94b623..e9dd2d41 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionFunctions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionFunctions.g.cs @@ -25,7 +25,7 @@ public sealed partial class ChatCompletionFunctions public required string Name { get; set; } /// - /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
+ /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
/// Omitting `parameters` defines a function with an empty parameter list. ///
[global::System.Text.Json.Serialization.JsonPropertyName("parameters")] @@ -48,7 +48,7 @@ public sealed partial class ChatCompletionFunctions /// The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64. /// /// - /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
+ /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
/// Omitting `parameters` defines a function with an empty parameter list. /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItem.g.cs index b062af3c..5a80c293 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItem.g.cs @@ -15,7 +15,7 @@ public sealed partial class ChatCompletionMessageListDataItem /// Otherwise, null. ///
[global::System.Text.Json.Serialization.JsonPropertyName("content_parts")] - public global::System.Collections.Generic.IList>? ContentParts { get; set; } + public global::System.Collections.Generic.IList>? ContentParts { get; set; } /// /// The identifier of the chat message. @@ -45,7 +45,7 @@ public sealed partial class ChatCompletionMessageListDataItem #endif public ChatCompletionMessageListDataItem( string id, - global::System.Collections.Generic.IList>? contentParts) + global::System.Collections.Generic.IList>? contentParts) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.ContentParts = contentParts; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessage.g.cs index c1cdbadd..5df4a6ac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessage.g.cs @@ -12,7 +12,7 @@ public sealed partial class ChatCompletionRequestAssistantMessage { /// /// Data about a previous audio response from the model.
- /// [Learn more](/docs/guides/audio). + /// [Learn more](https://platform.openai.com/docs/guides/audio). ///
[global::System.Text.Json.Serialization.JsonPropertyName("audio")] public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio? Audio { get; set; } @@ -21,8 +21,8 @@ public sealed partial class ChatCompletionRequestAssistantMessage /// The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified. ///
[global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] - public global::tryAGI.OpenAI.OneOf>? Content { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] + public global::tryAGI.OpenAI.AnyOf>? Content { get; set; } /// /// Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model. @@ -67,7 +67,7 @@ public sealed partial class ChatCompletionRequestAssistantMessage /// /// /// Data about a previous audio response from the model.
- /// [Learn more](/docs/guides/audio). + /// [Learn more](https://platform.openai.com/docs/guides/audio). /// /// /// The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified. @@ -89,7 +89,7 @@ public sealed partial class ChatCompletionRequestAssistantMessage #endif public ChatCompletionRequestAssistantMessage( global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio? audio, - global::tryAGI.OpenAI.OneOf>? content, + global::tryAGI.OpenAI.AnyOf>? content, string? name, string? refusal, global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole role, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageAudio.g.cs index 6211aabf..e561d942 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageAudio.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageAudio.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// Data about a previous audio response from the model.
- /// [Learn more](/docs/guides/audio). + /// [Learn more](https://platform.openai.com/docs/guides/audio). ///
public sealed partial class ChatCompletionRequestAssistantMessageAudio { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs index 0355df60..0861038e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public readonly partial struct ChatCompletionRequestAssistantMessageContentPart : global::System.IEquatable { /// - /// Learn about [text inputs](/docs/guides/text-generation). + /// Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation). /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Text { get; init; } @@ -112,7 +112,7 @@ Text as object ///
public bool Validate() { - return IsText && !IsRefusal || !IsText && IsRefusal; + return IsText || IsRefusal; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.Json.g.cs new file mode 100644 index 00000000..c789a22f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChatCompletionRequestAssistantMessageContentPartDiscriminator + { + /// + /// 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::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? 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::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.g.cs new file mode 100644 index 00000000..bda86d5f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChatCompletionRequestAssistantMessageContentPartDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 ChatCompletionRequestAssistantMessageContentPartDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatCompletionRequestAssistantMessageContentPartDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestDeveloperMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestDeveloperMessage.g.cs index 29bc6cf8..c7f12bb2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestDeveloperMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestDeveloperMessage.g.cs @@ -16,9 +16,9 @@ public sealed partial class ChatCompletionRequestDeveloperMessage /// The contents of the developer message. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf> Content { get; set; } + public required global::tryAGI.OpenAI.AnyOf> Content { get; set; } /// /// An optional name for the participant. Provides the model information to differentiate between participants of the same role. @@ -55,7 +55,7 @@ public sealed partial class ChatCompletionRequestDeveloperMessage [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionRequestDeveloperMessage( - global::tryAGI.OpenAI.OneOf> content, + global::tryAGI.OpenAI.AnyOf> content, string? name, global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole role) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs index d27d0ed1..dfe99e15 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs @@ -273,7 +273,7 @@ Developer as object /// public bool Validate() { - return IsDeveloper && !IsSystem && !IsUser && !IsAssistant && !IsTool && !IsFunction || !IsDeveloper && IsSystem && !IsUser && !IsAssistant && !IsTool && !IsFunction || !IsDeveloper && !IsSystem && IsUser && !IsAssistant && !IsTool && !IsFunction || !IsDeveloper && !IsSystem && !IsUser && IsAssistant && !IsTool && !IsFunction || !IsDeveloper && !IsSystem && !IsUser && !IsAssistant && IsTool && !IsFunction || !IsDeveloper && !IsSystem && !IsUser && !IsAssistant && !IsTool && IsFunction; + return IsDeveloper || IsSystem || IsUser || IsAssistant || IsTool || IsFunction; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartAudio.g.cs index fde22169..ab5bf3af 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartAudio.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartAudio.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Learn about [audio inputs](/docs/guides/audio). + /// Learn about [audio inputs](https://platform.openai.com/docs/guides/audio). /// public sealed partial class ChatCompletionRequestMessageContentPartAudio { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartFile.g.cs index b5a329db..4c697b5a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartFile.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Learn about [file inputs](/docs/guides/text) for text generation. + /// Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text generation. /// public sealed partial class ChatCompletionRequestMessageContentPartFile { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImage.g.cs index 66be6f1d..94c118b1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImage.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Learn about [image inputs](/docs/guides/vision). + /// Learn about [image inputs](https://platform.openai.com/docs/guides/vision). /// public sealed partial class ChatCompletionRequestMessageContentPartImage { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImageImageUrl.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImageImageUrl.g.cs index a40dece4..dfae1a8a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImageImageUrl.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImageImageUrl.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class ChatCompletionRequestMessageContentPartImageImageUrl { /// - /// Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).
+ /// Specifies the detail level of the image. Learn more in the [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding).
/// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("detail")] @@ -33,7 +33,7 @@ public sealed partial class ChatCompletionRequestMessageContentPartImageImageUrl /// Initializes a new instance of the class. ///
/// - /// Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).
+ /// Specifies the detail level of the image. Learn more in the [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding).
/// Default Value: auto /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImageImageUrlDetail.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImageImageUrlDetail.g.cs index dc6bb537..c562895b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImageImageUrlDetail.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartImageImageUrlDetail.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).
+ /// Specifies the detail level of the image. Learn more in the [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding).
/// Default Value: auto ///
public enum ChatCompletionRequestMessageContentPartImageImageUrlDetail @@ -14,11 +14,11 @@ public enum ChatCompletionRequestMessageContentPartImageImageUrlDetail ///
Auto, /// - /// + /// //platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding). /// Low, /// - /// + /// //platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding). /// High, } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartText.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartText.g.cs index 99ad7c0b..e0dff830 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartText.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageContentPartText.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Learn about [text inputs](/docs/guides/text-generation). + /// Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation). /// public sealed partial class ChatCompletionRequestMessageContentPartText { diff --git a/src/libs/tryAGI.OpenAI/Generated/OneOf.9.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.Json.g.cs similarity index 84% rename from src/libs/tryAGI.OpenAI/Generated/OneOf.9.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.Json.g.cs index e49a2b67..9b16f9a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/OneOf.9.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public readonly partial struct OneOf + public sealed partial class ChatCompletionRequestMessageDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.OneOf? FromJson( + public static global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.OneOf), - jsonSerializerContext) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.OneOf? FromJson( + public static global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize>( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + 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::tryAGI.OpenAI.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OneOf?; + typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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?>( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.g.cs new file mode 100644 index 00000000..58ccedd7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChatCompletionRequestMessageDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + public string? Role { 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 ChatCompletionRequestMessageDiscriminator( + string? role) + { + this.Role = role; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatCompletionRequestMessageDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessage.g.cs index 27c65aee..30787068 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessage.g.cs @@ -16,9 +16,9 @@ public sealed partial class ChatCompletionRequestSystemMessage /// The contents of the system message. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf> Content { get; set; } + public required global::tryAGI.OpenAI.AnyOf> Content { get; set; } /// /// An optional name for the participant. Provides the model information to differentiate between participants of the same role. @@ -55,7 +55,7 @@ public sealed partial class ChatCompletionRequestSystemMessage [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionRequestSystemMessage( - global::tryAGI.OpenAI.OneOf> content, + global::tryAGI.OpenAI.AnyOf> content, string? name, global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole role) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs index e7add748..7afb152f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public readonly partial struct ChatCompletionRequestSystemMessageContentPart : global::System.IEquatable { /// - /// Learn about [text inputs](/docs/guides/text-generation). + /// Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation). /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Text { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessage.g.cs index 6e4f01a9..8f3be470 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessage.g.cs @@ -14,9 +14,9 @@ public sealed partial class ChatCompletionRequestToolMessage /// The contents of the tool message. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf> Content { get; set; } + public required global::tryAGI.OpenAI.AnyOf> Content { get; set; } /// /// The role of the messages author, in this case `tool`. @@ -54,7 +54,7 @@ public sealed partial class ChatCompletionRequestToolMessage [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionRequestToolMessage( - global::tryAGI.OpenAI.OneOf> content, + global::tryAGI.OpenAI.AnyOf> content, string toolCallId, global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole role) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs index e25de160..aeb69188 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public readonly partial struct ChatCompletionRequestToolMessageContentPart : global::System.IEquatable { /// - /// Learn about [text inputs](/docs/guides/text-generation). + /// Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation). /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Text { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessage.g.cs index 8e40a59c..46bd421f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessage.g.cs @@ -15,9 +15,9 @@ public sealed partial class ChatCompletionRequestUserMessage /// The contents of the user message. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf> Content { get; set; } + public required global::tryAGI.OpenAI.AnyOf> Content { get; set; } /// /// An optional name for the participant. Provides the model information to differentiate between participants of the same role. @@ -54,7 +54,7 @@ public sealed partial class ChatCompletionRequestUserMessage [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionRequestUserMessage( - global::tryAGI.OpenAI.OneOf> content, + global::tryAGI.OpenAI.AnyOf> content, string? name, global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole role) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs index 878ced3e..7b3d630d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public readonly partial struct ChatCompletionRequestUserMessageContentPart : global::System.IEquatable { /// - /// Learn about [text inputs](/docs/guides/text-generation). + /// Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation). /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Text { get; init; } @@ -45,7 +45,7 @@ public ChatCompletionRequestUserMessageContentPart(global::tryAGI.OpenAI.ChatCom } /// - /// Learn about [image inputs](/docs/guides/vision). + /// Learn about [image inputs](https://platform.openai.com/docs/guides/vision). /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? Image { get; init; } @@ -80,7 +80,7 @@ public ChatCompletionRequestUserMessageContentPart(global::tryAGI.OpenAI.ChatCom } /// - /// Learn about [audio inputs](/docs/guides/audio). + /// Learn about [audio inputs](https://platform.openai.com/docs/guides/audio). /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Audio { get; init; } @@ -115,7 +115,7 @@ public ChatCompletionRequestUserMessageContentPart(global::tryAGI.OpenAI.ChatCom } /// - /// Learn about [file inputs](/docs/guides/text) for text generation. + /// Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text generation. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? File { get; init; } @@ -190,7 +190,7 @@ Text as object /// public bool Validate() { - return IsText && !IsImage && !IsAudio && !IsFile || !IsText && IsImage && !IsAudio && !IsFile || !IsText && !IsImage && IsAudio && !IsFile || !IsText && !IsImage && !IsAudio && IsFile; + return IsText || IsImage || IsAudio || IsFile; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPartDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPartDiscriminator.Json.g.cs new file mode 100644 index 00000000..541ff09f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPartDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChatCompletionRequestUserMessageContentPartDiscriminator + { + /// + /// 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::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminator? 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::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPartDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPartDiscriminator.g.cs new file mode 100644 index 00000000..fca6e389 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPartDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChatCompletionRequestUserMessageContentPartDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 ChatCompletionRequestUserMessageContentPartDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatCompletionRequestUserMessageContentPartDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionResponseMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionResponseMessage.g.cs index 961106f0..629206df 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionResponseMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionResponseMessage.g.cs @@ -10,14 +10,14 @@ public sealed partial class ChatCompletionResponseMessage { /// /// Annotations for the message, when applicable, as when using the
- /// [web search tool](/docs/guides/tools-web-search?api-mode=chat). + /// [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). ///
[global::System.Text.Json.Serialization.JsonPropertyName("annotations")] public global::System.Collections.Generic.IList? Annotations { get; set; } /// /// If the audio output modality is requested, this object contains data
- /// about the audio response from the model. [Learn more](/docs/guides/audio). + /// about the audio response from the model. [Learn more](https://platform.openai.com/docs/guides/audio). ///
[global::System.Text.Json.Serialization.JsonPropertyName("audio")] public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio? Audio { get; set; } @@ -65,11 +65,11 @@ public sealed partial class ChatCompletionResponseMessage ///
/// /// Annotations for the message, when applicable, as when using the
- /// [web search tool](/docs/guides/tools-web-search?api-mode=chat). + /// [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). /// /// /// If the audio output modality is requested, this object contains data
- /// about the audio response from the model. [Learn more](/docs/guides/audio). + /// about the audio response from the model. [Learn more](https://platform.openai.com/docs/guides/audio). /// /// /// The contents of the message. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionResponseMessageAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionResponseMessageAudio.g.cs index 66fc55a0..e7326862 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionResponseMessageAudio.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionResponseMessageAudio.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// If the audio output modality is requested, this object contains data
- /// about the audio response from the model. [Learn more](/docs/guides/audio). + /// about the audio response from the model. [Learn more](https://platform.openai.com/docs/guides/audio). ///
public sealed partial class ChatCompletionResponseMessageAudio { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs index cac7eb4b..537e8c72 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs @@ -117,7 +117,7 @@ Value1 as object ///
public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsValue1 || IsValue2; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatModel.g.cs new file mode 100644 index 00000000..f5348132 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatModel.g.cs @@ -0,0 +1,369 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ChatModel + { + /// + /// + /// + Gpt41, + /// + /// + /// + Gpt41Mini, + /// + /// + /// + Gpt41Nano, + /// + /// + /// + Gpt4120250414, + /// + /// + /// + Gpt41Mini20250414, + /// + /// + /// + Gpt41Nano20250414, + /// + /// + /// + O4Mini, + /// + /// + /// + O4Mini20250416, + /// + /// + /// + O3, + /// + /// + /// + O320250416, + /// + /// + /// + O3Mini, + /// + /// + /// + O3Mini20250131, + /// + /// + /// + O1, + /// + /// + /// + O120241217, + /// + /// + /// + O1Preview, + /// + /// + /// + O1Preview20240912, + /// + /// + /// + O1Mini, + /// + /// + /// + O1Mini20240912, + /// + /// + /// + Gpt4o, + /// + /// + /// + Gpt4o20241120, + /// + /// + /// + Gpt4o20240806, + /// + /// + /// + Gpt4o20240513, + /// + /// + /// + Gpt4oAudioPreview, + /// + /// + /// + Gpt4oAudioPreview20241001, + /// + /// + /// + Gpt4oAudioPreview20241217, + /// + /// + /// + Gpt4oAudioPreview20250603, + /// + /// + /// + Gpt4oMiniAudioPreview, + /// + /// + /// + Gpt4oMiniAudioPreview20241217, + /// + /// + /// + Gpt4oSearchPreview, + /// + /// + /// + Gpt4oMiniSearchPreview, + /// + /// + /// + Gpt4oSearchPreview20250311, + /// + /// + /// + Gpt4oMiniSearchPreview20250311, + /// + /// + /// + Chatgpt4oLatest, + /// + /// + /// + CodexMiniLatest, + /// + /// + /// + Gpt4oMini, + /// + /// + /// + Gpt4oMini20240718, + /// + /// + /// + Gpt4Turbo, + /// + /// + /// + Gpt4Turbo20240409, + /// + /// + /// + Gpt40125Preview, + /// + /// + /// + Gpt4TurboPreview, + /// + /// + /// + Gpt41106Preview, + /// + /// + /// + Gpt4VisionPreview, + /// + /// + /// + Gpt4, + /// + /// + /// + Gpt40314, + /// + /// + /// + Gpt40613, + /// + /// + /// + Gpt432k, + /// + /// + /// + Gpt432k0314, + /// + /// + /// + Gpt432k0613, + /// + /// + /// + Gpt35Turbo, + /// + /// + /// + Gpt35Turbo16k, + /// + /// + /// + Gpt35Turbo0301, + /// + /// + /// + Gpt35Turbo0613, + /// + /// + /// + Gpt35Turbo1106, + /// + /// + /// + Gpt35Turbo0125, + /// + /// + /// + Gpt35Turbo16k0613, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatModelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatModel value) + { + return value switch + { + ChatModel.Gpt41 => "gpt-4.1", + ChatModel.Gpt41Mini => "gpt-4.1-mini", + ChatModel.Gpt41Nano => "gpt-4.1-nano", + ChatModel.Gpt4120250414 => "gpt-4.1-2025-04-14", + ChatModel.Gpt41Mini20250414 => "gpt-4.1-mini-2025-04-14", + ChatModel.Gpt41Nano20250414 => "gpt-4.1-nano-2025-04-14", + ChatModel.O4Mini => "o4-mini", + ChatModel.O4Mini20250416 => "o4-mini-2025-04-16", + ChatModel.O3 => "o3", + ChatModel.O320250416 => "o3-2025-04-16", + ChatModel.O3Mini => "o3-mini", + ChatModel.O3Mini20250131 => "o3-mini-2025-01-31", + ChatModel.O1 => "o1", + ChatModel.O120241217 => "o1-2024-12-17", + ChatModel.O1Preview => "o1-preview", + ChatModel.O1Preview20240912 => "o1-preview-2024-09-12", + ChatModel.O1Mini => "o1-mini", + ChatModel.O1Mini20240912 => "o1-mini-2024-09-12", + ChatModel.Gpt4o => "gpt-4o", + ChatModel.Gpt4o20241120 => "gpt-4o-2024-11-20", + ChatModel.Gpt4o20240806 => "gpt-4o-2024-08-06", + ChatModel.Gpt4o20240513 => "gpt-4o-2024-05-13", + ChatModel.Gpt4oAudioPreview => "gpt-4o-audio-preview", + ChatModel.Gpt4oAudioPreview20241001 => "gpt-4o-audio-preview-2024-10-01", + ChatModel.Gpt4oAudioPreview20241217 => "gpt-4o-audio-preview-2024-12-17", + ChatModel.Gpt4oAudioPreview20250603 => "gpt-4o-audio-preview-2025-06-03", + ChatModel.Gpt4oMiniAudioPreview => "gpt-4o-mini-audio-preview", + ChatModel.Gpt4oMiniAudioPreview20241217 => "gpt-4o-mini-audio-preview-2024-12-17", + ChatModel.Gpt4oSearchPreview => "gpt-4o-search-preview", + ChatModel.Gpt4oMiniSearchPreview => "gpt-4o-mini-search-preview", + ChatModel.Gpt4oSearchPreview20250311 => "gpt-4o-search-preview-2025-03-11", + ChatModel.Gpt4oMiniSearchPreview20250311 => "gpt-4o-mini-search-preview-2025-03-11", + ChatModel.Chatgpt4oLatest => "chatgpt-4o-latest", + ChatModel.CodexMiniLatest => "codex-mini-latest", + ChatModel.Gpt4oMini => "gpt-4o-mini", + ChatModel.Gpt4oMini20240718 => "gpt-4o-mini-2024-07-18", + ChatModel.Gpt4Turbo => "gpt-4-turbo", + ChatModel.Gpt4Turbo20240409 => "gpt-4-turbo-2024-04-09", + ChatModel.Gpt40125Preview => "gpt-4-0125-preview", + ChatModel.Gpt4TurboPreview => "gpt-4-turbo-preview", + ChatModel.Gpt41106Preview => "gpt-4-1106-preview", + ChatModel.Gpt4VisionPreview => "gpt-4-vision-preview", + ChatModel.Gpt4 => "gpt-4", + ChatModel.Gpt40314 => "gpt-4-0314", + ChatModel.Gpt40613 => "gpt-4-0613", + ChatModel.Gpt432k => "gpt-4-32k", + ChatModel.Gpt432k0314 => "gpt-4-32k-0314", + ChatModel.Gpt432k0613 => "gpt-4-32k-0613", + ChatModel.Gpt35Turbo => "gpt-3.5-turbo", + ChatModel.Gpt35Turbo16k => "gpt-3.5-turbo-16k", + ChatModel.Gpt35Turbo0301 => "gpt-3.5-turbo-0301", + ChatModel.Gpt35Turbo0613 => "gpt-3.5-turbo-0613", + ChatModel.Gpt35Turbo1106 => "gpt-3.5-turbo-1106", + ChatModel.Gpt35Turbo0125 => "gpt-3.5-turbo-0125", + ChatModel.Gpt35Turbo16k0613 => "gpt-3.5-turbo-16k-0613", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatModel? ToEnum(string value) + { + return value switch + { + "gpt-4.1" => ChatModel.Gpt41, + "gpt-4.1-mini" => ChatModel.Gpt41Mini, + "gpt-4.1-nano" => ChatModel.Gpt41Nano, + "gpt-4.1-2025-04-14" => ChatModel.Gpt4120250414, + "gpt-4.1-mini-2025-04-14" => ChatModel.Gpt41Mini20250414, + "gpt-4.1-nano-2025-04-14" => ChatModel.Gpt41Nano20250414, + "o4-mini" => ChatModel.O4Mini, + "o4-mini-2025-04-16" => ChatModel.O4Mini20250416, + "o3" => ChatModel.O3, + "o3-2025-04-16" => ChatModel.O320250416, + "o3-mini" => ChatModel.O3Mini, + "o3-mini-2025-01-31" => ChatModel.O3Mini20250131, + "o1" => ChatModel.O1, + "o1-2024-12-17" => ChatModel.O120241217, + "o1-preview" => ChatModel.O1Preview, + "o1-preview-2024-09-12" => ChatModel.O1Preview20240912, + "o1-mini" => ChatModel.O1Mini, + "o1-mini-2024-09-12" => ChatModel.O1Mini20240912, + "gpt-4o" => ChatModel.Gpt4o, + "gpt-4o-2024-11-20" => ChatModel.Gpt4o20241120, + "gpt-4o-2024-08-06" => ChatModel.Gpt4o20240806, + "gpt-4o-2024-05-13" => ChatModel.Gpt4o20240513, + "gpt-4o-audio-preview" => ChatModel.Gpt4oAudioPreview, + "gpt-4o-audio-preview-2024-10-01" => ChatModel.Gpt4oAudioPreview20241001, + "gpt-4o-audio-preview-2024-12-17" => ChatModel.Gpt4oAudioPreview20241217, + "gpt-4o-audio-preview-2025-06-03" => ChatModel.Gpt4oAudioPreview20250603, + "gpt-4o-mini-audio-preview" => ChatModel.Gpt4oMiniAudioPreview, + "gpt-4o-mini-audio-preview-2024-12-17" => ChatModel.Gpt4oMiniAudioPreview20241217, + "gpt-4o-search-preview" => ChatModel.Gpt4oSearchPreview, + "gpt-4o-mini-search-preview" => ChatModel.Gpt4oMiniSearchPreview, + "gpt-4o-search-preview-2025-03-11" => ChatModel.Gpt4oSearchPreview20250311, + "gpt-4o-mini-search-preview-2025-03-11" => ChatModel.Gpt4oMiniSearchPreview20250311, + "chatgpt-4o-latest" => ChatModel.Chatgpt4oLatest, + "codex-mini-latest" => ChatModel.CodexMiniLatest, + "gpt-4o-mini" => ChatModel.Gpt4oMini, + "gpt-4o-mini-2024-07-18" => ChatModel.Gpt4oMini20240718, + "gpt-4-turbo" => ChatModel.Gpt4Turbo, + "gpt-4-turbo-2024-04-09" => ChatModel.Gpt4Turbo20240409, + "gpt-4-0125-preview" => ChatModel.Gpt40125Preview, + "gpt-4-turbo-preview" => ChatModel.Gpt4TurboPreview, + "gpt-4-1106-preview" => ChatModel.Gpt41106Preview, + "gpt-4-vision-preview" => ChatModel.Gpt4VisionPreview, + "gpt-4" => ChatModel.Gpt4, + "gpt-4-0314" => ChatModel.Gpt40314, + "gpt-4-0613" => ChatModel.Gpt40613, + "gpt-4-32k" => ChatModel.Gpt432k, + "gpt-4-32k-0314" => ChatModel.Gpt432k0314, + "gpt-4-32k-0613" => ChatModel.Gpt432k0613, + "gpt-3.5-turbo" => ChatModel.Gpt35Turbo, + "gpt-3.5-turbo-16k" => ChatModel.Gpt35Turbo16k, + "gpt-3.5-turbo-0301" => ChatModel.Gpt35Turbo0301, + "gpt-3.5-turbo-0613" => ChatModel.Gpt35Turbo0613, + "gpt-3.5-turbo-1106" => ChatModel.Gpt35Turbo1106, + "gpt-3.5-turbo-0125" => ChatModel.Gpt35Turbo0125, + "gpt-3.5-turbo-16k-0613" => ChatModel.Gpt35Turbo16k0613, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs index 6c91cc58..7f77602e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// - /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. /// public readonly partial struct ChunkingStrategyRequestParam : global::System.IEquatable { @@ -112,7 +112,7 @@ Auto as object /// public bool Validate() { - return IsAuto && !IsStatic || !IsAuto && IsStatic; + return IsAuto || IsStatic; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.Json.g.cs new file mode 100644 index 00000000..eacf128d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChunkingStrategyRequestParamDiscriminator + { + /// + /// 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::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? 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::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.g.cs new file mode 100644 index 00000000..93b851ba --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChunkingStrategyRequestParamDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 ChunkingStrategyRequestParamDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ChunkingStrategyRequestParamDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponse.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponse.Json.g.cs new file mode 100644 index 00000000..8ab8b506 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct ChunkingStrategyResponse + { + /// + /// 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::tryAGI.OpenAI.ChunkingStrategyResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChunkingStrategyResponse), + jsonSerializerContext) as global::tryAGI.OpenAI.ChunkingStrategyResponse?; + } + + /// + /// 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::tryAGI.OpenAI.ChunkingStrategyResponse? 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::tryAGI.OpenAI.ChunkingStrategyResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChunkingStrategyResponse?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponse.g.cs new file mode 100644 index 00000000..aa799aa8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponse.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The strategy used to chunk the file. + /// + public readonly partial struct ChunkingStrategyResponse : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? StaticParam { get; init; } +#else + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? StaticParam { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StaticParam))] +#endif + public bool IsStaticParam => StaticParam != null; + + /// + /// + /// + public static implicit operator ChunkingStrategyResponse(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam value) => new ChunkingStrategyResponse((global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam?(ChunkingStrategyResponse @this) => @this.StaticParam; + + /// + /// + /// + public ChunkingStrategyResponse(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? value) + { + StaticParam = value; + } + + /// + /// This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the `chunking_strategy` concept was introduced in the API. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? OtherParam { get; init; } +#else + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? OtherParam { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OtherParam))] +#endif + public bool IsOtherParam => OtherParam != null; + + /// + /// + /// + public static implicit operator ChunkingStrategyResponse(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam value) => new ChunkingStrategyResponse((global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam?(ChunkingStrategyResponse @this) => @this.OtherParam; + + /// + /// + /// + public ChunkingStrategyResponse(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? value) + { + OtherParam = value; + } + + /// + /// + /// + public ChunkingStrategyResponse( + global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? staticParam, + global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? otherParam + ) + { + StaticParam = staticParam; + OtherParam = otherParam; + } + + /// + /// + /// + public object? Object => + OtherParam as object ?? + StaticParam as object + ; + + /// + /// + /// + public override string? ToString() => + StaticParam?.ToString() ?? + OtherParam?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsStaticParam || IsOtherParam; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? staticParam = null, + global::System.Func? otherParam = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsStaticParam && staticParam != null) + { + return staticParam(StaticParam!); + } + else if (IsOtherParam && otherParam != null) + { + return otherParam(OtherParam!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? staticParam = null, + global::System.Action? otherParam = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsStaticParam) + { + staticParam?.Invoke(StaticParam!); + } + else if (IsOtherParam) + { + otherParam?.Invoke(OtherParam!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + StaticParam, + typeof(global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam), + OtherParam, + typeof(global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ChunkingStrategyResponse other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(StaticParam, other.StaticParam) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OtherParam, other.OtherParam) + ; + } + + /// + /// + /// + public static bool operator ==(ChunkingStrategyResponse obj1, ChunkingStrategyResponse obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ChunkingStrategyResponse obj1, ChunkingStrategyResponse obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ChunkingStrategyResponse o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponseDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponseDiscriminator.Json.g.cs new file mode 100644 index 00000000..123da0fb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponseDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChunkingStrategyResponseDiscriminator + { + /// + /// 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::tryAGI.OpenAI.ChunkingStrategyResponseDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChunkingStrategyResponseDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.ChunkingStrategyResponseDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.ChunkingStrategyResponseDiscriminator? 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::tryAGI.OpenAI.ChunkingStrategyResponseDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChunkingStrategyResponseDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponseDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponseDiscriminator.g.cs new file mode 100644 index 00000000..be8c3b0a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyResponseDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChunkingStrategyResponseDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 ChunkingStrategyResponseDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ChunkingStrategyResponseDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterTool.g.cs index e2dd4120..dcf02cfd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterTool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterTool.g.cs @@ -15,9 +15,9 @@ public sealed partial class CodeInterpreterTool /// specifies uploaded file IDs to make available to your code. /// [global::System.Text.Json.Serialization.JsonPropertyName("container")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Container { get; set; } + public required global::tryAGI.OpenAI.AnyOf Container { get; set; } /// /// The type of the code interpreter tool. Always `code_interpreter`. @@ -46,7 +46,7 @@ public sealed partial class CodeInterpreterTool [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CodeInterpreterTool( - global::tryAGI.OpenAI.OneOf container, + global::tryAGI.OpenAI.AnyOf container, global::tryAGI.OpenAI.CodeInterpreterToolType type) { this.Container = container; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCall.g.cs index 9fff3c44..69a14735 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCall.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -37,7 +35,7 @@ public sealed partial class CodeInterpreterToolCall /// [global::System.Text.Json.Serialization.JsonPropertyName("outputs")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList>? Outputs { get; set; } + public required global::System.Collections.Generic.IList? Outputs { get; set; } /// /// The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`. @@ -92,7 +90,7 @@ public CodeInterpreterToolCall( string? code, string containerId, string id, - global::System.Collections.Generic.IList>? outputs, + global::System.Collections.Generic.IList? outputs, global::tryAGI.OpenAI.CodeInterpreterToolCallStatus status, global::tryAGI.OpenAI.CodeInterpreterToolCallType type = global::tryAGI.OpenAI.CodeInterpreterToolCallType.CodeInterpreterCall) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputDiscriminator.Json.g.cs new file mode 100644 index 00000000..a0341595 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CodeInterpreterToolCallOutputDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CodeInterpreterToolCallOutputDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CodeInterpreterToolCallOutputDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CodeInterpreterToolCallOutputDiscriminator? 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::tryAGI.OpenAI.CodeInterpreterToolCallOutputDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CodeInterpreterToolCallOutputDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputDiscriminator.g.cs new file mode 100644 index 00000000..5fd0096a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CodeInterpreterToolCallOutputDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CodeInterpreterToolCallOutputDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CodeInterpreterToolCallOutputDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComparisonFilter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComparisonFilter.g.cs index dc0a7a6a..a877a196 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComparisonFilter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComparisonFilter.g.cs @@ -37,9 +37,9 @@ public sealed partial class ComparisonFilter /// The value to compare against the attribute key; supports string, number, or boolean types. /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Value { get; set; } + public required global::tryAGI.OpenAI.AnyOf Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -72,7 +72,7 @@ public sealed partial class ComparisonFilter public ComparisonFilter( string key, global::tryAGI.OpenAI.ComparisonFilterType type, - global::tryAGI.OpenAI.OneOf value) + global::tryAGI.OpenAI.AnyOf value) { this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key)); this.Type = type; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilter.g.cs index 64b0e9ef..aa964802 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilter.g.cs @@ -15,7 +15,7 @@ public sealed partial class CompoundFilter /// [global::System.Text.Json.Serialization.JsonPropertyName("filters")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Filters { get; set; } + public required global::System.Collections.Generic.IList> Filters { get; set; } /// /// Type of operation: `and` or `or`. @@ -44,7 +44,7 @@ public sealed partial class CompoundFilter [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CompoundFilter( - global::System.Collections.Generic.IList> filters, + global::System.Collections.Generic.IList> filters, global::tryAGI.OpenAI.CompoundFilterType type) { this.Filters = filters ?? throw new global::System.ArgumentNullException(nameof(filters)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs index 10472c12..25f9a962 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs @@ -385,7 +385,7 @@ Click as object /// public bool Validate() { - return IsClick && !IsDoubleClick && !IsDrag && !IsKeyPress && !IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && IsDoubleClick && !IsDrag && !IsKeyPress && !IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && IsDrag && !IsKeyPress && !IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && IsKeyPress && !IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeyPress && IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeyPress && !IsMove && IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeyPress && !IsMove && !IsScreenshot && IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeyPress && !IsMove && !IsScreenshot && !IsScroll && IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeyPress && !IsMove && !IsScreenshot && !IsScroll && !IsType && IsWait; + return IsClick || IsDoubleClick || IsDrag || IsKeyPress || IsMove || IsScreenshot || IsScroll || IsType || IsWait; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.Json.g.cs new file mode 100644 index 00000000..e728d0c4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ComputerActionDiscriminator + { + /// + /// 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::tryAGI.OpenAI.ComputerActionDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ComputerActionDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.ComputerActionDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.ComputerActionDiscriminator? 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::tryAGI.OpenAI.ComputerActionDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ComputerActionDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.g.cs new file mode 100644 index 00000000..531273f4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ComputerActionDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 ComputerActionDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ComputerActionDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCall.g.cs index cefd6efc..760a0416 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCall.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// A tool call to a computer use tool. See the
- /// [computer use guide](/docs/guides/tools-computer-use) for more information. + /// [computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information. ///
public sealed partial class ComputerToolCall { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerFileResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerFileResource.g.cs index 9c54ead0..488d0b3d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerFileResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerFileResource.g.cs @@ -41,8 +41,8 @@ public sealed partial class ContainerFileResource /// The type of this object (`container.file`). ///
[global::System.Text.Json.Serialization.JsonPropertyName("object")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Object { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileResourceObjectJsonConverter))] + public global::tryAGI.OpenAI.ContainerFileResourceObject Object { get; set; } /// /// Path of the file in the container. @@ -96,17 +96,17 @@ public ContainerFileResource( string containerId, global::System.DateTimeOffset createdAt, string id, - string @object, string path, - string source) + string source, + global::tryAGI.OpenAI.ContainerFileResourceObject @object) { this.Bytes = bytes; this.ContainerId = containerId ?? throw new global::System.ArgumentNullException(nameof(containerId)); this.CreatedAt = createdAt; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Object = @object ?? throw new global::System.ArgumentNullException(nameof(@object)); this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); this.Source = source ?? throw new global::System.ArgumentNullException(nameof(source)); + this.Object = @object; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionRequestChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerFileResourceObject.g.cs similarity index 54% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionRequestChunkingStrategy.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerFileResourceObject.g.cs index 794ea65e..35a92981 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionRequestChunkingStrategy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerFileResourceObject.g.cs @@ -4,41 +4,40 @@ namespace tryAGI.OpenAI { /// - /// Automatically set chunking parameters based on the audio. Must be set to `"auto"`.
- /// Default Value: [auto] + /// The type of this object (`container.file`). ///
- public enum CreateTranscriptionRequestChunkingStrategy + public enum ContainerFileResourceObject { /// /// /// - Auto, + ContainerFile, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class CreateTranscriptionRequestChunkingStrategyExtensions + public static class ContainerFileResourceObjectExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this CreateTranscriptionRequestChunkingStrategy value) + public static string ToValueString(this ContainerFileResourceObject value) { return value switch { - CreateTranscriptionRequestChunkingStrategy.Auto => "auto", + ContainerFileResourceObject.ContainerFile => "container.file", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static CreateTranscriptionRequestChunkingStrategy? ToEnum(string value) + public static ContainerFileResourceObject? ToEnum(string value) { return value switch { - "auto" => CreateTranscriptionRequestChunkingStrategy.Auto, + "container.file" => ContainerFileResourceObject.ContainerFile, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content6.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content6.g.cs index 0b1df48b..620c3751 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content6.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content6.g.cs @@ -112,7 +112,7 @@ InputContent as object ///
public bool Validate() { - return IsInputContent && !IsOutputContent || !IsInputContent && IsOutputContent; + return IsInputContent || IsOutputContent; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant2Item.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant2Item.Json.g.cs new file mode 100644 index 00000000..472b03d1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant2Item.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct ContentVariant2Item + { + /// + /// 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::tryAGI.OpenAI.ContentVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ContentVariant2Item), + jsonSerializerContext) as global::tryAGI.OpenAI.ContentVariant2Item?; + } + + /// + /// 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::tryAGI.OpenAI.ContentVariant2Item? 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::tryAGI.OpenAI.ContentVariant2Item), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ContentVariant2Item?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant2Item.g.cs new file mode 100644 index 00000000..52a23fc1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant2Item.g.cs @@ -0,0 +1,274 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct ContentVariant2Item : global::System.IEquatable + { + /// + /// References an image [File](https://platform.openai.com/docs/api-reference/files) in the content of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageContentImageFileObject? MessageImageFileObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageContentImageFileObject? MessageImageFileObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageImageFileObject))] +#endif + public bool IsMessageImageFileObject => MessageImageFileObject != null; + + /// + /// + /// + public static implicit operator ContentVariant2Item(global::tryAGI.OpenAI.MessageContentImageFileObject value) => new ContentVariant2Item((global::tryAGI.OpenAI.MessageContentImageFileObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageContentImageFileObject?(ContentVariant2Item @this) => @this.MessageImageFileObject; + + /// + /// + /// + public ContentVariant2Item(global::tryAGI.OpenAI.MessageContentImageFileObject? value) + { + MessageImageFileObject = value; + } + + /// + /// References an image URL in the content of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageContentImageUrlObject? MessageImageUrlObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageContentImageUrlObject? MessageImageUrlObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageImageUrlObject))] +#endif + public bool IsMessageImageUrlObject => MessageImageUrlObject != null; + + /// + /// + /// + public static implicit operator ContentVariant2Item(global::tryAGI.OpenAI.MessageContentImageUrlObject value) => new ContentVariant2Item((global::tryAGI.OpenAI.MessageContentImageUrlObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageContentImageUrlObject?(ContentVariant2Item @this) => @this.MessageImageUrlObject; + + /// + /// + /// + public ContentVariant2Item(global::tryAGI.OpenAI.MessageContentImageUrlObject? value) + { + MessageImageUrlObject = value; + } + + /// + /// The text content that is part of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageRequestContentTextObject? MessageRequestTextObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageRequestContentTextObject? MessageRequestTextObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageRequestTextObject))] +#endif + public bool IsMessageRequestTextObject => MessageRequestTextObject != null; + + /// + /// + /// + public static implicit operator ContentVariant2Item(global::tryAGI.OpenAI.MessageRequestContentTextObject value) => new ContentVariant2Item((global::tryAGI.OpenAI.MessageRequestContentTextObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageRequestContentTextObject?(ContentVariant2Item @this) => @this.MessageRequestTextObject; + + /// + /// + /// + public ContentVariant2Item(global::tryAGI.OpenAI.MessageRequestContentTextObject? value) + { + MessageRequestTextObject = value; + } + + /// + /// + /// + public ContentVariant2Item( + global::tryAGI.OpenAI.MessageContentImageFileObject? messageImageFileObject, + global::tryAGI.OpenAI.MessageContentImageUrlObject? messageImageUrlObject, + global::tryAGI.OpenAI.MessageRequestContentTextObject? messageRequestTextObject + ) + { + MessageImageFileObject = messageImageFileObject; + MessageImageUrlObject = messageImageUrlObject; + MessageRequestTextObject = messageRequestTextObject; + } + + /// + /// + /// + public object? Object => + MessageRequestTextObject as object ?? + MessageImageUrlObject as object ?? + MessageImageFileObject as object + ; + + /// + /// + /// + public override string? ToString() => + MessageImageFileObject?.ToString() ?? + MessageImageUrlObject?.ToString() ?? + MessageRequestTextObject?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsMessageImageFileObject || IsMessageImageUrlObject || IsMessageRequestTextObject; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? messageImageFileObject = null, + global::System.Func? messageImageUrlObject = null, + global::System.Func? messageRequestTextObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageImageFileObject && messageImageFileObject != null) + { + return messageImageFileObject(MessageImageFileObject!); + } + else if (IsMessageImageUrlObject && messageImageUrlObject != null) + { + return messageImageUrlObject(MessageImageUrlObject!); + } + else if (IsMessageRequestTextObject && messageRequestTextObject != null) + { + return messageRequestTextObject(MessageRequestTextObject!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? messageImageFileObject = null, + global::System.Action? messageImageUrlObject = null, + global::System.Action? messageRequestTextObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageImageFileObject) + { + messageImageFileObject?.Invoke(MessageImageFileObject!); + } + else if (IsMessageImageUrlObject) + { + messageImageUrlObject?.Invoke(MessageImageUrlObject!); + } + else if (IsMessageRequestTextObject) + { + messageRequestTextObject?.Invoke(MessageRequestTextObject!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + MessageImageFileObject, + typeof(global::tryAGI.OpenAI.MessageContentImageFileObject), + MessageImageUrlObject, + typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject), + MessageRequestTextObject, + typeof(global::tryAGI.OpenAI.MessageRequestContentTextObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ContentVariant2Item other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageImageFileObject, other.MessageImageFileObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageImageUrlObject, other.MessageImageUrlObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageRequestTextObject, other.MessageRequestTextObject) + ; + } + + /// + /// + /// + public static bool operator ==(ContentVariant2Item obj1, ContentVariant2Item obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ContentVariant2Item obj1, ContentVariant2Item obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ContentVariant2Item o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequest.g.cs index fdda6968..8a499463 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequest.g.cs @@ -33,7 +33,7 @@ public sealed partial class CreateAssistantRequest public global::System.Collections.Generic.Dictionary? Metadata { get; set; } /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.
+ /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.
/// Example: gpt-4o ///
/// gpt-4o @@ -62,8 +62,8 @@ public sealed partial class CreateAssistantRequest public global::tryAGI.OpenAI.ReasoningEffort? ReasoningEffort { get; set; } /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. ///
@@ -90,7 +90,7 @@ public sealed partial class CreateAssistantRequest /// A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList>? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
@@ -125,7 +125,7 @@ public sealed partial class CreateAssistantRequest /// with a maximum length of 512 characters. /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.
+ /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.
/// Example: gpt-4o /// /// @@ -141,8 +141,8 @@ public sealed partial class CreateAssistantRequest /// Default Value: medium /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -176,7 +176,7 @@ public CreateAssistantRequest( global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat, double? temperature, global::tryAGI.OpenAI.CreateAssistantRequestToolResources? toolResources, - global::System.Collections.Generic.IList>? tools, + global::System.Collections.Generic.IList? tools, double? topP) { this.Model = model; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesCodeInterpreter.g.cs index e7d8f555..4b51492d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesCodeInterpreter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesCodeInterpreter.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class CreateAssistantRequestToolResourcesCodeInterpreter { /// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class CreateAssistantRequestToolResourcesCodeInterpreter /// Initializes a new instance of the class. ///
/// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearch.g.cs index 798f391b..7940c893 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearch.g.cs @@ -9,13 +9,13 @@ namespace tryAGI.OpenAI public sealed partial class CreateAssistantRequestToolResourcesFileSearch { /// - /// The [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_ids")] public global::System.Collections.Generic.IList? VectorStoreIds { get; set; } /// - /// A helper to create a [vector store](/docs/api-reference/vector-stores/object) with file_ids and attach it to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// A helper to create a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) with file_ids and attach it to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_stores")] public global::System.Collections.Generic.IList? VectorStores { get; set; } @@ -30,10 +30,10 @@ public sealed partial class CreateAssistantRequestToolResourcesFileSearch /// Initializes a new instance of the class. ///
/// - /// The [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// /// - /// A helper to create a [vector store](/docs/api-reference/vector-stores/object) with file_ids and attach it to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// A helper to create a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) with file_ids and attach it to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStore.g.cs index 06d1ccf0..eb0f6e9c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStore.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,11 +12,11 @@ public sealed partial class CreateAssistantRequestToolResourcesFileSearchVectorS /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. ///
[global::System.Text.Json.Serialization.JsonPropertyName("chunking_strategy")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? ChunkingStrategy { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyJsonConverter))] + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy? ChunkingStrategy { get; set; } /// - /// A list of [file](/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -46,7 +44,7 @@ public sealed partial class CreateAssistantRequestToolResourcesFileSearchVectorS /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. /// /// - /// A list of [file](/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -59,7 +57,7 @@ public sealed partial class CreateAssistantRequestToolResourcesFileSearchVectorS [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateAssistantRequestToolResourcesFileSearchVectorStore( - global::tryAGI.OpenAI.OneOf? chunkingStrategy, + global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy? chunkingStrategy, global::System.Collections.Generic.IList? fileIds, global::System.Collections.Generic.Dictionary? metadata) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.Json.g.cs new file mode 100644 index 00000000..cc7e5944 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy + { + /// + /// 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::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy?; + } + + /// + /// 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::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy? 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::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs new file mode 100644 index 00000000..758ae6d5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// + public readonly partial struct CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy : global::System.IEquatable + { + /// + /// The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Value1 { get; init; } +#else + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// + public static implicit operator CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1 value) => new CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy((global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1?(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Value1; + + /// + /// + /// + public CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value) + { + Value1 = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Value2 { get; init; } +#else + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// + public static implicit operator CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2 value) => new CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy((global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2?(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Value2; + + /// + /// + /// + public CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value) + { + Value2 = value; + } + + /// + /// + /// + public CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy( + global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value1, + global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value2 + ) + { + Value1 = value1; + Value2 = value2; + } + + /// + /// + /// + public object? Object => + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public override string? ToString() => + Value1?.ToString() ?? + Value2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 || IsValue2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), + Value2, + typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + ; + } + + /// + /// + /// + public static bool operator ==(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy obj1, CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy obj1, CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.Json.g.cs new file mode 100644 index 00000000..ec798b62 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? 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::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.g.cs new file mode 100644 index 00000000..579c11a2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateBatchRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateBatchRequest.g.cs index 300f47a6..f16a25e5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateBatchRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateBatchRequest.g.cs @@ -25,8 +25,8 @@ public sealed partial class CreateBatchRequest /// /// The ID of an uploaded file that contains requests for the new batch.
- /// See [upload file](/docs/api-reference/files/create) for how to upload a file.
- /// Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size. + /// See [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.
+ /// Your input file must be formatted as a [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size. ///
[global::System.Text.Json.Serialization.JsonPropertyName("input_file_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -59,8 +59,8 @@ public sealed partial class CreateBatchRequest /// /// /// The ID of an uploaded file that contains requests for the new batch.
- /// See [upload file](/docs/api-reference/files/create) for how to upload a file.
- /// Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size. + /// See [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.
+ /// Your input file must be formatted as a [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2.g.cs index 30f7b839..9fb27bb0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2.g.cs @@ -12,7 +12,7 @@ public sealed partial class CreateChatCompletionRequestVariant2 { /// /// Parameters for audio output. Required when audio output is requested with
- /// `modalities: ["audio"]`. [Learn more](/docs/guides/audio). + /// `modalities: ["audio"]`. [Learn more](https://platform.openai.com/docs/guides/audio). ///
[global::System.Text.Json.Serialization.JsonPropertyName("audio")] public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Audio { get; set; } @@ -39,8 +39,8 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// if functions are present. ///
[global::System.Text.Json.Serialization.JsonPropertyName("function_call")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? FunctionCall { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? FunctionCall { get; set; } /// /// Deprecated in favor of `tools`.
@@ -72,7 +72,7 @@ public sealed partial class CreateChatCompletionRequestVariant2 public bool? Logprobs { get; set; } /// - /// An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](/docs/guides/reasoning). + /// An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). /// [global::System.Text.Json.Serialization.JsonPropertyName("max_completion_tokens")] public int? MaxCompletionTokens { get; set; } @@ -82,7 +82,7 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// chat completion. This value can be used to control
/// [costs](https://openai.com/api/pricing/) for text generated via API.
/// This value is now deprecated in favor of `max_completion_tokens`, and is
- /// not compatible with [o-series models](/docs/guides/reasoning). + /// not compatible with [o-series models](https://platform.openai.com/docs/guides/reasoning). ///
[global::System.Text.Json.Serialization.JsonPropertyName("max_tokens")] [global::System.Obsolete("This property marked as deprecated.")] @@ -90,9 +90,9 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// /// A list of messages comprising the conversation so far. Depending on the
- /// [model](/docs/models) you use, different message types (modalities) are
- /// supported, like [text](/docs/guides/text-generation),
- /// [images](/docs/guides/vision), and [audio](/docs/guides/audio). + /// [model](https://platform.openai.com/docs/models) you use, different message types (modalities) are
+ /// supported, like [text](https://platform.openai.com/docs/guides/text-generation),
+ /// [images](https://platform.openai.com/docs/guides/vision), and [audio](https://platform.openai.com/docs/guides/audio). ///
[global::System.Text.Json.Serialization.JsonPropertyName("messages")] [global::System.Text.Json.Serialization.JsonRequired] @@ -103,7 +103,7 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// Most models are capable of generating text, which is the default:
/// `["text"]`
/// The `gpt-4o-audio-preview` model can also be used to
- /// [generate audio](/docs/guides/audio). To request that this model generate
+ /// [generate audio](https://platform.openai.com/docs/guides/audio). To request that this model generate
/// both text and audio responses, you can use:
/// `["text", "audio"]` ///
@@ -129,13 +129,13 @@ public sealed partial class CreateChatCompletionRequestVariant2 public int? N { get; set; } /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// [global::System.Text.Json.Serialization.JsonPropertyName("parallel_tool_calls")] public bool? ParallelToolCalls { get; set; } /// - /// Configuration for a [Predicted Output](/docs/guides/predicted-outputs),
+ /// Configuration for a [Predicted Output](https://platform.openai.com/docs/guides/predicted-outputs),
/// which can greatly improve response times when large parts of the model
/// response are known ahead of time. This is most common when you are
/// regenerating a file with only minor changes to most of the content. @@ -170,14 +170,14 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables
/// Structured Outputs which ensures the model will match your supplied JSON
/// schema. Learn more in the [Structured Outputs
- /// guide](/docs/guides/structured-outputs).
+ /// guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which
/// ensures the message the model generates is valid JSON. Using `json_schema`
/// is preferred for models that support it. ///
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? ResponseFormat { get; set; } /// /// This feature is in Beta.
@@ -198,8 +198,8 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// /// Whether or not to store the output of this chat completion request for
- /// use in our [model distillation](/docs/guides/distillation) or
- /// [evals](/docs/guides/evals) products.
+ /// use in our [model distillation](https://platform.openai.com/docs/guides/distillation) or
+ /// [evals](https://platform.openai.com/docs/guides/evals) products.
/// Supports text and image inputs. Note: image inputs over 10MB will be dropped.
/// Default Value: false ///
@@ -209,8 +209,8 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// /// If set to true, the model response data will be streamed to the client
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
- /// See the [Streaming section below](/docs/api-reference/chat/streaming)
- /// for more information, along with the [streaming responses](/docs/guides/streaming-responses)
+ /// See the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming)
+ /// for more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses)
/// guide for more information on how to handle the streaming events.
/// Default Value: false ///
@@ -251,7 +251,7 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// /// This tool searches the web for relevant results to use in a response.
- /// Learn more about the [web search tool](/docs/guides/tools-web-search?api-mode=chat). + /// Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). ///
[global::System.Text.Json.Serialization.JsonPropertyName("web_search_options")] public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? WebSearchOptions { get; set; } @@ -267,7 +267,7 @@ public sealed partial class CreateChatCompletionRequestVariant2 ///
/// /// Parameters for audio output. Required when audio output is requested with
- /// `modalities: ["audio"]`. [Learn more](/docs/guides/audio). + /// `modalities: ["audio"]`. [Learn more](https://platform.openai.com/docs/guides/audio). /// /// /// Number between -2.0 and 2.0. Positive values penalize new tokens based on
@@ -291,20 +291,20 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// Default Value: false /// /// - /// An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](/docs/guides/reasoning). + /// An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). /// /// /// A list of messages comprising the conversation so far. Depending on the
- /// [model](/docs/models) you use, different message types (modalities) are
- /// supported, like [text](/docs/guides/text-generation),
- /// [images](/docs/guides/vision), and [audio](/docs/guides/audio). + /// [model](https://platform.openai.com/docs/models) you use, different message types (modalities) are
+ /// supported, like [text](https://platform.openai.com/docs/guides/text-generation),
+ /// [images](https://platform.openai.com/docs/guides/vision), and [audio](https://platform.openai.com/docs/guides/audio). /// /// /// Output types that you would like the model to generate.
/// Most models are capable of generating text, which is the default:
/// `["text"]`
/// The `gpt-4o-audio-preview` model can also be used to
- /// [generate audio](/docs/guides/audio). To request that this model generate
+ /// [generate audio](https://platform.openai.com/docs/guides/audio). To request that this model generate
/// both text and audio responses, you can use:
/// `["text", "audio"]` /// @@ -317,10 +317,10 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// Example: 1 /// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// - /// Configuration for a [Predicted Output](/docs/guides/predicted-outputs),
+ /// Configuration for a [Predicted Output](https://platform.openai.com/docs/guides/predicted-outputs),
/// which can greatly improve response times when large parts of the model
/// response are known ahead of time. This is most common when you are
/// regenerating a file with only minor changes to most of the content. @@ -345,7 +345,7 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables
/// Structured Outputs which ensures the model will match your supplied JSON
/// schema. Learn more in the [Structured Outputs
- /// guide](/docs/guides/structured-outputs).
+ /// guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which
/// ensures the message the model generates is valid JSON. Using `json_schema`
/// is preferred for models that support it. @@ -362,16 +362,16 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// /// /// Whether or not to store the output of this chat completion request for
- /// use in our [model distillation](/docs/guides/distillation) or
- /// [evals](/docs/guides/evals) products.
+ /// use in our [model distillation](https://platform.openai.com/docs/guides/distillation) or
+ /// [evals](https://platform.openai.com/docs/guides/evals) products.
/// Supports text and image inputs. Note: image inputs over 10MB will be dropped.
/// Default Value: false /// /// /// If set to true, the model response data will be streamed to the client
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
- /// See the [Streaming section below](/docs/api-reference/chat/streaming)
- /// for more information, along with the [streaming responses](/docs/guides/streaming-responses)
+ /// See the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming)
+ /// for more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses)
/// guide for more information on how to handle the streaming events.
/// Default Value: false /// @@ -396,7 +396,7 @@ public sealed partial class CreateChatCompletionRequestVariant2 /// /// /// This tool searches the web for relevant results to use in a response.
- /// Learn more about the [web search tool](/docs/guides/tools-web-search?api-mode=chat). + /// Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -415,7 +415,7 @@ public CreateChatCompletionRequestVariant2( global::tryAGI.OpenAI.PredictionContent? prediction, double? presencePenalty, global::tryAGI.OpenAI.ReasoningEffort? reasoningEffort, - global::tryAGI.OpenAI.OneOf? responseFormat, + global::tryAGI.OpenAI.AnyOf? responseFormat, int? seed, global::tryAGI.OpenAI.StopConfiguration? stop, bool? store, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2Audio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2Audio.g.cs index 83f8fc2b..73ffe66a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2Audio.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2Audio.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// Parameters for audio output. Required when audio output is requested with
- /// `modalities: ["audio"]`. [Learn more](/docs/guides/audio). + /// `modalities: ["audio"]`. [Learn more](https://platform.openai.com/docs/guides/audio). ///
public sealed partial class CreateChatCompletionRequestVariant2Audio { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2PredictionDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2PredictionDiscriminator.Json.g.cs new file mode 100644 index 00000000..711827bd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2PredictionDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateChatCompletionRequestVariant2PredictionDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator? 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::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2PredictionDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2PredictionDiscriminator.g.cs new file mode 100644 index 00000000..ee93bb1e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2PredictionDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateChatCompletionRequestVariant2PredictionDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateChatCompletionRequestVariant2PredictionDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateChatCompletionRequestVariant2PredictionDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2WebSearchOptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2WebSearchOptions.g.cs index 930b56d6..069d2329 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2WebSearchOptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2WebSearchOptions.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// This tool searches the web for relevant results to use in a response.
- /// Learn more about the [web search tool](/docs/guides/tools-web-search?api-mode=chat). + /// Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). ///
public sealed partial class CreateChatCompletionRequestVariant2WebSearchOptions { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionResponse.g.cs index 59101d16..92428382 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionResponse.g.cs @@ -48,7 +48,7 @@ public sealed partial class CreateChatCompletionResponse /// Specifies the processing type used for serving the request.
/// - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
/// - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
- /// - If set to '[flex](/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
+ /// - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
/// - When not set, the default behavior is 'auto'.
/// When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
/// Default Value: auto @@ -98,7 +98,7 @@ public sealed partial class CreateChatCompletionResponse /// Specifies the processing type used for serving the request.
/// - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
/// - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
- /// - If set to '[flex](/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
+ /// - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
/// - When not set, the default behavior is 'auto'.
/// When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
/// Default Value: auto diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionStreamResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionStreamResponse.g.cs index fa703732..1341e705 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionStreamResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionStreamResponse.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Represents a streamed chunk of a chat completion response returned
/// by the model, based on the provided input.
- /// [Learn more](/docs/guides/streaming-responses). + /// [Learn more](https://platform.openai.com/docs/guides/streaming-responses). ///
public sealed partial class CreateChatCompletionStreamResponse { @@ -51,7 +51,7 @@ public sealed partial class CreateChatCompletionStreamResponse /// Specifies the processing type used for serving the request.
/// - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
/// - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
- /// - If set to '[flex](/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
+ /// - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
/// - When not set, the default behavior is 'auto'.
/// When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
/// Default Value: auto @@ -102,7 +102,7 @@ public sealed partial class CreateChatCompletionStreamResponse /// Specifies the processing type used for serving the request.
/// - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
/// - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
- /// - If set to '[flex](/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
+ /// - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
/// - When not set, the default behavior is 'auto'.
/// When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
/// Default Value: auto diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateCompletionRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateCompletionRequest.g.cs index 9c2084dd..bf6bf538 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateCompletionRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateCompletionRequest.g.cs @@ -28,7 +28,7 @@ public sealed partial class CreateCompletionRequest /// /// Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
- /// [See more information about frequency and presence penalties.](/docs/guides/text-generation)
+ /// [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
/// Default Value: 0 ///
[global::System.Text.Json.Serialization.JsonPropertyName("frequency_penalty")] @@ -60,7 +60,7 @@ public sealed partial class CreateCompletionRequest public int? MaxTokens { get; set; } /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] @@ -79,7 +79,7 @@ public sealed partial class CreateCompletionRequest /// /// Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
- /// [See more information about frequency and presence penalties.](/docs/guides/text-generation)
+ /// [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
/// Default Value: 0 ///
[global::System.Text.Json.Serialization.JsonPropertyName("presence_penalty")] @@ -87,13 +87,12 @@ public sealed partial class CreateCompletionRequest /// /// The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
- /// Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
- /// Default Value: <|endoftext|> + /// Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document. ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Prompt { get; set; } + public required global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Prompt { get; set; } /// /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.
@@ -154,7 +153,7 @@ public sealed partial class CreateCompletionRequest public double? TopP { get; set; } /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 ///
/// user-1234 @@ -182,7 +181,7 @@ public sealed partial class CreateCompletionRequest /// /// /// Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
- /// [See more information about frequency and presence penalties.](/docs/guides/text-generation)
+ /// [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
/// Default Value: 0 /// /// @@ -201,7 +200,7 @@ public sealed partial class CreateCompletionRequest /// Example: 16 /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// /// /// How many completions to generate for each prompt.
@@ -211,13 +210,12 @@ public sealed partial class CreateCompletionRequest /// /// /// Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
- /// [See more information about frequency and presence penalties.](/docs/guides/text-generation)
+ /// [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
/// Default Value: 0 /// /// /// The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
- /// Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
- /// Default Value: <|endoftext|> + /// Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document. /// /// /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.
@@ -253,7 +251,7 @@ public sealed partial class CreateCompletionRequest /// Example: 1 /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// #if NET7_0_OR_GREATER @@ -261,7 +259,7 @@ public sealed partial class CreateCompletionRequest #endif public CreateCompletionRequest( global::tryAGI.OpenAI.AnyOf model, - global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? prompt, + global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? prompt, int? bestOf, bool? echo, double? frequencyPenalty, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEmbeddingRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEmbeddingRequest.g.cs index 53c1751f..eed5bd9a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEmbeddingRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEmbeddingRequest.g.cs @@ -32,12 +32,12 @@ public sealed partial class CreateEmbeddingRequest ///
/// The quick brown fox jumped over the lazy dog [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>> Input { get; set; } + public required global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>> Input { get; set; } /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.
+ /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.
/// Example: text-embedding-3-small ///
/// text-embedding-3-small @@ -47,7 +47,7 @@ public sealed partial class CreateEmbeddingRequest public required global::tryAGI.OpenAI.AnyOf Model { get; set; } /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 ///
/// user-1234 @@ -76,18 +76,18 @@ public sealed partial class CreateEmbeddingRequest /// Example: The quick brown fox jumped over the lazy dog /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.
+ /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.
/// Example: text-embedding-3-small /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEmbeddingRequest( - global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>> input, + global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>> input, global::tryAGI.OpenAI.AnyOf model, int? dimensions, global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? encodingFormat, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSource.g.cs index a52b8b15..0c499ff1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSource.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,8 +12,8 @@ public sealed partial class CreateEvalCompletionsRunDataSource /// Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace. /// [global::System.Text.Json.Serialization.JsonPropertyName("input_messages")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? InputMessages { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.InputMessagesJsonConverter))] + public global::tryAGI.OpenAI.InputMessages? InputMessages { get; set; } /// /// The name of the model to use for generating completions (e.g. "o3-mini"). @@ -33,9 +31,9 @@ public sealed partial class CreateEvalCompletionsRunDataSource /// Determines what populates the `item` namespace in this run's data source. /// [global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.SourceJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Source { get; set; } + public required global::tryAGI.OpenAI.Source Source { get; set; } /// /// The type of run data source. Always `completions`.
@@ -73,8 +71,8 @@ public sealed partial class CreateEvalCompletionsRunDataSource [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEvalCompletionsRunDataSource( - global::tryAGI.OpenAI.OneOf source, - global::tryAGI.OpenAI.OneOf? inputMessages, + global::tryAGI.OpenAI.Source source, + global::tryAGI.OpenAI.InputMessages? inputMessages, string? model, global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? samplingParams, global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType type = global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType.Completions) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator.Json.g.cs new file mode 100644 index 00000000..b241a879 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator? 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::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator.g.cs new file mode 100644 index 00000000..76247559 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateEvalCompletionsRunDataSourceInputMessagesDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1.g.cs index 41741ef1..75ad1c59 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -15,7 +13,7 @@ public sealed partial class CreateEvalCompletionsRunDataSourceInputMessagesVaria ///
[global::System.Text.Json.Serialization.JsonPropertyName("template")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Template { get; set; } + public required global::System.Collections.Generic.IList Template { get; set; } /// /// The type of input messages. Always `template`. @@ -43,7 +41,7 @@ public sealed partial class CreateEvalCompletionsRunDataSourceInputMessagesVaria [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEvalCompletionsRunDataSourceInputMessagesVariant1( - global::System.Collections.Generic.IList> template, + global::System.Collections.Generic.IList template, global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1Type type) { this.Template = template ?? throw new global::System.ArgumentNullException(nameof(template)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator.Json.g.cs new file mode 100644 index 00000000..4b26dbad --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator? 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::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator.g.cs new file mode 100644 index 00000000..60d06840 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateEvalCompletionsRunDataSourceInputMessagesVariant1TemplateItemDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSamplingParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSamplingParams.g.cs index 66a05edb..700f594b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSamplingParams.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSamplingParams.g.cs @@ -21,14 +21,14 @@ public sealed partial class CreateEvalCompletionsRunDataSourceSamplingParams /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables
/// Structured Outputs which ensures the model will match your supplied JSON
/// schema. Learn more in the [Structured Outputs
- /// guide](/docs/guides/structured-outputs).
+ /// guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which
/// ensures the message the model generates is valid JSON. Using `json_schema`
/// is preferred for models that support it. ///
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? ResponseFormat { get; set; } /// /// A seed value to initialize the randomness, during sampling.
@@ -74,7 +74,7 @@ public sealed partial class CreateEvalCompletionsRunDataSourceSamplingParams /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables
/// Structured Outputs which ensures the model will match your supplied JSON
/// schema. Learn more in the [Structured Outputs
- /// guide](/docs/guides/structured-outputs).
+ /// guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which
/// ensures the message the model generates is valid JSON. Using `json_schema`
/// is preferred for models that support it. @@ -99,7 +99,7 @@ public sealed partial class CreateEvalCompletionsRunDataSourceSamplingParams #endif public CreateEvalCompletionsRunDataSourceSamplingParams( int? maxCompletionTokens, - global::tryAGI.OpenAI.OneOf? responseFormat, + global::tryAGI.OpenAI.AnyOf? responseFormat, int? seed, double? temperature, global::System.Collections.Generic.IList? tools, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSourceDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSourceDiscriminator.Json.g.cs new file mode 100644 index 00000000..2af75943 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSourceDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateEvalCompletionsRunDataSourceSourceDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSourceDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSourceDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSourceDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSourceDiscriminator? 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::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSourceDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSourceDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSourceDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSourceDiscriminator.g.cs new file mode 100644 index 00000000..49dc8c6b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCompletionsRunDataSourceSourceDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateEvalCompletionsRunDataSourceSourceDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateEvalCompletionsRunDataSourceSourceDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateEvalCompletionsRunDataSourceSourceDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCustomDataSourceConfig.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCustomDataSourceConfig.g.cs index 5508dc55..0731cb79 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCustomDataSourceConfig.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCustomDataSourceConfig.g.cs @@ -19,26 +19,8 @@ public sealed partial class CreateEvalCustomDataSourceConfig public bool? IncludeSampleSchema { get; set; } /// - /// The json schema for each row in the data source.
- /// Example: {
- /// "type": "object",
- /// "properties": {
- /// "name": {"type": "string"},
- /// "age": {"type": "integer"}
- /// },
- /// "required": ["name", "age"]
- /// } + /// The json schema for each row in the data source. ///
- /// - /// {
- /// "type": "object",
- /// "properties": {
- /// "name": {"type": "string"},
- /// "age": {"type": "integer"}
- /// },
- /// "required": ["name", "age"]
- /// } - ///
[global::System.Text.Json.Serialization.JsonPropertyName("item_schema")] [global::System.Text.Json.Serialization.JsonRequired] public required object ItemSchema { get; set; } @@ -66,15 +48,7 @@ public sealed partial class CreateEvalCustomDataSourceConfig /// Default Value: false /// /// - /// The json schema for each row in the data source.
- /// Example: {
- /// "type": "object",
- /// "properties": {
- /// "name": {"type": "string"},
- /// "age": {"type": "integer"}
- /// },
- /// "required": ["name", "age"]
- /// } + /// The json schema for each row in the data source. /// /// /// The type of data source. Always `custom`.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCustomDataSourceConfigItemSchema.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCustomDataSourceConfigItemSchema.g.cs index 3d20991f..aaee2858 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCustomDataSourceConfigItemSchema.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalCustomDataSourceConfigItemSchema.g.cs @@ -4,15 +4,7 @@ namespace tryAGI.OpenAI { /// - /// The json schema for each row in the data source.
- /// Example: {
- /// "type": "object",
- /// "properties": {
- /// "name": {"type": "string"},
- /// "age": {"type": "integer"}
- /// },
- /// "required": ["name", "age"]
- /// } + /// The json schema for each row in the data source. ///
public sealed partial class CreateEvalCustomDataSourceConfigItemSchema { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs index 64c3e921..4501b472 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs @@ -116,7 +116,7 @@ Value1 as object ///
public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsValue1 || IsValue2; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSource.g.cs index 461a14c6..7ddc1db7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSource.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,9 +12,9 @@ public sealed partial class CreateEvalJsonlRunDataSource /// Determines what populates the `item` namespace in the data source. /// [global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.Source2JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Source { get; set; } + public required global::tryAGI.OpenAI.Source2 Source { get; set; } /// /// The type of data source. Always `jsonl`.
@@ -47,7 +45,7 @@ public sealed partial class CreateEvalJsonlRunDataSource [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEvalJsonlRunDataSource( - global::tryAGI.OpenAI.OneOf source, + global::tryAGI.OpenAI.Source2 source, global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType type = global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType.Jsonl) { this.Source = source; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSourceSourceDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSourceSourceDiscriminator.Json.g.cs new file mode 100644 index 00000000..9af2f49c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSourceSourceDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateEvalJsonlRunDataSourceSourceDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceSourceDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceSourceDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceSourceDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceSourceDiscriminator? 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::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceSourceDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceSourceDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSourceSourceDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSourceSourceDiscriminator.g.cs new file mode 100644 index 00000000..deb7d7f1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalJsonlRunDataSourceSourceDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateEvalJsonlRunDataSourceSourceDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateEvalJsonlRunDataSourceSourceDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateEvalJsonlRunDataSourceSourceDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalLogsDataSourceConfig.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalLogsDataSourceConfig.g.cs index 323f7f50..691f8964 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalLogsDataSourceConfig.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalLogsDataSourceConfig.g.cs @@ -10,16 +10,8 @@ namespace tryAGI.OpenAI public sealed partial class CreateEvalLogsDataSourceConfig { /// - /// Metadata filters for the logs data source.
- /// Example: {
- /// "use_case": "customer_support_agent"
- /// } + /// Metadata filters for the logs data source. ///
- /// - /// {
- /// "use_case": "customer_support_agent"
- /// } - ///
[global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public object? Metadata { get; set; } @@ -42,10 +34,7 @@ public sealed partial class CreateEvalLogsDataSourceConfig /// Initializes a new instance of the class. ///
/// - /// Metadata filters for the logs data source.
- /// Example: {
- /// "use_case": "customer_support_agent"
- /// } + /// Metadata filters for the logs data source. /// /// /// The type of data source. Always `logs`.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalLogsDataSourceConfigMetadata.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalLogsDataSourceConfigMetadata.g.cs index cbd344a6..44302ee2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalLogsDataSourceConfigMetadata.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalLogsDataSourceConfigMetadata.g.cs @@ -4,10 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Metadata filters for the logs data source.
- /// Example: {
- /// "use_case": "customer_support_agent"
- /// } + /// Metadata filters for the logs data source. ///
public sealed partial class CreateEvalLogsDataSourceConfigMetadata { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequest.g.cs index 64dfc8b4..a07afe8e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequest.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,9 +12,9 @@ public sealed partial class CreateEvalRequest /// The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation. /// [global::System.Text.Json.Serialization.JsonPropertyName("data_source_config")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalRequestDataSourceConfigJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf DataSourceConfig { get; set; } + public required global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig DataSourceConfig { get; set; } /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -39,7 +37,7 @@ public sealed partial class CreateEvalRequest ///
[global::System.Text.Json.Serialization.JsonPropertyName("testing_criteria")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> TestingCriteria { get; set; } + public required global::System.Collections.Generic.IList TestingCriteria { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -70,8 +68,8 @@ public sealed partial class CreateEvalRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEvalRequest( - global::tryAGI.OpenAI.OneOf dataSourceConfig, - global::System.Collections.Generic.IList> testingCriteria, + global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig dataSourceConfig, + global::System.Collections.Generic.IList testingCriteria, global::System.Collections.Generic.Dictionary? metadata, string? name) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfig.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfig.Json.g.cs new file mode 100644 index 00000000..963c2a8d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct CreateEvalRequestDataSourceConfig + { + /// + /// 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::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig?; + } + + /// + /// 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::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig? 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::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfig?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfig.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfig.g.cs new file mode 100644 index 00000000..2f8031c5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfig.g.cs @@ -0,0 +1,278 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation. + /// + public readonly partial struct CreateEvalRequestDataSourceConfig : global::System.IEquatable + { + /// + /// A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs.
+ /// This schema is used to define the shape of the data that will be:
+ /// - Used to define your testing criteria and
+ /// - What data is required when creating a run + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Custom { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public static implicit operator CreateEvalRequestDataSourceConfig(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig value) => new CreateEvalRequestDataSourceConfig((global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig?(CreateEvalRequestDataSourceConfig @this) => @this.Custom; + + /// + /// + /// + public CreateEvalRequestDataSourceConfig(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? value) + { + Custom = value; + } + + /// + /// A data source config which specifies the metadata property of your logs query.
+ /// This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Logs { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Logs { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Logs))] +#endif + public bool IsLogs => Logs != null; + + /// + /// + /// + public static implicit operator CreateEvalRequestDataSourceConfig(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig value) => new CreateEvalRequestDataSourceConfig((global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig?(CreateEvalRequestDataSourceConfig @this) => @this.Logs; + + /// + /// + /// + public CreateEvalRequestDataSourceConfig(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? value) + { + Logs = value; + } + + /// + /// Deprecated in favor of LogsDataSourceConfig. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? StoredCompletions { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? StoredCompletions { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StoredCompletions))] +#endif + public bool IsStoredCompletions => StoredCompletions != null; + + /// + /// + /// + public static implicit operator CreateEvalRequestDataSourceConfig(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig value) => new CreateEvalRequestDataSourceConfig((global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig?(CreateEvalRequestDataSourceConfig @this) => @this.StoredCompletions; + + /// + /// + /// + public CreateEvalRequestDataSourceConfig(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? value) + { + StoredCompletions = value; + } + + /// + /// + /// + public CreateEvalRequestDataSourceConfig( + global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? custom, + global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? logs, + global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? storedCompletions + ) + { + Custom = custom; + Logs = logs; + StoredCompletions = storedCompletions; + } + + /// + /// + /// + public object? Object => + StoredCompletions as object ?? + Logs as object ?? + Custom as object + ; + + /// + /// + /// + public override string? ToString() => + Custom?.ToString() ?? + Logs?.ToString() ?? + StoredCompletions?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCustom || IsLogs || IsStoredCompletions; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? custom = null, + global::System.Func? logs = null, + global::System.Func? storedCompletions = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom && custom != null) + { + return custom(Custom!); + } + else if (IsLogs && logs != null) + { + return logs(Logs!); + } + else if (IsStoredCompletions && storedCompletions != null) + { + return storedCompletions(StoredCompletions!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? custom = null, + global::System.Action? logs = null, + global::System.Action? storedCompletions = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom) + { + custom?.Invoke(Custom!); + } + else if (IsLogs) + { + logs?.Invoke(Logs!); + } + else if (IsStoredCompletions) + { + storedCompletions?.Invoke(StoredCompletions!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Custom, + typeof(global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig), + Logs, + typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig), + StoredCompletions, + typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(CreateEvalRequestDataSourceConfig other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Logs, other.Logs) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(StoredCompletions, other.StoredCompletions) + ; + } + + /// + /// + /// + public static bool operator ==(CreateEvalRequestDataSourceConfig obj1, CreateEvalRequestDataSourceConfig obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateEvalRequestDataSourceConfig obj1, CreateEvalRequestDataSourceConfig obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateEvalRequestDataSourceConfig o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfigDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfigDiscriminator.Json.g.cs new file mode 100644 index 00000000..69dda29d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfigDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateEvalRequestDataSourceConfigDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateEvalRequestDataSourceConfigDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfigDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfigDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateEvalRequestDataSourceConfigDiscriminator? 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::tryAGI.OpenAI.CreateEvalRequestDataSourceConfigDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateEvalRequestDataSourceConfigDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfigDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfigDiscriminator.g.cs new file mode 100644 index 00000000..f43fe1ea --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestDataSourceConfigDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateEvalRequestDataSourceConfigDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateEvalRequestDataSourceConfigDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateEvalRequestDataSourceConfigDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestTestingCriteriaItemDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestTestingCriteriaItemDiscriminator.Json.g.cs new file mode 100644 index 00000000..8959fd6e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestTestingCriteriaItemDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateEvalRequestTestingCriteriaItemDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateEvalRequestTestingCriteriaItemDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateEvalRequestTestingCriteriaItemDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateEvalRequestTestingCriteriaItemDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateEvalRequestTestingCriteriaItemDiscriminator? 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::tryAGI.OpenAI.CreateEvalRequestTestingCriteriaItemDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateEvalRequestTestingCriteriaItemDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestTestingCriteriaItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestTestingCriteriaItemDiscriminator.g.cs new file mode 100644 index 00000000..fbf78e3a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRequestTestingCriteriaItemDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateEvalRequestTestingCriteriaItemDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateEvalRequestTestingCriteriaItemDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateEvalRequestTestingCriteriaItemDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSource.g.cs index a11e152a..31ef7c30 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSource.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,8 +12,8 @@ public sealed partial class CreateEvalResponsesRunDataSource /// Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace. ///
[global::System.Text.Json.Serialization.JsonPropertyName("input_messages")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? InputMessages { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.InputMessages2JsonConverter))] + public global::tryAGI.OpenAI.InputMessages2? InputMessages { get; set; } /// /// The name of the model to use for generating completions (e.g. "o3-mini"). @@ -33,9 +31,9 @@ public sealed partial class CreateEvalResponsesRunDataSource /// Determines what populates the `item` namespace in this run's data source. /// [global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.Source3JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Source { get; set; } + public required global::tryAGI.OpenAI.Source3 Source { get; set; } /// /// The type of run data source. Always `responses`.
@@ -73,8 +71,8 @@ public sealed partial class CreateEvalResponsesRunDataSource [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEvalResponsesRunDataSource( - global::tryAGI.OpenAI.OneOf source, - global::tryAGI.OpenAI.OneOf? inputMessages, + global::tryAGI.OpenAI.Source3 source, + global::tryAGI.OpenAI.InputMessages2? inputMessages, string? model, global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? samplingParams, global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType type = global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType.Responses) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator.Json.g.cs new file mode 100644 index 00000000..a89743a1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateEvalResponsesRunDataSourceInputMessagesDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator? 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::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator.g.cs new file mode 100644 index 00000000..aa1e889c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateEvalResponsesRunDataSourceInputMessagesDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateEvalResponsesRunDataSourceInputMessagesDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateEvalResponsesRunDataSourceInputMessagesDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesVariant1.g.cs index 788f8aae..eabbe60c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceInputMessagesVariant1.g.cs @@ -15,7 +15,7 @@ public sealed partial class CreateEvalResponsesRunDataSourceInputMessagesVariant ///
[global::System.Text.Json.Serialization.JsonPropertyName("template")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Template { get; set; } + public required global::System.Collections.Generic.IList> Template { get; set; } /// /// The type of input messages. Always `template`. @@ -43,7 +43,7 @@ public sealed partial class CreateEvalResponsesRunDataSourceInputMessagesVariant [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEvalResponsesRunDataSourceInputMessagesVariant1( - global::System.Collections.Generic.IList> template, + global::System.Collections.Generic.IList> template, global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1Type type) { this.Template = template ?? throw new global::System.ArgumentNullException(nameof(template)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSamplingParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSamplingParams.g.cs index e8c93ab4..37a4173a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSamplingParams.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSamplingParams.g.cs @@ -31,8 +31,8 @@ public sealed partial class CreateEvalResponsesRunDataSourceSamplingParams /// /// Configuration options for a text response from the model. Can be plain
/// text or structured JSON data. Learn more:
- /// - [Text inputs and outputs](/docs/guides/text)
- /// - [Structured Outputs](/docs/guides/structured-outputs) + /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
+ /// - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) ///
[global::System.Text.Json.Serialization.JsonPropertyName("text")] public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Text { get; set; } @@ -42,12 +42,12 @@ public sealed partial class CreateEvalResponsesRunDataSourceSamplingParams /// can specify which tool to use by setting the `tool_choice` parameter.
/// The two categories of tools you can provide the model are:
/// - **Built-in tools**: Tools that are provided by OpenAI that extend the
- /// model's capabilities, like [web search](/docs/guides/tools-web-search)
- /// or [file search](/docs/guides/tools-file-search). Learn more about
- /// [built-in tools](/docs/guides/tools).
+ /// model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search)
+ /// or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about
+ /// [built-in tools](https://platform.openai.com/docs/guides/tools).
/// - **Function calls (custom tools)**: Functions that are defined by you,
/// enabling the model to call your own code. Learn more about
- /// [function calling](/docs/guides/function-calling). + /// [function calling](https://platform.openai.com/docs/guides/function-calling). ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] public global::System.Collections.Generic.IList? Tools { get; set; } @@ -82,20 +82,20 @@ public sealed partial class CreateEvalResponsesRunDataSourceSamplingParams /// /// Configuration options for a text response from the model. Can be plain
/// text or structured JSON data. Learn more:
- /// - [Text inputs and outputs](/docs/guides/text)
- /// - [Structured Outputs](/docs/guides/structured-outputs) + /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
+ /// - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) /// /// /// An array of tools the model may call while generating a response. You
/// can specify which tool to use by setting the `tool_choice` parameter.
/// The two categories of tools you can provide the model are:
/// - **Built-in tools**: Tools that are provided by OpenAI that extend the
- /// model's capabilities, like [web search](/docs/guides/tools-web-search)
- /// or [file search](/docs/guides/tools-file-search). Learn more about
- /// [built-in tools](/docs/guides/tools).
+ /// model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search)
+ /// or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about
+ /// [built-in tools](https://platform.openai.com/docs/guides/tools).
/// - **Function calls (custom tools)**: Functions that are defined by you,
/// enabling the model to call your own code. Learn more about
- /// [function calling](/docs/guides/function-calling). + /// [function calling](https://platform.openai.com/docs/guides/function-calling). /// /// /// An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSamplingParamsText.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSamplingParamsText.g.cs index fd10cad5..870f2df2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSamplingParamsText.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSamplingParamsText.g.cs @@ -6,8 +6,8 @@ namespace tryAGI.OpenAI /// /// Configuration options for a text response from the model. Can be plain
/// text or structured JSON data. Learn more:
- /// - [Text inputs and outputs](/docs/guides/text)
- /// - [Structured Outputs](/docs/guides/structured-outputs) + /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
+ /// - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) ///
public sealed partial class CreateEvalResponsesRunDataSourceSamplingParamsText { @@ -15,7 +15,7 @@ public sealed partial class CreateEvalResponsesRunDataSourceSamplingParamsText /// An object specifying the format that the model must output.
/// Configuring `{ "type": "json_schema" }` enables Structured Outputs,
/// which ensures the model will match your supplied JSON schema. Learn more in the
- /// [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// The default format is `{ "type": "text" }` with no additional options.
/// **Not recommended for gpt-4o and newer models:**
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which
@@ -39,7 +39,7 @@ public sealed partial class CreateEvalResponsesRunDataSourceSamplingParamsText /// An object specifying the format that the model must output.
/// Configuring `{ "type": "json_schema" }` enables Structured Outputs,
/// which ensures the model will match your supplied JSON schema. Learn more in the
- /// [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// The default format is `{ "type": "text" }` with no additional options.
/// **Not recommended for gpt-4o and newer models:**
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSourceDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSourceDiscriminator.Json.g.cs new file mode 100644 index 00000000..d4a6ffef --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSourceDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateEvalResponsesRunDataSourceSourceDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSourceDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSourceDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSourceDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSourceDiscriminator? 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::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSourceDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSourceDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSourceDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSourceDiscriminator.g.cs new file mode 100644 index 00000000..4450f843 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalResponsesRunDataSourceSourceDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateEvalResponsesRunDataSourceSourceDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateEvalResponsesRunDataSourceSourceDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateEvalResponsesRunDataSourceSourceDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRunRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRunRequest.g.cs index e66a46c7..04908092 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRunRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalRunRequest.g.cs @@ -14,9 +14,9 @@ public sealed partial class CreateEvalRunRequest /// Details about the run's data source. /// [global::System.Text.Json.Serialization.JsonPropertyName("data_source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf DataSource { get; set; } + public required global::tryAGI.OpenAI.AnyOf DataSource { get; set; } /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -60,7 +60,7 @@ public sealed partial class CreateEvalRunRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEvalRunRequest( - global::tryAGI.OpenAI.OneOf dataSource, + global::tryAGI.OpenAI.AnyOf dataSource, global::System.Collections.Generic.Dictionary? metadata, string? name) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalStoredCompletionsDataSourceConfig.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalStoredCompletionsDataSourceConfig.g.cs index 21e79d0c..3f8b5dd6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalStoredCompletionsDataSourceConfig.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalStoredCompletionsDataSourceConfig.g.cs @@ -10,16 +10,8 @@ namespace tryAGI.OpenAI public sealed partial class CreateEvalStoredCompletionsDataSourceConfig { /// - /// Metadata filters for the stored completions data source.
- /// Example: {
- /// "use_case": "customer_support_agent"
- /// } + /// Metadata filters for the stored completions data source. ///
- /// - /// {
- /// "use_case": "customer_support_agent"
- /// } - ///
[global::System.Text.Json.Serialization.JsonPropertyName("metadata")] [global::System.Obsolete("This property marked as deprecated.")] public object? Metadata { get; set; } @@ -44,10 +36,7 @@ public sealed partial class CreateEvalStoredCompletionsDataSourceConfig /// Initializes a new instance of the class. ///
/// - /// Metadata filters for the stored completions data source.
- /// Example: {
- /// "use_case": "customer_support_agent"
- /// } + /// Metadata filters for the stored completions data source. /// /// /// The type of data source. Always `stored_completions`.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalStoredCompletionsDataSourceConfigMetadata.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalStoredCompletionsDataSourceConfigMetadata.g.cs index ee93d350..b81dfbf6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalStoredCompletionsDataSourceConfigMetadata.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalStoredCompletionsDataSourceConfigMetadata.g.cs @@ -4,10 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Metadata filters for the stored completions data source.
- /// Example: {
- /// "use_case": "customer_support_agent"
- /// } + /// Metadata filters for the stored completions data source. ///
public sealed partial class CreateEvalStoredCompletionsDataSourceConfigMetadata { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFileRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFileRequest.g.cs index 7e403de2..fba6158b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFileRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFileRequest.g.cs @@ -26,9 +26,9 @@ public sealed partial class CreateFileRequest /// The intended purpose of the uploaded file. One of: - `assistants`: Used in the Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: Flexible file type for any purpose - `evals`: Used for eval data sets /// [global::System.Text.Json.Serialization.JsonPropertyName("purpose")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateFileRequestPurposeJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FilePurposeJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.CreateFileRequestPurpose Purpose { get; set; } + public required global::tryAGI.OpenAI.FilePurpose Purpose { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -54,7 +54,7 @@ public sealed partial class CreateFileRequest public CreateFileRequest( byte[] file, string filename, - global::tryAGI.OpenAI.CreateFileRequestPurpose purpose) + global::tryAGI.OpenAI.FilePurpose purpose) { this.File = file ?? throw new global::System.ArgumentNullException(nameof(file)); this.Filename = filename ?? throw new global::System.ArgumentNullException(nameof(filename)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFineTuningJobRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFineTuningJobRequest.g.cs index 556aceeb..7b5e9c3d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFineTuningJobRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFineTuningJobRequest.g.cs @@ -42,7 +42,7 @@ public sealed partial class CreateFineTuningJobRequest /// /// The name of the model to fine-tune. You can select one of the
- /// [supported models](/docs/guides/fine-tuning#which-models-can-be-fine-tuned).
+ /// [supported models](https://platform.openai.com/docs/guides/fine-tuning#which-models-can-be-fine-tuned).
/// Example: gpt-4o-mini ///
/// gpt-4o-mini @@ -69,10 +69,10 @@ public sealed partial class CreateFineTuningJobRequest /// /// The ID of an uploaded file that contains training data.
- /// See [upload file](/docs/api-reference/files/create) for how to upload a file.
+ /// See [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.
/// Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.
- /// The contents of the file should differ depending on if the model uses the [chat](/docs/api-reference/fine-tuning/chat-input), [completions](/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](/docs/api-reference/fine-tuning/preference-input) format.
- /// See the [fine-tuning guide](/docs/guides/model-optimization) for more details.
+ /// The contents of the file should differ depending on if the model uses the [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input), [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](https://platform.openai.com/docs/api-reference/fine-tuning/preference-input) format.
+ /// See the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.
/// Example: file-abc123 ///
/// file-abc123 @@ -87,7 +87,7 @@ public sealed partial class CreateFineTuningJobRequest /// the fine-tuning results file.
/// The same data should not be present in both train and validation files.
/// Your dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.
- /// See the [fine-tuning guide](/docs/guides/model-optimization) for more details.
+ /// See the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.
/// Example: file-abc123 ///
/// file-abc123 @@ -118,7 +118,7 @@ public sealed partial class CreateFineTuningJobRequest /// /// /// The name of the model to fine-tune. You can select one of the
- /// [supported models](/docs/guides/fine-tuning#which-models-can-be-fine-tuned).
+ /// [supported models](https://platform.openai.com/docs/guides/fine-tuning#which-models-can-be-fine-tuned).
/// Example: gpt-4o-mini /// /// @@ -132,10 +132,10 @@ public sealed partial class CreateFineTuningJobRequest /// /// /// The ID of an uploaded file that contains training data.
- /// See [upload file](/docs/api-reference/files/create) for how to upload a file.
+ /// See [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.
/// Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.
- /// The contents of the file should differ depending on if the model uses the [chat](/docs/api-reference/fine-tuning/chat-input), [completions](/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](/docs/api-reference/fine-tuning/preference-input) format.
- /// See the [fine-tuning guide](/docs/guides/model-optimization) for more details.
+ /// The contents of the file should differ depending on if the model uses the [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input), [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](https://platform.openai.com/docs/api-reference/fine-tuning/preference-input) format.
+ /// See the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.
/// Example: file-abc123 /// /// @@ -145,7 +145,7 @@ public sealed partial class CreateFineTuningJobRequest /// the fine-tuning results file.
/// The same data should not be present in both train and validation files.
/// Your dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.
- /// See the [fine-tuning guide](/docs/guides/model-optimization) for more details.
+ /// See the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.
/// Example: file-abc123 /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFineTuningJobRequestHyperparameters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFineTuningJobRequestHyperparameters.g.cs index 677d7341..e5a57a31 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFineTuningJobRequestHyperparameters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFineTuningJobRequestHyperparameters.g.cs @@ -18,19 +18,18 @@ public sealed partial class CreateFineTuningJobRequestHyperparameters /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("batch_size")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Obsolete("This property marked as deprecated.")] - public global::tryAGI.OpenAI.OneOf? BatchSize { get; set; } + public global::tryAGI.OpenAI.AnyOf? BatchSize { get; set; } /// /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid
- /// overfitting.
- /// Default Value: auto + /// overfitting. ///
[global::System.Text.Json.Serialization.JsonPropertyName("learning_rate_multiplier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Obsolete("This property marked as deprecated.")] - public global::tryAGI.OpenAI.OneOf? LearningRateMultiplier { get; set; } + public global::tryAGI.OpenAI.AnyOf? LearningRateMultiplier { get; set; } /// /// The number of epochs to train the model for. An epoch refers to one full cycle
@@ -38,9 +37,9 @@ public sealed partial class CreateFineTuningJobRequestHyperparameters /// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("n_epochs")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Obsolete("This property marked as deprecated.")] - public global::tryAGI.OpenAI.OneOf? NEpochs { get; set; } + public global::tryAGI.OpenAI.AnyOf? NEpochs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -58,8 +57,7 @@ public sealed partial class CreateFineTuningJobRequestHyperparameters /// /// /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid
- /// overfitting.
- /// Default Value: auto + /// overfitting. /// /// /// The number of epochs to train the model for. An epoch refers to one full cycle
@@ -70,9 +68,9 @@ public sealed partial class CreateFineTuningJobRequestHyperparameters [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateFineTuningJobRequestHyperparameters( - global::tryAGI.OpenAI.OneOf? batchSize, - global::tryAGI.OpenAI.OneOf? learningRateMultiplier, - global::tryAGI.OpenAI.OneOf? nEpochs) + global::tryAGI.OpenAI.AnyOf? batchSize, + global::tryAGI.OpenAI.AnyOf? learningRateMultiplier, + global::tryAGI.OpenAI.AnyOf? nEpochs) { this.BatchSize = batchSize; this.LearningRateMultiplier = learningRateMultiplier; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageEditRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageEditRequest.g.cs index 49f0550c..666a3724 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageEditRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageEditRequest.g.cs @@ -60,11 +60,8 @@ public sealed partial class CreateImageEditRequest public string? Maskname { get; set; } /// - /// The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.
- /// Default Value: dall-e-2
- /// Example: gpt-image-1 + /// The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used. ///
- /// gpt-image-1 [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] public global::tryAGI.OpenAI.AnyOf? Model { get; set; } @@ -155,7 +152,7 @@ public sealed partial class CreateImageEditRequest /// /// Edit the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
+ /// [Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.
/// Default Value: false
/// Example: false ///
@@ -164,7 +161,7 @@ public sealed partial class CreateImageEditRequest public bool? Stream { get; set; } /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 ///
/// user-1234 @@ -210,9 +207,7 @@ public sealed partial class CreateImageEditRequest /// An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`. /// /// - /// The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.
- /// Default Value: dall-e-2
- /// Example: gpt-image-1 + /// The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used. /// /// /// The number of images to generate. Must be between 1 and 10.
@@ -263,12 +258,12 @@ public sealed partial class CreateImageEditRequest /// /// /// Edit the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
+ /// [Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.
/// Default Value: false
/// Example: false /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageRequest.g.cs index 3b79c859..7a3ea0ed 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageRequest.g.cs @@ -26,11 +26,8 @@ public sealed partial class CreateImageRequest public global::tryAGI.OpenAI.CreateImageRequestBackground? Background { get; set; } /// - /// The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.
- /// Default Value: dall-e-2
- /// Example: gpt-image-1 + /// The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used. ///
- /// gpt-image-1 [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] public global::tryAGI.OpenAI.AnyOf? Model { get; set; } @@ -131,7 +128,7 @@ public sealed partial class CreateImageRequest /// /// Generate the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
+ /// [Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.
/// This parameter is only supported for `gpt-image-1`.
/// Default Value: false
/// Example: false @@ -151,7 +148,7 @@ public sealed partial class CreateImageRequest public global::tryAGI.OpenAI.CreateImageRequestStyle? Style { get; set; } /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 ///
/// user-1234 @@ -178,9 +175,7 @@ public sealed partial class CreateImageRequest /// Example: transparent /// /// - /// The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.
- /// Default Value: dall-e-2
- /// Example: gpt-image-1 + /// The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used. /// /// /// Control the content-moderation level for images generated by `gpt-image-1`. Must be either `low` for less restrictive filtering or `auto` (default value).
@@ -236,7 +231,7 @@ public sealed partial class CreateImageRequest /// /// /// Generate the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
+ /// [Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.
/// This parameter is only supported for `gpt-image-1`.
/// Default Value: false
/// Example: false @@ -247,7 +242,7 @@ public sealed partial class CreateImageRequest /// Example: vivid /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageVariationRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageVariationRequest.g.cs index b390e3ce..5629f725 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageVariationRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateImageVariationRequest.g.cs @@ -25,11 +25,8 @@ public sealed partial class CreateImageVariationRequest public required string Imagename { get; set; } /// - /// The model to use for image generation. Only `dall-e-2` is supported at this time.
- /// Default Value: dall-e-2
- /// Example: dall-e-2 + /// The model to use for image generation. Only `dall-e-2` is supported at this time. ///
- /// dall-e-2 [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] public global::tryAGI.OpenAI.AnyOf? Model { get; set; } @@ -64,7 +61,7 @@ public sealed partial class CreateImageVariationRequest public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Size { get; set; } /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 ///
/// user-1234 @@ -87,9 +84,7 @@ public sealed partial class CreateImageVariationRequest /// The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square. /// /// - /// The model to use for image generation. Only `dall-e-2` is supported at this time.
- /// Default Value: dall-e-2
- /// Example: dall-e-2 + /// The model to use for image generation. Only `dall-e-2` is supported at this time. /// /// /// The number of images to generate. Must be between 1 and 10.
@@ -107,7 +102,7 @@ public sealed partial class CreateImageVariationRequest /// Example: 1024x1024 /// /// - /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).
+ /// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
/// Example: user-1234 /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequest.g.cs index f7ada9fb..c46b3312 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequest.g.cs @@ -20,9 +20,9 @@ public sealed partial class CreateMessageRequest /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf>> Content { get; set; } + public required global::tryAGI.OpenAI.AnyOf> Content { get; set; } /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -73,7 +73,7 @@ public sealed partial class CreateMessageRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateMessageRequest( - global::tryAGI.OpenAI.OneOf>> content, + global::tryAGI.OpenAI.AnyOf> content, global::tryAGI.OpenAI.CreateMessageRequestRole role, global::System.Collections.Generic.IList? attachments, global::System.Collections.Generic.Dictionary? metadata) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachment.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachment.g.cs index 14cb8b7c..5f921dab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachment.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachment.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -20,7 +18,7 @@ public sealed partial class CreateMessageRequestAttachment /// The tools to add this file to. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList>? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +40,7 @@ public sealed partial class CreateMessageRequestAttachment #endif public CreateMessageRequestAttachment( string? fileId, - global::System.Collections.Generic.IList>? tools) + global::System.Collections.Generic.IList? tools) { this.FileId = fileId; this.Tools = tools; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachmentToolDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachmentToolDiscriminator.Json.g.cs new file mode 100644 index 00000000..2563f260 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachmentToolDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateMessageRequestAttachmentToolDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateMessageRequestAttachmentToolDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateMessageRequestAttachmentToolDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateMessageRequestAttachmentToolDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateMessageRequestAttachmentToolDiscriminator? 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::tryAGI.OpenAI.CreateMessageRequestAttachmentToolDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateMessageRequestAttachmentToolDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachmentToolDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachmentToolDiscriminator.g.cs new file mode 100644 index 00000000..26a89352 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestAttachmentToolDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateMessageRequestAttachmentToolDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateMessageRequestAttachmentToolDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateMessageRequestAttachmentToolDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestContentVariant2ItemDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestContentVariant2ItemDiscriminator.Json.g.cs new file mode 100644 index 00000000..aa53a15c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestContentVariant2ItemDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateMessageRequestContentVariant2ItemDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator? 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::tryAGI.OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestContentVariant2ItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestContentVariant2ItemDiscriminator.g.cs new file mode 100644 index 00000000..21f94535 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMessageRequestContentVariant2ItemDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateMessageRequestContentVariant2ItemDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateMessageRequestContentVariant2ItemDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateMessageRequestContentVariant2ItemDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequest.g.cs index 2ba76314..14fff0a2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequest.g.cs @@ -15,18 +15,15 @@ public sealed partial class CreateModerationRequest /// an array of multi-modal input objects similar to other models. /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>> Input { get; set; } + public required global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList> Input { get; set; } /// /// The content moderation model you would like to use. Learn more in
- /// [the moderation guide](/docs/guides/moderation), and learn about
- /// available models [here](/docs/models#moderation).
- /// Default Value: omni-moderation-latest
- /// Example: omni-moderation-2024-09-26 + /// [the moderation guide](https://platform.openai.com/docs/guides/moderation), and learn about
+ /// available models [here](https://platform.openai.com/docs/models#moderation). ///
- /// omni-moderation-2024-09-26 [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] public global::tryAGI.OpenAI.AnyOf? Model { get; set; } @@ -46,16 +43,14 @@ public sealed partial class CreateModerationRequest /// /// /// The content moderation model you would like to use. Learn more in
- /// [the moderation guide](/docs/guides/moderation), and learn about
- /// available models [here](/docs/models#moderation).
- /// Default Value: omni-moderation-latest
- /// Example: omni-moderation-2024-09-26 + /// [the moderation guide](https://platform.openai.com/docs/guides/moderation), and learn about
+ /// available models [here](https://platform.openai.com/docs/models#moderation). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateModerationRequest( - global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>> input, + global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList> input, global::tryAGI.OpenAI.AnyOf? model) { this.Input = input; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemDiscriminator.Json.g.cs similarity index 90% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemDiscriminator.Json.g.cs index 526e66aa..46c464b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class CreateModerationRequestInputVariant3ItemVariant1 + public sealed partial class CreateModerationRequestInputVariant3ItemDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1? FromJson( + public static global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1), - jsonSerializerContext) as global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1; + typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.CreateModerationRequestInputVariant3ItemVariant1? FromJson( + public static global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1; + typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemDiscriminator.g.cs new file mode 100644 index 00000000..dfd4a45b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateModerationRequestInputVariant3ItemDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateModerationRequestInputVariant3ItemDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateModerationRequestInputVariant3ItemDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.Json.g.cs deleted file mode 100644 index 437968f1..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI -{ - public sealed partial class CreateModerationRequestInputVariant3ItemVariant1ImageUrl - { - /// - /// 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl), - jsonSerializerContext) as global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl; - } - - /// - /// 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl; - } - - /// - /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.Json.g.cs deleted file mode 100644 index ea15e222..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI -{ - public sealed partial class CreateModerationRequestInputVariant3ItemVariant2 - { - /// - /// 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2), - jsonSerializerContext) as global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2; - } - - /// - /// 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2? 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::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2; - } - - /// - /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponseVariant3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponseVariant3.g.cs index cf501633..0e7c49a2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponseVariant3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponseVariant3.g.cs @@ -32,15 +32,15 @@ public sealed partial class CreateResponseVariant3 /// /// Text, image, or file inputs to the model, used to generate a response.
/// Learn more:
- /// - [Text inputs and outputs](/docs/guides/text)
- /// - [Image inputs](/docs/guides/images)
- /// - [File inputs](/docs/guides/pdf-files)
- /// - [Conversation state](/docs/guides/conversation-state)
- /// - [Function calling](/docs/guides/function-calling) + /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
+ /// - [Image inputs](https://platform.openai.com/docs/guides/images)
+ /// - [File inputs](https://platform.openai.com/docs/guides/pdf-files)
+ /// - [Conversation state](https://platform.openai.com/docs/guides/conversation-state)
+ /// - [Function calling](https://platform.openai.com/docs/guides/function-calling) ///
[global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] - public global::tryAGI.OpenAI.OneOf>? Input { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] + public global::tryAGI.OpenAI.AnyOf>? Input { get; set; } /// /// A system (or developer) message inserted into the model's context.
@@ -69,7 +69,7 @@ public sealed partial class CreateResponseVariant3 /// /// If set to true, the model response data will be streamed to the client
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
- /// See the [Streaming section below](/docs/api-reference/responses-streaming)
+ /// See the [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
/// for more information.
/// Default Value: false ///
@@ -104,11 +104,11 @@ public sealed partial class CreateResponseVariant3 /// /// Text, image, or file inputs to the model, used to generate a response.
/// Learn more:
- /// - [Text inputs and outputs](/docs/guides/text)
- /// - [Image inputs](/docs/guides/images)
- /// - [File inputs](/docs/guides/pdf-files)
- /// - [Conversation state](/docs/guides/conversation-state)
- /// - [Function calling](/docs/guides/function-calling) + /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
+ /// - [Image inputs](https://platform.openai.com/docs/guides/images)
+ /// - [File inputs](https://platform.openai.com/docs/guides/pdf-files)
+ /// - [Conversation state](https://platform.openai.com/docs/guides/conversation-state)
+ /// - [Function calling](https://platform.openai.com/docs/guides/function-calling) /// /// /// A system (or developer) message inserted into the model's context.
@@ -128,7 +128,7 @@ public sealed partial class CreateResponseVariant3 /// /// If set to true, the model response data will be streamed to the client
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
- /// See the [Streaming section below](/docs/api-reference/responses-streaming)
+ /// See the [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
/// for more information.
/// Default Value: false /// @@ -137,7 +137,7 @@ public sealed partial class CreateResponseVariant3 #endif public CreateResponseVariant3( global::System.Collections.Generic.IList? include, - global::tryAGI.OpenAI.OneOf>? input, + global::tryAGI.OpenAI.AnyOf>? input, string? instructions, bool? parallelToolCalls, bool? store, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequest.g.cs index 524e3618..96153a80 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequest.g.cs @@ -23,14 +23,14 @@ public sealed partial class CreateRunRequest public global::System.Collections.Generic.IList? AdditionalMessages { get; set; } /// - /// The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. /// [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")] [global::System.Text.Json.Serialization.JsonRequired] public required string AssistantId { get; set; } /// - /// Overrides the [instructions](/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. + /// Overrides the [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. /// [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] public string? Instructions { get; set; } @@ -58,16 +58,14 @@ public sealed partial class CreateRunRequest public global::System.Collections.Generic.Dictionary? Metadata { get; set; } /// - /// The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- /// Example: gpt-4o + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. ///
- /// gpt-4o [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] public global::tryAGI.OpenAI.AnyOf? Model { get; set; } /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// [global::System.Text.Json.Serialization.JsonPropertyName("parallel_tool_calls")] public bool? ParallelToolCalls { get; set; } @@ -86,8 +84,8 @@ public sealed partial class CreateRunRequest public global::tryAGI.OpenAI.ReasoningEffort? ReasoningEffort { get; set; } /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. ///
@@ -125,7 +123,7 @@ public sealed partial class CreateRunRequest /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList>? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
@@ -159,10 +157,10 @@ public sealed partial class CreateRunRequest /// Adds additional messages to the thread before creating the run. /// /// - /// The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. /// /// - /// Overrides the [instructions](/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. + /// Overrides the [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. /// /// /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. @@ -178,11 +176,10 @@ public sealed partial class CreateRunRequest /// with a maximum length of 512 characters. /// /// - /// The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- /// Example: gpt-4o + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. /// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// /// **o-series models only**
@@ -194,8 +191,8 @@ public sealed partial class CreateRunRequest /// Default Value: medium /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -244,7 +241,7 @@ public CreateRunRequest( bool? stream, double? temperature, global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? toolChoice, - global::System.Collections.Generic.IList>? tools, + global::System.Collections.Generic.IList? tools, double? topP, global::tryAGI.OpenAI.TruncationObject? truncationStrategy) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequestWithoutStream.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequestWithoutStream.Json.g.cs new file mode 100644 index 00000000..26ec970a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequestWithoutStream.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateRunRequestWithoutStream + { + /// + /// 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::tryAGI.OpenAI.CreateRunRequestWithoutStream? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateRunRequestWithoutStream), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateRunRequestWithoutStream; + } + + /// + /// 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::tryAGI.OpenAI.CreateRunRequestWithoutStream? 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::tryAGI.OpenAI.CreateRunRequestWithoutStream), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateRunRequestWithoutStream; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequestWithoutStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequestWithoutStream.g.cs new file mode 100644 index 00000000..7f805fa6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateRunRequestWithoutStream.g.cs @@ -0,0 +1,263 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateRunRequestWithoutStream + { + /// + /// Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_instructions")] + public string? AdditionalInstructions { get; set; } + + /// + /// Adds additional messages to the thread before creating the run. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additional_messages")] + public global::System.Collections.Generic.IList? AdditionalMessages { get; set; } + + /// + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AssistantId { get; set; } + + /// + /// Overrides the [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_completion_tokens")] + public int? MaxCompletionTokens { get; set; } + + /// + /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_prompt_tokens")] + public int? MaxPromptTokens { get; set; } + + /// + /// Set of 16 key-value pairs that can be attached to an object. This can be
+ /// useful for storing additional information about the object in a structured
+ /// format, and querying for objects via API or the dashboard.
+ /// Keys are strings with a maximum length of 64 characters. Values are strings
+ /// with a maximum length of 512 characters. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::System.Collections.Generic.Dictionary? Metadata { get; set; } + + /// + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Model { get; set; } + + /// + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parallel_tool_calls")] + public bool? ParallelToolCalls { get; set; } + + /// + /// **o-series models only**
+ /// Constrains effort on reasoning for
+ /// [reasoning models](https://platform.openai.com/docs/guides/reasoning).
+ /// Currently supported values are `low`, `medium`, and `high`. Reducing
+ /// reasoning effort can result in faster responses and fewer tokens used
+ /// on reasoning in a response.
+ /// Default Value: medium + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_effort")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningEffortJsonConverter))] + public global::tryAGI.OpenAI.ReasoningEffort? ReasoningEffort { get; set; } + + /// + /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
+ /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
+ /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionJsonConverter))] + public global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? ResponseFormat { get; set; } + + /// + /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
+ /// Default Value: 1
+ /// Example: 1 + ///
+ /// 1 + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public double? Temperature { get; set; } + + /// + /// Controls which (if any) tool is called by the model.
+ /// `none` means the model will not call any tools and instead generates a message.
+ /// `auto` is the default value and means the model can pick between generating a message or calling one or more tools.
+ /// `required` means the model must call one or more tools before responding to the user.
+ /// Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionJsonConverter))] + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? ToolChoice { get; set; } + + /// + /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
+ /// We generally recommend altering this or temperature but not both.
+ /// Default Value: 1
+ /// Example: 1 + ///
+ /// 1 + [global::System.Text.Json.Serialization.JsonPropertyName("top_p")] + public double? TopP { get; set; } + + /// + /// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("truncation_strategy")] + public global::tryAGI.OpenAI.TruncationObject? TruncationStrategy { 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. + /// + /// + /// Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions. + /// + /// + /// Adds additional messages to the thread before creating the run. + /// + /// + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. + /// + /// + /// Overrides the [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// Set of 16 key-value pairs that can be attached to an object. This can be
+ /// useful for storing additional information about the object in a structured
+ /// format, and querying for objects via API or the dashboard.
+ /// Keys are strings with a maximum length of 64 characters. Values are strings
+ /// with a maximum length of 512 characters. + /// + /// + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. + /// + /// + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// + /// + /// **o-series models only**
+ /// Constrains effort on reasoning for
+ /// [reasoning models](https://platform.openai.com/docs/guides/reasoning).
+ /// Currently supported values are `low`, `medium`, and `high`. Reducing
+ /// reasoning effort can result in faster responses and fewer tokens used
+ /// on reasoning in a response.
+ /// Default Value: medium + /// + /// + /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
+ /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
+ /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. + /// + /// + /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// Controls which (if any) tool is called by the model.
+ /// `none` means the model will not call any tools and instead generates a message.
+ /// `auto` is the default value and means the model can pick between generating a message or calling one or more tools.
+ /// `required` means the model must call one or more tools before responding to the user.
+ /// Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. + /// + /// + /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
+ /// We generally recommend altering this or temperature but not both.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRunRequestWithoutStream( + string assistantId, + string? additionalInstructions, + global::System.Collections.Generic.IList? additionalMessages, + string? instructions, + int? maxCompletionTokens, + int? maxPromptTokens, + global::System.Collections.Generic.Dictionary? metadata, + global::tryAGI.OpenAI.AnyOf? model, + bool? parallelToolCalls, + global::tryAGI.OpenAI.ReasoningEffort? reasoningEffort, + global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat, + double? temperature, + global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? toolChoice, + global::System.Collections.Generic.IList? tools, + double? topP, + global::tryAGI.OpenAI.TruncationObject? truncationStrategy) + { + this.AssistantId = assistantId ?? throw new global::System.ArgumentNullException(nameof(assistantId)); + this.AdditionalInstructions = additionalInstructions; + this.AdditionalMessages = additionalMessages; + this.Instructions = instructions; + this.MaxCompletionTokens = maxCompletionTokens; + this.MaxPromptTokens = maxPromptTokens; + this.Metadata = metadata; + this.Model = model; + this.ParallelToolCalls = parallelToolCalls; + this.ReasoningEffort = reasoningEffort; + this.ResponseFormat = responseFormat; + this.Temperature = temperature; + this.ToolChoice = toolChoice; + this.Tools = tools; + this.TopP = topP; + this.TruncationStrategy = truncationStrategy; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRunRequestWithoutStream() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequest.g.cs index 9fc99c19..f6225540 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechRequest.g.cs @@ -24,7 +24,7 @@ public sealed partial class CreateSpeechRequest public string? Instructions { get; set; } /// - /// One of the available [TTS models](/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. + /// One of the available [TTS models](https://platform.openai.com/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] @@ -79,7 +79,7 @@ public sealed partial class CreateSpeechRequest /// Control the voice of your generated audio with additional instructions. Does not work with `tts-1` or `tts-1-hd`. /// /// - /// One of the available [TTS models](/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. + /// One of the available [TTS models](https://platform.openai.com/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`. /// /// /// The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequest.g.cs index 6263406d..d95e79fb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequest.g.cs @@ -11,7 +11,7 @@ namespace tryAGI.OpenAI public sealed partial class CreateThreadAndRunRequest { /// - /// The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. /// [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -46,23 +46,21 @@ public sealed partial class CreateThreadAndRunRequest public global::System.Collections.Generic.Dictionary? Metadata { get; set; } /// - /// The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- /// Example: gpt-4o + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. ///
- /// gpt-4o [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] public global::tryAGI.OpenAI.AnyOf? Model { get; set; } /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// [global::System.Text.Json.Serialization.JsonPropertyName("parallel_tool_calls")] public bool? ParallelToolCalls { get; set; } /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. ///
@@ -113,7 +111,7 @@ public sealed partial class CreateThreadAndRunRequest /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList>? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
@@ -141,7 +139,7 @@ public sealed partial class CreateThreadAndRunRequest /// Initializes a new instance of the class. ///
/// - /// The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. /// /// /// Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis. @@ -160,15 +158,14 @@ public sealed partial class CreateThreadAndRunRequest /// with a maximum length of 512 characters. /// /// - /// The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- /// Example: gpt-4o + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. /// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -223,7 +220,7 @@ public CreateThreadAndRunRequest( global::tryAGI.OpenAI.CreateThreadRequest? thread, global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? toolChoice, global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? toolResources, - global::System.Collections.Generic.IList>? tools, + global::System.Collections.Generic.IList? tools, double? topP, global::tryAGI.OpenAI.TruncationObject? truncationStrategy) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestToolResourcesCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestToolResourcesCodeInterpreter.g.cs index c1f03929..29e0dc4c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestToolResourcesCodeInterpreter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestToolResourcesCodeInterpreter.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class CreateThreadAndRunRequestToolResourcesCodeInterpreter { /// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class CreateThreadAndRunRequestToolResourcesCodeInterprete /// Initializes a new instance of the class. ///
/// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestToolResourcesFileSearch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestToolResourcesFileSearch.g.cs index e97bace4..8a12247e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestToolResourcesFileSearch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestToolResourcesFileSearch.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class CreateThreadAndRunRequestToolResourcesFileSearch { /// - /// The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_ids")] public global::System.Collections.Generic.IList? VectorStoreIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class CreateThreadAndRunRequestToolResourcesFileSearch /// Initializes a new instance of the class. ///
/// - /// The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStream.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStream.Json.g.cs new file mode 100644 index 00000000..0d91897e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStream.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateThreadAndRunRequestWithoutStream + { + /// + /// 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStream? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStream), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStream; + } + + /// + /// 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStream? 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStream), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStream; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStream.g.cs new file mode 100644 index 00000000..959ce988 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStream.g.cs @@ -0,0 +1,241 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateThreadAndRunRequestWithoutStream + { + /// + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AssistantId { get; set; } + + /// + /// Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_completion_tokens")] + public int? MaxCompletionTokens { get; set; } + + /// + /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_prompt_tokens")] + public int? MaxPromptTokens { get; set; } + + /// + /// Set of 16 key-value pairs that can be attached to an object. This can be
+ /// useful for storing additional information about the object in a structured
+ /// format, and querying for objects via API or the dashboard.
+ /// Keys are strings with a maximum length of 64 characters. Values are strings
+ /// with a maximum length of 512 characters. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::System.Collections.Generic.Dictionary? Metadata { get; set; } + + /// + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Model { get; set; } + + /// + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parallel_tool_calls")] + public bool? ParallelToolCalls { get; set; } + + /// + /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
+ /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
+ /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionJsonConverter))] + public global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? ResponseFormat { get; set; } + + /// + /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
+ /// Default Value: 1
+ /// Example: 1 + ///
+ /// 1 + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public double? Temperature { get; set; } + + /// + /// Options to create a new thread. If no thread is provided when running a
+ /// request, an empty thread will be created. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("thread")] + public global::tryAGI.OpenAI.CreateThreadRequest? Thread { get; set; } + + /// + /// Controls which (if any) tool is called by the model.
+ /// `none` means the model will not call any tools and instead generates a message.
+ /// `auto` is the default value and means the model can pick between generating a message or calling one or more tools.
+ /// `required` means the model must call one or more tools before responding to the user.
+ /// Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOptionJsonConverter))] + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? ToolChoice { get; set; } + + /// + /// A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_resources")] + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources? ToolResources { get; set; } + + /// + /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
+ /// We generally recommend altering this or temperature but not both.
+ /// Default Value: 1
+ /// Example: 1 + ///
+ /// 1 + [global::System.Text.Json.Serialization.JsonPropertyName("top_p")] + public double? TopP { get; set; } + + /// + /// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("truncation_strategy")] + public global::tryAGI.OpenAI.TruncationObject? TruncationStrategy { 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 ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run. + /// + /// + /// Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// Set of 16 key-value pairs that can be attached to an object. This can be
+ /// useful for storing additional information about the object in a structured
+ /// format, and querying for objects via API or the dashboard.
+ /// Keys are strings with a maximum length of 64 characters. Values are strings
+ /// with a maximum length of 512 characters. + /// + /// + /// The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. + /// + /// + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// + /// + /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
+ /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
+ /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. + /// + /// + /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// Options to create a new thread. If no thread is provided when running a
+ /// request, an empty thread will be created. + /// + /// + /// Controls which (if any) tool is called by the model.
+ /// `none` means the model will not call any tools and instead generates a message.
+ /// `auto` is the default value and means the model can pick between generating a message or calling one or more tools.
+ /// `required` means the model must call one or more tools before responding to the user.
+ /// Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. + /// + /// + /// A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs. + /// + /// + /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
+ /// We generally recommend altering this or temperature but not both.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateThreadAndRunRequestWithoutStream( + string assistantId, + string? instructions, + int? maxCompletionTokens, + int? maxPromptTokens, + global::System.Collections.Generic.Dictionary? metadata, + global::tryAGI.OpenAI.AnyOf? model, + bool? parallelToolCalls, + global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat, + double? temperature, + global::tryAGI.OpenAI.CreateThreadRequest? thread, + global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? toolChoice, + global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources? toolResources, + global::System.Collections.Generic.IList? tools, + double? topP, + global::tryAGI.OpenAI.TruncationObject? truncationStrategy) + { + this.AssistantId = assistantId ?? throw new global::System.ArgumentNullException(nameof(assistantId)); + this.Instructions = instructions; + this.MaxCompletionTokens = maxCompletionTokens; + this.MaxPromptTokens = maxPromptTokens; + this.Metadata = metadata; + this.Model = model; + this.ParallelToolCalls = parallelToolCalls; + this.ResponseFormat = responseFormat; + this.Temperature = temperature; + this.Thread = thread; + this.ToolChoice = toolChoice; + this.ToolResources = toolResources; + this.Tools = tools; + this.TopP = topP; + this.TruncationStrategy = truncationStrategy; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateThreadAndRunRequestWithoutStream() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamModel.g.cs new file mode 100644 index 00000000..4db1c458 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamModel.g.cs @@ -0,0 +1,231 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CreateThreadAndRunRequestWithoutStreamModel + { + /// + /// + /// + Gpt41, + /// + /// + /// + Gpt41Mini, + /// + /// + /// + Gpt41Nano, + /// + /// + /// + Gpt4120250414, + /// + /// + /// + Gpt41Mini20250414, + /// + /// + /// + Gpt41Nano20250414, + /// + /// + /// + Gpt4o, + /// + /// + /// + Gpt4o20241120, + /// + /// + /// + Gpt4o20240806, + /// + /// + /// + Gpt4o20240513, + /// + /// + /// + Gpt4oMini, + /// + /// + /// + Gpt4oMini20240718, + /// + /// + /// + Gpt45Preview, + /// + /// + /// + Gpt45Preview20250227, + /// + /// + /// + Gpt4Turbo, + /// + /// + /// + Gpt4Turbo20240409, + /// + /// + /// + Gpt40125Preview, + /// + /// + /// + Gpt4TurboPreview, + /// + /// + /// + Gpt41106Preview, + /// + /// + /// + Gpt4VisionPreview, + /// + /// + /// + Gpt4, + /// + /// + /// + Gpt40314, + /// + /// + /// + Gpt40613, + /// + /// + /// + Gpt432k, + /// + /// + /// + Gpt432k0314, + /// + /// + /// + Gpt432k0613, + /// + /// + /// + Gpt35Turbo, + /// + /// + /// + Gpt35Turbo16k, + /// + /// + /// + Gpt35Turbo0613, + /// + /// + /// + Gpt35Turbo1106, + /// + /// + /// + Gpt35Turbo0125, + /// + /// + /// + Gpt35Turbo16k0613, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateThreadAndRunRequestWithoutStreamModelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateThreadAndRunRequestWithoutStreamModel value) + { + return value switch + { + CreateThreadAndRunRequestWithoutStreamModel.Gpt41 => "gpt-4.1", + CreateThreadAndRunRequestWithoutStreamModel.Gpt41Mini => "gpt-4.1-mini", + CreateThreadAndRunRequestWithoutStreamModel.Gpt41Nano => "gpt-4.1-nano", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4120250414 => "gpt-4.1-2025-04-14", + CreateThreadAndRunRequestWithoutStreamModel.Gpt41Mini20250414 => "gpt-4.1-mini-2025-04-14", + CreateThreadAndRunRequestWithoutStreamModel.Gpt41Nano20250414 => "gpt-4.1-nano-2025-04-14", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4o => "gpt-4o", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4o20241120 => "gpt-4o-2024-11-20", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4o20240806 => "gpt-4o-2024-08-06", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4o20240513 => "gpt-4o-2024-05-13", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4oMini => "gpt-4o-mini", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4oMini20240718 => "gpt-4o-mini-2024-07-18", + CreateThreadAndRunRequestWithoutStreamModel.Gpt45Preview => "gpt-4.5-preview", + CreateThreadAndRunRequestWithoutStreamModel.Gpt45Preview20250227 => "gpt-4.5-preview-2025-02-27", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4Turbo => "gpt-4-turbo", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4Turbo20240409 => "gpt-4-turbo-2024-04-09", + CreateThreadAndRunRequestWithoutStreamModel.Gpt40125Preview => "gpt-4-0125-preview", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4TurboPreview => "gpt-4-turbo-preview", + CreateThreadAndRunRequestWithoutStreamModel.Gpt41106Preview => "gpt-4-1106-preview", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4VisionPreview => "gpt-4-vision-preview", + CreateThreadAndRunRequestWithoutStreamModel.Gpt4 => "gpt-4", + CreateThreadAndRunRequestWithoutStreamModel.Gpt40314 => "gpt-4-0314", + CreateThreadAndRunRequestWithoutStreamModel.Gpt40613 => "gpt-4-0613", + CreateThreadAndRunRequestWithoutStreamModel.Gpt432k => "gpt-4-32k", + CreateThreadAndRunRequestWithoutStreamModel.Gpt432k0314 => "gpt-4-32k-0314", + CreateThreadAndRunRequestWithoutStreamModel.Gpt432k0613 => "gpt-4-32k-0613", + CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo => "gpt-3.5-turbo", + CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo16k => "gpt-3.5-turbo-16k", + CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo0613 => "gpt-3.5-turbo-0613", + CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo1106 => "gpt-3.5-turbo-1106", + CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo0125 => "gpt-3.5-turbo-0125", + CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo16k0613 => "gpt-3.5-turbo-16k-0613", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateThreadAndRunRequestWithoutStreamModel? ToEnum(string value) + { + return value switch + { + "gpt-4.1" => CreateThreadAndRunRequestWithoutStreamModel.Gpt41, + "gpt-4.1-mini" => CreateThreadAndRunRequestWithoutStreamModel.Gpt41Mini, + "gpt-4.1-nano" => CreateThreadAndRunRequestWithoutStreamModel.Gpt41Nano, + "gpt-4.1-2025-04-14" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4120250414, + "gpt-4.1-mini-2025-04-14" => CreateThreadAndRunRequestWithoutStreamModel.Gpt41Mini20250414, + "gpt-4.1-nano-2025-04-14" => CreateThreadAndRunRequestWithoutStreamModel.Gpt41Nano20250414, + "gpt-4o" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4o, + "gpt-4o-2024-11-20" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4o20241120, + "gpt-4o-2024-08-06" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4o20240806, + "gpt-4o-2024-05-13" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4o20240513, + "gpt-4o-mini" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4oMini, + "gpt-4o-mini-2024-07-18" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4oMini20240718, + "gpt-4.5-preview" => CreateThreadAndRunRequestWithoutStreamModel.Gpt45Preview, + "gpt-4.5-preview-2025-02-27" => CreateThreadAndRunRequestWithoutStreamModel.Gpt45Preview20250227, + "gpt-4-turbo" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4Turbo, + "gpt-4-turbo-2024-04-09" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4Turbo20240409, + "gpt-4-0125-preview" => CreateThreadAndRunRequestWithoutStreamModel.Gpt40125Preview, + "gpt-4-turbo-preview" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4TurboPreview, + "gpt-4-1106-preview" => CreateThreadAndRunRequestWithoutStreamModel.Gpt41106Preview, + "gpt-4-vision-preview" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4VisionPreview, + "gpt-4" => CreateThreadAndRunRequestWithoutStreamModel.Gpt4, + "gpt-4-0314" => CreateThreadAndRunRequestWithoutStreamModel.Gpt40314, + "gpt-4-0613" => CreateThreadAndRunRequestWithoutStreamModel.Gpt40613, + "gpt-4-32k" => CreateThreadAndRunRequestWithoutStreamModel.Gpt432k, + "gpt-4-32k-0314" => CreateThreadAndRunRequestWithoutStreamModel.Gpt432k0314, + "gpt-4-32k-0613" => CreateThreadAndRunRequestWithoutStreamModel.Gpt432k0613, + "gpt-3.5-turbo" => CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo, + "gpt-3.5-turbo-16k" => CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo16k, + "gpt-3.5-turbo-0613" => CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo0613, + "gpt-3.5-turbo-1106" => CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo1106, + "gpt-3.5-turbo-0125" => CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo0125, + "gpt-3.5-turbo-16k-0613" => CreateThreadAndRunRequestWithoutStreamModel.Gpt35Turbo16k0613, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResources.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResources.Json.g.cs new file mode 100644 index 00000000..7e568cd8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResources.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateThreadAndRunRequestWithoutStreamToolResources + { + /// + /// 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources; + } + + /// + /// 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources? 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResources; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResources.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResources.g.cs new file mode 100644 index 00000000..5aa0b97f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResources.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs. + /// + public sealed partial class CreateThreadAndRunRequestWithoutStreamToolResources + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code_interpreter")] + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter? CodeInterpreter { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_search")] + public global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch? FileSearch { 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 CreateThreadAndRunRequestWithoutStreamToolResources( + global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter? codeInterpreter, + global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch? fileSearch) + { + this.CodeInterpreter = codeInterpreter; + this.FileSearch = fileSearch; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateThreadAndRunRequestWithoutStreamToolResources() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter.Json.g.cs new file mode 100644 index 00000000..bccf2018 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter + { + /// + /// 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter; + } + + /// + /// 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter? 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter.g.cs new file mode 100644 index 00000000..04df5f04 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter + { + /// + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] + public global::System.Collections.Generic.IList? FileIds { 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. + /// + /// + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter( + global::System.Collections.Generic.IList? fileIds) + { + this.FileIds = fileIds; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateThreadAndRunRequestWithoutStreamToolResourcesCodeInterpreter() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch.Json.g.cs new file mode 100644 index 00000000..a8732346 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch + { + /// + /// 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch; + } + + /// + /// 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch? 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::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch.g.cs new file mode 100644 index 00000000..9e376689 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch + { + /// + /// The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_ids")] + public global::System.Collections.Generic.IList? VectorStoreIds { 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 ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch( + global::System.Collections.Generic.IList? vectorStoreIds) + { + this.VectorStoreIds = vectorStoreIds; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateThreadAndRunRequestWithoutStreamToolResourcesFileSearch() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequest.g.cs index 2c39c123..25376cf7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequest.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public sealed partial class CreateThreadRequest { /// - /// A list of [messages](/docs/api-reference/messages) to start the thread with. + /// A list of [messages](https://platform.openai.com/docs/api-reference/messages) to start the thread with. /// [global::System.Text.Json.Serialization.JsonPropertyName("messages")] public global::System.Collections.Generic.IList? Messages { get; set; } @@ -41,7 +41,7 @@ public sealed partial class CreateThreadRequest /// Initializes a new instance of the class. ///
/// - /// A list of [messages](/docs/api-reference/messages) to start the thread with. + /// A list of [messages](https://platform.openai.com/docs/api-reference/messages) to start the thread with. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesCodeInterpreter.g.cs index 7953483b..d2fd6837 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesCodeInterpreter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesCodeInterpreter.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class CreateThreadRequestToolResourcesCodeInterpreter { /// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class CreateThreadRequestToolResourcesCodeInterpreter /// Initializes a new instance of the class. ///
/// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearch.g.cs index d10351f6..f3da616b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearch.g.cs @@ -9,13 +9,13 @@ namespace tryAGI.OpenAI public sealed partial class CreateThreadRequestToolResourcesFileSearch { /// - /// The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. + /// The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_ids")] public global::System.Collections.Generic.IList? VectorStoreIds { get; set; } /// - /// A helper to create a [vector store](/docs/api-reference/vector-stores/object) with file_ids and attach it to this thread. There can be a maximum of 1 vector store attached to the thread. + /// A helper to create a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) with file_ids and attach it to this thread. There can be a maximum of 1 vector store attached to the thread. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_stores")] public global::System.Collections.Generic.IList? VectorStores { get; set; } @@ -30,10 +30,10 @@ public sealed partial class CreateThreadRequestToolResourcesFileSearch /// Initializes a new instance of the class. /// /// - /// The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. + /// The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. /// /// - /// A helper to create a [vector store](/docs/api-reference/vector-stores/object) with file_ids and attach it to this thread. There can be a maximum of 1 vector store attached to the thread. + /// A helper to create a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) with file_ids and attach it to this thread. There can be a maximum of 1 vector store attached to the thread. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStore.g.cs index 282edd2e..e3408684 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStore.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,11 +12,11 @@ public sealed partial class CreateThreadRequestToolResourcesFileSearchVectorStor /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. /// [global::System.Text.Json.Serialization.JsonPropertyName("chunking_strategy")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? ChunkingStrategy { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyJsonConverter))] + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy? ChunkingStrategy { get; set; } /// - /// A list of [file](/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -46,7 +44,7 @@ public sealed partial class CreateThreadRequestToolResourcesFileSearchVectorStor /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. /// /// - /// A list of [file](/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -59,7 +57,7 @@ public sealed partial class CreateThreadRequestToolResourcesFileSearchVectorStor [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateThreadRequestToolResourcesFileSearchVectorStore( - global::tryAGI.OpenAI.OneOf? chunkingStrategy, + global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy? chunkingStrategy, global::System.Collections.Generic.IList? fileIds, global::System.Collections.Generic.Dictionary? metadata) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.Json.g.cs new file mode 100644 index 00000000..1b82df1e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy + { + /// + /// 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::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy?; + } + + /// + /// 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::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy? 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::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs new file mode 100644 index 00000000..7ce90d49 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// + public readonly partial struct CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy : global::System.IEquatable + { + /// + /// The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Value1 { get; init; } +#else + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// + public static implicit operator CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1 value) => new CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy((global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1?(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Value1; + + /// + /// + /// + public CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value) + { + Value1 = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Value2 { get; init; } +#else + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// + public static implicit operator CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2 value) => new CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy((global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2?(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Value2; + + /// + /// + /// + public CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value) + { + Value2 = value; + } + + /// + /// + /// + public CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy( + global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value1, + global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value2 + ) + { + Value1 = value1; + Value2 = value2; + } + + /// + /// + /// + public object? Object => + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public override string? ToString() => + Value1?.ToString() ?? + Value2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 || IsValue2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), + Value2, + typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + ; + } + + /// + /// + /// + public static bool operator ==(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy obj1, CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy obj1, CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.Json.g.cs new file mode 100644 index 00000000..133a7c83 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator? 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::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.g.cs new file mode 100644 index 00000000..d7fa2751 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionRequest.g.cs index 4bba7fa7..5ff80355 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionRequest.g.cs @@ -14,8 +14,8 @@ public sealed partial class CreateTranscriptionRequest /// Controls how the audio is cut into chunks. When set to `"auto"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection parameters manually. If unset, the audio is transcribed as a single block. /// [global::System.Text.Json.Serialization.JsonPropertyName("chunking_strategy")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] - public global::tryAGI.OpenAI.AnyOf? ChunkingStrategy { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategyJsonConverter))] + public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? ChunkingStrategy { get; set; } /// /// The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. @@ -38,7 +38,7 @@ public sealed partial class CreateTranscriptionRequest /// `logprobs` only works with response_format set to `json` and only with
/// the models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("include[]")] + [global::System.Text.Json.Serialization.JsonPropertyName("include")] public global::System.Collections.Generic.IList? Include { get; set; } /// @@ -58,7 +58,7 @@ public sealed partial class CreateTranscriptionRequest public required global::tryAGI.OpenAI.AnyOf Model { get; set; } /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language. + /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match the audio language. /// [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] public string? Prompt { get; set; } @@ -74,7 +74,7 @@ public sealed partial class CreateTranscriptionRequest /// /// If set to true, the model response data will be streamed to the client
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
- /// See the [Streaming section of the Speech-to-Text guide](/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
+ /// See the [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
/// for more information.
/// Note: Streaming is not supported for the `whisper-1` model and will be ignored.
/// Default Value: false @@ -93,7 +93,7 @@ public sealed partial class CreateTranscriptionRequest /// The timestamp granularities to populate for this transcription. `response_format` must be set `verbose_json` to use timestamp granularities. Either or both of these options are supported: `word`, or `segment`. Note: There is no additional latency for segment timestamps, but generating word timestamps incurs additional latency.
/// Default Value: [segment] ///
- [global::System.Text.Json.Serialization.JsonPropertyName("timestamp_granularities[]")] + [global::System.Text.Json.Serialization.JsonPropertyName("timestamp_granularities")] public global::System.Collections.Generic.IList? TimestampGranularities { get; set; } /// @@ -129,7 +129,7 @@ public sealed partial class CreateTranscriptionRequest /// Example: gpt-4o-transcribe /// /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language. + /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match the audio language. /// /// /// The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, the only supported format is `json`.
@@ -138,7 +138,7 @@ public sealed partial class CreateTranscriptionRequest /// /// If set to true, the model response data will be streamed to the client
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
- /// See the [Streaming section of the Speech-to-Text guide](/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
+ /// See the [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
/// for more information.
/// Note: Streaming is not supported for the `whisper-1` model and will be ignored.
/// Default Value: false @@ -158,7 +158,7 @@ public CreateTranscriptionRequest( byte[] file, string filename, global::tryAGI.OpenAI.AnyOf model, - global::tryAGI.OpenAI.AnyOf? chunkingStrategy, + global::tryAGI.OpenAI.TranscriptionChunkingStrategy? chunkingStrategy, global::System.Collections.Generic.IList? include, string? language, string? prompt, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJson.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJson.g.cs index df9df705..ba53d8fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJson.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJson.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -27,8 +25,8 @@ public sealed partial class CreateTranscriptionResponseJson /// Token usage statistics for the request. ///
[global::System.Text.Json.Serialization.JsonPropertyName("usage")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? Usage { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseJsonUsageJsonConverter))] + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage? Usage { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -54,7 +52,7 @@ public sealed partial class CreateTranscriptionResponseJson public CreateTranscriptionResponseJson( string text, global::System.Collections.Generic.IList? logprobs, - global::tryAGI.OpenAI.OneOf? usage) + global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage? usage) { this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Logprobs = logprobs; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsage.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsage.Json.g.cs new file mode 100644 index 00000000..f674c309 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsage.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct CreateTranscriptionResponseJsonUsage + { + /// + /// 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::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage?; + } + + /// + /// 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::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage? 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::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsage?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsage.g.cs new file mode 100644 index 00000000..7c2f0ac3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsage.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Token usage statistics for the request. + /// + public readonly partial struct CreateTranscriptionResponseJsonUsage : global::System.IEquatable + { + /// + /// Usage statistics for models billed by token usage. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.TranscriptTextUsageTokens? TranscriptTextTokens { get; init; } +#else + public global::tryAGI.OpenAI.TranscriptTextUsageTokens? TranscriptTextTokens { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TranscriptTextTokens))] +#endif + public bool IsTranscriptTextTokens => TranscriptTextTokens != null; + + /// + /// + /// + public static implicit operator CreateTranscriptionResponseJsonUsage(global::tryAGI.OpenAI.TranscriptTextUsageTokens value) => new CreateTranscriptionResponseJsonUsage((global::tryAGI.OpenAI.TranscriptTextUsageTokens?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.TranscriptTextUsageTokens?(CreateTranscriptionResponseJsonUsage @this) => @this.TranscriptTextTokens; + + /// + /// + /// + public CreateTranscriptionResponseJsonUsage(global::tryAGI.OpenAI.TranscriptTextUsageTokens? value) + { + TranscriptTextTokens = value; + } + + /// + /// Usage statistics for models billed by audio input duration. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.TranscriptTextUsageDuration? TranscriptTextDuration { get; init; } +#else + public global::tryAGI.OpenAI.TranscriptTextUsageDuration? TranscriptTextDuration { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TranscriptTextDuration))] +#endif + public bool IsTranscriptTextDuration => TranscriptTextDuration != null; + + /// + /// + /// + public static implicit operator CreateTranscriptionResponseJsonUsage(global::tryAGI.OpenAI.TranscriptTextUsageDuration value) => new CreateTranscriptionResponseJsonUsage((global::tryAGI.OpenAI.TranscriptTextUsageDuration?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.TranscriptTextUsageDuration?(CreateTranscriptionResponseJsonUsage @this) => @this.TranscriptTextDuration; + + /// + /// + /// + public CreateTranscriptionResponseJsonUsage(global::tryAGI.OpenAI.TranscriptTextUsageDuration? value) + { + TranscriptTextDuration = value; + } + + /// + /// + /// + public CreateTranscriptionResponseJsonUsage( + global::tryAGI.OpenAI.TranscriptTextUsageTokens? transcriptTextTokens, + global::tryAGI.OpenAI.TranscriptTextUsageDuration? transcriptTextDuration + ) + { + TranscriptTextTokens = transcriptTextTokens; + TranscriptTextDuration = transcriptTextDuration; + } + + /// + /// + /// + public object? Object => + TranscriptTextDuration as object ?? + TranscriptTextTokens as object + ; + + /// + /// + /// + public override string? ToString() => + TranscriptTextTokens?.ToString() ?? + TranscriptTextDuration?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsTranscriptTextTokens || IsTranscriptTextDuration; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? transcriptTextTokens = null, + global::System.Func? transcriptTextDuration = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsTranscriptTextTokens && transcriptTextTokens != null) + { + return transcriptTextTokens(TranscriptTextTokens!); + } + else if (IsTranscriptTextDuration && transcriptTextDuration != null) + { + return transcriptTextDuration(TranscriptTextDuration!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? transcriptTextTokens = null, + global::System.Action? transcriptTextDuration = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsTranscriptTextTokens) + { + transcriptTextTokens?.Invoke(TranscriptTextTokens!); + } + else if (IsTranscriptTextDuration) + { + transcriptTextDuration?.Invoke(TranscriptTextDuration!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + TranscriptTextTokens, + typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), + TranscriptTextDuration, + typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(CreateTranscriptionResponseJsonUsage other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(TranscriptTextTokens, other.TranscriptTextTokens) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(TranscriptTextDuration, other.TranscriptTextDuration) + ; + } + + /// + /// + /// + public static bool operator ==(CreateTranscriptionResponseJsonUsage obj1, CreateTranscriptionResponseJsonUsage obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateTranscriptionResponseJsonUsage obj1, CreateTranscriptionResponseJsonUsage obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateTranscriptionResponseJsonUsage o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsageDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsageDiscriminator.Json.g.cs new file mode 100644 index 00000000..7ba89ab5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsageDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class CreateTranscriptionResponseJsonUsageDiscriminator + { + /// + /// 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::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsageDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsageDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsageDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsageDiscriminator? 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::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsageDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CreateTranscriptionResponseJsonUsageDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsageDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsageDiscriminator.g.cs new file mode 100644 index 00000000..506cd279 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseJsonUsageDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class CreateTranscriptionResponseJsonUsageDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 CreateTranscriptionResponseJsonUsageDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTranscriptionResponseJsonUsageDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs index 587631c6..2df1d8bb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public readonly partial struct CreateTranscriptionResponseStreamEvent : global::System.IEquatable { /// - /// Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`. + /// Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? TranscriptTextDelta { get; init; } @@ -45,7 +45,7 @@ public CreateTranscriptionResponseStreamEvent(global::tryAGI.OpenAI.TranscriptTe } /// - /// Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`. + /// Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.TranscriptTextDoneEvent? TranscriptTextDone { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranslationRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranslationRequest.g.cs index ed5757a6..f0e8899c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranslationRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranslationRequest.g.cs @@ -35,7 +35,7 @@ public sealed partial class CreateTranslationRequest public required global::tryAGI.OpenAI.AnyOf Model { get; set; } /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should be in English. + /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should be in English. /// [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] public string? Prompt { get; set; } @@ -75,7 +75,7 @@ public sealed partial class CreateTranslationRequest /// Example: whisper-1 /// /// - /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should be in English. + /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should be in English. /// /// /// The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateUploadRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateUploadRequest.g.cs index a54d670a..ff3a8184 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateUploadRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateUploadRequest.g.cs @@ -32,7 +32,7 @@ public sealed partial class CreateUploadRequest /// /// The intended purpose of the uploaded file.
- /// See the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose). + /// See the [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose). ///
[global::System.Text.Json.Serialization.JsonPropertyName("purpose")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateUploadRequestPurposeJsonConverter))] @@ -60,7 +60,7 @@ public sealed partial class CreateUploadRequest /// /// /// The intended purpose of the uploaded file.
- /// See the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose). + /// See the [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateUploadRequestPurpose.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateUploadRequestPurpose.g.cs index 0fdd382b..a05b2c1f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateUploadRequestPurpose.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateUploadRequestPurpose.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// The intended purpose of the uploaded file.
- /// See the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose). + /// See the [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose). ///
public enum CreateUploadRequestPurpose { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreFileBatchRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreFileBatchRequest.g.cs index 8d234130..d06f8c37 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreFileBatchRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreFileBatchRequest.g.cs @@ -19,14 +19,14 @@ public sealed partial class CreateVectorStoreFileBatchRequest public object? Attributes { get; set; } /// - /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. /// [global::System.Text.Json.Serialization.JsonPropertyName("chunking_strategy")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamJsonConverter))] public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? ChunkingStrategy { get; set; } /// - /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. + /// A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] [global::System.Text.Json.Serialization.JsonRequired] @@ -49,10 +49,10 @@ public sealed partial class CreateVectorStoreFileBatchRequest /// length of 512 characters, booleans, or numbers. /// /// - /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. /// /// - /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. + /// A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreFileRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreFileRequest.g.cs index f10a7394..c99384fb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreFileRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreFileRequest.g.cs @@ -19,14 +19,14 @@ public sealed partial class CreateVectorStoreFileRequest public object? Attributes { get; set; } /// - /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. /// [global::System.Text.Json.Serialization.JsonPropertyName("chunking_strategy")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamJsonConverter))] public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? ChunkingStrategy { get; set; } /// - /// A [File](/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. + /// A [File](https://platform.openai.com/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -49,10 +49,10 @@ public sealed partial class CreateVectorStoreFileRequest /// length of 512 characters, booleans, or numbers. /// /// - /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. /// /// - /// A [File](/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. + /// A [File](https://platform.openai.com/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreRequest.g.cs index ffd620bc..a425f332 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVectorStoreRequest.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,8 +12,8 @@ public sealed partial class CreateVectorStoreRequest /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. ///
[global::System.Text.Json.Serialization.JsonPropertyName("chunking_strategy")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? ChunkingStrategy { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamJsonConverter))] + public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? ChunkingStrategy { get; set; } /// /// The expiration policy for a vector store. @@ -24,7 +22,7 @@ public sealed partial class CreateVectorStoreRequest public global::tryAGI.OpenAI.VectorStoreExpirationAfter? ExpiresAfter { get; set; } /// - /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. + /// A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -61,7 +59,7 @@ public sealed partial class CreateVectorStoreRequest /// The expiration policy for a vector store. /// /// - /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. + /// A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -77,7 +75,7 @@ public sealed partial class CreateVectorStoreRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateVectorStoreRequest( - global::tryAGI.OpenAI.OneOf? chunkingStrategy, + global::tryAGI.OpenAI.ChunkingStrategyRequestParam? chunkingStrategy, global::tryAGI.OpenAI.VectorStoreExpirationAfter? expiresAfter, global::System.Collections.Generic.IList? fileIds, global::System.Collections.Generic.Dictionary? metadata, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EasyInputMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EasyInputMessage.g.cs index 159d1cf1..c33b956b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EasyInputMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EasyInputMessage.g.cs @@ -19,9 +19,9 @@ public sealed partial class EasyInputMessage /// Can also contain previous assistant responses. ///
[global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf> Content { get; set; } + public required global::tryAGI.OpenAI.AnyOf> Content { get; set; } /// /// The role of the message input. One of `user`, `assistant`, `system`, or
@@ -63,7 +63,7 @@ public sealed partial class EasyInputMessage [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EasyInputMessage( - global::tryAGI.OpenAI.OneOf> content, + global::tryAGI.OpenAI.AnyOf> content, global::tryAGI.OpenAI.EasyInputMessageRole role, global::tryAGI.OpenAI.EasyInputMessageType? type) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Embedding.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Embedding.g.cs index dc160afc..4b63e808 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Embedding.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Embedding.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class Embedding { /// - /// The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](/docs/guides/embeddings). + /// The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](https://platform.openai.com/docs/guides/embeddings). /// [global::System.Text.Json.Serialization.JsonPropertyName("embedding")] [global::System.Text.Json.Serialization.JsonRequired] @@ -39,7 +39,7 @@ public sealed partial class Embedding /// Initializes a new instance of the class. ///
/// - /// The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](/docs/guides/embeddings). + /// The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](https://platform.openai.com/docs/guides/embeddings). /// /// /// The index of the embedding in the list of embeddings. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ErrorEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ErrorEvent.g.cs index dc87e43b..1c48a95e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ErrorEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ErrorEvent.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Occurs when an [error](/docs/guides/error-codes#api-errors) occurs. This can happen due to an internal server error or a timeout. + /// Occurs when an [error](https://platform.openai.com/docs/guides/error-codes#api-errors) occurs. This can happen due to an internal server error or a timeout. /// public sealed partial class ErrorEvent { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Eval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Eval.g.cs index 0eb5de98..c5c3c76c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Eval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Eval.g.cs @@ -27,9 +27,9 @@ public sealed partial class Eval /// Configuration of data sources used in runs of the evaluation. ///
[global::System.Text.Json.Serialization.JsonPropertyName("data_source_config")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.EvalDataSourceConfigJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf DataSourceConfig { get; set; } + public required global::tryAGI.OpenAI.EvalDataSourceConfig DataSourceConfig { get; set; } /// /// Unique identifier for the evaluation. @@ -68,12 +68,11 @@ public sealed partial class Eval public global::tryAGI.OpenAI.EvalObject Object { get; set; } = global::tryAGI.OpenAI.EvalObject.Eval; /// - /// A list of testing criteria.
- /// Default Value: eval + /// A list of testing criteria. ///
[global::System.Text.Json.Serialization.JsonPropertyName("testing_criteria")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> TestingCriteria { get; set; } + public required global::System.Collections.Generic.IList> TestingCriteria { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -109,19 +108,18 @@ public sealed partial class Eval /// Default Value: eval /// /// - /// A list of testing criteria.
- /// Default Value: eval + /// A list of testing criteria. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Eval( global::System.DateTimeOffset createdAt, - global::tryAGI.OpenAI.OneOf dataSourceConfig, + global::tryAGI.OpenAI.EvalDataSourceConfig dataSourceConfig, string id, global::System.Collections.Generic.Dictionary? metadata, string name, - global::System.Collections.Generic.IList> testingCriteria, + global::System.Collections.Generic.IList> testingCriteria, global::tryAGI.OpenAI.EvalObject @object = global::tryAGI.OpenAI.EvalObject.Eval) { this.CreatedAt = createdAt; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfig.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfig.g.cs index df04bf19..254f0820 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfig.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfig.g.cs @@ -13,36 +13,8 @@ public sealed partial class EvalCustomDataSourceConfig { /// /// The json schema for the run data source items.
- /// Learn how to build JSON schemas [here](https://json-schema.org/).
- /// Example: {
- /// "type": "object",
- /// "properties": {
- /// "item": {
- /// "type": "object",
- /// "properties": {
- /// "label": {"type": "string"},
- /// },
- /// "required": ["label"]
- /// }
- /// },
- /// "required": ["item"]
- /// } + /// Learn how to build JSON schemas [here](https://json-schema.org/). ///
- /// - /// {
- /// "type": "object",
- /// "properties": {
- /// "item": {
- /// "type": "object",
- /// "properties": {
- /// "label": {"type": "string"},
- /// },
- /// "required": ["label"]
- /// }
- /// },
- /// "required": ["item"]
- /// } - ///
[global::System.Text.Json.Serialization.JsonPropertyName("schema")] [global::System.Text.Json.Serialization.JsonRequired] public required object Schema { get; set; } @@ -67,20 +39,7 @@ public sealed partial class EvalCustomDataSourceConfig ///
/// /// The json schema for the run data source items.
- /// Learn how to build JSON schemas [here](https://json-schema.org/).
- /// Example: {
- /// "type": "object",
- /// "properties": {
- /// "item": {
- /// "type": "object",
- /// "properties": {
- /// "label": {"type": "string"},
- /// },
- /// "required": ["label"]
- /// }
- /// },
- /// "required": ["item"]
- /// } + /// Learn how to build JSON schemas [here](https://json-schema.org/). /// /// /// The type of data source. Always `custom`.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfigSchema.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfigSchema.g.cs index 50473f29..e2d7e94b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfigSchema.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalCustomDataSourceConfigSchema.g.cs @@ -5,20 +5,7 @@ namespace tryAGI.OpenAI { /// /// The json schema for the run data source items.
- /// Learn how to build JSON schemas [here](https://json-schema.org/).
- /// Example: {
- /// "type": "object",
- /// "properties": {
- /// "item": {
- /// "type": "object",
- /// "properties": {
- /// "label": {"type": "string"},
- /// },
- /// "required": ["label"]
- /// }
- /// },
- /// "required": ["item"]
- /// } + /// Learn how to build JSON schemas [here](https://json-schema.org/). ///
public sealed partial class EvalCustomDataSourceConfigSchema { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfig.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfig.Json.g.cs new file mode 100644 index 00000000..7420a4a6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct EvalDataSourceConfig + { + /// + /// 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::tryAGI.OpenAI.EvalDataSourceConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.EvalDataSourceConfig), + jsonSerializerContext) as global::tryAGI.OpenAI.EvalDataSourceConfig?; + } + + /// + /// 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::tryAGI.OpenAI.EvalDataSourceConfig? 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::tryAGI.OpenAI.EvalDataSourceConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.EvalDataSourceConfig?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfig.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfig.g.cs new file mode 100644 index 00000000..d49deb03 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfig.g.cs @@ -0,0 +1,280 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Configuration of data sources used in runs of the evaluation. + /// + public readonly partial struct EvalDataSourceConfig : global::System.IEquatable + { + /// + /// A CustomDataSourceConfig which specifies the schema of your `item` and optionally `sample` namespaces.
+ /// The response schema defines the shape of the data that will be:
+ /// - Used to define your testing criteria and
+ /// - What data is required when creating a run + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Custom { get; init; } +#else + public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public static implicit operator EvalDataSourceConfig(global::tryAGI.OpenAI.EvalCustomDataSourceConfig value) => new EvalDataSourceConfig((global::tryAGI.OpenAI.EvalCustomDataSourceConfig?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalCustomDataSourceConfig?(EvalDataSourceConfig @this) => @this.Custom; + + /// + /// + /// + public EvalDataSourceConfig(global::tryAGI.OpenAI.EvalCustomDataSourceConfig? value) + { + Custom = value; + } + + /// + /// A LogsDataSourceConfig which specifies the metadata property of your logs query.
+ /// This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc.
+ /// The schema returned by this data source config is used to defined what variables are available in your evals.
+ /// `item` and `sample` are both defined when using this data source config. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Logs { get; init; } +#else + public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Logs { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Logs))] +#endif + public bool IsLogs => Logs != null; + + /// + /// + /// + public static implicit operator EvalDataSourceConfig(global::tryAGI.OpenAI.EvalLogsDataSourceConfig value) => new EvalDataSourceConfig((global::tryAGI.OpenAI.EvalLogsDataSourceConfig?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalLogsDataSourceConfig?(EvalDataSourceConfig @this) => @this.Logs; + + /// + /// + /// + public EvalDataSourceConfig(global::tryAGI.OpenAI.EvalLogsDataSourceConfig? value) + { + Logs = value; + } + + /// + /// Deprecated in favor of LogsDataSourceConfig. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? StoredCompletions { get; init; } +#else + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? StoredCompletions { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StoredCompletions))] +#endif + public bool IsStoredCompletions => StoredCompletions != null; + + /// + /// + /// + public static implicit operator EvalDataSourceConfig(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig value) => new EvalDataSourceConfig((global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig?(EvalDataSourceConfig @this) => @this.StoredCompletions; + + /// + /// + /// + public EvalDataSourceConfig(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? value) + { + StoredCompletions = value; + } + + /// + /// + /// + public EvalDataSourceConfig( + global::tryAGI.OpenAI.EvalCustomDataSourceConfig? custom, + global::tryAGI.OpenAI.EvalLogsDataSourceConfig? logs, + global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? storedCompletions + ) + { + Custom = custom; + Logs = logs; + StoredCompletions = storedCompletions; + } + + /// + /// + /// + public object? Object => + StoredCompletions as object ?? + Logs as object ?? + Custom as object + ; + + /// + /// + /// + public override string? ToString() => + Custom?.ToString() ?? + Logs?.ToString() ?? + StoredCompletions?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCustom || IsLogs || IsStoredCompletions; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? custom = null, + global::System.Func? logs = null, + global::System.Func? storedCompletions = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom && custom != null) + { + return custom(Custom!); + } + else if (IsLogs && logs != null) + { + return logs(Logs!); + } + else if (IsStoredCompletions && storedCompletions != null) + { + return storedCompletions(StoredCompletions!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? custom = null, + global::System.Action? logs = null, + global::System.Action? storedCompletions = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom) + { + custom?.Invoke(Custom!); + } + else if (IsLogs) + { + logs?.Invoke(Logs!); + } + else if (IsStoredCompletions) + { + storedCompletions?.Invoke(StoredCompletions!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Custom, + typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig), + Logs, + typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig), + StoredCompletions, + typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(EvalDataSourceConfig other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Logs, other.Logs) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(StoredCompletions, other.StoredCompletions) + ; + } + + /// + /// + /// + public static bool operator ==(EvalDataSourceConfig obj1, EvalDataSourceConfig obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(EvalDataSourceConfig obj1, EvalDataSourceConfig obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is EvalDataSourceConfig o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfigDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfigDiscriminator.Json.g.cs new file mode 100644 index 00000000..0e7ecc1c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfigDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class EvalDataSourceConfigDiscriminator + { + /// + /// 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::tryAGI.OpenAI.EvalDataSourceConfigDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.EvalDataSourceConfigDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.EvalDataSourceConfigDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.EvalDataSourceConfigDiscriminator? 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::tryAGI.OpenAI.EvalDataSourceConfigDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.EvalDataSourceConfigDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfigDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfigDiscriminator.g.cs new file mode 100644 index 00000000..1e4bad3f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalDataSourceConfigDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class EvalDataSourceConfigDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 EvalDataSourceConfigDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public EvalDataSourceConfigDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItem.g.cs index 7cd28ecb..c03a802f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItem.g.cs @@ -18,9 +18,9 @@ public sealed partial class EvalItem /// Inputs to the model - can contain template strings. ///
[global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Content { get; set; } + public required global::tryAGI.OpenAI.AnyOf Content { get; set; } /// /// The role of the message input. One of `user`, `assistant`, `system`, or
@@ -61,7 +61,7 @@ public sealed partial class EvalItem [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EvalItem( - global::tryAGI.OpenAI.OneOf content, + global::tryAGI.OpenAI.AnyOf content, global::tryAGI.OpenAI.EvalItemRole role, global::tryAGI.OpenAI.EvalItemType? type) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRun.g.cs index d015ee40..2065cffd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRun.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -22,9 +20,9 @@ public sealed partial class EvalRun /// Information about the run's data source. ///
[global::System.Text.Json.Serialization.JsonPropertyName("data_source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.EvalRunDataSourceJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf DataSource { get; set; } + public required global::tryAGI.OpenAI.EvalRunDataSource DataSource { get; set; } /// /// An object representing an error response from the Eval API. @@ -177,7 +175,7 @@ public sealed partial class EvalRun #endif public EvalRun( global::System.DateTimeOffset createdAt, - global::tryAGI.OpenAI.OneOf dataSource, + global::tryAGI.OpenAI.EvalRunDataSource dataSource, global::tryAGI.OpenAI.EvalApiError error, string evalId, string id, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSource.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSource.Json.g.cs new file mode 100644 index 00000000..c8a77d3a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct EvalRunDataSource + { + /// + /// 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::tryAGI.OpenAI.EvalRunDataSource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.EvalRunDataSource), + jsonSerializerContext) as global::tryAGI.OpenAI.EvalRunDataSource?; + } + + /// + /// 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::tryAGI.OpenAI.EvalRunDataSource? 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::tryAGI.OpenAI.EvalRunDataSource), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.EvalRunDataSource?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSource.g.cs new file mode 100644 index 00000000..1e1f22c9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSource.g.cs @@ -0,0 +1,274 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Information about the run's data source. + /// + public readonly partial struct EvalRunDataSource : global::System.IEquatable + { + /// + /// A JsonlRunDataSource object with that specifies a JSONL file that matches the eval + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? CreateJsonl { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? CreateJsonl { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateJsonl))] +#endif + public bool IsCreateJsonl => CreateJsonl != null; + + /// + /// + /// + public static implicit operator EvalRunDataSource(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource value) => new EvalRunDataSource((global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource?(EvalRunDataSource @this) => @this.CreateJsonl; + + /// + /// + /// + public EvalRunDataSource(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? value) + { + CreateJsonl = value; + } + + /// + /// A CompletionsRunDataSource object describing a model sampling configuration. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? CreateCompletions { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? CreateCompletions { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateCompletions))] +#endif + public bool IsCreateCompletions => CreateCompletions != null; + + /// + /// + /// + public static implicit operator EvalRunDataSource(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource value) => new EvalRunDataSource((global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource?(EvalRunDataSource @this) => @this.CreateCompletions; + + /// + /// + /// + public EvalRunDataSource(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? value) + { + CreateCompletions = value; + } + + /// + /// A ResponsesRunDataSource object describing a model sampling configuration. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? CreateResponses { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? CreateResponses { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateResponses))] +#endif + public bool IsCreateResponses => CreateResponses != null; + + /// + /// + /// + public static implicit operator EvalRunDataSource(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource value) => new EvalRunDataSource((global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource?(EvalRunDataSource @this) => @this.CreateResponses; + + /// + /// + /// + public EvalRunDataSource(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? value) + { + CreateResponses = value; + } + + /// + /// + /// + public EvalRunDataSource( + global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? createJsonl, + global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? createCompletions, + global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? createResponses + ) + { + CreateJsonl = createJsonl; + CreateCompletions = createCompletions; + CreateResponses = createResponses; + } + + /// + /// + /// + public object? Object => + CreateResponses as object ?? + CreateCompletions as object ?? + CreateJsonl as object + ; + + /// + /// + /// + public override string? ToString() => + CreateJsonl?.ToString() ?? + CreateCompletions?.ToString() ?? + CreateResponses?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCreateJsonl || IsCreateCompletions || IsCreateResponses; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? createJsonl = null, + global::System.Func? createCompletions = null, + global::System.Func? createResponses = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateJsonl && createJsonl != null) + { + return createJsonl(CreateJsonl!); + } + else if (IsCreateCompletions && createCompletions != null) + { + return createCompletions(CreateCompletions!); + } + else if (IsCreateResponses && createResponses != null) + { + return createResponses(CreateResponses!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? createJsonl = null, + global::System.Action? createCompletions = null, + global::System.Action? createResponses = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateJsonl) + { + createJsonl?.Invoke(CreateJsonl!); + } + else if (IsCreateCompletions) + { + createCompletions?.Invoke(CreateCompletions!); + } + else if (IsCreateResponses) + { + createResponses?.Invoke(CreateResponses!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CreateJsonl, + typeof(global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource), + CreateCompletions, + typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource), + CreateResponses, + typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(EvalRunDataSource other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateJsonl, other.CreateJsonl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateCompletions, other.CreateCompletions) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateResponses, other.CreateResponses) + ; + } + + /// + /// + /// + public static bool operator ==(EvalRunDataSource obj1, EvalRunDataSource obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(EvalRunDataSource obj1, EvalRunDataSource obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is EvalRunDataSource o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSourceDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSourceDiscriminator.Json.g.cs new file mode 100644 index 00000000..f957fe7f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSourceDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class EvalRunDataSourceDiscriminator + { + /// + /// 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::tryAGI.OpenAI.EvalRunDataSourceDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.EvalRunDataSourceDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.EvalRunDataSourceDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.EvalRunDataSourceDiscriminator? 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::tryAGI.OpenAI.EvalRunDataSourceDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.EvalRunDataSourceDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSourceDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSourceDiscriminator.g.cs new file mode 100644 index 00000000..f4317a74 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunDataSourceDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class EvalRunDataSourceDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 EvalRunDataSourceDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public EvalRunDataSourceDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFileRequestPurpose.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FilePurpose.g.cs similarity index 74% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFileRequestPurpose.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FilePurpose.g.cs index b34314c6..4276bd6a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateFileRequestPurpose.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FilePurpose.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// The intended purpose of the uploaded file. One of: - `assistants`: Used in the Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: Flexible file type for any purpose - `evals`: Used for eval data sets /// - public enum CreateFileRequestPurpose + public enum FilePurpose { /// /// - `assistants`: Used in the Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: Flexible file type for any purpose - `evals`: Used for eval data sets @@ -37,37 +37,37 @@ public enum CreateFileRequestPurpose /// /// Enum extensions to do fast conversions without the reflection. /// - public static class CreateFileRequestPurposeExtensions + public static class FilePurposeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this CreateFileRequestPurpose value) + public static string ToValueString(this FilePurpose value) { return value switch { - CreateFileRequestPurpose.Assistants => "assistants", - CreateFileRequestPurpose.Batch => "batch", - CreateFileRequestPurpose.FineTune => "fine-tune", - CreateFileRequestPurpose.Vision => "vision", - CreateFileRequestPurpose.UserData => "user_data", - CreateFileRequestPurpose.Evals => "evals", + FilePurpose.Assistants => "assistants", + FilePurpose.Batch => "batch", + FilePurpose.FineTune => "fine-tune", + FilePurpose.Vision => "vision", + FilePurpose.UserData => "user_data", + FilePurpose.Evals => "evals", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static CreateFileRequestPurpose? ToEnum(string value) + public static FilePurpose? ToEnum(string value) { return value switch { - "assistants" => CreateFileRequestPurpose.Assistants, - "batch" => CreateFileRequestPurpose.Batch, - "fine-tune" => CreateFileRequestPurpose.FineTune, - "vision" => CreateFileRequestPurpose.Vision, - "user_data" => CreateFileRequestPurpose.UserData, - "evals" => CreateFileRequestPurpose.Evals, + "assistants" => FilePurpose.Assistants, + "batch" => FilePurpose.Batch, + "fine-tune" => FilePurpose.FineTune, + "vision" => FilePurpose.Vision, + "user_data" => FilePurpose.UserData, + "evals" => FilePurpose.Evals, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileSearchRankingOptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileSearchRankingOptions.g.cs index b8a297b1..b94df02a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileSearchRankingOptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileSearchRankingOptions.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.
- /// See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. + /// See the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information. ///
public sealed partial class FileSearchRankingOptions { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileSearchToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileSearchToolCall.g.cs index 4ca65959..8a226807 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileSearchToolCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileSearchToolCall.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// The results of a file search tool call. See the
- /// [file search guide](/docs/guides/tools-file-search) for more information. + /// [file search guide](https://platform.openai.com/docs/guides/tools-file-search) for more information. ///
public sealed partial class FileSearchToolCall { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatRequestInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatRequestInput.g.cs index fcf669a9..7663ed7a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatRequestInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatRequestInput.g.cs @@ -23,10 +23,10 @@ public sealed partial class FineTuneChatRequestInput /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("messages")] - public global::System.Collections.Generic.IList>? Messages { get; set; } + public global::System.Collections.Generic.IList>? Messages { get; set; } /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// [global::System.Text.Json.Serialization.JsonPropertyName("parallel_tool_calls")] public bool? ParallelToolCalls { get; set; } @@ -48,7 +48,7 @@ public sealed partial class FineTuneChatRequestInput ///
/// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// /// A list of tools the model may generate JSON inputs for. @@ -57,7 +57,7 @@ public sealed partial class FineTuneChatRequestInput [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FineTuneChatRequestInput( - global::System.Collections.Generic.IList>? messages, + global::System.Collections.Generic.IList>? messages, bool? parallelToolCalls, global::System.Collections.Generic.IList? tools) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneDPOHyperparameters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneDPOHyperparameters.g.cs index 157c35bf..e15581e3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneDPOHyperparameters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneDPOHyperparameters.g.cs @@ -15,32 +15,30 @@ public sealed partial class FineTuneDPOHyperparameters /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("batch_size")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? BatchSize { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? BatchSize { get; set; } /// - /// The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.
- /// Default Value: auto + /// The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("beta")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? Beta { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Beta { get; set; } /// - /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
- /// Default Value: auto + /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting. ///
[global::System.Text.Json.Serialization.JsonPropertyName("learning_rate_multiplier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? LearningRateMultiplier { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? LearningRateMultiplier { get; set; } /// /// The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
/// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("n_epochs")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? NEpochs { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? NEpochs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -56,12 +54,10 @@ public sealed partial class FineTuneDPOHyperparameters /// Default Value: auto /// /// - /// The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.
- /// Default Value: auto + /// The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model. /// /// - /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
- /// Default Value: auto + /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting. /// /// /// The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
@@ -71,10 +67,10 @@ public sealed partial class FineTuneDPOHyperparameters [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FineTuneDPOHyperparameters( - global::tryAGI.OpenAI.OneOf? batchSize, - global::tryAGI.OpenAI.OneOf? beta, - global::tryAGI.OpenAI.OneOf? learningRateMultiplier, - global::tryAGI.OpenAI.OneOf? nEpochs) + global::tryAGI.OpenAI.AnyOf? batchSize, + global::tryAGI.OpenAI.AnyOf? beta, + global::tryAGI.OpenAI.AnyOf? learningRateMultiplier, + global::tryAGI.OpenAI.AnyOf? nEpochs) { this.BatchSize = batchSize; this.Beta = beta; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTunePreferenceRequestInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTunePreferenceRequestInput.g.cs index 146e50eb..38c71b44 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTunePreferenceRequestInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTunePreferenceRequestInput.g.cs @@ -22,13 +22,13 @@ public sealed partial class FineTunePreferenceRequestInput /// The non-preferred completion message for the output. ///
[global::System.Text.Json.Serialization.JsonPropertyName("non_preferred_output")] - public global::System.Collections.Generic.IList>? NonPreferredOutput { get; set; } + public global::System.Collections.Generic.IList>? NonPreferredOutput { get; set; } /// /// The preferred completion message for the output. /// [global::System.Text.Json.Serialization.JsonPropertyName("preferred_output")] - public global::System.Collections.Generic.IList>? PreferredOutput { get; set; } + public global::System.Collections.Generic.IList>? PreferredOutput { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -51,8 +51,8 @@ public sealed partial class FineTunePreferenceRequestInput #endif public FineTunePreferenceRequestInput( global::tryAGI.OpenAI.FineTunePreferenceRequestInputInput? input, - global::System.Collections.Generic.IList>? nonPreferredOutput, - global::System.Collections.Generic.IList>? preferredOutput) + global::System.Collections.Generic.IList>? nonPreferredOutput, + global::System.Collections.Generic.IList>? preferredOutput) { this.Input = input; this.NonPreferredOutput = nonPreferredOutput; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTunePreferenceRequestInputInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTunePreferenceRequestInputInput.g.cs index ca8a6eef..2e9176a8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTunePreferenceRequestInputInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTunePreferenceRequestInputInput.g.cs @@ -14,10 +14,10 @@ public sealed partial class FineTunePreferenceRequestInputInput /// /// [global::System.Text.Json.Serialization.JsonPropertyName("messages")] - public global::System.Collections.Generic.IList>? Messages { get; set; } + public global::System.Collections.Generic.IList>? Messages { get; set; } /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// [global::System.Text.Json.Serialization.JsonPropertyName("parallel_tool_calls")] public bool? ParallelToolCalls { get; set; } @@ -39,7 +39,7 @@ public sealed partial class FineTunePreferenceRequestInputInput /// /// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// /// A list of tools the model may generate JSON inputs for. @@ -48,7 +48,7 @@ public sealed partial class FineTunePreferenceRequestInputInput [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FineTunePreferenceRequestInputInput( - global::System.Collections.Generic.IList>? messages, + global::System.Collections.Generic.IList>? messages, bool? parallelToolCalls, global::System.Collections.Generic.IList? tools) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementHyperparameters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementHyperparameters.g.cs index a3b9ff90..0500713d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementHyperparameters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementHyperparameters.g.cs @@ -15,48 +15,46 @@ public sealed partial class FineTuneReinforcementHyperparameters /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("batch_size")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? BatchSize { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? BatchSize { get; set; } /// - /// Multiplier on amount of compute used for exploring search space during training.
- /// Default Value: auto + /// Multiplier on amount of compute used for exploring search space during training. ///
[global::System.Text.Json.Serialization.JsonPropertyName("compute_multiplier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? ComputeMultiplier { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? ComputeMultiplier { get; set; } /// /// The number of training steps between evaluation runs.
/// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("eval_interval")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? EvalInterval { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? EvalInterval { get; set; } /// /// Number of evaluation samples to generate per training step.
/// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("eval_samples")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? EvalSamples { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? EvalSamples { get; set; } /// - /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
- /// Default Value: auto + /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting. ///
[global::System.Text.Json.Serialization.JsonPropertyName("learning_rate_multiplier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? LearningRateMultiplier { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? LearningRateMultiplier { get; set; } /// /// The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
/// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("n_epochs")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? NEpochs { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? NEpochs { get; set; } /// /// Level of reasoning effort.
@@ -80,8 +78,7 @@ public sealed partial class FineTuneReinforcementHyperparameters /// Default Value: auto /// /// - /// Multiplier on amount of compute used for exploring search space during training.
- /// Default Value: auto + /// Multiplier on amount of compute used for exploring search space during training. /// /// /// The number of training steps between evaluation runs.
@@ -92,8 +89,7 @@ public sealed partial class FineTuneReinforcementHyperparameters /// Default Value: auto /// /// - /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
- /// Default Value: auto + /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting. /// /// /// The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
@@ -107,12 +103,12 @@ public sealed partial class FineTuneReinforcementHyperparameters [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FineTuneReinforcementHyperparameters( - global::tryAGI.OpenAI.OneOf? batchSize, - global::tryAGI.OpenAI.OneOf? computeMultiplier, - global::tryAGI.OpenAI.OneOf? evalInterval, - global::tryAGI.OpenAI.OneOf? evalSamples, - global::tryAGI.OpenAI.OneOf? learningRateMultiplier, - global::tryAGI.OpenAI.OneOf? nEpochs, + global::tryAGI.OpenAI.AnyOf? batchSize, + global::tryAGI.OpenAI.AnyOf? computeMultiplier, + global::tryAGI.OpenAI.AnyOf? evalInterval, + global::tryAGI.OpenAI.AnyOf? evalSamples, + global::tryAGI.OpenAI.AnyOf? learningRateMultiplier, + global::tryAGI.OpenAI.AnyOf? nEpochs, global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? reasoningEffort) { this.BatchSize = batchSize; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementMethod.g.cs index 80cdad85..5633e5b9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementMethod.g.cs @@ -14,9 +14,9 @@ public sealed partial class FineTuneReinforcementMethod /// The grader used for the fine-tuning job. ///
[global::System.Text.Json.Serialization.JsonPropertyName("grader")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Grader { get; set; } + public required global::tryAGI.OpenAI.AnyOf Grader { get; set; } /// /// The hyperparameters used for the reinforcement fine-tuning job. @@ -43,7 +43,7 @@ public sealed partial class FineTuneReinforcementMethod [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FineTuneReinforcementMethod( - global::tryAGI.OpenAI.OneOf grader, + global::tryAGI.OpenAI.AnyOf grader, global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? hyperparameters) { this.Grader = grader; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementRequestInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementRequestInput.g.cs index 095b9ada..80d21e61 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementRequestInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneReinforcementRequestInput.g.cs @@ -18,7 +18,7 @@ public sealed partial class FineTuneReinforcementRequestInput /// [global::System.Text.Json.Serialization.JsonPropertyName("messages")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Messages { get; set; } + public required global::System.Collections.Generic.IList> Messages { get; set; } /// /// A list of tools the model may generate JSON inputs for. @@ -43,7 +43,7 @@ public sealed partial class FineTuneReinforcementRequestInput [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FineTuneReinforcementRequestInput( - global::System.Collections.Generic.IList> messages, + global::System.Collections.Generic.IList> messages, global::System.Collections.Generic.IList? tools) { this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneSupervisedHyperparameters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneSupervisedHyperparameters.g.cs index fe770030..4f5c8f49 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneSupervisedHyperparameters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneSupervisedHyperparameters.g.cs @@ -15,24 +15,23 @@ public sealed partial class FineTuneSupervisedHyperparameters /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("batch_size")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? BatchSize { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? BatchSize { get; set; } /// - /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
- /// Default Value: auto + /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting. ///
[global::System.Text.Json.Serialization.JsonPropertyName("learning_rate_multiplier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? LearningRateMultiplier { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? LearningRateMultiplier { get; set; } /// /// The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
/// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("n_epochs")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? NEpochs { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? NEpochs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,8 +47,7 @@ public sealed partial class FineTuneSupervisedHyperparameters /// Default Value: auto /// /// - /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
- /// Default Value: auto + /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting. /// /// /// The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
@@ -59,9 +57,9 @@ public sealed partial class FineTuneSupervisedHyperparameters [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FineTuneSupervisedHyperparameters( - global::tryAGI.OpenAI.OneOf? batchSize, - global::tryAGI.OpenAI.OneOf? learningRateMultiplier, - global::tryAGI.OpenAI.OneOf? nEpochs) + global::tryAGI.OpenAI.AnyOf? batchSize, + global::tryAGI.OpenAI.AnyOf? learningRateMultiplier, + global::tryAGI.OpenAI.AnyOf? nEpochs) { this.BatchSize = batchSize; this.LearningRateMultiplier = learningRateMultiplier; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJob.g.cs index 46b7e98d..230ecacd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJob.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -65,7 +63,7 @@ public sealed partial class FineTuningJob /// A list of integrations to enable for this fine-tuning job. ///
[global::System.Text.Json.Serialization.JsonPropertyName("integrations")] - public global::System.Collections.Generic.IList>? Integrations { get; set; } + public global::System.Collections.Generic.IList? Integrations { get; set; } /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -105,7 +103,7 @@ public sealed partial class FineTuningJob public required string OrganizationId { get; set; } /// - /// The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents). + /// The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents). /// [global::System.Text.Json.Serialization.JsonPropertyName("result_files")] [global::System.Text.Json.Serialization.JsonRequired] @@ -134,14 +132,14 @@ public sealed partial class FineTuningJob public required int? TrainedTokens { get; set; } /// - /// The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents). + /// The file ID used for training. You can retrieve the training data with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents). /// [global::System.Text.Json.Serialization.JsonPropertyName("training_file")] [global::System.Text.Json.Serialization.JsonRequired] public required string TrainingFile { get; set; } /// - /// The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents). + /// The file ID used for validation. You can retrieve the validation results with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents). /// [global::System.Text.Json.Serialization.JsonPropertyName("validation_file")] [global::System.Text.Json.Serialization.JsonRequired] @@ -200,7 +198,7 @@ public sealed partial class FineTuningJob /// The organization that owns the fine-tuning job. /// /// - /// The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents). + /// The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents). /// /// /// The seed used for the fine-tuning job. @@ -212,10 +210,10 @@ public sealed partial class FineTuningJob /// The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running. /// /// - /// The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents). + /// The file ID used for training. You can retrieve the training data with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents). /// /// - /// The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents). + /// The file ID used for validation. You can retrieve the validation results with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -236,7 +234,7 @@ public FineTuningJob( string trainingFile, string? validationFile, global::System.DateTimeOffset? estimatedFinish, - global::System.Collections.Generic.IList>? integrations, + global::System.Collections.Generic.IList? integrations, global::System.Collections.Generic.Dictionary? metadata, global::tryAGI.OpenAI.FineTuneMethod? method, global::tryAGI.OpenAI.FineTuningJobObject @object) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobHyperparameters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobHyperparameters.g.cs index 848da878..a93452e8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobHyperparameters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobHyperparameters.g.cs @@ -12,21 +12,19 @@ public sealed partial class FineTuningJobHyperparameters { /// /// Number of examples in each batch. A larger batch size means that model parameters
- /// are updated less frequently, but with lower variance.
- /// Default Value: auto + /// are updated less frequently, but with lower variance. ///
[global::System.Text.Json.Serialization.JsonPropertyName("batch_size")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? BatchSize { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? BatchSize { get; set; } /// /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid
- /// overfitting.
- /// Default Value: auto + /// overfitting. ///
[global::System.Text.Json.Serialization.JsonPropertyName("learning_rate_multiplier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? LearningRateMultiplier { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? LearningRateMultiplier { get; set; } /// /// The number of epochs to train the model for. An epoch refers to one full cycle
@@ -34,8 +32,8 @@ public sealed partial class FineTuningJobHyperparameters /// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("n_epochs")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? NEpochs { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? NEpochs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,13 +46,11 @@ public sealed partial class FineTuningJobHyperparameters /// /// /// Number of examples in each batch. A larger batch size means that model parameters
- /// are updated less frequently, but with lower variance.
- /// Default Value: auto + /// are updated less frequently, but with lower variance. /// /// /// Scaling factor for the learning rate. A smaller learning rate may be useful to avoid
- /// overfitting.
- /// Default Value: auto + /// overfitting. /// /// /// The number of epochs to train the model for. An epoch refers to one full cycle
@@ -65,9 +61,9 @@ public sealed partial class FineTuningJobHyperparameters [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FineTuningJobHyperparameters( - global::tryAGI.OpenAI.OneOf? batchSize, - global::tryAGI.OpenAI.OneOf? learningRateMultiplier, - global::tryAGI.OpenAI.OneOf? nEpochs) + global::tryAGI.OpenAI.AnyOf? batchSize, + global::tryAGI.OpenAI.AnyOf? learningRateMultiplier, + global::tryAGI.OpenAI.AnyOf? nEpochs) { this.BatchSize = batchSize; this.LearningRateMultiplier = learningRateMultiplier; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobIntegrationDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobIntegrationDiscriminator.Json.g.cs new file mode 100644 index 00000000..9c4a9149 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobIntegrationDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class FineTuningJobIntegrationDiscriminator + { + /// + /// 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::tryAGI.OpenAI.FineTuningJobIntegrationDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.FineTuningJobIntegrationDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.FineTuningJobIntegrationDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.FineTuningJobIntegrationDiscriminator? 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::tryAGI.OpenAI.FineTuningJobIntegrationDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.FineTuningJobIntegrationDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobIntegrationDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobIntegrationDiscriminator.g.cs new file mode 100644 index 00000000..9b6aadf7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobIntegrationDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class FineTuningJobIntegrationDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 FineTuningJobIntegrationDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public FineTuningJobIntegrationDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionObject.g.cs index b688254a..1e9da542 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionObject.g.cs @@ -22,14 +22,14 @@ public sealed partial class FunctionObject public required string Name { get; set; } /// - /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
+ /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
/// Omitting `parameters` defines a function with an empty parameter list. ///
[global::System.Text.Json.Serialization.JsonPropertyName("parameters")] public object? Parameters { get; set; } /// - /// Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).
+ /// Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](https://platform.openai.com/docs/guides/function-calling).
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("strict")] @@ -51,11 +51,11 @@ public sealed partial class FunctionObject /// The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64. /// /// - /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
+ /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
/// Omitting `parameters` defines a function with an empty parameter list. /// /// - /// Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).
+ /// Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](https://platform.openai.com/docs/guides/function-calling).
/// Default Value: false /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionParameters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionParameters.g.cs index 853fa7fc..24f4697c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionParameters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionParameters.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
+ /// The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
/// Omitting `parameters` defines a function with an empty parameter list. ///
public sealed partial class FunctionParameters diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCall.g.cs index 00461001..695c64f0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCall.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// A tool call to run a function. See the
- /// [function calling guide](/docs/guides/function-calling) for more information. + /// [function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information. ///
public sealed partial class FunctionToolCall { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs index 99353fc5..eb3d2a79 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs @@ -11,7 +11,7 @@ namespace tryAGI.OpenAI { /// /// A tool call to run a function. See the
- /// [function calling guide](/docs/guides/function-calling) for more information. + /// [function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.FunctionToolCall? Value1 { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.GraderMulti.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.GraderMulti.g.cs index 1e1bfc2b..694a2625 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.GraderMulti.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.GraderMulti.g.cs @@ -21,9 +21,9 @@ public sealed partial class GraderMulti /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("graders")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Graders { get; set; } + public required global::tryAGI.OpenAI.AnyOf Graders { get; set; } /// /// The name of the grader. @@ -66,7 +66,7 @@ public sealed partial class GraderMulti #endif public GraderMulti( string calculateOutput, - global::tryAGI.OpenAI.OneOf graders, + global::tryAGI.OpenAI.AnyOf graders, string name, global::tryAGI.OpenAI.GraderMultiType type = global::tryAGI.OpenAI.GraderMultiType.Multi) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs index 8b156a86..ae96fd5d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs @@ -45,7 +45,7 @@ public InputContent(global::tryAGI.OpenAI.InputTextContent? value) } /// - /// An image input to the model. Learn about [image inputs](/docs/guides/vision). + /// An image input to the model. Learn about [image inputs](https://platform.openai.com/docs/guides/vision). /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.InputImageContent? Image { get; init; } @@ -151,7 +151,7 @@ Text as object /// public bool Validate() { - return IsText && !IsImage && !IsFile || !IsText && IsImage && !IsFile || !IsText && !IsImage && IsFile; + return IsText || IsImage || IsFile; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.Json.g.cs new file mode 100644 index 00000000..ed83a373 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class InputContentDiscriminator + { + /// + /// 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::tryAGI.OpenAI.InputContentDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.InputContentDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.InputContentDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.InputContentDiscriminator? 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::tryAGI.OpenAI.InputContentDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.InputContentDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.g.cs new file mode 100644 index 00000000..358aabdc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class InputContentDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 InputContentDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public InputContentDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputImageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputImageContent.g.cs index 8e916ab3..55ec721e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputImageContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputImageContent.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// An image input to the model. Learn about [image inputs](/docs/guides/vision). + /// An image input to the model. Learn about [image inputs](https://platform.openai.com/docs/guides/vision). /// public sealed partial class InputImageContent { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs index dcfc85b2..246e10a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs @@ -155,7 +155,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 || !IsValue1 && IsValue2 && !IsValue3 || !IsValue1 && !IsValue2 && IsValue3; + return IsValue1 || IsValue2 || IsValue3; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages.Json.g.cs new file mode 100644 index 00000000..bfd63576 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct InputMessages + { + /// + /// 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::tryAGI.OpenAI.InputMessages? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.InputMessages), + jsonSerializerContext) as global::tryAGI.OpenAI.InputMessages?; + } + + /// + /// 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::tryAGI.OpenAI.InputMessages? 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::tryAGI.OpenAI.InputMessages), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.InputMessages?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages.g.cs new file mode 100644 index 00000000..896dcbb0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace. + /// + public readonly partial struct InputMessages : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1? Value1 { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// + public static implicit operator InputMessages(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1 value) => new InputMessages((global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1?(InputMessages @this) => @this.Value1; + + /// + /// + /// + public InputMessages(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1? value) + { + Value1 = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2? Value2 { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// + public static implicit operator InputMessages(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2 value) => new InputMessages((global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2?(InputMessages @this) => @this.Value2; + + /// + /// + /// + public InputMessages(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2? value) + { + Value2 = value; + } + + /// + /// + /// + public InputMessages( + global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1? value1, + global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2? value2 + ) + { + Value1 = value1; + Value2 = value2; + } + + /// + /// + /// + public object? Object => + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public override string? ToString() => + Value1?.ToString() ?? + Value2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 || IsValue2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant1), + Value2, + typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesVariant2), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(InputMessages other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + ; + } + + /// + /// + /// + public static bool operator ==(InputMessages obj1, InputMessages obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(InputMessages obj1, InputMessages obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is InputMessages o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages2.Json.g.cs new file mode 100644 index 00000000..b68e6c71 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct InputMessages2 + { + /// + /// 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::tryAGI.OpenAI.InputMessages2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.InputMessages2), + jsonSerializerContext) as global::tryAGI.OpenAI.InputMessages2?; + } + + /// + /// 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::tryAGI.OpenAI.InputMessages2? 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::tryAGI.OpenAI.InputMessages2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.InputMessages2?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages2.g.cs new file mode 100644 index 00000000..6a96817f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessages2.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace. + /// + public readonly partial struct InputMessages2 : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1? Value1 { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// + public static implicit operator InputMessages2(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1 value) => new InputMessages2((global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1?(InputMessages2 @this) => @this.Value1; + + /// + /// + /// + public InputMessages2(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1? value) + { + Value1 = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2? Value2 { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// + public static implicit operator InputMessages2(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2 value) => new InputMessages2((global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2?(InputMessages2 @this) => @this.Value2; + + /// + /// + /// + public InputMessages2(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2? value) + { + Value2 = value; + } + + /// + /// + /// + public InputMessages2( + global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1? value1, + global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2? value2 + ) + { + Value1 = value1; + Value2 = value2; + } + + /// + /// + /// + public object? Object => + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public override string? ToString() => + Value1?.ToString() ?? + Value2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 || IsValue2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant1), + Value2, + typeof(global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesVariant2), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(InputMessages2 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + ; + } + + /// + /// + /// + public static bool operator ==(InputMessages2 obj1, InputMessages2 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(InputMessages2 obj1, InputMessages2 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is InputMessages2 o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputVariant3Item.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputVariant3Item.Json.g.cs new file mode 100644 index 00000000..6640e8c3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputVariant3Item.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct InputVariant3Item + { + /// + /// 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::tryAGI.OpenAI.InputVariant3Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.InputVariant3Item), + jsonSerializerContext) as global::tryAGI.OpenAI.InputVariant3Item?; + } + + /// + /// 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::tryAGI.OpenAI.InputVariant3Item? 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::tryAGI.OpenAI.InputVariant3Item), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.InputVariant3Item?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputVariant3Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputVariant3Item.g.cs new file mode 100644 index 00000000..78862f0a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputVariant3Item.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct InputVariant3Item : global::System.IEquatable + { + /// + /// An object describing an image to classify. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ModerationImageURLInput? ModerationImageURL { get; init; } +#else + public global::tryAGI.OpenAI.ModerationImageURLInput? ModerationImageURL { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ModerationImageURL))] +#endif + public bool IsModerationImageURL => ModerationImageURL != null; + + /// + /// + /// + public static implicit operator InputVariant3Item(global::tryAGI.OpenAI.ModerationImageURLInput value) => new InputVariant3Item((global::tryAGI.OpenAI.ModerationImageURLInput?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ModerationImageURLInput?(InputVariant3Item @this) => @this.ModerationImageURL; + + /// + /// + /// + public InputVariant3Item(global::tryAGI.OpenAI.ModerationImageURLInput? value) + { + ModerationImageURL = value; + } + + /// + /// An object describing text to classify. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ModerationTextInput? ModerationText { get; init; } +#else + public global::tryAGI.OpenAI.ModerationTextInput? ModerationText { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ModerationText))] +#endif + public bool IsModerationText => ModerationText != null; + + /// + /// + /// + public static implicit operator InputVariant3Item(global::tryAGI.OpenAI.ModerationTextInput value) => new InputVariant3Item((global::tryAGI.OpenAI.ModerationTextInput?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ModerationTextInput?(InputVariant3Item @this) => @this.ModerationText; + + /// + /// + /// + public InputVariant3Item(global::tryAGI.OpenAI.ModerationTextInput? value) + { + ModerationText = value; + } + + /// + /// + /// + public InputVariant3Item( + global::tryAGI.OpenAI.ModerationImageURLInput? moderationImageURL, + global::tryAGI.OpenAI.ModerationTextInput? moderationText + ) + { + ModerationImageURL = moderationImageURL; + ModerationText = moderationText; + } + + /// + /// + /// + public object? Object => + ModerationText as object ?? + ModerationImageURL as object + ; + + /// + /// + /// + public override string? ToString() => + ModerationImageURL?.ToString() ?? + ModerationText?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsModerationImageURL || IsModerationText; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? moderationImageURL = null, + global::System.Func? moderationText = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsModerationImageURL && moderationImageURL != null) + { + return moderationImageURL(ModerationImageURL!); + } + else if (IsModerationText && moderationText != null) + { + return moderationText(ModerationText!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? moderationImageURL = null, + global::System.Action? moderationText = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsModerationImageURL) + { + moderationImageURL?.Invoke(ModerationImageURL!); + } + else if (IsModerationText) + { + moderationText?.Invoke(ModerationText!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ModerationImageURL, + typeof(global::tryAGI.OpenAI.ModerationImageURLInput), + ModerationText, + typeof(global::tryAGI.OpenAI.ModerationTextInput), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(InputVariant3Item other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ModerationImageURL, other.ModerationImageURL) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ModerationText, other.ModerationText) + ; + } + + /// + /// + /// + public static bool operator ==(InputVariant3Item obj1, InputVariant3Item obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(InputVariant3Item obj1, InputVariant3Item obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is InputVariant3Item o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.IntegrationsItem.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.IntegrationsItem.Json.g.cs new file mode 100644 index 00000000..918862a0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.IntegrationsItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct IntegrationsItem + { + /// + /// 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::tryAGI.OpenAI.IntegrationsItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.IntegrationsItem), + jsonSerializerContext) as global::tryAGI.OpenAI.IntegrationsItem?; + } + + /// + /// 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::tryAGI.OpenAI.IntegrationsItem? 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::tryAGI.OpenAI.IntegrationsItem), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.IntegrationsItem?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.IntegrationsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.IntegrationsItem.g.cs new file mode 100644 index 00000000..08da1a97 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.IntegrationsItem.g.cs @@ -0,0 +1,160 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct IntegrationsItem : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.FineTuningIntegration? FineTuningIntegration { get; init; } +#else + public global::tryAGI.OpenAI.FineTuningIntegration? FineTuningIntegration { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FineTuningIntegration))] +#endif + public bool IsFineTuningIntegration => FineTuningIntegration != null; + + /// + /// + /// + public static implicit operator IntegrationsItem(global::tryAGI.OpenAI.FineTuningIntegration value) => new IntegrationsItem((global::tryAGI.OpenAI.FineTuningIntegration?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.FineTuningIntegration?(IntegrationsItem @this) => @this.FineTuningIntegration; + + /// + /// + /// + public IntegrationsItem(global::tryAGI.OpenAI.FineTuningIntegration? value) + { + FineTuningIntegration = value; + } + + /// + /// + /// + public object? Object => + FineTuningIntegration as object + ; + + /// + /// + /// + public override string? ToString() => + FineTuningIntegration?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsFineTuningIntegration; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? fineTuningIntegration = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsFineTuningIntegration && fineTuningIntegration != null) + { + return fineTuningIntegration(FineTuningIntegration!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? fineTuningIntegration = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsFineTuningIntegration) + { + fineTuningIntegration?.Invoke(FineTuningIntegration!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + FineTuningIntegration, + typeof(global::tryAGI.OpenAI.FineTuningIntegration), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(IntegrationsItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(FineTuningIntegration, other.FineTuningIntegration) + ; + } + + /// + /// + /// + public static bool operator ==(IntegrationsItem obj1, IntegrationsItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(IntegrationsItem obj1, IntegrationsItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is IntegrationsItem o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs index 711be6cd..82b84709 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs @@ -83,7 +83,7 @@ public Item(global::tryAGI.OpenAI.OutputMessage? value) /// /// The results of a file search tool call. See the
- /// [file search guide](/docs/guides/tools-file-search) for more information. + /// [file search guide](https://platform.openai.com/docs/guides/tools-file-search) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.FileSearchToolCall? FileSearchToolCall { get; init; } @@ -119,7 +119,7 @@ public Item(global::tryAGI.OpenAI.FileSearchToolCall? value) /// /// A tool call to a computer use tool. See the
- /// [computer use guide](/docs/guides/tools-computer-use) for more information. + /// [computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ComputerToolCall? ComputerToolCall { get; init; } @@ -190,7 +190,7 @@ public Item(global::tryAGI.OpenAI.ComputerCallOutputItemParam? value) /// /// The results of a web search tool call. See the
- /// [web search guide](/docs/guides/tools-web-search) for more information. + /// [web search guide](https://platform.openai.com/docs/guides/tools-web-search) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.WebSearchToolCall? WebSearchToolCall { get; init; } @@ -226,7 +226,7 @@ public Item(global::tryAGI.OpenAI.WebSearchToolCall? value) /// /// A tool call to run a function. See the
- /// [function calling guide](/docs/guides/function-calling) for more information. + /// [function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.FunctionToolCall? FunctionToolCall { get; init; } @@ -299,7 +299,7 @@ public Item(global::tryAGI.OpenAI.FunctionCallOutputItemParam? value) /// A description of the chain of thought used by a reasoning model while generating
/// a response. Be sure to include these items in your `input` to the Responses API
/// for subsequent turns of a conversation if you are manually
- /// [managing context](/docs/guides/conversation-state). + /// [managing context](https://platform.openai.com/docs/guides/conversation-state). ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ReasoningItem? Reasoning { get; init; } @@ -706,7 +706,7 @@ InputMessage as object /// public bool Validate() { - return IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerCallOutputParam && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionCallOutputParam && !IsReasoning && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && IsMCPToolCall; + return IsInputMessage || IsOutputMessage || IsFileSearchToolCall || IsComputerToolCall || IsComputerCallOutputParam || IsWebSearchToolCall || IsFunctionToolCall || IsFunctionCallOutputParam || IsReasoning || IsImageGenToolCall || IsCodeInterpreterToolCall || IsLocalShellToolCall || IsLocalShellToolCallOutput || IsMCPListTools || IsMCPApprovalRequest || IsMCPApprovalResponse || IsMCPToolCall; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs index 53bd28af..096639d8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs @@ -81,7 +81,7 @@ public ItemResource(global::tryAGI.OpenAI.OutputMessage? value) /// /// The results of a file search tool call. See the
- /// [file search guide](/docs/guides/tools-file-search) for more information. + /// [file search guide](https://platform.openai.com/docs/guides/tools-file-search) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.FileSearchToolCall? FileSearchToolCall { get; init; } @@ -117,7 +117,7 @@ public ItemResource(global::tryAGI.OpenAI.FileSearchToolCall? value) /// /// A tool call to a computer use tool. See the
- /// [computer use guide](/docs/guides/tools-computer-use) for more information. + /// [computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ComputerToolCall? ComputerToolCall { get; init; } @@ -188,7 +188,7 @@ public ItemResource(global::tryAGI.OpenAI.ComputerToolCallOutputResource? value) /// /// The results of a web search tool call. See the
- /// [web search guide](/docs/guides/tools-web-search) for more information. + /// [web search guide](https://platform.openai.com/docs/guides/tools-web-search) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.WebSearchToolCall? WebSearchToolCall { get; init; } @@ -661,7 +661,7 @@ InputMessage as object ///
public bool Validate() { - return IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && IsMCPApprovalRequest && !IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && IsMCPApprovalResponse && !IsMCPToolCall || !IsInputMessage && !IsOutputMessage && !IsFileSearchToolCall && !IsComputerToolCall && !IsComputerToolCallOutput && !IsWebSearchToolCall && !IsFunctionToolCall && !IsFunctionToolCallOutput && !IsImageGenToolCall && !IsCodeInterpreterToolCall && !IsLocalShellToolCall && !IsLocalShellToolCallOutput && !IsMCPListTools && !IsMCPApprovalRequest && !IsMCPApprovalResponse && IsMCPToolCall; + return IsInputMessage || IsOutputMessage || IsFileSearchToolCall || IsComputerToolCall || IsComputerToolCallOutput || IsWebSearchToolCall || IsFunctionToolCall || IsFunctionToolCallOutput || IsImageGenToolCall || IsCodeInterpreterToolCall || IsLocalShellToolCall || IsLocalShellToolCallOutput || IsMCPListTools || IsMCPApprovalRequest || IsMCPApprovalResponse || IsMCPToolCall; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListModelsResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListModelsResponse.g.cs index 29651eed..0a558ec9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListModelsResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ListModelsResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class ListModelsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Data { get; set; } + public required global::System.Collections.Generic.IList Data { get; set; } /// /// @@ -37,7 +37,7 @@ public sealed partial class ListModelsResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListModelsResponse( - global::System.Collections.Generic.IList data, + global::System.Collections.Generic.IList data, global::tryAGI.OpenAI.ListModelsResponseObject @object) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MCPTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MCPTool.g.cs index d6b63ec7..e7b184d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MCPTool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MCPTool.g.cs @@ -7,7 +7,7 @@ namespace tryAGI.OpenAI { /// /// Give the model access to additional tools via remote Model Context Protocol
- /// (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp). + /// (MCP) servers. [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp). ///
public sealed partial class MCPTool { @@ -15,8 +15,8 @@ public sealed partial class MCPTool /// List of allowed tool names or a filter object. ///
[global::System.Text.Json.Serialization.JsonPropertyName("allowed_tools")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter, global::tryAGI.OpenAI.MCPToolAllowedTools>))] - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolAllowedTools>? AllowedTools { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, global::tryAGI.OpenAI.MCPToolAllowedTools>))] + public global::tryAGI.OpenAI.AnyOf, global::tryAGI.OpenAI.MCPToolAllowedTools>? AllowedTools { get; set; } /// /// Optional HTTP headers to send to the MCP server. Use for authentication
@@ -26,12 +26,11 @@ public sealed partial class MCPTool public global::System.Collections.Generic.Dictionary? Headers { get; set; } /// - /// Specify which of the MCP server's tools require approval.
- /// Default Value: always + /// Specify which of the MCP server's tools require approval. ///
[global::System.Text.Json.Serialization.JsonPropertyName("require_approval")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? RequireApproval { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? RequireApproval { get; set; } /// /// Optional description of the MCP server, used to provide more context. @@ -77,8 +76,7 @@ public sealed partial class MCPTool /// or other purposes. /// /// - /// Specify which of the MCP server's tools require approval.
- /// Default Value: always + /// Specify which of the MCP server's tools require approval. /// /// /// Optional description of the MCP server, used to provide more context. @@ -98,9 +96,9 @@ public sealed partial class MCPTool public MCPTool( string serverLabel, string serverUrl, - global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolAllowedTools>? allowedTools, + global::tryAGI.OpenAI.AnyOf, global::tryAGI.OpenAI.MCPToolAllowedTools>? allowedTools, global::System.Collections.Generic.Dictionary? headers, - global::tryAGI.OpenAI.OneOf? requireApproval, + global::tryAGI.OpenAI.AnyOf? requireApproval, string? serverDescription, global::tryAGI.OpenAI.MCPToolType type) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContent.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContent.Json.g.cs new file mode 100644 index 00000000..3066ffee --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct MessageContent + { + /// + /// 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::tryAGI.OpenAI.MessageContent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.MessageContent), + jsonSerializerContext) as global::tryAGI.OpenAI.MessageContent?; + } + + /// + /// 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::tryAGI.OpenAI.MessageContent? 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::tryAGI.OpenAI.MessageContent), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.MessageContent?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContent.g.cs new file mode 100644 index 00000000..2271d49a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContent.g.cs @@ -0,0 +1,326 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct MessageContent : global::System.IEquatable + { + /// + /// References an image [File](https://platform.openai.com/docs/api-reference/files) in the content of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageContentImageFileObject? ImageFileObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageContentImageFileObject? ImageFileObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageFileObject))] +#endif + public bool IsImageFileObject => ImageFileObject != null; + + /// + /// + /// + public static implicit operator MessageContent(global::tryAGI.OpenAI.MessageContentImageFileObject value) => new MessageContent((global::tryAGI.OpenAI.MessageContentImageFileObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageContentImageFileObject?(MessageContent @this) => @this.ImageFileObject; + + /// + /// + /// + public MessageContent(global::tryAGI.OpenAI.MessageContentImageFileObject? value) + { + ImageFileObject = value; + } + + /// + /// References an image URL in the content of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageContentImageUrlObject? ImageUrlObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageContentImageUrlObject? ImageUrlObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageUrlObject))] +#endif + public bool IsImageUrlObject => ImageUrlObject != null; + + /// + /// + /// + public static implicit operator MessageContent(global::tryAGI.OpenAI.MessageContentImageUrlObject value) => new MessageContent((global::tryAGI.OpenAI.MessageContentImageUrlObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageContentImageUrlObject?(MessageContent @this) => @this.ImageUrlObject; + + /// + /// + /// + public MessageContent(global::tryAGI.OpenAI.MessageContentImageUrlObject? value) + { + ImageUrlObject = value; + } + + /// + /// The text content that is part of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageContentTextObject? TextObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageContentTextObject? TextObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TextObject))] +#endif + public bool IsTextObject => TextObject != null; + + /// + /// + /// + public static implicit operator MessageContent(global::tryAGI.OpenAI.MessageContentTextObject value) => new MessageContent((global::tryAGI.OpenAI.MessageContentTextObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageContentTextObject?(MessageContent @this) => @this.TextObject; + + /// + /// + /// + public MessageContent(global::tryAGI.OpenAI.MessageContentTextObject? value) + { + TextObject = value; + } + + /// + /// The refusal content generated by the assistant. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageContentRefusalObject? RefusalObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageContentRefusalObject? RefusalObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RefusalObject))] +#endif + public bool IsRefusalObject => RefusalObject != null; + + /// + /// + /// + public static implicit operator MessageContent(global::tryAGI.OpenAI.MessageContentRefusalObject value) => new MessageContent((global::tryAGI.OpenAI.MessageContentRefusalObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageContentRefusalObject?(MessageContent @this) => @this.RefusalObject; + + /// + /// + /// + public MessageContent(global::tryAGI.OpenAI.MessageContentRefusalObject? value) + { + RefusalObject = value; + } + + /// + /// + /// + public MessageContent( + global::tryAGI.OpenAI.MessageContentImageFileObject? imageFileObject, + global::tryAGI.OpenAI.MessageContentImageUrlObject? imageUrlObject, + global::tryAGI.OpenAI.MessageContentTextObject? textObject, + global::tryAGI.OpenAI.MessageContentRefusalObject? refusalObject + ) + { + ImageFileObject = imageFileObject; + ImageUrlObject = imageUrlObject; + TextObject = textObject; + RefusalObject = refusalObject; + } + + /// + /// + /// + public object? Object => + RefusalObject as object ?? + TextObject as object ?? + ImageUrlObject as object ?? + ImageFileObject as object + ; + + /// + /// + /// + public override string? ToString() => + ImageFileObject?.ToString() ?? + ImageUrlObject?.ToString() ?? + TextObject?.ToString() ?? + RefusalObject?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsImageFileObject || IsImageUrlObject || IsTextObject || IsRefusalObject; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? imageFileObject = null, + global::System.Func? imageUrlObject = null, + global::System.Func? textObject = null, + global::System.Func? refusalObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsImageFileObject && imageFileObject != null) + { + return imageFileObject(ImageFileObject!); + } + else if (IsImageUrlObject && imageUrlObject != null) + { + return imageUrlObject(ImageUrlObject!); + } + else if (IsTextObject && textObject != null) + { + return textObject(TextObject!); + } + else if (IsRefusalObject && refusalObject != null) + { + return refusalObject(RefusalObject!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? imageFileObject = null, + global::System.Action? imageUrlObject = null, + global::System.Action? textObject = null, + global::System.Action? refusalObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsImageFileObject) + { + imageFileObject?.Invoke(ImageFileObject!); + } + else if (IsImageUrlObject) + { + imageUrlObject?.Invoke(ImageUrlObject!); + } + else if (IsTextObject) + { + textObject?.Invoke(TextObject!); + } + else if (IsRefusalObject) + { + refusalObject?.Invoke(RefusalObject!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ImageFileObject, + typeof(global::tryAGI.OpenAI.MessageContentImageFileObject), + ImageUrlObject, + typeof(global::tryAGI.OpenAI.MessageContentImageUrlObject), + TextObject, + typeof(global::tryAGI.OpenAI.MessageContentTextObject), + RefusalObject, + typeof(global::tryAGI.OpenAI.MessageContentRefusalObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(MessageContent other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageFileObject, other.ImageFileObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrlObject, other.ImageUrlObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(TextObject, other.TextObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RefusalObject, other.RefusalObject) + ; + } + + /// + /// + /// + public static bool operator ==(MessageContent obj1, MessageContent obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(MessageContent obj1, MessageContent obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is MessageContent o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDelta.Json.g.cs new file mode 100644 index 00000000..343d9e4c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct MessageContentDelta + { + /// + /// 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::tryAGI.OpenAI.MessageContentDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.MessageContentDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.MessageContentDelta?; + } + + /// + /// 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::tryAGI.OpenAI.MessageContentDelta? 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::tryAGI.OpenAI.MessageContentDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.MessageContentDelta?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDelta.g.cs new file mode 100644 index 00000000..425e3d8d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDelta.g.cs @@ -0,0 +1,326 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct MessageContentDelta : global::System.IEquatable + { + /// + /// References an image [File](https://platform.openai.com/docs/api-reference/files) in the content of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? ImageFileObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? ImageFileObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageFileObject))] +#endif + public bool IsImageFileObject => ImageFileObject != null; + + /// + /// + /// + public static implicit operator MessageContentDelta(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject value) => new MessageContentDelta((global::tryAGI.OpenAI.MessageDeltaContentImageFileObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageDeltaContentImageFileObject?(MessageContentDelta @this) => @this.ImageFileObject; + + /// + /// + /// + public MessageContentDelta(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? value) + { + ImageFileObject = value; + } + + /// + /// The text content that is part of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageDeltaContentTextObject? TextObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageDeltaContentTextObject? TextObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TextObject))] +#endif + public bool IsTextObject => TextObject != null; + + /// + /// + /// + public static implicit operator MessageContentDelta(global::tryAGI.OpenAI.MessageDeltaContentTextObject value) => new MessageContentDelta((global::tryAGI.OpenAI.MessageDeltaContentTextObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageDeltaContentTextObject?(MessageContentDelta @this) => @this.TextObject; + + /// + /// + /// + public MessageContentDelta(global::tryAGI.OpenAI.MessageDeltaContentTextObject? value) + { + TextObject = value; + } + + /// + /// The refusal content that is part of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? RefusalObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? RefusalObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RefusalObject))] +#endif + public bool IsRefusalObject => RefusalObject != null; + + /// + /// + /// + public static implicit operator MessageContentDelta(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject value) => new MessageContentDelta((global::tryAGI.OpenAI.MessageDeltaContentRefusalObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageDeltaContentRefusalObject?(MessageContentDelta @this) => @this.RefusalObject; + + /// + /// + /// + public MessageContentDelta(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? value) + { + RefusalObject = value; + } + + /// + /// References an image URL in the content of a message. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? ImageUrlObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? ImageUrlObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageUrlObject))] +#endif + public bool IsImageUrlObject => ImageUrlObject != null; + + /// + /// + /// + public static implicit operator MessageContentDelta(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject value) => new MessageContentDelta((global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject?(MessageContentDelta @this) => @this.ImageUrlObject; + + /// + /// + /// + public MessageContentDelta(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? value) + { + ImageUrlObject = value; + } + + /// + /// + /// + public MessageContentDelta( + global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? imageFileObject, + global::tryAGI.OpenAI.MessageDeltaContentTextObject? textObject, + global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? refusalObject, + global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? imageUrlObject + ) + { + ImageFileObject = imageFileObject; + TextObject = textObject; + RefusalObject = refusalObject; + ImageUrlObject = imageUrlObject; + } + + /// + /// + /// + public object? Object => + ImageUrlObject as object ?? + RefusalObject as object ?? + TextObject as object ?? + ImageFileObject as object + ; + + /// + /// + /// + public override string? ToString() => + ImageFileObject?.ToString() ?? + TextObject?.ToString() ?? + RefusalObject?.ToString() ?? + ImageUrlObject?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsImageFileObject || IsTextObject || IsRefusalObject || IsImageUrlObject; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? imageFileObject = null, + global::System.Func? textObject = null, + global::System.Func? refusalObject = null, + global::System.Func? imageUrlObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsImageFileObject && imageFileObject != null) + { + return imageFileObject(ImageFileObject!); + } + else if (IsTextObject && textObject != null) + { + return textObject(TextObject!); + } + else if (IsRefusalObject && refusalObject != null) + { + return refusalObject(RefusalObject!); + } + else if (IsImageUrlObject && imageUrlObject != null) + { + return imageUrlObject(ImageUrlObject!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? imageFileObject = null, + global::System.Action? textObject = null, + global::System.Action? refusalObject = null, + global::System.Action? imageUrlObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsImageFileObject) + { + imageFileObject?.Invoke(ImageFileObject!); + } + else if (IsTextObject) + { + textObject?.Invoke(TextObject!); + } + else if (IsRefusalObject) + { + refusalObject?.Invoke(RefusalObject!); + } + else if (IsImageUrlObject) + { + imageUrlObject?.Invoke(ImageUrlObject!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ImageFileObject, + typeof(global::tryAGI.OpenAI.MessageDeltaContentImageFileObject), + TextObject, + typeof(global::tryAGI.OpenAI.MessageDeltaContentTextObject), + RefusalObject, + typeof(global::tryAGI.OpenAI.MessageDeltaContentRefusalObject), + ImageUrlObject, + typeof(global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(MessageContentDelta other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageFileObject, other.ImageFileObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(TextObject, other.TextObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RefusalObject, other.RefusalObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrlObject, other.ImageUrlObject) + ; + } + + /// + /// + /// + public static bool operator ==(MessageContentDelta obj1, MessageContentDelta obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(MessageContentDelta obj1, MessageContentDelta obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is MessageContentDelta o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDeltaDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDeltaDiscriminator.Json.g.cs new file mode 100644 index 00000000..95735c98 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDeltaDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class MessageContentDeltaDiscriminator + { + /// + /// 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::tryAGI.OpenAI.MessageContentDeltaDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.MessageContentDeltaDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.MessageContentDeltaDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.MessageContentDeltaDiscriminator? 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::tryAGI.OpenAI.MessageContentDeltaDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.MessageContentDeltaDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDeltaDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDeltaDiscriminator.g.cs new file mode 100644 index 00000000..a7ee6092 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDeltaDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class MessageContentDeltaDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 MessageContentDeltaDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public MessageContentDeltaDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDiscriminator.Json.g.cs new file mode 100644 index 00000000..f6078f1d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class MessageContentDiscriminator + { + /// + /// 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::tryAGI.OpenAI.MessageContentDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.MessageContentDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.MessageContentDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.MessageContentDiscriminator? 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::tryAGI.OpenAI.MessageContentDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.MessageContentDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDiscriminator.g.cs new file mode 100644 index 00000000..6708b64b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class MessageContentDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 MessageContentDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public MessageContentDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentImageFileObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentImageFileObject.g.cs index eef77e76..33945c4c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentImageFileObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentImageFileObject.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// References an image [File](/docs/api-reference/files) in the content of a message. + /// References an image [File](https://platform.openai.com/docs/api-reference/files) in the content of a message. /// public sealed partial class MessageContentImageFileObject { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentImageFileObjectImageFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentImageFileObjectImageFile.g.cs index eb0e7893..e6b3fdcd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentImageFileObjectImageFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentImageFileObjectImageFile.g.cs @@ -17,7 +17,7 @@ public sealed partial class MessageContentImageFileObjectImageFile public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Detail { get; set; } /// - /// The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content. + /// The [File](https://platform.openai.com/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -37,7 +37,7 @@ public sealed partial class MessageContentImageFileObjectImageFile /// Default Value: auto /// /// - /// The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content. + /// The [File](https://platform.openai.com/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentTextObjectText.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentTextObjectText.g.cs index c0a14284..55ac25e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentTextObjectText.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentTextObjectText.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -15,7 +13,7 @@ public sealed partial class MessageContentTextObjectText ///
[global::System.Text.Json.Serialization.JsonPropertyName("annotations")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Annotations { get; set; } + public required global::System.Collections.Generic.IList Annotations { get; set; } /// /// The data that makes up the text. @@ -41,7 +39,7 @@ public sealed partial class MessageContentTextObjectText [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessageContentTextObjectText( - global::System.Collections.Generic.IList> annotations, + global::System.Collections.Generic.IList annotations, string value) { this.Annotations = annotations ?? throw new global::System.ArgumentNullException(nameof(annotations)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentImageFileObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentImageFileObject.g.cs index fb814c08..66824a8c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentImageFileObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentImageFileObject.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// References an image [File](/docs/api-reference/files) in the content of a message. + /// References an image [File](https://platform.openai.com/docs/api-reference/files) in the content of a message. /// public sealed partial class MessageDeltaContentImageFileObject { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentImageFileObjectImageFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentImageFileObjectImageFile.g.cs index dae784bb..a0e8e8c9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentImageFileObjectImageFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentImageFileObjectImageFile.g.cs @@ -17,7 +17,7 @@ public sealed partial class MessageDeltaContentImageFileObjectImageFile public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Detail { get; set; } /// - /// The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content. + /// The [File](https://platform.openai.com/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_id")] public string? FileId { get; set; } @@ -36,7 +36,7 @@ public sealed partial class MessageDeltaContentImageFileObjectImageFile /// Default Value: auto /// /// - /// The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content. + /// The [File](https://platform.openai.com/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentTextObjectText.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentTextObjectText.g.cs index e17d6b0d..0ff32186 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentTextObjectText.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaContentTextObjectText.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,7 +12,7 @@ public sealed partial class MessageDeltaContentTextObjectText /// /// [global::System.Text.Json.Serialization.JsonPropertyName("annotations")] - public global::System.Collections.Generic.IList>? Annotations { get; set; } + public global::System.Collections.Generic.IList? Annotations { get; set; } /// /// The data that makes up the text. @@ -39,7 +37,7 @@ public sealed partial class MessageDeltaContentTextObjectText [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessageDeltaContentTextObjectText( - global::System.Collections.Generic.IList>? annotations, + global::System.Collections.Generic.IList? annotations, string? value) { this.Annotations = annotations; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaObjectDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaObjectDelta.g.cs index db973709..82cfe769 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaObjectDelta.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageDeltaObjectDelta.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,7 +12,7 @@ public sealed partial class MessageDeltaObjectDelta /// The content of the message in array of text and/or images. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::System.Collections.Generic.IList>? Content { get; set; } + public global::System.Collections.Generic.IList? Content { get; set; } /// /// The entity that produced the message. One of `user` or `assistant`. @@ -42,7 +40,7 @@ public sealed partial class MessageDeltaObjectDelta [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessageDeltaObjectDelta( - global::System.Collections.Generic.IList>? content, + global::System.Collections.Generic.IList? content, global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? role) { this.Content = content; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageObject.g.cs index 9b552fe9..619b6e3e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageObject.g.cs @@ -1,17 +1,15 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI { /// - /// Represents a message within a [thread](/docs/api-reference/threads). + /// Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). /// public sealed partial class MessageObject { /// - /// If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message. + /// If applicable, the ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) that authored this message. /// [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -36,7 +34,7 @@ public sealed partial class MessageObject /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Content { get; set; } + public required global::System.Collections.Generic.IList Content { get; set; } /// /// The Unix timestamp (in seconds) for when the message was created. @@ -93,7 +91,7 @@ public sealed partial class MessageObject public required global::tryAGI.OpenAI.MessageObjectRole Role { get; set; } /// - /// The ID of the [run](/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints. + /// The ID of the [run](https://platform.openai.com/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints. /// [global::System.Text.Json.Serialization.JsonPropertyName("run_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -107,7 +105,7 @@ public sealed partial class MessageObject public global::tryAGI.OpenAI.MessageObjectStatus? Status { get; set; } /// - /// The [thread](/docs/api-reference/threads) ID that this message belongs to. + /// The [thread](https://platform.openai.com/docs/api-reference/threads) ID that this message belongs to. /// [global::System.Text.Json.Serialization.JsonPropertyName("thread_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -123,7 +121,7 @@ public sealed partial class MessageObject /// Initializes a new instance of the class. /// /// - /// If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message. + /// If applicable, the ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) that authored this message. /// /// /// A list of files attached to the message, and the tools they were added to. @@ -160,13 +158,13 @@ public sealed partial class MessageObject /// The entity that produced the message. One of `user` or `assistant`. /// /// - /// The ID of the [run](/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints. + /// The ID of the [run](https://platform.openai.com/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints. /// /// /// The status of the message, which can be either `in_progress`, `incomplete`, or `completed`. /// /// - /// The [thread](/docs/api-reference/threads) ID that this message belongs to. + /// The [thread](https://platform.openai.com/docs/api-reference/threads) ID that this message belongs to. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -174,7 +172,7 @@ public sealed partial class MessageObject public MessageObject( string? assistantId, global::System.Collections.Generic.IList? attachments, - global::System.Collections.Generic.IList> content, + global::System.Collections.Generic.IList content, global::System.DateTimeOffset createdAt, string id, global::System.Collections.Generic.Dictionary? metadata, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageObjectAttachment.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageObjectAttachment.g.cs index e2855e76..2ab61f48 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageObjectAttachment.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageObjectAttachment.g.cs @@ -20,7 +20,7 @@ public sealed partial class MessageObjectAttachment /// The tools to add this file to. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList>? Tools { get; set; } + public global::System.Collections.Generic.IList>? Tools { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +42,7 @@ public sealed partial class MessageObjectAttachment #endif public MessageObjectAttachment( string? fileId, - global::System.Collections.Generic.IList>? tools) + global::System.Collections.Generic.IList>? tools) { this.FileId = fileId; this.Tools = tools; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs index 840b0ff8..732594dc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public readonly partial struct MessageStreamEvent : global::System.IEquatable { /// - /// Occurs when a [message](/docs/api-reference/messages/object) is created. + /// Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) is created. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.MessageStreamEventVariant1? Value1 { get; init; } @@ -45,7 +45,7 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant1? valu } /// - /// Occurs when a [message](/docs/api-reference/messages/object) moves to an `in_progress` state. + /// Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) moves to an `in_progress` state. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.MessageStreamEventVariant2? Value2 { get; init; } @@ -80,7 +80,7 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant2? valu } /// - /// Occurs when parts of a [Message](/docs/api-reference/messages/object) are being streamed. + /// Occurs when parts of a [Message](https://platform.openai.com/docs/api-reference/messages/object) are being streamed. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.MessageStreamEventVariant3? Value3 { get; init; } @@ -115,7 +115,7 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant3? valu } /// - /// Occurs when a [message](/docs/api-reference/messages/object) is completed. + /// Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) is completed. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.MessageStreamEventVariant4? Value4 { get; init; } @@ -150,7 +150,7 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant4? valu } /// - /// Occurs when a [message](/docs/api-reference/messages/object) ends before it is completed. + /// Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) ends before it is completed. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.MessageStreamEventVariant5? Value5 { get; init; } @@ -229,7 +229,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5; + return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventDiscriminator.Json.g.cs new file mode 100644 index 00000000..54da5a02 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class MessageStreamEventDiscriminator + { + /// + /// 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::tryAGI.OpenAI.MessageStreamEventDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.MessageStreamEventDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.MessageStreamEventDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.MessageStreamEventDiscriminator? 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::tryAGI.OpenAI.MessageStreamEventDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.MessageStreamEventDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventDiscriminator.g.cs new file mode 100644 index 00000000..c218b986 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class MessageStreamEventDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event")] + public string? Event { 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 MessageStreamEventDiscriminator( + string? @event) + { + this.Event = @event; + } + + /// + /// Initializes a new instance of the class. + /// + public MessageStreamEventDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant1.g.cs index b15610e5..e864d162 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant1.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [message](/docs/api-reference/messages/object) is created. + /// Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) is created. /// public sealed partial class MessageStreamEventVariant1 { /// - /// Represents a message within a [thread](/docs/api-reference/threads). + /// Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class MessageStreamEventVariant1 /// Initializes a new instance of the class. /// /// - /// Represents a message within a [thread](/docs/api-reference/threads). + /// Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant2.g.cs index afe89be9..85072302 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant2.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [message](/docs/api-reference/messages/object) moves to an `in_progress` state. + /// Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) moves to an `in_progress` state. /// public sealed partial class MessageStreamEventVariant2 { /// - /// Represents a message within a [thread](/docs/api-reference/threads). + /// Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class MessageStreamEventVariant2 /// Initializes a new instance of the class. /// /// - /// Represents a message within a [thread](/docs/api-reference/threads). + /// Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant3.g.cs index 29d8f62f..697489c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant3.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Occurs when parts of a [Message](/docs/api-reference/messages/object) are being streamed. + /// Occurs when parts of a [Message](https://platform.openai.com/docs/api-reference/messages/object) are being streamed. /// public sealed partial class MessageStreamEventVariant3 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant4.g.cs index b5de62b0..eed3f0cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant4.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [message](/docs/api-reference/messages/object) is completed. + /// Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) is completed. /// public sealed partial class MessageStreamEventVariant4 { /// - /// Represents a message within a [thread](/docs/api-reference/threads). + /// Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class MessageStreamEventVariant4 /// Initializes a new instance of the class. /// /// - /// Represents a message within a [thread](/docs/api-reference/threads). + /// Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant5.g.cs index da111934..2bffa1fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEventVariant5.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [message](/docs/api-reference/messages/object) ends before it is completed. + /// Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) ends before it is completed. /// public sealed partial class MessageStreamEventVariant5 { /// - /// Represents a message within a [thread](/docs/api-reference/threads). + /// Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class MessageStreamEventVariant5 /// Initializes a new instance of the class. /// /// - /// Represents a message within a [thread](/docs/api-reference/threads). + /// Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model14.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model16.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model14.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model16.Json.g.cs index 16ad9beb..5e487d65 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model14.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model16.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class Model14 + public sealed partial class Model16 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.Model14? FromJson( + public static global::tryAGI.OpenAI.Model16? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.Model14), - jsonSerializerContext) as global::tryAGI.OpenAI.Model14; + typeof(global::tryAGI.OpenAI.Model16), + jsonSerializerContext) as global::tryAGI.OpenAI.Model16; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.Model14? FromJson( + public static global::tryAGI.OpenAI.Model16? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::tryAGI.OpenAI.Model14), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.Model14; + typeof(global::tryAGI.OpenAI.Model16), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.Model16; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model14.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model16.g.cs similarity index 93% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model14.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model16.g.cs index 102af339..b0e1bc8d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model14.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Model16.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Describes an OpenAI model offering that can be used with the API. /// - public sealed partial class Model14 + public sealed partial class Model16 { /// /// The Unix timestamp (in seconds) when the model was created. @@ -44,7 +44,7 @@ public sealed partial class Model14 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The Unix timestamp (in seconds) when the model was created. @@ -61,7 +61,7 @@ public sealed partial class Model14 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Model14( + public Model16( global::System.DateTimeOffset created, string id, string ownedBy, @@ -74,9 +74,9 @@ public Model14( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Model14() + public Model16() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs index 2068d537..9f919466 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs @@ -48,9 +48,9 @@ public ModelIdsShared(string? value) /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ModelIdsSharedEnum? Value2 { get; init; } + public global::tryAGI.OpenAI.ChatModel? Value2 { get; init; } #else - public global::tryAGI.OpenAI.ModelIdsSharedEnum? Value2 { get; } + public global::tryAGI.OpenAI.ChatModel? Value2 { get; } #endif /// @@ -64,17 +64,17 @@ public ModelIdsShared(string? value) /// /// /// - public static implicit operator ModelIdsShared(global::tryAGI.OpenAI.ModelIdsSharedEnum value) => new ModelIdsShared((global::tryAGI.OpenAI.ModelIdsSharedEnum?)value); + public static implicit operator ModelIdsShared(global::tryAGI.OpenAI.ChatModel value) => new ModelIdsShared((global::tryAGI.OpenAI.ChatModel?)value); /// /// /// - public static implicit operator global::tryAGI.OpenAI.ModelIdsSharedEnum?(ModelIdsShared @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.ChatModel?(ModelIdsShared @this) => @this.Value2; /// /// /// - public ModelIdsShared(global::tryAGI.OpenAI.ModelIdsSharedEnum? value) + public ModelIdsShared(global::tryAGI.OpenAI.ChatModel? value) { Value2 = value; } @@ -84,7 +84,7 @@ public ModelIdsShared(global::tryAGI.OpenAI.ModelIdsSharedEnum? value) /// public ModelIdsShared( string? value1, - global::tryAGI.OpenAI.ModelIdsSharedEnum? value2 + global::tryAGI.OpenAI.ChatModel? value2 ) { Value1 = value1; @@ -120,7 +120,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? value2 = null, bool validate = true) { if (validate) @@ -145,7 +145,7 @@ public bool Validate() /// public void Match( global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? value2 = null, bool validate = true) { if (validate) @@ -173,7 +173,7 @@ public override int GetHashCode() Value1, typeof(string), Value2, - typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), + typeof(global::tryAGI.OpenAI.ChatModel), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -191,7 +191,7 @@ public bool Equals(ModelIdsShared other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsSharedEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsSharedEnum.g.cs deleted file mode 100644 index 46da6f58..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsSharedEnum.g.cs +++ /dev/null @@ -1,369 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// - /// - public enum ModelIdsSharedEnum - { - /// - /// - /// - Gpt41, - /// - /// - /// - Gpt41Mini, - /// - /// - /// - Gpt41Nano, - /// - /// - /// - Gpt4120250414, - /// - /// - /// - Gpt41Mini20250414, - /// - /// - /// - Gpt41Nano20250414, - /// - /// - /// - O4Mini, - /// - /// - /// - O4Mini20250416, - /// - /// - /// - O3, - /// - /// - /// - O320250416, - /// - /// - /// - O3Mini, - /// - /// - /// - O3Mini20250131, - /// - /// - /// - O1, - /// - /// - /// - O120241217, - /// - /// - /// - O1Preview, - /// - /// - /// - O1Preview20240912, - /// - /// - /// - O1Mini, - /// - /// - /// - O1Mini20240912, - /// - /// - /// - Gpt4o, - /// - /// - /// - Gpt4o20241120, - /// - /// - /// - Gpt4o20240806, - /// - /// - /// - Gpt4o20240513, - /// - /// - /// - Gpt4oAudioPreview, - /// - /// - /// - Gpt4oAudioPreview20241001, - /// - /// - /// - Gpt4oAudioPreview20241217, - /// - /// - /// - Gpt4oAudioPreview20250603, - /// - /// - /// - Gpt4oMiniAudioPreview, - /// - /// - /// - Gpt4oMiniAudioPreview20241217, - /// - /// - /// - Gpt4oSearchPreview, - /// - /// - /// - Gpt4oMiniSearchPreview, - /// - /// - /// - Gpt4oSearchPreview20250311, - /// - /// - /// - Gpt4oMiniSearchPreview20250311, - /// - /// - /// - Chatgpt4oLatest, - /// - /// - /// - CodexMiniLatest, - /// - /// - /// - Gpt4oMini, - /// - /// - /// - Gpt4oMini20240718, - /// - /// - /// - Gpt4Turbo, - /// - /// - /// - Gpt4Turbo20240409, - /// - /// - /// - Gpt40125Preview, - /// - /// - /// - Gpt4TurboPreview, - /// - /// - /// - Gpt41106Preview, - /// - /// - /// - Gpt4VisionPreview, - /// - /// - /// - Gpt4, - /// - /// - /// - Gpt40314, - /// - /// - /// - Gpt40613, - /// - /// - /// - Gpt432k, - /// - /// - /// - Gpt432k0314, - /// - /// - /// - Gpt432k0613, - /// - /// - /// - Gpt35Turbo, - /// - /// - /// - Gpt35Turbo16k, - /// - /// - /// - Gpt35Turbo0301, - /// - /// - /// - Gpt35Turbo0613, - /// - /// - /// - Gpt35Turbo1106, - /// - /// - /// - Gpt35Turbo0125, - /// - /// - /// - Gpt35Turbo16k0613, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ModelIdsSharedEnumExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ModelIdsSharedEnum value) - { - return value switch - { - ModelIdsSharedEnum.Gpt41 => "gpt-4.1", - ModelIdsSharedEnum.Gpt41Mini => "gpt-4.1-mini", - ModelIdsSharedEnum.Gpt41Nano => "gpt-4.1-nano", - ModelIdsSharedEnum.Gpt4120250414 => "gpt-4.1-2025-04-14", - ModelIdsSharedEnum.Gpt41Mini20250414 => "gpt-4.1-mini-2025-04-14", - ModelIdsSharedEnum.Gpt41Nano20250414 => "gpt-4.1-nano-2025-04-14", - ModelIdsSharedEnum.O4Mini => "o4-mini", - ModelIdsSharedEnum.O4Mini20250416 => "o4-mini-2025-04-16", - ModelIdsSharedEnum.O3 => "o3", - ModelIdsSharedEnum.O320250416 => "o3-2025-04-16", - ModelIdsSharedEnum.O3Mini => "o3-mini", - ModelIdsSharedEnum.O3Mini20250131 => "o3-mini-2025-01-31", - ModelIdsSharedEnum.O1 => "o1", - ModelIdsSharedEnum.O120241217 => "o1-2024-12-17", - ModelIdsSharedEnum.O1Preview => "o1-preview", - ModelIdsSharedEnum.O1Preview20240912 => "o1-preview-2024-09-12", - ModelIdsSharedEnum.O1Mini => "o1-mini", - ModelIdsSharedEnum.O1Mini20240912 => "o1-mini-2024-09-12", - ModelIdsSharedEnum.Gpt4o => "gpt-4o", - ModelIdsSharedEnum.Gpt4o20241120 => "gpt-4o-2024-11-20", - ModelIdsSharedEnum.Gpt4o20240806 => "gpt-4o-2024-08-06", - ModelIdsSharedEnum.Gpt4o20240513 => "gpt-4o-2024-05-13", - ModelIdsSharedEnum.Gpt4oAudioPreview => "gpt-4o-audio-preview", - ModelIdsSharedEnum.Gpt4oAudioPreview20241001 => "gpt-4o-audio-preview-2024-10-01", - ModelIdsSharedEnum.Gpt4oAudioPreview20241217 => "gpt-4o-audio-preview-2024-12-17", - ModelIdsSharedEnum.Gpt4oAudioPreview20250603 => "gpt-4o-audio-preview-2025-06-03", - ModelIdsSharedEnum.Gpt4oMiniAudioPreview => "gpt-4o-mini-audio-preview", - ModelIdsSharedEnum.Gpt4oMiniAudioPreview20241217 => "gpt-4o-mini-audio-preview-2024-12-17", - ModelIdsSharedEnum.Gpt4oSearchPreview => "gpt-4o-search-preview", - ModelIdsSharedEnum.Gpt4oMiniSearchPreview => "gpt-4o-mini-search-preview", - ModelIdsSharedEnum.Gpt4oSearchPreview20250311 => "gpt-4o-search-preview-2025-03-11", - ModelIdsSharedEnum.Gpt4oMiniSearchPreview20250311 => "gpt-4o-mini-search-preview-2025-03-11", - ModelIdsSharedEnum.Chatgpt4oLatest => "chatgpt-4o-latest", - ModelIdsSharedEnum.CodexMiniLatest => "codex-mini-latest", - ModelIdsSharedEnum.Gpt4oMini => "gpt-4o-mini", - ModelIdsSharedEnum.Gpt4oMini20240718 => "gpt-4o-mini-2024-07-18", - ModelIdsSharedEnum.Gpt4Turbo => "gpt-4-turbo", - ModelIdsSharedEnum.Gpt4Turbo20240409 => "gpt-4-turbo-2024-04-09", - ModelIdsSharedEnum.Gpt40125Preview => "gpt-4-0125-preview", - ModelIdsSharedEnum.Gpt4TurboPreview => "gpt-4-turbo-preview", - ModelIdsSharedEnum.Gpt41106Preview => "gpt-4-1106-preview", - ModelIdsSharedEnum.Gpt4VisionPreview => "gpt-4-vision-preview", - ModelIdsSharedEnum.Gpt4 => "gpt-4", - ModelIdsSharedEnum.Gpt40314 => "gpt-4-0314", - ModelIdsSharedEnum.Gpt40613 => "gpt-4-0613", - ModelIdsSharedEnum.Gpt432k => "gpt-4-32k", - ModelIdsSharedEnum.Gpt432k0314 => "gpt-4-32k-0314", - ModelIdsSharedEnum.Gpt432k0613 => "gpt-4-32k-0613", - ModelIdsSharedEnum.Gpt35Turbo => "gpt-3.5-turbo", - ModelIdsSharedEnum.Gpt35Turbo16k => "gpt-3.5-turbo-16k", - ModelIdsSharedEnum.Gpt35Turbo0301 => "gpt-3.5-turbo-0301", - ModelIdsSharedEnum.Gpt35Turbo0613 => "gpt-3.5-turbo-0613", - ModelIdsSharedEnum.Gpt35Turbo1106 => "gpt-3.5-turbo-1106", - ModelIdsSharedEnum.Gpt35Turbo0125 => "gpt-3.5-turbo-0125", - ModelIdsSharedEnum.Gpt35Turbo16k0613 => "gpt-3.5-turbo-16k-0613", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ModelIdsSharedEnum? ToEnum(string value) - { - return value switch - { - "gpt-4.1" => ModelIdsSharedEnum.Gpt41, - "gpt-4.1-mini" => ModelIdsSharedEnum.Gpt41Mini, - "gpt-4.1-nano" => ModelIdsSharedEnum.Gpt41Nano, - "gpt-4.1-2025-04-14" => ModelIdsSharedEnum.Gpt4120250414, - "gpt-4.1-mini-2025-04-14" => ModelIdsSharedEnum.Gpt41Mini20250414, - "gpt-4.1-nano-2025-04-14" => ModelIdsSharedEnum.Gpt41Nano20250414, - "o4-mini" => ModelIdsSharedEnum.O4Mini, - "o4-mini-2025-04-16" => ModelIdsSharedEnum.O4Mini20250416, - "o3" => ModelIdsSharedEnum.O3, - "o3-2025-04-16" => ModelIdsSharedEnum.O320250416, - "o3-mini" => ModelIdsSharedEnum.O3Mini, - "o3-mini-2025-01-31" => ModelIdsSharedEnum.O3Mini20250131, - "o1" => ModelIdsSharedEnum.O1, - "o1-2024-12-17" => ModelIdsSharedEnum.O120241217, - "o1-preview" => ModelIdsSharedEnum.O1Preview, - "o1-preview-2024-09-12" => ModelIdsSharedEnum.O1Preview20240912, - "o1-mini" => ModelIdsSharedEnum.O1Mini, - "o1-mini-2024-09-12" => ModelIdsSharedEnum.O1Mini20240912, - "gpt-4o" => ModelIdsSharedEnum.Gpt4o, - "gpt-4o-2024-11-20" => ModelIdsSharedEnum.Gpt4o20241120, - "gpt-4o-2024-08-06" => ModelIdsSharedEnum.Gpt4o20240806, - "gpt-4o-2024-05-13" => ModelIdsSharedEnum.Gpt4o20240513, - "gpt-4o-audio-preview" => ModelIdsSharedEnum.Gpt4oAudioPreview, - "gpt-4o-audio-preview-2024-10-01" => ModelIdsSharedEnum.Gpt4oAudioPreview20241001, - "gpt-4o-audio-preview-2024-12-17" => ModelIdsSharedEnum.Gpt4oAudioPreview20241217, - "gpt-4o-audio-preview-2025-06-03" => ModelIdsSharedEnum.Gpt4oAudioPreview20250603, - "gpt-4o-mini-audio-preview" => ModelIdsSharedEnum.Gpt4oMiniAudioPreview, - "gpt-4o-mini-audio-preview-2024-12-17" => ModelIdsSharedEnum.Gpt4oMiniAudioPreview20241217, - "gpt-4o-search-preview" => ModelIdsSharedEnum.Gpt4oSearchPreview, - "gpt-4o-mini-search-preview" => ModelIdsSharedEnum.Gpt4oMiniSearchPreview, - "gpt-4o-search-preview-2025-03-11" => ModelIdsSharedEnum.Gpt4oSearchPreview20250311, - "gpt-4o-mini-search-preview-2025-03-11" => ModelIdsSharedEnum.Gpt4oMiniSearchPreview20250311, - "chatgpt-4o-latest" => ModelIdsSharedEnum.Chatgpt4oLatest, - "codex-mini-latest" => ModelIdsSharedEnum.CodexMiniLatest, - "gpt-4o-mini" => ModelIdsSharedEnum.Gpt4oMini, - "gpt-4o-mini-2024-07-18" => ModelIdsSharedEnum.Gpt4oMini20240718, - "gpt-4-turbo" => ModelIdsSharedEnum.Gpt4Turbo, - "gpt-4-turbo-2024-04-09" => ModelIdsSharedEnum.Gpt4Turbo20240409, - "gpt-4-0125-preview" => ModelIdsSharedEnum.Gpt40125Preview, - "gpt-4-turbo-preview" => ModelIdsSharedEnum.Gpt4TurboPreview, - "gpt-4-1106-preview" => ModelIdsSharedEnum.Gpt41106Preview, - "gpt-4-vision-preview" => ModelIdsSharedEnum.Gpt4VisionPreview, - "gpt-4" => ModelIdsSharedEnum.Gpt4, - "gpt-4-0314" => ModelIdsSharedEnum.Gpt40314, - "gpt-4-0613" => ModelIdsSharedEnum.Gpt40613, - "gpt-4-32k" => ModelIdsSharedEnum.Gpt432k, - "gpt-4-32k-0314" => ModelIdsSharedEnum.Gpt432k0314, - "gpt-4-32k-0613" => ModelIdsSharedEnum.Gpt432k0613, - "gpt-3.5-turbo" => ModelIdsSharedEnum.Gpt35Turbo, - "gpt-3.5-turbo-16k" => ModelIdsSharedEnum.Gpt35Turbo16k, - "gpt-3.5-turbo-0301" => ModelIdsSharedEnum.Gpt35Turbo0301, - "gpt-3.5-turbo-0613" => ModelIdsSharedEnum.Gpt35Turbo0613, - "gpt-3.5-turbo-1106" => ModelIdsSharedEnum.Gpt35Turbo1106, - "gpt-3.5-turbo-0125" => ModelIdsSharedEnum.Gpt35Turbo0125, - "gpt-3.5-turbo-16k-0613" => ModelIdsSharedEnum.Gpt35Turbo16k0613, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelResponseProperties.g.cs index a8bd8335..185241d4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelResponseProperties.g.cs @@ -19,7 +19,7 @@ public sealed partial class ModelResponseProperties public global::System.Collections.Generic.Dictionary? Metadata { get; set; } /// - /// Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching).
+ /// Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](https://platform.openai.com/docs/guides/prompt-caching).
/// Example: prompt-cache-key-1234 ///
/// prompt-cache-key-1234 @@ -28,7 +28,7 @@ public sealed partial class ModelResponseProperties /// /// A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.
- /// The IDs should be a string that uniquely identifies each user. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).
+ /// The IDs should be a string that uniquely identifies each user. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
/// Example: safety-identifier-1234 ///
/// safety-identifier-1234 @@ -39,7 +39,7 @@ public sealed partial class ModelResponseProperties /// Specifies the processing type used for serving the request.
/// - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
/// - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
- /// - If set to '[flex](/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
+ /// - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
/// - When not set, the default behavior is 'auto'.
/// When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
/// Default Value: auto @@ -81,7 +81,7 @@ public sealed partial class ModelResponseProperties /// /// This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.
/// A stable identifier for your end-users.
- /// Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).
+ /// Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
/// Example: user-1234 ///
/// user-1234 @@ -106,19 +106,19 @@ public sealed partial class ModelResponseProperties /// with a maximum length of 512 characters. /// /// - /// Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching).
+ /// Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](https://platform.openai.com/docs/guides/prompt-caching).
/// Example: prompt-cache-key-1234 /// /// /// A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.
- /// The IDs should be a string that uniquely identifies each user. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).
+ /// The IDs should be a string that uniquely identifies each user. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
/// Example: safety-identifier-1234 /// /// /// Specifies the processing type used for serving the request.
/// - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
/// - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
- /// - If set to '[flex](/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
+ /// - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
/// - When not set, the default behavior is 'auto'.
/// When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
/// Default Value: auto diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInput.Json.g.cs new file mode 100644 index 00000000..8d0044a3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ModerationImageURLInput + { + /// + /// 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::tryAGI.OpenAI.ModerationImageURLInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ModerationImageURLInput), + jsonSerializerContext) as global::tryAGI.OpenAI.ModerationImageURLInput; + } + + /// + /// 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::tryAGI.OpenAI.ModerationImageURLInput? 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::tryAGI.OpenAI.ModerationImageURLInput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ModerationImageURLInput; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInput.g.cs similarity index 61% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInput.g.cs index 67c4859d..2cff312c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInput.g.cs @@ -6,21 +6,21 @@ namespace tryAGI.OpenAI /// /// An object describing an image to classify. /// - public sealed partial class CreateModerationRequestInputVariant3ItemVariant1 + public sealed partial class ModerationImageURLInput { /// /// Contains either an image URL or a data URL for a base64 encoded image. /// [global::System.Text.Json.Serialization.JsonPropertyName("image_url")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl ImageUrl { get; set; } + public required global::tryAGI.OpenAI.ModerationImageURLInputImageUrl ImageUrl { get; set; } /// /// Always `image_url`. /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant1TypeJsonConverter))] - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ModerationImageURLInputTypeJsonConverter))] + public global::tryAGI.OpenAI.ModerationImageURLInputType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class CreateModerationRequestInputVariant3ItemVariant1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Contains either an image URL or a data URL for a base64 encoded image. @@ -40,18 +40,18 @@ public sealed partial class CreateModerationRequestInputVariant3ItemVariant1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateModerationRequestInputVariant3ItemVariant1( - global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl imageUrl, - global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type type) + public ModerationImageURLInput( + global::tryAGI.OpenAI.ModerationImageURLInputImageUrl imageUrl, + global::tryAGI.OpenAI.ModerationImageURLInputType type) { this.ImageUrl = imageUrl ?? throw new global::System.ArgumentNullException(nameof(imageUrl)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateModerationRequestInputVariant3ItemVariant1() + public ModerationImageURLInput() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInputImageUrl.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInputImageUrl.Json.g.cs new file mode 100644 index 00000000..153134b4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInputImageUrl.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ModerationImageURLInputImageUrl + { + /// + /// 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::tryAGI.OpenAI.ModerationImageURLInputImageUrl? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ModerationImageURLInputImageUrl), + jsonSerializerContext) as global::tryAGI.OpenAI.ModerationImageURLInputImageUrl; + } + + /// + /// 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::tryAGI.OpenAI.ModerationImageURLInputImageUrl? 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::tryAGI.OpenAI.ModerationImageURLInputImageUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ModerationImageURLInputImageUrl; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInputImageUrl.g.cs similarity index 75% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInputImageUrl.g.cs index da212810..5d4f9e18 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1ImageUrl.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInputImageUrl.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Contains either an image URL or a data URL for a base64 encoded image. /// - public sealed partial class CreateModerationRequestInputVariant3ItemVariant1ImageUrl + public sealed partial class ModerationImageURLInputImageUrl { /// /// Either a URL of the image or the base64 encoded image data.
@@ -24,7 +24,7 @@ public sealed partial class CreateModerationRequestInputVariant3ItemVariant1Imag public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Either a URL of the image or the base64 encoded image data.
@@ -33,16 +33,16 @@ public sealed partial class CreateModerationRequestInputVariant3ItemVariant1Imag #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateModerationRequestInputVariant3ItemVariant1ImageUrl( + public ModerationImageURLInputImageUrl( string url) { this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateModerationRequestInputVariant3ItemVariant1ImageUrl() + public ModerationImageURLInputImageUrl() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInputType.g.cs similarity index 58% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInputType.g.cs index 5f32cdc4..14e9f2fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant1Type.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationImageURLInputType.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Always `image_url`. /// - public enum CreateModerationRequestInputVariant3ItemVariant1Type + public enum ModerationImageURLInputType { /// /// @@ -17,27 +17,27 @@ public enum CreateModerationRequestInputVariant3ItemVariant1Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class CreateModerationRequestInputVariant3ItemVariant1TypeExtensions + public static class ModerationImageURLInputTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this CreateModerationRequestInputVariant3ItemVariant1Type value) + public static string ToValueString(this ModerationImageURLInputType value) { return value switch { - CreateModerationRequestInputVariant3ItemVariant1Type.ImageUrl => "image_url", + ModerationImageURLInputType.ImageUrl => "image_url", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static CreateModerationRequestInputVariant3ItemVariant1Type? ToEnum(string value) + public static ModerationImageURLInputType? ToEnum(string value) { return value switch { - "image_url" => CreateModerationRequestInputVariant3ItemVariant1Type.ImageUrl, + "image_url" => ModerationImageURLInputType.ImageUrl, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrorsDataItem.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationTextInput.Json.g.cs similarity index 88% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrorsDataItem.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationTextInput.Json.g.cs index 6b1b8a2a..839e8692 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BatchErrorsDataItem.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationTextInput.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class BatchErrorsDataItem + public sealed partial class ModerationTextInput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.BatchErrorsDataItem? FromJson( + public static global::tryAGI.OpenAI.ModerationTextInput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.BatchErrorsDataItem), - jsonSerializerContext) as global::tryAGI.OpenAI.BatchErrorsDataItem; + typeof(global::tryAGI.OpenAI.ModerationTextInput), + jsonSerializerContext) as global::tryAGI.OpenAI.ModerationTextInput; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.BatchErrorsDataItem? FromJson( + public static global::tryAGI.OpenAI.ModerationTextInput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::tryAGI.OpenAI.BatchErrorsDataItem), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BatchErrorsDataItem; + typeof(global::tryAGI.OpenAI.ModerationTextInput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ModerationTextInput; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationTextInput.g.cs similarity index 69% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationTextInput.g.cs index 1b6b4b44..b0986936 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationTextInput.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// An object describing text to classify. /// - public sealed partial class CreateModerationRequestInputVariant3ItemVariant2 + public sealed partial class ModerationTextInput { /// /// A string of text to classify.
@@ -21,8 +21,8 @@ public sealed partial class CreateModerationRequestInputVariant3ItemVariant2 /// Always `text`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateModerationRequestInputVariant3ItemVariant2TypeJsonConverter))] - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ModerationTextInputTypeJsonConverter))] + public global::tryAGI.OpenAI.ModerationTextInputType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,7 +31,7 @@ public sealed partial class CreateModerationRequestInputVariant3ItemVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A string of text to classify.
@@ -43,18 +43,18 @@ public sealed partial class CreateModerationRequestInputVariant3ItemVariant2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateModerationRequestInputVariant3ItemVariant2( + public ModerationTextInput( string text, - global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type type) + global::tryAGI.OpenAI.ModerationTextInputType type) { this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateModerationRequestInputVariant3ItemVariant2() + public ModerationTextInput() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationTextInputType.g.cs similarity index 59% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationTextInputType.g.cs index ea1bdd53..8a7fc3fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModerationRequestInputVariant3ItemVariant2Type.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModerationTextInputType.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Always `text`. /// - public enum CreateModerationRequestInputVariant3ItemVariant2Type + public enum ModerationTextInputType { /// /// @@ -17,27 +17,27 @@ public enum CreateModerationRequestInputVariant3ItemVariant2Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class CreateModerationRequestInputVariant3ItemVariant2TypeExtensions + public static class ModerationTextInputTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this CreateModerationRequestInputVariant3ItemVariant2Type value) + public static string ToValueString(this ModerationTextInputType value) { return value switch { - CreateModerationRequestInputVariant3ItemVariant2Type.Text => "text", + ModerationTextInputType.Text => "text", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static CreateModerationRequestInputVariant3ItemVariant2Type? ToEnum(string value) + public static ModerationTextInputType? ToEnum(string value) { return value switch { - "text" => CreateModerationRequestInputVariant3ItemVariant2Type.Text, + "text" => ModerationTextInputType.Text, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequest.g.cs index f39d8a19..2c8079c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequest.g.cs @@ -33,7 +33,7 @@ public sealed partial class ModifyAssistantRequest public global::System.Collections.Generic.Dictionary? Metadata { get; set; } /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] @@ -59,8 +59,8 @@ public sealed partial class ModifyAssistantRequest public global::tryAGI.OpenAI.ReasoningEffort? ReasoningEffort { get; set; } /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. ///
@@ -87,7 +87,7 @@ public sealed partial class ModifyAssistantRequest /// A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList>? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
@@ -122,7 +122,7 @@ public sealed partial class ModifyAssistantRequest /// with a maximum length of 512 characters. /// /// - /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them. + /// ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. /// /// /// The name of the assistant. The maximum length is 256 characters. @@ -137,8 +137,8 @@ public sealed partial class ModifyAssistantRequest /// Default Value: medium /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -172,7 +172,7 @@ public ModifyAssistantRequest( global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat, double? temperature, global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? toolResources, - global::System.Collections.Generic.IList>? tools, + global::System.Collections.Generic.IList? tools, double? topP) { this.Description = description; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequestToolResourcesCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequestToolResourcesCodeInterpreter.g.cs index 78cc285c..eb767f0b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequestToolResourcesCodeInterpreter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequestToolResourcesCodeInterpreter.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class ModifyAssistantRequestToolResourcesCodeInterpreter { /// - /// Overrides the list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// Overrides the list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class ModifyAssistantRequestToolResourcesCodeInterpreter /// Initializes a new instance of the class. ///
/// - /// Overrides the list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// Overrides the list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequestToolResourcesFileSearch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequestToolResourcesFileSearch.g.cs index 9e1b1c34..6dde85ea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequestToolResourcesFileSearch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyAssistantRequestToolResourcesFileSearch.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class ModifyAssistantRequestToolResourcesFileSearch { /// - /// Overrides the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// Overrides the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_ids")] public global::System.Collections.Generic.IList? VectorStoreIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class ModifyAssistantRequestToolResourcesFileSearch /// Initializes a new instance of the class. ///
/// - /// Overrides the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. + /// Overrides the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyThreadRequestToolResourcesCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyThreadRequestToolResourcesCodeInterpreter.g.cs index 2fb5ab6e..b2f6f631 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyThreadRequestToolResourcesCodeInterpreter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyThreadRequestToolResourcesCodeInterpreter.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class ModifyThreadRequestToolResourcesCodeInterpreter { /// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class ModifyThreadRequestToolResourcesCodeInterpreter /// Initializes a new instance of the class. ///
/// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyThreadRequestToolResourcesFileSearch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyThreadRequestToolResourcesFileSearch.g.cs index 84199684..85062751 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyThreadRequestToolResourcesFileSearch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModifyThreadRequestToolResourcesFileSearch.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class ModifyThreadRequestToolResourcesFileSearch { /// - /// The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. + /// The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_ids")] public global::System.Collections.Generic.IList? VectorStoreIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class ModifyThreadRequestToolResourcesFileSearch /// Initializes a new instance of the class. ///
/// - /// The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. + /// The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs index f7927869..5a389098 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs @@ -112,7 +112,7 @@ Text as object ///
public bool Validate() { - return IsText && !IsRefusal || !IsText && IsRefusal; + return IsText || IsRefusal; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.Json.g.cs new file mode 100644 index 00000000..eb7cf143 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class OutputContentDiscriminator + { + /// + /// 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::tryAGI.OpenAI.OutputContentDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.OutputContentDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.OutputContentDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.OutputContentDiscriminator? 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::tryAGI.OpenAI.OutputContentDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OutputContentDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.g.cs new file mode 100644 index 00000000..04a882b7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class OutputContentDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 OutputContentDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputContentDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs index 0e5a04e0..dfd757b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs @@ -46,7 +46,7 @@ public OutputItem(global::tryAGI.OpenAI.OutputMessage? value) /// /// The results of a file search tool call. See the
- /// [file search guide](/docs/guides/tools-file-search) for more information. + /// [file search guide](https://platform.openai.com/docs/guides/tools-file-search) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.FileSearchToolCall? FileSearchToolCall { get; init; } @@ -82,7 +82,7 @@ public OutputItem(global::tryAGI.OpenAI.FileSearchToolCall? value) /// /// A tool call to run a function. See the
- /// [function calling guide](/docs/guides/function-calling) for more information. + /// [function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.FunctionToolCall? FunctionToolCall { get; init; } @@ -118,7 +118,7 @@ public OutputItem(global::tryAGI.OpenAI.FunctionToolCall? value) /// /// The results of a web search tool call. See the
- /// [web search guide](/docs/guides/tools-web-search) for more information. + /// [web search guide](https://platform.openai.com/docs/guides/tools-web-search) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.WebSearchToolCall? WebSearchToolCall { get; init; } @@ -154,7 +154,7 @@ public OutputItem(global::tryAGI.OpenAI.WebSearchToolCall? value) /// /// A tool call to a computer use tool. See the
- /// [computer use guide](/docs/guides/tools-computer-use) for more information. + /// [computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ComputerToolCall? ComputerToolCall { get; init; } @@ -192,7 +192,7 @@ public OutputItem(global::tryAGI.OpenAI.ComputerToolCall? value) /// A description of the chain of thought used by a reasoning model while generating
/// a response. Be sure to include these items in your `input` to the Responses API
/// for subsequent turns of a conversation if you are manually
- /// [managing context](/docs/guides/conversation-state). + /// [managing context](https://platform.openai.com/docs/guides/conversation-state). ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ReasoningItem? Reasoning { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsItem.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsItem.Json.g.cs new file mode 100644 index 00000000..eb92da08 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct OutputsItem + { + /// + /// 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::tryAGI.OpenAI.OutputsItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.OutputsItem), + jsonSerializerContext) as global::tryAGI.OpenAI.OutputsItem?; + } + + /// + /// 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::tryAGI.OpenAI.OutputsItem? 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::tryAGI.OpenAI.OutputsItem), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.OutputsItem?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsItem.g.cs new file mode 100644 index 00000000..683d7854 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsItem.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct OutputsItem : global::System.IEquatable + { + /// + /// The logs output from the code interpreter. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? CodeInterpreterOutputLogs { get; init; } +#else + public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? CodeInterpreterOutputLogs { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreterOutputLogs))] +#endif + public bool IsCodeInterpreterOutputLogs => CodeInterpreterOutputLogs != null; + + /// + /// + /// + public static implicit operator OutputsItem(global::tryAGI.OpenAI.CodeInterpreterOutputLogs value) => new OutputsItem((global::tryAGI.OpenAI.CodeInterpreterOutputLogs?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CodeInterpreterOutputLogs?(OutputsItem @this) => @this.CodeInterpreterOutputLogs; + + /// + /// + /// + public OutputsItem(global::tryAGI.OpenAI.CodeInterpreterOutputLogs? value) + { + CodeInterpreterOutputLogs = value; + } + + /// + /// The image output from the code interpreter. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CodeInterpreterOutputImage? CodeInterpreterOutputImage { get; init; } +#else + public global::tryAGI.OpenAI.CodeInterpreterOutputImage? CodeInterpreterOutputImage { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreterOutputImage))] +#endif + public bool IsCodeInterpreterOutputImage => CodeInterpreterOutputImage != null; + + /// + /// + /// + public static implicit operator OutputsItem(global::tryAGI.OpenAI.CodeInterpreterOutputImage value) => new OutputsItem((global::tryAGI.OpenAI.CodeInterpreterOutputImage?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CodeInterpreterOutputImage?(OutputsItem @this) => @this.CodeInterpreterOutputImage; + + /// + /// + /// + public OutputsItem(global::tryAGI.OpenAI.CodeInterpreterOutputImage? value) + { + CodeInterpreterOutputImage = value; + } + + /// + /// + /// + public OutputsItem( + global::tryAGI.OpenAI.CodeInterpreterOutputLogs? codeInterpreterOutputLogs, + global::tryAGI.OpenAI.CodeInterpreterOutputImage? codeInterpreterOutputImage + ) + { + CodeInterpreterOutputLogs = codeInterpreterOutputLogs; + CodeInterpreterOutputImage = codeInterpreterOutputImage; + } + + /// + /// + /// + public object? Object => + CodeInterpreterOutputImage as object ?? + CodeInterpreterOutputLogs as object + ; + + /// + /// + /// + public override string? ToString() => + CodeInterpreterOutputLogs?.ToString() ?? + CodeInterpreterOutputImage?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCodeInterpreterOutputLogs || IsCodeInterpreterOutputImage; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? codeInterpreterOutputLogs = null, + global::System.Func? codeInterpreterOutputImage = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCodeInterpreterOutputLogs && codeInterpreterOutputLogs != null) + { + return codeInterpreterOutputLogs(CodeInterpreterOutputLogs!); + } + else if (IsCodeInterpreterOutputImage && codeInterpreterOutputImage != null) + { + return codeInterpreterOutputImage(CodeInterpreterOutputImage!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? codeInterpreterOutputLogs = null, + global::System.Action? codeInterpreterOutputImage = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCodeInterpreterOutputLogs) + { + codeInterpreterOutputLogs?.Invoke(CodeInterpreterOutputLogs!); + } + else if (IsCodeInterpreterOutputImage) + { + codeInterpreterOutputImage?.Invoke(CodeInterpreterOutputImage!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CodeInterpreterOutputLogs, + typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), + CodeInterpreterOutputImage, + typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(OutputsItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreterOutputLogs, other.CodeInterpreterOutputLogs) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreterOutputImage, other.CodeInterpreterOutputImage) + ; + } + + /// + /// + /// + public static bool operator ==(OutputsItem obj1, OutputsItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(OutputsItem obj1, OutputsItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is OutputsItem o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PredictionContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PredictionContent.g.cs index a955eb63..411306fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PredictionContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PredictionContent.g.cs @@ -17,9 +17,9 @@ public sealed partial class PredictionContent /// can be returned much more quickly. ///
[global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf> Content { get; set; } + public required global::tryAGI.OpenAI.AnyOf> Content { get; set; } /// /// The type of the predicted content you want to provide. This type is
@@ -51,7 +51,7 @@ public sealed partial class PredictionContent [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PredictionContent( - global::tryAGI.OpenAI.OneOf> content, + global::tryAGI.OpenAI.AnyOf> content, global::tryAGI.OpenAI.PredictionContentType type) { this.Content = content; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Prompt2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Prompt2.g.cs index 2fb2ca47..5103d887 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Prompt2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Prompt2.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// Reference to a prompt template and its variables.
- /// [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts). + /// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). ///
public sealed partial class Prompt2 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs index acbc8270..8040ccb6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs @@ -252,7 +252,7 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBu /// stop generating audio and emit a `output_audio_buffer.cleared` event. This
/// event should be preceded by a `response.cancel` client event to stop the
/// generation of the current response.
- /// [Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + /// [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? OutputAudioBufferClear { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventOutputAudioBufferClear.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventOutputAudioBufferClear.g.cs index 6c9a1851..eca4f26e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventOutputAudioBufferClear.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventOutputAudioBufferClear.g.cs @@ -8,7 +8,7 @@ namespace tryAGI.OpenAI /// stop generating audio and emit a `output_audio_buffer.cleared` event. This
/// event should be preceded by a `response.cancel` client event to stop the
/// generation of the current response.
- /// [Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + /// [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). ///
public sealed partial class RealtimeClientEventOutputAudioBufferClear { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConnectParams.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConnectParams.Json.g.cs new file mode 100644 index 00000000..5ce7bb89 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConnectParams.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeConnectParams + { + /// + /// 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::tryAGI.OpenAI.RealtimeConnectParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeConnectParams), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeConnectParams; + } + + /// + /// 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::tryAGI.OpenAI.RealtimeConnectParams? 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::tryAGI.OpenAI.RealtimeConnectParams), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeConnectParams; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConnectParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConnectParams.g.cs new file mode 100644 index 00000000..ab6d2ead --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConnectParams.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeConnectParams + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { 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 RealtimeConnectParams( + string model) + { + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeConnectParams() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemContent.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemContent.Json.g.cs new file mode 100644 index 00000000..cf725b1e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemContent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RealtimeConversationItemContent + { + /// + /// 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::tryAGI.OpenAI.RealtimeConversationItemContent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RealtimeConversationItemContent), + jsonSerializerContext) as global::tryAGI.OpenAI.RealtimeConversationItemContent; + } + + /// + /// 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::tryAGI.OpenAI.RealtimeConversationItemContent? 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::tryAGI.OpenAI.RealtimeConversationItemContent), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RealtimeConversationItemContent; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemContent.g.cs new file mode 100644 index 00000000..1abf10a6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemContent.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RealtimeConversationItemContent + { + /// + /// Base64-encoded audio bytes, used for `input_audio` content type. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public string? Audio { get; set; } + + /// + /// ID of a previous conversation item to reference (for `item_reference`
+ /// content types in `response.create` events). These can reference both
+ /// client and server created items. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// The text content, used for `input_text` and `text` content types. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + + /// + /// The transcript of the audio, used for `input_audio` and `audio`
+ /// content types. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("transcript")] + public string? Transcript { get; set; } + + /// + /// The content type (`input_text`, `input_audio`, `item_reference`, `text`, `audio`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemContentTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeConversationItemContentType? Type { 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. + /// + /// + /// Base64-encoded audio bytes, used for `input_audio` content type. + /// + /// + /// ID of a previous conversation item to reference (for `item_reference`
+ /// content types in `response.create` events). These can reference both
+ /// client and server created items. + /// + /// + /// The text content, used for `input_text` and `text` content types. + /// + /// + /// The transcript of the audio, used for `input_audio` and `audio`
+ /// content types. + /// + /// + /// The content type (`input_text`, `input_audio`, `item_reference`, `text`, `audio`). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RealtimeConversationItemContent( + string? audio, + string? id, + string? text, + string? transcript, + global::tryAGI.OpenAI.RealtimeConversationItemContentType? type) + { + this.Audio = audio; + this.Id = id; + this.Text = text; + this.Transcript = transcript; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RealtimeConversationItemContent() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemContentType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemContentType.g.cs new file mode 100644 index 00000000..c517ac04 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemContentType.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The content type (`input_text`, `input_audio`, `item_reference`, `text`, `audio`). + /// + public enum RealtimeConversationItemContentType + { + /// + /// + /// + InputText, + /// + /// + /// + InputAudio, + /// + /// + /// + ItemReference, + /// + /// + /// + Text, + /// + /// + /// + Audio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeConversationItemContentTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeConversationItemContentType value) + { + return value switch + { + RealtimeConversationItemContentType.InputText => "input_text", + RealtimeConversationItemContentType.InputAudio => "input_audio", + RealtimeConversationItemContentType.ItemReference => "item_reference", + RealtimeConversationItemContentType.Text => "text", + RealtimeConversationItemContentType.Audio => "audio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeConversationItemContentType? ToEnum(string value) + { + return value switch + { + "input_text" => RealtimeConversationItemContentType.InputText, + "input_audio" => RealtimeConversationItemContentType.InputAudio, + "item_reference" => RealtimeConversationItemContentType.ItemReference, + "text" => RealtimeConversationItemContentType.Text, + "audio" => RealtimeConversationItemContentType.Audio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemWithReferenceContentItemType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemWithReferenceContentItemType.g.cs index b90e8830..6748dac7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemWithReferenceContentItemType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemWithReferenceContentItemType.g.cs @@ -11,11 +11,11 @@ public enum RealtimeConversationItemWithReferenceContentItemType /// /// /// - InputAudio, + InputText, /// /// /// - InputText, + InputAudio, /// /// /// @@ -38,8 +38,8 @@ public static string ToValueString(this RealtimeConversationItemWithReferenceCon { return value switch { - RealtimeConversationItemWithReferenceContentItemType.InputAudio => "input_audio", RealtimeConversationItemWithReferenceContentItemType.InputText => "input_text", + RealtimeConversationItemWithReferenceContentItemType.InputAudio => "input_audio", RealtimeConversationItemWithReferenceContentItemType.ItemReference => "item_reference", RealtimeConversationItemWithReferenceContentItemType.Text => "text", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -52,8 +52,8 @@ public static string ToValueString(this RealtimeConversationItemWithReferenceCon { return value switch { - "input_audio" => RealtimeConversationItemWithReferenceContentItemType.InputAudio, "input_text" => RealtimeConversationItemWithReferenceContentItemType.InputText, + "input_audio" => RealtimeConversationItemWithReferenceContentItemType.InputAudio, "item_reference" => RealtimeConversationItemWithReferenceContentItemType.ItemReference, "text" => RealtimeConversationItemWithReferenceContentItemType.Text, _ => null, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemWithReferenceType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemWithReferenceType.g.cs index aa237821..c85fcfda 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemWithReferenceType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemWithReferenceType.g.cs @@ -20,6 +20,10 @@ public enum RealtimeConversationItemWithReferenceType /// ///
FunctionCallOutput, + /// + /// + /// + ItemReference, } /// @@ -37,6 +41,7 @@ public static string ToValueString(this RealtimeConversationItemWithReferenceTyp RealtimeConversationItemWithReferenceType.Message => "message", RealtimeConversationItemWithReferenceType.FunctionCall => "function_call", RealtimeConversationItemWithReferenceType.FunctionCallOutput => "function_call_output", + RealtimeConversationItemWithReferenceType.ItemReference => "item_reference", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -50,6 +55,7 @@ public static string ToValueString(this RealtimeConversationItemWithReferenceTyp "message" => RealtimeConversationItemWithReferenceType.Message, "function_call" => RealtimeConversationItemWithReferenceType.FunctionCall, "function_call_output" => RealtimeConversationItemWithReferenceType.FunctionCallOutput, + "item_reference" => RealtimeConversationItemWithReferenceType.ItemReference, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParams.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParams.g.cs index d941faf7..d3f661f4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParams.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeResponseCreateParams.g.cs @@ -18,8 +18,8 @@ public sealed partial class RealtimeResponseCreateParams /// will not add items to default conversation. /// [global::System.Text.Json.Serialization.JsonPropertyName("conversation")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? Conversation { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Conversation { get; set; } /// /// Input items to include in the prompt for the model. Using this field
@@ -53,8 +53,8 @@ public sealed partial class RealtimeResponseCreateParams /// given model. Defaults to `inf`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("max_response_output_tokens")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? MaxResponseOutputTokens { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? MaxResponseOutputTokens { get; set; } /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -179,10 +179,10 @@ public sealed partial class RealtimeResponseCreateParams [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeResponseCreateParams( - global::tryAGI.OpenAI.OneOf? conversation, + global::tryAGI.OpenAI.AnyOf? conversation, global::System.Collections.Generic.IList? input, string? instructions, - global::tryAGI.OpenAI.OneOf? maxResponseOutputTokens, + global::tryAGI.OpenAI.AnyOf? maxResponseOutputTokens, global::System.Collections.Generic.Dictionary? metadata, global::System.Collections.Generic.IList? modalities, global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputAudioFormat? outputAudioFormat, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationCreatedConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationCreatedConversation.g.cs index 995c5177..8c57ba0c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationCreatedConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationCreatedConversation.g.cs @@ -18,7 +18,8 @@ public sealed partial class RealtimeServerEventConversationCreatedConversation /// The object type, must be `realtime.conversation`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("object")] - public string? Object { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedConversationObjectJsonConverter))] + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject? Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -40,7 +41,7 @@ public sealed partial class RealtimeServerEventConversationCreatedConversation #endif public RealtimeServerEventConversationCreatedConversation( string? id, - string? @object) + global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversationObject? @object) { this.Id = id; this.Object = @object; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationCreatedConversationObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationCreatedConversationObject.g.cs new file mode 100644 index 00000000..d24a7b66 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationCreatedConversationObject.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The object type, must be `realtime.conversation`. + /// + public enum RealtimeServerEventConversationCreatedConversationObject + { + /// + /// + /// + RealtimeConversation, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeServerEventConversationCreatedConversationObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeServerEventConversationCreatedConversationObject value) + { + return value switch + { + RealtimeServerEventConversationCreatedConversationObject.RealtimeConversation => "realtime.conversation", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeServerEventConversationCreatedConversationObject? ToEnum(string value) + { + return value switch + { + "realtime.conversation" => RealtimeServerEventConversationCreatedConversationObject.RealtimeConversation, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.g.cs index 7a25c6a6..8421431f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.g.cs @@ -64,9 +64,9 @@ public sealed partial class RealtimeServerEventConversationItemInputAudioTranscr /// Usage statistics for the transcription. /// [global::System.Text.Json.Serialization.JsonPropertyName("usage")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Usage { get; set; } + public required global::tryAGI.OpenAI.AnyOf Usage { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -107,7 +107,7 @@ public RealtimeServerEventConversationItemInputAudioTranscriptionCompleted( string eventId, string itemId, string transcript, - global::tryAGI.OpenAI.OneOf usage, + global::tryAGI.OpenAI.AnyOf usage, global::System.Collections.Generic.IList? logprobs, global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType type) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferCleared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferCleared.g.cs index 491a447e..1a6f1811 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferCleared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferCleared.g.cs @@ -8,7 +8,7 @@ namespace tryAGI.OpenAI /// mode when the user has interrupted (`input_audio_buffer.speech_started`),
/// or when the client has emitted the `output_audio_buffer.clear` event to manually
/// cut off the current audio response.
- /// [Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + /// [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). ///
public sealed partial class RealtimeServerEventOutputAudioBufferCleared { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferStarted.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferStarted.g.cs index 03ac4126..c2fafedb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferStarted.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferStarted.g.cs @@ -7,7 +7,7 @@ namespace tryAGI.OpenAI /// **WebRTC Only:** Emitted when the server begins streaming audio to the client. This event is
/// emitted after an audio content part has been added (`response.content_part.added`)
/// to the response.
- /// [Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + /// [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). ///
public sealed partial class RealtimeServerEventOutputAudioBufferStarted { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferStopped.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferStopped.g.cs index dd24ab64..b29c96d9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferStopped.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventOutputAudioBufferStopped.g.cs @@ -7,7 +7,7 @@ namespace tryAGI.OpenAI /// **WebRTC Only:** Emitted when the output audio buffer has been completely drained on the server,
/// and no more audio is forthcoming. This event is emitted after the full response
/// data has been sent to the client (`response.done`).
- /// [Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). + /// [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc). /// public sealed partial class RealtimeServerEventOutputAudioBufferStopped { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseContentPartAddedPartType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseContentPartAddedPartType.g.cs index ca55029d..ae32e184 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseContentPartAddedPartType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseContentPartAddedPartType.g.cs @@ -11,11 +11,11 @@ public enum RealtimeServerEventResponseContentPartAddedPartType /// /// /// - Audio, + Text, /// /// /// - Text, + Audio, } /// @@ -30,8 +30,8 @@ public static string ToValueString(this RealtimeServerEventResponseContentPartAd { return value switch { - RealtimeServerEventResponseContentPartAddedPartType.Audio => "audio", RealtimeServerEventResponseContentPartAddedPartType.Text => "text", + RealtimeServerEventResponseContentPartAddedPartType.Audio => "audio", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -42,8 +42,8 @@ public static string ToValueString(this RealtimeServerEventResponseContentPartAd { return value switch { - "audio" => RealtimeServerEventResponseContentPartAddedPartType.Audio, "text" => RealtimeServerEventResponseContentPartAddedPartType.Text, + "audio" => RealtimeServerEventResponseContentPartAddedPartType.Audio, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseContentPartDonePartType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseContentPartDonePartType.g.cs index 365985e6..7ab3c6fb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseContentPartDonePartType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventResponseContentPartDonePartType.g.cs @@ -11,11 +11,11 @@ public enum RealtimeServerEventResponseContentPartDonePartType /// /// /// - Audio, + Text, /// /// /// - Text, + Audio, } /// @@ -30,8 +30,8 @@ public static string ToValueString(this RealtimeServerEventResponseContentPartDo { return value switch { - RealtimeServerEventResponseContentPartDonePartType.Audio => "audio", RealtimeServerEventResponseContentPartDonePartType.Text => "text", + RealtimeServerEventResponseContentPartDonePartType.Audio => "audio", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -42,8 +42,8 @@ public static string ToValueString(this RealtimeServerEventResponseContentPartDo { return value switch { - "audio" => RealtimeServerEventResponseContentPartDonePartType.Audio, "text" => RealtimeServerEventResponseContentPartDonePartType.Text, + "audio" => RealtimeServerEventResponseContentPartDonePartType.Audio, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequest.g.cs index f3551a23..bddb1816 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequest.g.cs @@ -54,8 +54,8 @@ public sealed partial class RealtimeSessionCreateRequest /// given model. Defaults to `inf`. /// [global::System.Text.Json.Serialization.JsonPropertyName("max_response_output_tokens")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? MaxResponseOutputTokens { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? MaxResponseOutputTokens { get; set; } /// /// The set of modalities the model can respond with. To disable audio,
@@ -117,8 +117,8 @@ public sealed partial class RealtimeSessionCreateRequest /// workflow name, group id, and metadata. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tracing")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? Tracing { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Tracing { get; set; } /// /// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
@@ -225,7 +225,7 @@ public RealtimeSessionCreateRequest( global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioNoiseReduction? inputAudioNoiseReduction, global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? inputAudioTranscription, string? instructions, - global::tryAGI.OpenAI.OneOf? maxResponseOutputTokens, + global::tryAGI.OpenAI.AnyOf? maxResponseOutputTokens, global::System.Collections.Generic.IList? modalities, global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel? model, global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputAudioFormat? outputAudioFormat, @@ -233,7 +233,7 @@ public RealtimeSessionCreateRequest( double? temperature, string? toolChoice, global::System.Collections.Generic.IList? tools, - global::tryAGI.OpenAI.OneOf? tracing, + global::tryAGI.OpenAI.AnyOf? tracing, global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? turnDetection, global::tryAGI.OpenAI.VoiceIdsShared? voice) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.g.cs index f3622c02..af803d6e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestInputAudioTranscription.g.cs @@ -25,7 +25,7 @@ public sealed partial class RealtimeSessionCreateRequestInputAudioTranscription /// /// An optional text to guide the model's style or continue a previous audio
/// segment.
- /// For `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).
+ /// For `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).
/// For `gpt-4o-transcribe` models, the prompt is a free text string, for example "expect words related to technology". ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] @@ -51,7 +51,7 @@ public sealed partial class RealtimeSessionCreateRequestInputAudioTranscription /// /// An optional text to guide the model's style or continue a previous audio
/// segment.
- /// For `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).
+ /// For `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).
/// For `gpt-4o-transcribe` models, the prompt is a free text string, for example "expect words related to technology". /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalitie.g.cs index f85ea71b..ca096a78 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalitie.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateRequestModalitie.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Default Value: [text, audio] + /// /// public enum RealtimeSessionCreateRequestModalitie { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponse.g.cs index 2eb6c6a2..5bba171f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeSessionCreateResponse.g.cs @@ -57,8 +57,8 @@ public sealed partial class RealtimeSessionCreateResponse /// given model. Defaults to `inf`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("max_response_output_tokens")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? MaxResponseOutputTokens { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? MaxResponseOutputTokens { get; set; } /// /// The set of modalities the model can respond with. To disable audio,
@@ -108,8 +108,8 @@ public sealed partial class RealtimeSessionCreateResponse /// workflow name, group id, and metadata. ///
[global::System.Text.Json.Serialization.JsonPropertyName("tracing")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? Tracing { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Tracing { get; set; } /// /// Configuration for turn detection. Can be set to `null` to turn off. Server
@@ -213,14 +213,14 @@ public RealtimeSessionCreateResponse( string? inputAudioFormat, global::tryAGI.OpenAI.RealtimeSessionCreateResponseInputAudioTranscription? inputAudioTranscription, string? instructions, - global::tryAGI.OpenAI.OneOf? maxResponseOutputTokens, + global::tryAGI.OpenAI.AnyOf? maxResponseOutputTokens, global::System.Collections.Generic.IList? modalities, string? outputAudioFormat, double? speed, double? temperature, string? toolChoice, global::System.Collections.Generic.IList? tools, - global::tryAGI.OpenAI.OneOf? tracing, + global::tryAGI.OpenAI.AnyOf? tracing, global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? turnDetection, global::tryAGI.OpenAI.VoiceIdsShared? voice) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.g.cs index a17744a7..68e7dc9b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestInputAudioTranscription.g.cs @@ -26,7 +26,7 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioT /// /// An optional text to guide the model's style or continue a previous audio
/// segment.
- /// For `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).
+ /// For `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).
/// For `gpt-4o-transcribe` models, the prompt is a free text string, for example "expect words related to technology". ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] @@ -52,7 +52,7 @@ public sealed partial class RealtimeTranscriptionSessionCreateRequestInputAudioT /// /// An optional text to guide the model's style or continue a previous audio
/// segment.
- /// For `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).
+ /// For `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).
/// For `gpt-4o-transcribe` models, the prompt is a free text string, for example "expect words related to technology". /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestModalitie.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestModalitie.g.cs index 4e7d32ad..05587c8e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestModalitie.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateRequestModalitie.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Default Value: [text, audio] + /// /// public enum RealtimeTranscriptionSessionCreateRequestModalitie { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseInputAudioTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseInputAudioTranscription.g.cs index 563cf242..5c2817ca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseInputAudioTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranscriptionSessionCreateResponseInputAudioTranscription.g.cs @@ -25,7 +25,7 @@ public sealed partial class RealtimeTranscriptionSessionCreateResponseInputAudio /// /// An optional text to guide the model's style or continue a previous audio
- /// segment. The [prompt](/docs/guides/speech-to-text#prompting) should match
+ /// segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match
/// the audio language. ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] @@ -50,7 +50,7 @@ public sealed partial class RealtimeTranscriptionSessionCreateResponseInputAudio /// /// /// An optional text to guide the model's style or continue a previous audio
- /// segment. The [prompt](/docs/guides/speech-to-text#prompting) should match
+ /// segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match
/// the audio language. /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItem.g.cs index 14f748e2..f54f518d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItem.g.cs @@ -7,10 +7,16 @@ namespace tryAGI.OpenAI /// A description of the chain of thought used by a reasoning model while generating
/// a response. Be sure to include these items in your `input` to the Responses API
/// for subsequent turns of a conversation if you are manually
- /// [managing context](/docs/guides/conversation-state). + /// [managing context](https://platform.openai.com/docs/guides/conversation-state). ///
public sealed partial class ReasoningItem { + /// + /// Reasoning text content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::System.Collections.Generic.IList? Content { get; set; } + /// /// The encrypted content of the reasoning item - populated when a response is
/// generated with `reasoning.encrypted_content` in the `include` parameter. @@ -34,7 +40,7 @@ public sealed partial class ReasoningItem public global::tryAGI.OpenAI.ReasoningItemStatus? Status { get; set; } /// - /// Reasoning text contents. + /// Reasoning summary content. /// [global::System.Text.Json.Serialization.JsonPropertyName("summary")] [global::System.Text.Json.Serialization.JsonRequired] @@ -56,6 +62,9 @@ public sealed partial class ReasoningItem /// /// Initializes a new instance of the class. /// + /// + /// Reasoning text content. + /// /// /// The encrypted content of the reasoning item - populated when a response is
/// generated with `reasoning.encrypted_content` in the `include` parameter. @@ -68,7 +77,7 @@ public sealed partial class ReasoningItem /// `incomplete`. Populated when items are returned via API. /// /// - /// Reasoning text contents. + /// Reasoning summary content. /// /// /// The type of the object. Always `reasoning`. @@ -79,12 +88,14 @@ public sealed partial class ReasoningItem public ReasoningItem( string id, global::System.Collections.Generic.IList summary, + global::System.Collections.Generic.IList? content, string? encryptedContent, global::tryAGI.OpenAI.ReasoningItemStatus? status, global::tryAGI.OpenAI.ReasoningItemType type) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); + this.Content = content; this.EncryptedContent = encryptedContent; this.Status = status; this.Type = type; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemContentItem.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemContentItem.Json.g.cs new file mode 100644 index 00000000..592be2d6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemContentItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ReasoningItemContentItem + { + /// + /// 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::tryAGI.OpenAI.ReasoningItemContentItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ReasoningItemContentItem), + jsonSerializerContext) as global::tryAGI.OpenAI.ReasoningItemContentItem; + } + + /// + /// 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::tryAGI.OpenAI.ReasoningItemContentItem? 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::tryAGI.OpenAI.ReasoningItemContentItem), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ReasoningItemContentItem; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemContentItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemContentItem.g.cs new file mode 100644 index 00000000..7fb792d4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemContentItem.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ReasoningItemContentItem + { + /// + /// Reasoning text output from the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } + + /// + /// The type of the object. Always `reasoning_text`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningItemContentItemTypeJsonConverter))] + public global::tryAGI.OpenAI.ReasoningItemContentItemType Type { 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. + /// + /// + /// Reasoning text output from the model. + /// + /// + /// The type of the object. Always `reasoning_text`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ReasoningItemContentItem( + string text, + global::tryAGI.OpenAI.ReasoningItemContentItemType type) + { + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ReasoningItemContentItem() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemContentItemType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemContentItemType.g.cs new file mode 100644 index 00000000..e57bacae --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemContentItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The type of the object. Always `reasoning_text`. + /// + public enum ReasoningItemContentItemType + { + /// + /// + /// + ReasoningText, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ReasoningItemContentItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ReasoningItemContentItemType value) + { + return value switch + { + ReasoningItemContentItemType.ReasoningText => "reasoning_text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ReasoningItemContentItemType? ToEnum(string value) + { + return value switch + { + "reasoning_text" => ReasoningItemContentItemType.ReasoningText, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemSummaryItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemSummaryItem.g.cs index 060dc1e2..b8ffbdac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemSummaryItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningItemSummaryItem.g.cs @@ -9,8 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class ReasoningItemSummaryItem { /// - /// A short summary of the reasoning used by the model when generating
- /// the response. + /// A summary of the reasoning output from the model so far. ///
[global::System.Text.Json.Serialization.JsonPropertyName("text")] [global::System.Text.Json.Serialization.JsonRequired] @@ -33,8 +32,7 @@ public sealed partial class ReasoningItemSummaryItem /// Initializes a new instance of the class. ///
/// - /// A short summary of the reasoning used by the model when generating
- /// the response. + /// A summary of the reasoning output from the model so far. /// /// /// The type of the object. Always `summary_text`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormatJsonSchema.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormatJsonSchema.g.cs index ec0d3721..618ccf1f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormatJsonSchema.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormatJsonSchema.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// JSON Schema response format. Used to generate structured JSON responses.
- /// Learn more about [Structured Outputs](/docs/guides/structured-outputs). + /// Learn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs). ///
public sealed partial class ResponseFormatJsonSchema { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormatJsonSchemaJsonSchema.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormatJsonSchemaJsonSchema.g.cs index 15f059e2..a04327a7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormatJsonSchemaJsonSchema.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormatJsonSchemaJsonSchema.g.cs @@ -35,7 +35,7 @@ public sealed partial class ResponseFormatJsonSchemaJsonSchema /// If set to true, the model will always follow the exact schema defined
/// in the `schema` field. Only a subset of JSON Schema is supported when
/// `strict` is `true`. To learn more, read the [Structured Outputs
- /// guide](/docs/guides/structured-outputs).
+ /// guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("strict")] @@ -67,7 +67,7 @@ public sealed partial class ResponseFormatJsonSchemaJsonSchema /// If set to true, the model will always follow the exact schema defined
/// in the `schema` field. Only a subset of JSON Schema is supported when
/// `strict` is `true`. To learn more, read the [Structured Outputs
- /// guide](/docs/guides/structured-outputs).
+ /// guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Default Value: false /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseProperties.g.cs index 225c8420..5897072c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseProperties.g.cs @@ -12,14 +12,14 @@ public sealed partial class ResponseProperties { /// /// Whether to run the model response in the background.
- /// [Learn more](/docs/guides/background).
+ /// [Learn more](https://platform.openai.com/docs/guides/background).
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("background")] public bool? Background { get; set; } /// - /// An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning). + /// An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). /// [global::System.Text.Json.Serialization.JsonPropertyName("max_output_tokens")] public int? MaxOutputTokens { get; set; } @@ -41,14 +41,14 @@ public sealed partial class ResponseProperties /// /// The unique ID of the previous response to the model. Use this to
/// create multi-turn conversations. Learn more about
- /// [conversation state](/docs/guides/conversation-state). + /// [conversation state](https://platform.openai.com/docs/guides/conversation-state). ///
[global::System.Text.Json.Serialization.JsonPropertyName("previous_response_id")] public string? PreviousResponseId { get; set; } /// /// Reference to a prompt template and its variables.
- /// [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts). + /// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] public global::tryAGI.OpenAI.Prompt2? Prompt { get; set; } @@ -64,8 +64,8 @@ public sealed partial class ResponseProperties /// /// Configuration options for a text response from the model. Can be plain
/// text or structured JSON data. Learn more:
- /// - [Text inputs and outputs](/docs/guides/text)
- /// - [Structured Outputs](/docs/guides/structured-outputs) + /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
+ /// - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) ///
[global::System.Text.Json.Serialization.JsonPropertyName("text")] public global::tryAGI.OpenAI.ResponsePropertiesText? Text { get; set; } @@ -76,20 +76,20 @@ public sealed partial class ResponseProperties /// the model can call. /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? ToolChoice { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? ToolChoice { get; set; } /// /// An array of tools the model may call while generating a response. You
/// can specify which tool to use by setting the `tool_choice` parameter.
/// The two categories of tools you can provide the model are:
/// - **Built-in tools**: Tools that are provided by OpenAI that extend the
- /// model's capabilities, like [web search](/docs/guides/tools-web-search)
- /// or [file search](/docs/guides/tools-file-search). Learn more about
- /// [built-in tools](/docs/guides/tools).
+ /// model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search)
+ /// or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about
+ /// [built-in tools](https://platform.openai.com/docs/guides/tools).
/// - **Function calls (custom tools)**: Functions that are defined by you,
/// enabling the model to call your own code. Learn more about
- /// [function calling](/docs/guides/function-calling). + /// [function calling](https://platform.openai.com/docs/guides/function-calling). ///
[global::System.Text.Json.Serialization.JsonPropertyName("tools")] public global::System.Collections.Generic.IList? Tools { get; set; } @@ -119,11 +119,11 @@ public sealed partial class ResponseProperties /// /// /// Whether to run the model response in the background.
- /// [Learn more](/docs/guides/background).
+ /// [Learn more](https://platform.openai.com/docs/guides/background).
/// Default Value: false /// /// - /// An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning). + /// An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). /// /// /// The maximum number of total calls to built-in tools that can be processed in a response. This maximum number applies across all built-in tool calls, not per individual tool. Any further attempts to call a tool by the model will be ignored. @@ -134,11 +134,11 @@ public sealed partial class ResponseProperties /// /// The unique ID of the previous response to the model. Use this to
/// create multi-turn conversations. Learn more about
- /// [conversation state](/docs/guides/conversation-state). + /// [conversation state](https://platform.openai.com/docs/guides/conversation-state). /// /// /// Reference to a prompt template and its variables.
- /// [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts). + /// [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts). /// /// /// **o-series models only**
@@ -148,8 +148,8 @@ public sealed partial class ResponseProperties /// /// Configuration options for a text response from the model. Can be plain
/// text or structured JSON data. Learn more:
- /// - [Text inputs and outputs](/docs/guides/text)
- /// - [Structured Outputs](/docs/guides/structured-outputs) + /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
+ /// - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) /// /// /// How the model should select which tool (or tools) to use when generating
@@ -161,12 +161,12 @@ public sealed partial class ResponseProperties /// can specify which tool to use by setting the `tool_choice` parameter.
/// The two categories of tools you can provide the model are:
/// - **Built-in tools**: Tools that are provided by OpenAI that extend the
- /// model's capabilities, like [web search](/docs/guides/tools-web-search)
- /// or [file search](/docs/guides/tools-file-search). Learn more about
- /// [built-in tools](/docs/guides/tools).
+ /// model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search)
+ /// or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about
+ /// [built-in tools](https://platform.openai.com/docs/guides/tools).
/// - **Function calls (custom tools)**: Functions that are defined by you,
/// enabling the model to call your own code. Learn more about
- /// [function calling](/docs/guides/function-calling). + /// [function calling](https://platform.openai.com/docs/guides/function-calling). /// /// /// The truncation strategy to use for the model response.
@@ -190,7 +190,7 @@ public ResponseProperties( global::tryAGI.OpenAI.Prompt2? prompt, global::tryAGI.OpenAI.Reasoning? reasoning, global::tryAGI.OpenAI.ResponsePropertiesText? text, - global::tryAGI.OpenAI.OneOf? toolChoice, + global::tryAGI.OpenAI.AnyOf? toolChoice, global::System.Collections.Generic.IList? tools, global::tryAGI.OpenAI.ResponsePropertiesTruncation? truncation) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsePropertiesText.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsePropertiesText.g.cs index 8ef5f11e..10083707 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsePropertiesText.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsePropertiesText.g.cs @@ -6,8 +6,8 @@ namespace tryAGI.OpenAI /// /// Configuration options for a text response from the model. Can be plain
/// text or structured JSON data. Learn more:
- /// - [Text inputs and outputs](/docs/guides/text)
- /// - [Structured Outputs](/docs/guides/structured-outputs) + /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
+ /// - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs) ///
public sealed partial class ResponsePropertiesText { @@ -15,7 +15,7 @@ public sealed partial class ResponsePropertiesText /// An object specifying the format that the model must output.
/// Configuring `{ "type": "json_schema" }` enables Structured Outputs,
/// which ensures the model will match your supplied JSON schema. Learn more in the
- /// [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// The default format is `{ "type": "text" }` with no additional options.
/// **Not recommended for gpt-4o and newer models:**
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which
@@ -39,7 +39,7 @@ public sealed partial class ResponsePropertiesText /// An object specifying the format that the model must output.
/// Configuring `{ "type": "json_schema" }` enables Structured Outputs,
/// which ensures the model will match your supplied JSON schema. Learn more in the
- /// [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// The default format is `{ "type": "text" }` with no additional options.
/// **Not recommended for gpt-4o and newer models:**
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEventDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEventDelta.Json.g.cs deleted file mode 100644 index 7d606220..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEventDelta.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace tryAGI.OpenAI -{ - public sealed partial class ResponseReasoningSummaryDeltaEventDelta - { - /// - /// 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::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventDelta? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventDelta), - jsonSerializerContext) as global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventDelta; - } - - /// - /// 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::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventDelta? 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::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventDelta), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventDelta; - } - - /// - /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEventDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEventDelta.g.cs deleted file mode 100644 index 372075ac..00000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEventDelta.g.cs +++ /dev/null @@ -1,18 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// The partial update to the reasoning summary content. - /// - public sealed partial class ResponseReasoningSummaryDeltaEventDelta - { - - /// - /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDeltaEvent.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDeltaEvent.Json.g.cs new file mode 100644 index 00000000..31f65cb5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDeltaEvent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ResponseReasoningTextDeltaEvent + { + /// + /// 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::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), + jsonSerializerContext) as global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent; + } + + /// + /// 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::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? 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::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDeltaEvent.g.cs similarity index 64% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEvent.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDeltaEvent.g.cs index da423845..9361fd08 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDeltaEvent.g.cs @@ -4,26 +4,33 @@ namespace tryAGI.OpenAI { /// - /// Emitted when there is a delta (partial update) to the reasoning summary content. + /// Emitted when a delta is added to a reasoning text. /// - public sealed partial class ResponseReasoningSummaryDeltaEvent + public sealed partial class ResponseReasoningTextDeltaEvent { /// - /// The partial update to the reasoning summary content. + /// The index of the reasoning content part this delta is associated with. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The text delta that was added to the reasoning content. /// [global::System.Text.Json.Serialization.JsonPropertyName("delta")] [global::System.Text.Json.Serialization.JsonRequired] - public required object Delta { get; set; } + public required string Delta { get; set; } /// - /// The unique identifier of the item for which the reasoning summary is being updated. + /// The ID of the item this reasoning text delta is associated with. /// [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] [global::System.Text.Json.Serialization.JsonRequired] public required string ItemId { get; set; } /// - /// The index of the output item in the response's output array. + /// The index of the output item this reasoning text delta is associated with. /// [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] [global::System.Text.Json.Serialization.JsonRequired] @@ -37,18 +44,11 @@ public sealed partial class ResponseReasoningSummaryDeltaEvent public required int SequenceNumber { get; set; } /// - /// The index of the summary part within the output item. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary_index")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int SummaryIndex { get; set; } - - /// - /// The type of the event. Always 'response.reasoning_summary.delta'. + /// The type of the event. Always `response.reasoning_text.delta`. /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDeltaEventTypeJsonConverter))] - public global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDeltaEventTypeJsonConverter))] + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -57,49 +57,49 @@ public sealed partial class ResponseReasoningSummaryDeltaEvent public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// + /// + /// The index of the reasoning content part this delta is associated with. + /// /// - /// The partial update to the reasoning summary content. + /// The text delta that was added to the reasoning content. /// /// - /// The unique identifier of the item for which the reasoning summary is being updated. + /// The ID of the item this reasoning text delta is associated with. /// /// - /// The index of the output item in the response's output array. + /// The index of the output item this reasoning text delta is associated with. /// /// /// The sequence number of this event. /// - /// - /// The index of the summary part within the output item. - /// /// - /// The type of the event. Always 'response.reasoning_summary.delta'. + /// The type of the event. Always `response.reasoning_text.delta`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ResponseReasoningSummaryDeltaEvent( - object delta, + public ResponseReasoningTextDeltaEvent( + int contentIndex, + string delta, string itemId, int outputIndex, int sequenceNumber, - int summaryIndex, - global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEventType type) + global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType type) { + this.ContentIndex = contentIndex; this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta)); this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); this.OutputIndex = outputIndex; this.SequenceNumber = sequenceNumber; - this.SummaryIndex = summaryIndex; this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ResponseReasoningSummaryDeltaEvent() + public ResponseReasoningTextDeltaEvent() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDoneEventType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDeltaEventType.g.cs similarity index 57% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDoneEventType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDeltaEventType.g.cs index 7c7e868e..631ed8b6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDoneEventType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDeltaEventType.g.cs @@ -4,40 +4,40 @@ namespace tryAGI.OpenAI { /// - /// The type of the event. Always 'response.reasoning_summary.done'. + /// The type of the event. Always `response.reasoning_text.delta`. /// - public enum ResponseReasoningSummaryDoneEventType + public enum ResponseReasoningTextDeltaEventType { /// /// /// - ResponseReasoningSummaryDone, + ResponseReasoningTextDelta, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ResponseReasoningSummaryDoneEventTypeExtensions + public static class ResponseReasoningTextDeltaEventTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ResponseReasoningSummaryDoneEventType value) + public static string ToValueString(this ResponseReasoningTextDeltaEventType value) { return value switch { - ResponseReasoningSummaryDoneEventType.ResponseReasoningSummaryDone => "response.reasoning_summary.done", + ResponseReasoningTextDeltaEventType.ResponseReasoningTextDelta => "response.reasoning_text.delta", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ResponseReasoningSummaryDoneEventType? ToEnum(string value) + public static ResponseReasoningTextDeltaEventType? ToEnum(string value) { return value switch { - "response.reasoning_summary.done" => ResponseReasoningSummaryDoneEventType.ResponseReasoningSummaryDone, + "response.reasoning_text.delta" => ResponseReasoningTextDeltaEventType.ResponseReasoningTextDelta, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDoneEvent.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDoneEvent.Json.g.cs new file mode 100644 index 00000000..41915419 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDoneEvent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ResponseReasoningTextDoneEvent + { + /// + /// 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::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), + jsonSerializerContext) as global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent; + } + + /// + /// 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::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? 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::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDoneEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDoneEvent.g.cs similarity index 66% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDoneEvent.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDoneEvent.g.cs index 5a972c92..4c4d8b05 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDoneEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDoneEvent.g.cs @@ -4,19 +4,26 @@ namespace tryAGI.OpenAI { /// - /// Emitted when the reasoning summary content is finalized for an item. + /// Emitted when a reasoning text is completed. /// - public sealed partial class ResponseReasoningSummaryDoneEvent + public sealed partial class ResponseReasoningTextDoneEvent { /// - /// The unique identifier of the item for which the reasoning summary is finalized. + /// The index of the reasoning content part. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ContentIndex { get; set; } + + /// + /// The ID of the item this reasoning text is associated with. /// [global::System.Text.Json.Serialization.JsonPropertyName("item_id")] [global::System.Text.Json.Serialization.JsonRequired] public required string ItemId { get; set; } /// - /// The index of the output item in the response's output array. + /// The index of the output item this reasoning text is associated with. /// [global::System.Text.Json.Serialization.JsonPropertyName("output_index")] [global::System.Text.Json.Serialization.JsonRequired] @@ -30,25 +37,18 @@ public sealed partial class ResponseReasoningSummaryDoneEvent public required int SequenceNumber { get; set; } /// - /// The index of the summary part within the output item. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary_index")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int SummaryIndex { get; set; } - - /// - /// The finalized reasoning summary text. + /// The full text of the completed reasoning content. /// [global::System.Text.Json.Serialization.JsonPropertyName("text")] [global::System.Text.Json.Serialization.JsonRequired] public required string Text { get; set; } /// - /// The type of the event. Always 'response.reasoning_summary.done'. + /// The type of the event. Always `response.reasoning_text.done`. /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningSummaryDoneEventTypeJsonConverter))] - public global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseReasoningTextDoneEventTypeJsonConverter))] + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -57,49 +57,49 @@ public sealed partial class ResponseReasoningSummaryDoneEvent public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// + /// + /// The index of the reasoning content part. + /// /// - /// The unique identifier of the item for which the reasoning summary is finalized. + /// The ID of the item this reasoning text is associated with. /// /// - /// The index of the output item in the response's output array. + /// The index of the output item this reasoning text is associated with. /// /// /// The sequence number of this event. /// - /// - /// The index of the summary part within the output item. - /// /// - /// The finalized reasoning summary text. + /// The full text of the completed reasoning content. /// /// - /// The type of the event. Always 'response.reasoning_summary.done'. + /// The type of the event. Always `response.reasoning_text.done`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ResponseReasoningSummaryDoneEvent( + public ResponseReasoningTextDoneEvent( + int contentIndex, string itemId, int outputIndex, int sequenceNumber, - int summaryIndex, string text, - global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEventType type) + global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType type) { + this.ContentIndex = contentIndex; this.ItemId = itemId ?? throw new global::System.ArgumentNullException(nameof(itemId)); this.OutputIndex = outputIndex; this.SequenceNumber = sequenceNumber; - this.SummaryIndex = summaryIndex; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ResponseReasoningSummaryDoneEvent() + public ResponseReasoningTextDoneEvent() { } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEventType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDoneEventType.g.cs similarity index 57% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEventType.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDoneEventType.g.cs index 0540622b..a3a82784 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEventType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningTextDoneEventType.g.cs @@ -4,40 +4,40 @@ namespace tryAGI.OpenAI { /// - /// The type of the event. Always 'response.reasoning_summary.delta'. + /// The type of the event. Always `response.reasoning_text.done`. /// - public enum ResponseReasoningSummaryDeltaEventType + public enum ResponseReasoningTextDoneEventType { /// /// /// - ResponseReasoningSummaryDelta, + ResponseReasoningTextDone, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ResponseReasoningSummaryDeltaEventTypeExtensions + public static class ResponseReasoningTextDoneEventTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ResponseReasoningSummaryDeltaEventType value) + public static string ToValueString(this ResponseReasoningTextDoneEventType value) { return value switch { - ResponseReasoningSummaryDeltaEventType.ResponseReasoningSummaryDelta => "response.reasoning_summary.delta", + ResponseReasoningTextDoneEventType.ResponseReasoningTextDone => "response.reasoning_text.done", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ResponseReasoningSummaryDeltaEventType? ToEnum(string value) + public static ResponseReasoningTextDoneEventType? ToEnum(string value) { return value switch { - "response.reasoning_summary.delta" => ResponseReasoningSummaryDeltaEventType.ResponseReasoningSummaryDelta, + "response.reasoning_text.done" => ResponseReasoningTextDoneEventType.ResponseReasoningTextDone, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs index 967c9769..19314290 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs @@ -989,6 +989,76 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDon ReasoningSummaryTextDone = value; } + /// + /// Emitted when a delta is added to a reasoning text. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? ReasoningTextDelta { get; init; } +#else + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? ReasoningTextDelta { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ReasoningTextDelta))] +#endif + public bool IsReasoningTextDelta => ReasoningTextDelta != null; + + /// + /// + /// + public static implicit operator ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent value) => new ResponseStreamEvent((global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent?(ResponseStreamEvent @this) => @this.ReasoningTextDelta; + + /// + /// + /// + public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? value) + { + ReasoningTextDelta = value; + } + + /// + /// Emitted when a reasoning text is completed. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? ReasoningTextDone { get; init; } +#else + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? ReasoningTextDone { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ReasoningTextDone))] +#endif + public bool IsReasoningTextDone => ReasoningTextDone != null; + + /// + /// + /// + public static implicit operator ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent value) => new ResponseStreamEvent((global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent?(ResponseStreamEvent @this) => @this.ReasoningTextDone; + + /// + /// + /// + public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? value) + { + ReasoningTextDone = value; + } + /// /// Emitted when there is a partial refusal text. /// @@ -1724,76 +1794,6 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseQueuedEvent? value) Queued = value; } - /// - /// Emitted when there is a delta (partial update) to the reasoning summary content. - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent? ReasoningSummaryDelta { get; init; } -#else - public global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent? ReasoningSummaryDelta { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ReasoningSummaryDelta))] -#endif - public bool IsReasoningSummaryDelta => ReasoningSummaryDelta != null; - - /// - /// - /// - public static implicit operator ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent value) => new ResponseStreamEvent((global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent?(ResponseStreamEvent @this) => @this.ReasoningSummaryDelta; - - /// - /// - /// - public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent? value) - { - ReasoningSummaryDelta = value; - } - - /// - /// Emitted when the reasoning summary content is finalized for an item. - /// -#if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent? ReasoningSummaryDone { get; init; } -#else - public global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent? ReasoningSummaryDone { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ReasoningSummaryDone))] -#endif - public bool IsReasoningSummaryDone => ReasoningSummaryDone != null; - - /// - /// - /// - public static implicit operator ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent value) => new ResponseStreamEvent((global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent?)value); - - /// - /// - /// - public static implicit operator global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent?(ResponseStreamEvent @this) => @this.ReasoningSummaryDone; - - /// - /// - /// - public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent? value) - { - ReasoningSummaryDone = value; - } - /// /// /// @@ -1826,6 +1826,8 @@ public ResponseStreamEvent( global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? reasoningSummaryPartDone, global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? reasoningSummaryTextDelta, global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? reasoningSummaryTextDone, + global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? reasoningTextDelta, + global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? reasoningTextDone, global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? refusalDelta, global::tryAGI.OpenAI.ResponseRefusalDoneEvent? refusalDone, global::tryAGI.OpenAI.ResponseTextDeltaEvent? textDelta, @@ -1846,9 +1848,7 @@ public ResponseStreamEvent( global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? mCPListToolsFailed, global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? mCPListToolsInProgress, global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? outputTextAnnotationAdded, - global::tryAGI.OpenAI.ResponseQueuedEvent? queued, - global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent? reasoningSummaryDelta, - global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent? reasoningSummaryDone + global::tryAGI.OpenAI.ResponseQueuedEvent? queued ) { AudioDelta = audioDelta; @@ -1879,6 +1879,8 @@ public ResponseStreamEvent( ReasoningSummaryPartDone = reasoningSummaryPartDone; ReasoningSummaryTextDelta = reasoningSummaryTextDelta; ReasoningSummaryTextDone = reasoningSummaryTextDone; + ReasoningTextDelta = reasoningTextDelta; + ReasoningTextDone = reasoningTextDone; RefusalDelta = refusalDelta; RefusalDone = refusalDone; TextDelta = textDelta; @@ -1900,16 +1902,12 @@ public ResponseStreamEvent( MCPListToolsInProgress = mCPListToolsInProgress; OutputTextAnnotationAdded = outputTextAnnotationAdded; Queued = queued; - ReasoningSummaryDelta = reasoningSummaryDelta; - ReasoningSummaryDone = reasoningSummaryDone; } /// /// /// public object? Object => - ReasoningSummaryDone as object ?? - ReasoningSummaryDelta as object ?? Queued as object ?? OutputTextAnnotationAdded as object ?? MCPListToolsInProgress as object ?? @@ -1931,6 +1929,8 @@ TextDone as object ?? TextDelta as object ?? RefusalDone as object ?? RefusalDelta as object ?? + ReasoningTextDone as object ?? + ReasoningTextDelta as object ?? ReasoningSummaryTextDone as object ?? ReasoningSummaryTextDelta as object ?? ReasoningSummaryPartDone as object ?? @@ -1993,6 +1993,8 @@ AudioDelta as object ReasoningSummaryPartDone?.ToString() ?? ReasoningSummaryTextDelta?.ToString() ?? ReasoningSummaryTextDone?.ToString() ?? + ReasoningTextDelta?.ToString() ?? + ReasoningTextDone?.ToString() ?? RefusalDelta?.ToString() ?? RefusalDone?.ToString() ?? TextDelta?.ToString() ?? @@ -2013,9 +2015,7 @@ AudioDelta as object MCPListToolsFailed?.ToString() ?? MCPListToolsInProgress?.ToString() ?? OutputTextAnnotationAdded?.ToString() ?? - Queued?.ToString() ?? - ReasoningSummaryDelta?.ToString() ?? - ReasoningSummaryDone?.ToString() + Queued?.ToString() ; /// @@ -2023,7 +2023,7 @@ AudioDelta as object /// public bool Validate() { - return IsAudioDelta || IsAudioDone || IsAudioTranscriptDelta || IsAudioTranscriptDone || IsCodeInterpreterCallDelta || IsCodeInterpreterCallDone || IsCodeInterpreterCallCompleted || IsCodeInterpreterCallInProgress || IsCodeInterpreterCallInterpreting || IsCompleted || IsContentPartAdded || IsContentPartDone || IsCreated || IsError || IsFileSearchCallCompleted || IsFileSearchCallInProgress || IsFileSearchCallSearching || IsFunctionCallArgumentsDelta || IsFunctionCallArgumentsDone || IsInProgress || IsFailed || IsIncomplete || IsOutputItemAdded || IsOutputItemDone || IsReasoningSummaryPartAdded || IsReasoningSummaryPartDone || IsReasoningSummaryTextDelta || IsReasoningSummaryTextDone || IsRefusalDelta || IsRefusalDone || IsTextDelta || IsTextDone || IsWebSearchCallCompleted || IsWebSearchCallInProgress || IsWebSearchCallSearching || IsImageGenCallCompleted || IsImageGenCallGenerating || IsImageGenCallInProgress || IsImageGenCallPartial || IsMCPCallArgumentsDelta || IsMCPCallArgumentsDone || IsMCPCallCompleted || IsMCPCallFailed || IsMCPCallInProgress || IsMCPListToolsCompleted || IsMCPListToolsFailed || IsMCPListToolsInProgress || IsOutputTextAnnotationAdded || IsQueued || IsReasoningSummaryDelta || IsReasoningSummaryDone; + return IsAudioDelta || IsAudioDone || IsAudioTranscriptDelta || IsAudioTranscriptDone || IsCodeInterpreterCallDelta || IsCodeInterpreterCallDone || IsCodeInterpreterCallCompleted || IsCodeInterpreterCallInProgress || IsCodeInterpreterCallInterpreting || IsCompleted || IsContentPartAdded || IsContentPartDone || IsCreated || IsError || IsFileSearchCallCompleted || IsFileSearchCallInProgress || IsFileSearchCallSearching || IsFunctionCallArgumentsDelta || IsFunctionCallArgumentsDone || IsInProgress || IsFailed || IsIncomplete || IsOutputItemAdded || IsOutputItemDone || IsReasoningSummaryPartAdded || IsReasoningSummaryPartDone || IsReasoningSummaryTextDelta || IsReasoningSummaryTextDone || IsReasoningTextDelta || IsReasoningTextDone || IsRefusalDelta || IsRefusalDone || IsTextDelta || IsTextDone || IsWebSearchCallCompleted || IsWebSearchCallInProgress || IsWebSearchCallSearching || IsImageGenCallCompleted || IsImageGenCallGenerating || IsImageGenCallInProgress || IsImageGenCallPartial || IsMCPCallArgumentsDelta || IsMCPCallArgumentsDone || IsMCPCallCompleted || IsMCPCallFailed || IsMCPCallInProgress || IsMCPListToolsCompleted || IsMCPListToolsFailed || IsMCPListToolsInProgress || IsOutputTextAnnotationAdded || IsQueued; } /// @@ -2058,6 +2058,8 @@ public bool Validate() global::System.Func? reasoningSummaryPartDone = null, global::System.Func? reasoningSummaryTextDelta = null, global::System.Func? reasoningSummaryTextDone = null, + global::System.Func? reasoningTextDelta = null, + global::System.Func? reasoningTextDone = null, global::System.Func? refusalDelta = null, global::System.Func? refusalDone = null, global::System.Func? textDelta = null, @@ -2079,8 +2081,6 @@ public bool Validate() global::System.Func? mCPListToolsInProgress = null, global::System.Func? outputTextAnnotationAdded = null, global::System.Func? queued = null, - global::System.Func? reasoningSummaryDelta = null, - global::System.Func? reasoningSummaryDone = null, bool validate = true) { if (validate) @@ -2200,6 +2200,14 @@ public bool Validate() { return reasoningSummaryTextDone(ReasoningSummaryTextDone!); } + else if (IsReasoningTextDelta && reasoningTextDelta != null) + { + return reasoningTextDelta(ReasoningTextDelta!); + } + else if (IsReasoningTextDone && reasoningTextDone != null) + { + return reasoningTextDone(ReasoningTextDone!); + } else if (IsRefusalDelta && refusalDelta != null) { return refusalDelta(RefusalDelta!); @@ -2284,14 +2292,6 @@ public bool Validate() { return queued(Queued!); } - else if (IsReasoningSummaryDelta && reasoningSummaryDelta != null) - { - return reasoningSummaryDelta(ReasoningSummaryDelta!); - } - else if (IsReasoningSummaryDone && reasoningSummaryDone != null) - { - return reasoningSummaryDone(ReasoningSummaryDone!); - } return default(TResult); } @@ -2328,6 +2328,8 @@ public void Match( global::System.Action? reasoningSummaryPartDone = null, global::System.Action? reasoningSummaryTextDelta = null, global::System.Action? reasoningSummaryTextDone = null, + global::System.Action? reasoningTextDelta = null, + global::System.Action? reasoningTextDone = null, global::System.Action? refusalDelta = null, global::System.Action? refusalDone = null, global::System.Action? textDelta = null, @@ -2349,8 +2351,6 @@ public void Match( global::System.Action? mCPListToolsInProgress = null, global::System.Action? outputTextAnnotationAdded = null, global::System.Action? queued = null, - global::System.Action? reasoningSummaryDelta = null, - global::System.Action? reasoningSummaryDone = null, bool validate = true) { if (validate) @@ -2470,6 +2470,14 @@ public void Match( { reasoningSummaryTextDone?.Invoke(ReasoningSummaryTextDone!); } + else if (IsReasoningTextDelta) + { + reasoningTextDelta?.Invoke(ReasoningTextDelta!); + } + else if (IsReasoningTextDone) + { + reasoningTextDone?.Invoke(ReasoningTextDone!); + } else if (IsRefusalDelta) { refusalDelta?.Invoke(RefusalDelta!); @@ -2554,14 +2562,6 @@ public void Match( { queued?.Invoke(Queued!); } - else if (IsReasoningSummaryDelta) - { - reasoningSummaryDelta?.Invoke(ReasoningSummaryDelta!); - } - else if (IsReasoningSummaryDone) - { - reasoningSummaryDone?.Invoke(ReasoningSummaryDone!); - } } /// @@ -2627,6 +2627,10 @@ public override int GetHashCode() typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), ReasoningSummaryTextDone, typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), + ReasoningTextDelta, + typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), + ReasoningTextDone, + typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), RefusalDelta, typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), RefusalDone, @@ -2669,10 +2673,6 @@ public override int GetHashCode() typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), Queued, typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), - ReasoningSummaryDelta, - typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), - ReasoningSummaryDone, - typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDoneEvent), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -2717,6 +2717,8 @@ public bool Equals(ResponseStreamEvent other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningSummaryPartDone, other.ReasoningSummaryPartDone) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningSummaryTextDelta, other.ReasoningSummaryTextDelta) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningSummaryTextDone, other.ReasoningSummaryTextDone) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningTextDelta, other.ReasoningTextDelta) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningTextDone, other.ReasoningTextDone) && global::System.Collections.Generic.EqualityComparer.Default.Equals(RefusalDelta, other.RefusalDelta) && global::System.Collections.Generic.EqualityComparer.Default.Equals(RefusalDone, other.RefusalDone) && global::System.Collections.Generic.EqualityComparer.Default.Equals(TextDelta, other.TextDelta) && @@ -2737,9 +2739,7 @@ public bool Equals(ResponseStreamEvent other) global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPListToolsFailed, other.MCPListToolsFailed) && global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPListToolsInProgress, other.MCPListToolsInProgress) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputTextAnnotationAdded, other.OutputTextAnnotationAdded) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Queued, other.Queued) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningSummaryDelta, other.ReasoningSummaryDelta) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningSummaryDone, other.ReasoningSummaryDone) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Queued, other.Queued) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageInputTokensDetails.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageInputTokensDetails.g.cs index 54d252af..77c2c162 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageInputTokensDetails.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseUsageInputTokensDetails.g.cs @@ -10,7 +10,7 @@ public sealed partial class ResponseUsageInputTokensDetails { /// /// The number of tokens that were retrieved from the cache.
- /// [More on prompt caching](/docs/guides/prompt-caching). + /// [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching). ///
[global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens")] [global::System.Text.Json.Serialization.JsonRequired] @@ -27,7 +27,7 @@ public sealed partial class ResponseUsageInputTokensDetails ///
/// /// The number of tokens that were retrieved from the cache.
- /// [More on prompt caching](/docs/guides/prompt-caching). + /// [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseVariant3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseVariant3.g.cs index 88538bc0..7086bd0c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseVariant3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseVariant3.g.cs @@ -45,9 +45,9 @@ public sealed partial class ResponseVariant3 /// to swap out system (or developer) messages in new responses. ///
[global::System.Text.Json.Serialization.JsonPropertyName("instructions")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf>? Instructions { get; set; } + public required global::tryAGI.OpenAI.AnyOf>? Instructions { get; set; } /// /// The object type of this resource - always set to `response`. @@ -165,7 +165,7 @@ public ResponseVariant3( global::tryAGI.OpenAI.ResponseError? error, string id, global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails? incompleteDetails, - global::tryAGI.OpenAI.OneOf>? instructions, + global::tryAGI.OpenAI.AnyOf>? instructions, global::System.Collections.Generic.IList output, bool parallelToolCalls, global::tryAGI.OpenAI.ResponseVariant3Object @object, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultItem.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultItem.Json.g.cs new file mode 100644 index 00000000..f6ff1aa4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct ResultItem + { + /// + /// 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::tryAGI.OpenAI.ResultItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ResultItem), + jsonSerializerContext) as global::tryAGI.OpenAI.ResultItem?; + } + + /// + /// 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::tryAGI.OpenAI.ResultItem? 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::tryAGI.OpenAI.ResultItem), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ResultItem?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultItem.g.cs new file mode 100644 index 00000000..c0b0ef94 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultItem.g.cs @@ -0,0 +1,586 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct ResultItem : global::System.IEquatable + { + /// + /// The aggregated completions usage details of the specific time bucket. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.UsageCompletionsResult? UsageCompletions { get; init; } +#else + public global::tryAGI.OpenAI.UsageCompletionsResult? UsageCompletions { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UsageCompletions))] +#endif + public bool IsUsageCompletions => UsageCompletions != null; + + /// + /// + /// + public static implicit operator ResultItem(global::tryAGI.OpenAI.UsageCompletionsResult value) => new ResultItem((global::tryAGI.OpenAI.UsageCompletionsResult?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.UsageCompletionsResult?(ResultItem @this) => @this.UsageCompletions; + + /// + /// + /// + public ResultItem(global::tryAGI.OpenAI.UsageCompletionsResult? value) + { + UsageCompletions = value; + } + + /// + /// The aggregated embeddings usage details of the specific time bucket. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.UsageEmbeddingsResult? UsageEmbeddings { get; init; } +#else + public global::tryAGI.OpenAI.UsageEmbeddingsResult? UsageEmbeddings { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UsageEmbeddings))] +#endif + public bool IsUsageEmbeddings => UsageEmbeddings != null; + + /// + /// + /// + public static implicit operator ResultItem(global::tryAGI.OpenAI.UsageEmbeddingsResult value) => new ResultItem((global::tryAGI.OpenAI.UsageEmbeddingsResult?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.UsageEmbeddingsResult?(ResultItem @this) => @this.UsageEmbeddings; + + /// + /// + /// + public ResultItem(global::tryAGI.OpenAI.UsageEmbeddingsResult? value) + { + UsageEmbeddings = value; + } + + /// + /// The aggregated moderations usage details of the specific time bucket. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.UsageModerationsResult? UsageModerations { get; init; } +#else + public global::tryAGI.OpenAI.UsageModerationsResult? UsageModerations { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UsageModerations))] +#endif + public bool IsUsageModerations => UsageModerations != null; + + /// + /// + /// + public static implicit operator ResultItem(global::tryAGI.OpenAI.UsageModerationsResult value) => new ResultItem((global::tryAGI.OpenAI.UsageModerationsResult?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.UsageModerationsResult?(ResultItem @this) => @this.UsageModerations; + + /// + /// + /// + public ResultItem(global::tryAGI.OpenAI.UsageModerationsResult? value) + { + UsageModerations = value; + } + + /// + /// The aggregated images usage details of the specific time bucket. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.UsageImagesResult? UsageImages { get; init; } +#else + public global::tryAGI.OpenAI.UsageImagesResult? UsageImages { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UsageImages))] +#endif + public bool IsUsageImages => UsageImages != null; + + /// + /// + /// + public static implicit operator ResultItem(global::tryAGI.OpenAI.UsageImagesResult value) => new ResultItem((global::tryAGI.OpenAI.UsageImagesResult?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.UsageImagesResult?(ResultItem @this) => @this.UsageImages; + + /// + /// + /// + public ResultItem(global::tryAGI.OpenAI.UsageImagesResult? value) + { + UsageImages = value; + } + + /// + /// The aggregated audio speeches usage details of the specific time bucket. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? UsageAudioSpeeches { get; init; } +#else + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? UsageAudioSpeeches { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UsageAudioSpeeches))] +#endif + public bool IsUsageAudioSpeeches => UsageAudioSpeeches != null; + + /// + /// + /// + public static implicit operator ResultItem(global::tryAGI.OpenAI.UsageAudioSpeechesResult value) => new ResultItem((global::tryAGI.OpenAI.UsageAudioSpeechesResult?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.UsageAudioSpeechesResult?(ResultItem @this) => @this.UsageAudioSpeeches; + + /// + /// + /// + public ResultItem(global::tryAGI.OpenAI.UsageAudioSpeechesResult? value) + { + UsageAudioSpeeches = value; + } + + /// + /// The aggregated audio transcriptions usage details of the specific time bucket. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? UsageAudioTranscriptions { get; init; } +#else + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? UsageAudioTranscriptions { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UsageAudioTranscriptions))] +#endif + public bool IsUsageAudioTranscriptions => UsageAudioTranscriptions != null; + + /// + /// + /// + public static implicit operator ResultItem(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult value) => new ResultItem((global::tryAGI.OpenAI.UsageAudioTranscriptionsResult?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.UsageAudioTranscriptionsResult?(ResultItem @this) => @this.UsageAudioTranscriptions; + + /// + /// + /// + public ResultItem(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? value) + { + UsageAudioTranscriptions = value; + } + + /// + /// The aggregated vector stores usage details of the specific time bucket. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.UsageVectorStoresResult? UsageVectorStores { get; init; } +#else + public global::tryAGI.OpenAI.UsageVectorStoresResult? UsageVectorStores { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UsageVectorStores))] +#endif + public bool IsUsageVectorStores => UsageVectorStores != null; + + /// + /// + /// + public static implicit operator ResultItem(global::tryAGI.OpenAI.UsageVectorStoresResult value) => new ResultItem((global::tryAGI.OpenAI.UsageVectorStoresResult?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.UsageVectorStoresResult?(ResultItem @this) => @this.UsageVectorStores; + + /// + /// + /// + public ResultItem(global::tryAGI.OpenAI.UsageVectorStoresResult? value) + { + UsageVectorStores = value; + } + + /// + /// The aggregated code interpreter sessions usage details of the specific time bucket. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? UsageCodeInterpreterSessions { get; init; } +#else + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? UsageCodeInterpreterSessions { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UsageCodeInterpreterSessions))] +#endif + public bool IsUsageCodeInterpreterSessions => UsageCodeInterpreterSessions != null; + + /// + /// + /// + public static implicit operator ResultItem(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult value) => new ResultItem((global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult?(ResultItem @this) => @this.UsageCodeInterpreterSessions; + + /// + /// + /// + public ResultItem(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? value) + { + UsageCodeInterpreterSessions = value; + } + + /// + /// The aggregated costs details of the specific time bucket. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CostsResult? Costs { get; init; } +#else + public global::tryAGI.OpenAI.CostsResult? Costs { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Costs))] +#endif + public bool IsCosts => Costs != null; + + /// + /// + /// + public static implicit operator ResultItem(global::tryAGI.OpenAI.CostsResult value) => new ResultItem((global::tryAGI.OpenAI.CostsResult?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CostsResult?(ResultItem @this) => @this.Costs; + + /// + /// + /// + public ResultItem(global::tryAGI.OpenAI.CostsResult? value) + { + Costs = value; + } + + /// + /// + /// + public ResultItem( + global::tryAGI.OpenAI.UsageCompletionsResult? usageCompletions, + global::tryAGI.OpenAI.UsageEmbeddingsResult? usageEmbeddings, + global::tryAGI.OpenAI.UsageModerationsResult? usageModerations, + global::tryAGI.OpenAI.UsageImagesResult? usageImages, + global::tryAGI.OpenAI.UsageAudioSpeechesResult? usageAudioSpeeches, + global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? usageAudioTranscriptions, + global::tryAGI.OpenAI.UsageVectorStoresResult? usageVectorStores, + global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? usageCodeInterpreterSessions, + global::tryAGI.OpenAI.CostsResult? costs + ) + { + UsageCompletions = usageCompletions; + UsageEmbeddings = usageEmbeddings; + UsageModerations = usageModerations; + UsageImages = usageImages; + UsageAudioSpeeches = usageAudioSpeeches; + UsageAudioTranscriptions = usageAudioTranscriptions; + UsageVectorStores = usageVectorStores; + UsageCodeInterpreterSessions = usageCodeInterpreterSessions; + Costs = costs; + } + + /// + /// + /// + public object? Object => + Costs as object ?? + UsageCodeInterpreterSessions as object ?? + UsageVectorStores as object ?? + UsageAudioTranscriptions as object ?? + UsageAudioSpeeches as object ?? + UsageImages as object ?? + UsageModerations as object ?? + UsageEmbeddings as object ?? + UsageCompletions as object + ; + + /// + /// + /// + public override string? ToString() => + UsageCompletions?.ToString() ?? + UsageEmbeddings?.ToString() ?? + UsageModerations?.ToString() ?? + UsageImages?.ToString() ?? + UsageAudioSpeeches?.ToString() ?? + UsageAudioTranscriptions?.ToString() ?? + UsageVectorStores?.ToString() ?? + UsageCodeInterpreterSessions?.ToString() ?? + Costs?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsUsageCompletions || IsUsageEmbeddings || IsUsageModerations || IsUsageImages || IsUsageAudioSpeeches || IsUsageAudioTranscriptions || IsUsageVectorStores || IsUsageCodeInterpreterSessions || IsCosts; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? usageCompletions = null, + global::System.Func? usageEmbeddings = null, + global::System.Func? usageModerations = null, + global::System.Func? usageImages = null, + global::System.Func? usageAudioSpeeches = null, + global::System.Func? usageAudioTranscriptions = null, + global::System.Func? usageVectorStores = null, + global::System.Func? usageCodeInterpreterSessions = null, + global::System.Func? costs = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsUsageCompletions && usageCompletions != null) + { + return usageCompletions(UsageCompletions!); + } + else if (IsUsageEmbeddings && usageEmbeddings != null) + { + return usageEmbeddings(UsageEmbeddings!); + } + else if (IsUsageModerations && usageModerations != null) + { + return usageModerations(UsageModerations!); + } + else if (IsUsageImages && usageImages != null) + { + return usageImages(UsageImages!); + } + else if (IsUsageAudioSpeeches && usageAudioSpeeches != null) + { + return usageAudioSpeeches(UsageAudioSpeeches!); + } + else if (IsUsageAudioTranscriptions && usageAudioTranscriptions != null) + { + return usageAudioTranscriptions(UsageAudioTranscriptions!); + } + else if (IsUsageVectorStores && usageVectorStores != null) + { + return usageVectorStores(UsageVectorStores!); + } + else if (IsUsageCodeInterpreterSessions && usageCodeInterpreterSessions != null) + { + return usageCodeInterpreterSessions(UsageCodeInterpreterSessions!); + } + else if (IsCosts && costs != null) + { + return costs(Costs!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? usageCompletions = null, + global::System.Action? usageEmbeddings = null, + global::System.Action? usageModerations = null, + global::System.Action? usageImages = null, + global::System.Action? usageAudioSpeeches = null, + global::System.Action? usageAudioTranscriptions = null, + global::System.Action? usageVectorStores = null, + global::System.Action? usageCodeInterpreterSessions = null, + global::System.Action? costs = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsUsageCompletions) + { + usageCompletions?.Invoke(UsageCompletions!); + } + else if (IsUsageEmbeddings) + { + usageEmbeddings?.Invoke(UsageEmbeddings!); + } + else if (IsUsageModerations) + { + usageModerations?.Invoke(UsageModerations!); + } + else if (IsUsageImages) + { + usageImages?.Invoke(UsageImages!); + } + else if (IsUsageAudioSpeeches) + { + usageAudioSpeeches?.Invoke(UsageAudioSpeeches!); + } + else if (IsUsageAudioTranscriptions) + { + usageAudioTranscriptions?.Invoke(UsageAudioTranscriptions!); + } + else if (IsUsageVectorStores) + { + usageVectorStores?.Invoke(UsageVectorStores!); + } + else if (IsUsageCodeInterpreterSessions) + { + usageCodeInterpreterSessions?.Invoke(UsageCodeInterpreterSessions!); + } + else if (IsCosts) + { + costs?.Invoke(Costs!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + UsageCompletions, + typeof(global::tryAGI.OpenAI.UsageCompletionsResult), + UsageEmbeddings, + typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult), + UsageModerations, + typeof(global::tryAGI.OpenAI.UsageModerationsResult), + UsageImages, + typeof(global::tryAGI.OpenAI.UsageImagesResult), + UsageAudioSpeeches, + typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult), + UsageAudioTranscriptions, + typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult), + UsageVectorStores, + typeof(global::tryAGI.OpenAI.UsageVectorStoresResult), + UsageCodeInterpreterSessions, + typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult), + Costs, + typeof(global::tryAGI.OpenAI.CostsResult), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ResultItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(UsageCompletions, other.UsageCompletions) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UsageEmbeddings, other.UsageEmbeddings) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UsageModerations, other.UsageModerations) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UsageImages, other.UsageImages) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UsageAudioSpeeches, other.UsageAudioSpeeches) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UsageAudioTranscriptions, other.UsageAudioTranscriptions) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UsageVectorStores, other.UsageVectorStores) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UsageCodeInterpreterSessions, other.UsageCodeInterpreterSessions) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Costs, other.Costs) + ; + } + + /// + /// + /// + public static bool operator ==(ResultItem obj1, ResultItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ResultItem obj1, ResultItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ResultItem o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequest.g.cs index 15431fd6..4c08f8b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequest.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,20 +12,20 @@ public sealed partial class RunGraderRequest /// The grader used for the fine-tuning job. /// [global::System.Text.Json.Serialization.JsonPropertyName("grader")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RunGraderRequestGraderJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Grader { get; set; } + public required global::tryAGI.OpenAI.RunGraderRequestGrader Grader { get; set; } /// /// The dataset item provided to the grader. This will be used to populate
- /// the `item` namespace. See [the guide](/docs/guides/graders) for more details. + /// the `item` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details. ///
[global::System.Text.Json.Serialization.JsonPropertyName("item")] public object? Item { get; set; } /// /// The model sample to be evaluated. This value will be used to populate
- /// the `sample` namespace. See [the guide](/docs/guides/graders) for more details.
+ /// the `sample` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details.
/// The `output_json` variable will be populated if the model sample is a
/// valid JSON string.
/// @@ -50,11 +48,11 @@ public sealed partial class RunGraderRequest /// /// /// The dataset item provided to the grader. This will be used to populate
- /// the `item` namespace. See [the guide](/docs/guides/graders) for more details. + /// the `item` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details. /// /// /// The model sample to be evaluated. This value will be used to populate
- /// the `sample` namespace. See [the guide](/docs/guides/graders) for more details.
+ /// the `sample` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details.
/// The `output_json` variable will be populated if the model sample is a
/// valid JSON string.
/// @@ -63,7 +61,7 @@ public sealed partial class RunGraderRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RunGraderRequest( - global::tryAGI.OpenAI.OneOf grader, + global::tryAGI.OpenAI.RunGraderRequestGrader grader, string modelSample, object? item) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGrader.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGrader.Json.g.cs new file mode 100644 index 00000000..2091f5e2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGrader.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct RunGraderRequestGrader + { + /// + /// 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::tryAGI.OpenAI.RunGraderRequestGrader? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunGraderRequestGrader), + jsonSerializerContext) as global::tryAGI.OpenAI.RunGraderRequestGrader?; + } + + /// + /// 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::tryAGI.OpenAI.RunGraderRequestGrader? 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::tryAGI.OpenAI.RunGraderRequestGrader), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunGraderRequestGrader?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGrader.g.cs new file mode 100644 index 00000000..93552320 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGrader.g.cs @@ -0,0 +1,378 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The grader used for the fine-tuning job. + /// + public readonly partial struct RunGraderRequestGrader : global::System.IEquatable + { + /// + /// A StringCheckGrader object that performs a string comparison between input and reference using a specified operation. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.GraderStringCheck? StringCheck { get; init; } +#else + public global::tryAGI.OpenAI.GraderStringCheck? StringCheck { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StringCheck))] +#endif + public bool IsStringCheck => StringCheck != null; + + /// + /// + /// + public static implicit operator RunGraderRequestGrader(global::tryAGI.OpenAI.GraderStringCheck value) => new RunGraderRequestGrader((global::tryAGI.OpenAI.GraderStringCheck?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.GraderStringCheck?(RunGraderRequestGrader @this) => @this.StringCheck; + + /// + /// + /// + public RunGraderRequestGrader(global::tryAGI.OpenAI.GraderStringCheck? value) + { + StringCheck = value; + } + + /// + /// A TextSimilarityGrader object which grades text based on similarity metrics. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.GraderTextSimilarity? TextSimilarity { get; init; } +#else + public global::tryAGI.OpenAI.GraderTextSimilarity? TextSimilarity { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TextSimilarity))] +#endif + public bool IsTextSimilarity => TextSimilarity != null; + + /// + /// + /// + public static implicit operator RunGraderRequestGrader(global::tryAGI.OpenAI.GraderTextSimilarity value) => new RunGraderRequestGrader((global::tryAGI.OpenAI.GraderTextSimilarity?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.GraderTextSimilarity?(RunGraderRequestGrader @this) => @this.TextSimilarity; + + /// + /// + /// + public RunGraderRequestGrader(global::tryAGI.OpenAI.GraderTextSimilarity? value) + { + TextSimilarity = value; + } + + /// + /// A PythonGrader object that runs a python script on the input. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.GraderPython? Python { get; init; } +#else + public global::tryAGI.OpenAI.GraderPython? Python { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Python))] +#endif + public bool IsPython => Python != null; + + /// + /// + /// + public static implicit operator RunGraderRequestGrader(global::tryAGI.OpenAI.GraderPython value) => new RunGraderRequestGrader((global::tryAGI.OpenAI.GraderPython?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.GraderPython?(RunGraderRequestGrader @this) => @this.Python; + + /// + /// + /// + public RunGraderRequestGrader(global::tryAGI.OpenAI.GraderPython? value) + { + Python = value; + } + + /// + /// A ScoreModelGrader object that uses a model to assign a score to the input. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.GraderScoreModel? ScoreModel { get; init; } +#else + public global::tryAGI.OpenAI.GraderScoreModel? ScoreModel { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ScoreModel))] +#endif + public bool IsScoreModel => ScoreModel != null; + + /// + /// + /// + public static implicit operator RunGraderRequestGrader(global::tryAGI.OpenAI.GraderScoreModel value) => new RunGraderRequestGrader((global::tryAGI.OpenAI.GraderScoreModel?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.GraderScoreModel?(RunGraderRequestGrader @this) => @this.ScoreModel; + + /// + /// + /// + public RunGraderRequestGrader(global::tryAGI.OpenAI.GraderScoreModel? value) + { + ScoreModel = value; + } + + /// + /// A MultiGrader object combines the output of multiple graders to produce a single score. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.GraderMulti? Multi { get; init; } +#else + public global::tryAGI.OpenAI.GraderMulti? Multi { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Multi))] +#endif + public bool IsMulti => Multi != null; + + /// + /// + /// + public static implicit operator RunGraderRequestGrader(global::tryAGI.OpenAI.GraderMulti value) => new RunGraderRequestGrader((global::tryAGI.OpenAI.GraderMulti?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.GraderMulti?(RunGraderRequestGrader @this) => @this.Multi; + + /// + /// + /// + public RunGraderRequestGrader(global::tryAGI.OpenAI.GraderMulti? value) + { + Multi = value; + } + + /// + /// + /// + public RunGraderRequestGrader( + global::tryAGI.OpenAI.GraderStringCheck? stringCheck, + global::tryAGI.OpenAI.GraderTextSimilarity? textSimilarity, + global::tryAGI.OpenAI.GraderPython? python, + global::tryAGI.OpenAI.GraderScoreModel? scoreModel, + global::tryAGI.OpenAI.GraderMulti? multi + ) + { + StringCheck = stringCheck; + TextSimilarity = textSimilarity; + Python = python; + ScoreModel = scoreModel; + Multi = multi; + } + + /// + /// + /// + public object? Object => + Multi as object ?? + ScoreModel as object ?? + Python as object ?? + TextSimilarity as object ?? + StringCheck as object + ; + + /// + /// + /// + public override string? ToString() => + StringCheck?.ToString() ?? + TextSimilarity?.ToString() ?? + Python?.ToString() ?? + ScoreModel?.ToString() ?? + Multi?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsStringCheck || IsTextSimilarity || IsPython || IsScoreModel || IsMulti; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? stringCheck = null, + global::System.Func? textSimilarity = null, + global::System.Func? python = null, + global::System.Func? scoreModel = null, + global::System.Func? multi = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsStringCheck && stringCheck != null) + { + return stringCheck(StringCheck!); + } + else if (IsTextSimilarity && textSimilarity != null) + { + return textSimilarity(TextSimilarity!); + } + else if (IsPython && python != null) + { + return python(Python!); + } + else if (IsScoreModel && scoreModel != null) + { + return scoreModel(ScoreModel!); + } + else if (IsMulti && multi != null) + { + return multi(Multi!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? stringCheck = null, + global::System.Action? textSimilarity = null, + global::System.Action? python = null, + global::System.Action? scoreModel = null, + global::System.Action? multi = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsStringCheck) + { + stringCheck?.Invoke(StringCheck!); + } + else if (IsTextSimilarity) + { + textSimilarity?.Invoke(TextSimilarity!); + } + else if (IsPython) + { + python?.Invoke(Python!); + } + else if (IsScoreModel) + { + scoreModel?.Invoke(ScoreModel!); + } + else if (IsMulti) + { + multi?.Invoke(Multi!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + StringCheck, + typeof(global::tryAGI.OpenAI.GraderStringCheck), + TextSimilarity, + typeof(global::tryAGI.OpenAI.GraderTextSimilarity), + Python, + typeof(global::tryAGI.OpenAI.GraderPython), + ScoreModel, + typeof(global::tryAGI.OpenAI.GraderScoreModel), + Multi, + typeof(global::tryAGI.OpenAI.GraderMulti), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RunGraderRequestGrader other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(StringCheck, other.StringCheck) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(TextSimilarity, other.TextSimilarity) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Python, other.Python) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ScoreModel, other.ScoreModel) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Multi, other.Multi) + ; + } + + /// + /// + /// + public static bool operator ==(RunGraderRequestGrader obj1, RunGraderRequestGrader obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RunGraderRequestGrader obj1, RunGraderRequestGrader obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RunGraderRequestGrader o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGraderDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGraderDiscriminator.Json.g.cs new file mode 100644 index 00000000..0953d356 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGraderDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RunGraderRequestGraderDiscriminator + { + /// + /// 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::tryAGI.OpenAI.RunGraderRequestGraderDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunGraderRequestGraderDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RunGraderRequestGraderDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.RunGraderRequestGraderDiscriminator? 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::tryAGI.OpenAI.RunGraderRequestGraderDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunGraderRequestGraderDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGraderDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGraderDiscriminator.g.cs new file mode 100644 index 00000000..7c390461 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestGraderDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RunGraderRequestGraderDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 RunGraderRequestGraderDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RunGraderRequestGraderDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestItem.g.cs index 498c7672..5133eb83 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunGraderRequestItem.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// The dataset item provided to the grader. This will be used to populate
- /// the `item` namespace. See [the guide](/docs/guides/graders) for more details. + /// the `item` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details. ///
public sealed partial class RunGraderRequestItem { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObject.g.cs index 20c0805f..08514e82 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObject.g.cs @@ -1,17 +1,15 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// public sealed partial class RunObject { /// - /// The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for execution of this run. /// [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -72,7 +70,7 @@ public sealed partial class RunObject public required global::tryAGI.OpenAI.RunObjectIncompleteDetails? IncompleteDetails { get; set; } /// - /// The instructions that the [assistant](/docs/api-reference/assistants) used for this run. + /// The instructions that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run. /// [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] [global::System.Text.Json.Serialization.JsonRequired] @@ -111,7 +109,7 @@ public sealed partial class RunObject public required global::System.Collections.Generic.Dictionary? Metadata { get; set; } /// - /// The model that the [assistant](/docs/api-reference/assistants) used for this run. + /// The model that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run. /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonRequired] @@ -125,7 +123,7 @@ public sealed partial class RunObject public global::tryAGI.OpenAI.RunObjectObject Object { get; set; } /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// [global::System.Text.Json.Serialization.JsonPropertyName("parallel_tool_calls")] [global::System.Text.Json.Serialization.JsonRequired] @@ -139,8 +137,8 @@ public sealed partial class RunObject public required global::tryAGI.OpenAI.RunObjectRequiredAction? RequiredAction { get; set; } /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. ///
@@ -161,9 +159,9 @@ public sealed partial class RunObject /// The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RunObjectStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RunStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.RunObjectStatus Status { get; set; } + public required global::tryAGI.OpenAI.RunStatus Status { get; set; } /// /// The sampling temperature used for this run. If not set, defaults to 1. @@ -172,7 +170,7 @@ public sealed partial class RunObject public double? Temperature { get; set; } /// - /// The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run. + /// The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was executed on as a part of this run. /// [global::System.Text.Json.Serialization.JsonPropertyName("thread_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -191,11 +189,11 @@ public sealed partial class RunObject public required global::tryAGI.OpenAI.AssistantsApiToolChoiceOption ToolChoice { get; set; } /// - /// The list of tools that the [assistant](/docs/api-reference/assistants) used for this run. + /// The list of tools that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run. /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Tools { get; set; } + public required global::System.Collections.Generic.IList Tools { get; set; } /// /// The nucleus sampling value used for this run. If not set, defaults to 1. @@ -227,7 +225,7 @@ public sealed partial class RunObject /// Initializes a new instance of the class. /// /// - /// The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for execution of this run. /// /// /// The Unix timestamp (in seconds) for when the run was cancelled. @@ -251,7 +249,7 @@ public sealed partial class RunObject /// Details on why the run is incomplete. Will be `null` if the run is not incomplete. /// /// - /// The instructions that the [assistant](/docs/api-reference/assistants) used for this run. + /// The instructions that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run. /// /// /// The last error associated with this run. Will be `null` if there are no errors. @@ -270,20 +268,20 @@ public sealed partial class RunObject /// with a maximum length of 512 characters. /// /// - /// The model that the [assistant](/docs/api-reference/assistants) used for this run. + /// The model that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run. /// /// /// The object type, which is always `thread.run`. /// /// - /// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. + /// Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use. /// /// /// Details on the action required to continue the run. Will be `null` if no action is required. /// /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. /// @@ -297,7 +295,7 @@ public sealed partial class RunObject /// The sampling temperature used for this run. If not set, defaults to 1. /// /// - /// The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run. + /// The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was executed on as a part of this run. /// /// /// Controls which (if any) tool is called by the model.
@@ -307,7 +305,7 @@ public sealed partial class RunObject /// Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. /// /// - /// The list of tools that the [assistant](/docs/api-reference/assistants) used for this run. + /// The list of tools that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run. /// /// /// The nucleus sampling value used for this run. If not set, defaults to 1. @@ -340,10 +338,10 @@ public RunObject( global::tryAGI.OpenAI.RunObjectRequiredAction? requiredAction, global::tryAGI.OpenAI.AssistantsApiResponseFormatOption responseFormat, global::System.DateTimeOffset? startedAt, - global::tryAGI.OpenAI.RunObjectStatus status, + global::tryAGI.OpenAI.RunStatus status, string threadId, global::tryAGI.OpenAI.AssistantsApiToolChoiceOption toolChoice, - global::System.Collections.Generic.IList> tools, + global::System.Collections.Generic.IList tools, global::tryAGI.OpenAI.TruncationObject truncationStrategy, global::tryAGI.OpenAI.RunCompletionUsage? usage, global::tryAGI.OpenAI.RunObjectObject @object, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObjectStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStatus.g.cs similarity index 55% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObjectStatus.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStatus.g.cs index debc5161..953ddd50 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObjectStatus.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStatus.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`. /// - public enum RunObjectStatus + public enum RunStatus { /// /// @@ -49,43 +49,43 @@ public enum RunObjectStatus /// /// Enum extensions to do fast conversions without the reflection. /// - public static class RunObjectStatusExtensions + public static class RunStatusExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this RunObjectStatus value) + public static string ToValueString(this RunStatus value) { return value switch { - RunObjectStatus.Queued => "queued", - RunObjectStatus.InProgress => "in_progress", - RunObjectStatus.RequiresAction => "requires_action", - RunObjectStatus.Cancelling => "cancelling", - RunObjectStatus.Cancelled => "cancelled", - RunObjectStatus.Failed => "failed", - RunObjectStatus.Completed => "completed", - RunObjectStatus.Incomplete => "incomplete", - RunObjectStatus.Expired => "expired", + RunStatus.Queued => "queued", + RunStatus.InProgress => "in_progress", + RunStatus.RequiresAction => "requires_action", + RunStatus.Cancelling => "cancelling", + RunStatus.Cancelled => "cancelled", + RunStatus.Failed => "failed", + RunStatus.Completed => "completed", + RunStatus.Incomplete => "incomplete", + RunStatus.Expired => "expired", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static RunObjectStatus? ToEnum(string value) + public static RunStatus? ToEnum(string value) { return value switch { - "queued" => RunObjectStatus.Queued, - "in_progress" => RunObjectStatus.InProgress, - "requires_action" => RunObjectStatus.RequiresAction, - "cancelling" => RunObjectStatus.Cancelling, - "cancelled" => RunObjectStatus.Cancelled, - "failed" => RunObjectStatus.Failed, - "completed" => RunObjectStatus.Completed, - "incomplete" => RunObjectStatus.Incomplete, - "expired" => RunObjectStatus.Expired, + "queued" => RunStatus.Queued, + "in_progress" => RunStatus.InProgress, + "requires_action" => RunStatus.RequiresAction, + "cancelling" => RunStatus.Cancelling, + "cancelled" => RunStatus.Cancelled, + "failed" => RunStatus.Failed, + "completed" => RunStatus.Completed, + "incomplete" => RunStatus.Incomplete, + "expired" => RunStatus.Expired, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDelta.g.cs index c41499f0..83f405d8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDelta.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDelta.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,8 +12,8 @@ public sealed partial class RunStepDeltaObjectDelta /// The details of the run step. /// [global::System.Text.Json.Serialization.JsonPropertyName("step_details")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? StepDetails { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RunStepDeltaObjectDeltaStepDetailsJsonConverter))] + public global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails? StepDetails { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -33,7 +31,7 @@ public sealed partial class RunStepDeltaObjectDelta [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RunStepDeltaObjectDelta( - global::tryAGI.OpenAI.OneOf? stepDetails) + global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails? stepDetails) { this.StepDetails = stepDetails; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEvent.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetails.Json.g.cs similarity index 85% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEvent.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetails.Json.g.cs index ca62347e..54fd7c46 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseReasoningSummaryDeltaEvent.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetails.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class ResponseReasoningSummaryDeltaEvent + public readonly partial struct RunStepDeltaObjectDeltaStepDetails { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent? FromJson( + public static global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), - jsonSerializerContext) as global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent; + typeof(global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails?; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.ResponseReasoningSummaryDeltaEvent? FromJson( + public static global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ResponseReasoningSummaryDeltaEvent; + typeof(global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetails?; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetails.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetails.g.cs new file mode 100644 index 00000000..fae5caa4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetails.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The details of the run step. + /// + public readonly partial struct RunStepDeltaObjectDeltaStepDetails : global::System.IEquatable + { + /// + /// Details of the message creation by the run step. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? MessageCreation { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? MessageCreation { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageCreation))] +#endif + public bool IsMessageCreation => MessageCreation != null; + + /// + /// + /// + public static implicit operator RunStepDeltaObjectDeltaStepDetails(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject value) => new RunStepDeltaObjectDeltaStepDetails((global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject?(RunStepDeltaObjectDeltaStepDetails @this) => @this.MessageCreation; + + /// + /// + /// + public RunStepDeltaObjectDeltaStepDetails(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? value) + { + MessageCreation = value; + } + + /// + /// Details of the tool call. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? ToolCalls { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? ToolCalls { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolCalls))] +#endif + public bool IsToolCalls => ToolCalls != null; + + /// + /// + /// + public static implicit operator RunStepDeltaObjectDeltaStepDetails(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject value) => new RunStepDeltaObjectDeltaStepDetails((global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject?(RunStepDeltaObjectDeltaStepDetails @this) => @this.ToolCalls; + + /// + /// + /// + public RunStepDeltaObjectDeltaStepDetails(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? value) + { + ToolCalls = value; + } + + /// + /// + /// + public RunStepDeltaObjectDeltaStepDetails( + global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? messageCreation, + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? toolCalls + ) + { + MessageCreation = messageCreation; + ToolCalls = toolCalls; + } + + /// + /// + /// + public object? Object => + ToolCalls as object ?? + MessageCreation as object + ; + + /// + /// + /// + public override string? ToString() => + MessageCreation?.ToString() ?? + ToolCalls?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsMessageCreation || IsToolCalls; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? messageCreation = null, + global::System.Func? toolCalls = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageCreation && messageCreation != null) + { + return messageCreation(MessageCreation!); + } + else if (IsToolCalls && toolCalls != null) + { + return toolCalls(ToolCalls!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? messageCreation = null, + global::System.Action? toolCalls = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageCreation) + { + messageCreation?.Invoke(MessageCreation!); + } + else if (IsToolCalls) + { + toolCalls?.Invoke(ToolCalls!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + MessageCreation, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject), + ToolCalls, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RunStepDeltaObjectDeltaStepDetails other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageCreation, other.MessageCreation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolCalls, other.ToolCalls) + ; + } + + /// + /// + /// + public static bool operator ==(RunStepDeltaObjectDeltaStepDetails obj1, RunStepDeltaObjectDeltaStepDetails obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RunStepDeltaObjectDeltaStepDetails obj1, RunStepDeltaObjectDeltaStepDetails obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RunStepDeltaObjectDeltaStepDetails o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetailsDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetailsDiscriminator.Json.g.cs new file mode 100644 index 00000000..1f9b0169 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetailsDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RunStepDeltaObjectDeltaStepDetailsDiscriminator + { + /// + /// 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::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetailsDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetailsDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetailsDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetailsDiscriminator? 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::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetailsDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDeltaObjectDeltaStepDetailsDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetailsDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetailsDiscriminator.g.cs new file mode 100644 index 00000000..41d02af3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaObjectDeltaStepDetailsDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RunStepDeltaObjectDeltaStepDetailsDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 RunStepDeltaObjectDeltaStepDetailsDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RunStepDeltaObjectDeltaStepDetailsDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCall.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCall.Json.g.cs new file mode 100644 index 00000000..3bd15d33 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCall.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct RunStepDeltaStepDetailsToolCall + { + /// + /// 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall?; + } + + /// + /// 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall? 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCall?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCall.g.cs new file mode 100644 index 00000000..1025aee1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCall.g.cs @@ -0,0 +1,274 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct RunStepDeltaStepDetailsToolCall : global::System.IEquatable + { + /// + /// Details of the Code Interpreter tool call the run step was involved in. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? CallsCodeObject { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? CallsCodeObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CallsCodeObject))] +#endif + public bool IsCallsCodeObject => CallsCodeObject != null; + + /// + /// + /// + public static implicit operator RunStepDeltaStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject value) => new RunStepDeltaStepDetailsToolCall((global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject?(RunStepDeltaStepDetailsToolCall @this) => @this.CallsCodeObject; + + /// + /// + /// + public RunStepDeltaStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? value) + { + CallsCodeObject = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? CallsFileSearchObject { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? CallsFileSearchObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CallsFileSearchObject))] +#endif + public bool IsCallsFileSearchObject => CallsFileSearchObject != null; + + /// + /// + /// + public static implicit operator RunStepDeltaStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject value) => new RunStepDeltaStepDetailsToolCall((global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject?(RunStepDeltaStepDetailsToolCall @this) => @this.CallsFileSearchObject; + + /// + /// + /// + public RunStepDeltaStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? value) + { + CallsFileSearchObject = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? CallsFunctionObject { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? CallsFunctionObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CallsFunctionObject))] +#endif + public bool IsCallsFunctionObject => CallsFunctionObject != null; + + /// + /// + /// + public static implicit operator RunStepDeltaStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject value) => new RunStepDeltaStepDetailsToolCall((global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject?(RunStepDeltaStepDetailsToolCall @this) => @this.CallsFunctionObject; + + /// + /// + /// + public RunStepDeltaStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? value) + { + CallsFunctionObject = value; + } + + /// + /// + /// + public RunStepDeltaStepDetailsToolCall( + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? callsCodeObject, + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? callsFileSearchObject, + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? callsFunctionObject + ) + { + CallsCodeObject = callsCodeObject; + CallsFileSearchObject = callsFileSearchObject; + CallsFunctionObject = callsFunctionObject; + } + + /// + /// + /// + public object? Object => + CallsFunctionObject as object ?? + CallsFileSearchObject as object ?? + CallsCodeObject as object + ; + + /// + /// + /// + public override string? ToString() => + CallsCodeObject?.ToString() ?? + CallsFileSearchObject?.ToString() ?? + CallsFunctionObject?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCallsCodeObject || IsCallsFileSearchObject || IsCallsFunctionObject; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? callsCodeObject = null, + global::System.Func? callsFileSearchObject = null, + global::System.Func? callsFunctionObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCallsCodeObject && callsCodeObject != null) + { + return callsCodeObject(CallsCodeObject!); + } + else if (IsCallsFileSearchObject && callsFileSearchObject != null) + { + return callsFileSearchObject(CallsFileSearchObject!); + } + else if (IsCallsFunctionObject && callsFunctionObject != null) + { + return callsFunctionObject(CallsFunctionObject!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? callsCodeObject = null, + global::System.Action? callsFileSearchObject = null, + global::System.Action? callsFunctionObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCallsCodeObject) + { + callsCodeObject?.Invoke(CallsCodeObject!); + } + else if (IsCallsFileSearchObject) + { + callsFileSearchObject?.Invoke(CallsFileSearchObject!); + } + else if (IsCallsFunctionObject) + { + callsFunctionObject?.Invoke(CallsFunctionObject!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CallsCodeObject, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject), + CallsFileSearchObject, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject), + CallsFunctionObject, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RunStepDeltaStepDetailsToolCall other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CallsCodeObject, other.CallsCodeObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CallsFileSearchObject, other.CallsFileSearchObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CallsFunctionObject, other.CallsFunctionObject) + ; + } + + /// + /// + /// + public static bool operator ==(RunStepDeltaStepDetailsToolCall obj1, RunStepDeltaStepDetailsToolCall obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RunStepDeltaStepDetailsToolCall obj1, RunStepDeltaStepDetailsToolCall obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RunStepDeltaStepDetailsToolCall o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallDiscriminator.Json.g.cs new file mode 100644 index 00000000..1095023c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RunStepDeltaStepDetailsToolCallDiscriminator + { + /// + /// 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallDiscriminator? 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallDiscriminator.g.cs new file mode 100644 index 00000000..006c80c8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RunStepDeltaStepDetailsToolCallDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 RunStepDeltaStepDetailsToolCallDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RunStepDeltaStepDetailsToolCallDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter.g.cs index fb4629f0..5f67e2a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -20,7 +18,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterp /// The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type. /// [global::System.Text.Json.Serialization.JsonPropertyName("outputs")] - public global::System.Collections.Generic.IList>? Outputs { get; set; } + public global::System.Collections.Generic.IList? Outputs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +40,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterp #endif public RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter( string? input, - global::System.Collections.Generic.IList>? outputs) + global::System.Collections.Generic.IList? outputs) { this.Input = input; this.Outputs = outputs; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput.Json.g.cs new file mode 100644 index 00000000..81f77515 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput + { + /// + /// 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput?; + } + + /// + /// 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput? 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs new file mode 100644 index 00000000..01ff4a06 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput : global::System.IEquatable + { + /// + /// Text output from the Code Interpreter tool call as part of a run step. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Logs { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Logs { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Logs))] +#endif + public bool IsLogs => Logs != null; + + /// + /// + /// + public static implicit operator RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject value) => new RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput((global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject?(RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput @this) => @this.Logs; + + /// + /// + /// + public RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? value) + { + Logs = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Image { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Image { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Image))] +#endif + public bool IsImage => Image != null; + + /// + /// + /// + public static implicit operator RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject value) => new RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput((global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject?(RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput @this) => @this.Image; + + /// + /// + /// + public RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? value) + { + Image = value; + } + + /// + /// + /// + public RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput( + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? logs, + global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? image + ) + { + Logs = logs; + Image = image; + } + + /// + /// + /// + public object? Object => + Image as object ?? + Logs as object + ; + + /// + /// + /// + public override string? ToString() => + Logs?.ToString() ?? + Image?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsLogs || IsImage; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? logs = null, + global::System.Func? image = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsLogs && logs != null) + { + return logs(Logs!); + } + else if (IsImage && image != null) + { + return image(Image!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? logs = null, + global::System.Action? image = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsLogs) + { + logs?.Invoke(Logs!); + } + else if (IsImage) + { + image?.Invoke(Image!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Logs, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject), + Image, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Logs, other.Logs) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Image, other.Image) + ; + } + + /// + /// + /// + public static bool operator ==(RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput obj1, RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput obj1, RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutput o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.Json.g.cs new file mode 100644 index 00000000..c520c320 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator + { + /// + /// 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator? 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::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.g.cs new file mode 100644 index 00000000..ed9e954e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage.g.cs index 11971895..f466eaf9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage { /// - /// The [file](/docs/api-reference/files) ID of the image. + /// The [file](https://platform.openai.com/docs/api-reference/files) ID of the image. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_id")] public string? FileId { get; set; } @@ -24,7 +24,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsCodeOutputImageObjec /// Initializes a new instance of the class. /// /// - /// The [file](/docs/api-reference/files) ID of the image. + /// The [file](https://platform.openai.com/docs/api-reference/files) ID of the image. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction.g.cs index b78cce49..79557479 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction.g.cs @@ -21,7 +21,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsFunctionObjectFuncti public string? Name { get; set; } /// - /// The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet. + /// The output of the function. This will be `null` if the outputs have not been [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) yet. /// [global::System.Text.Json.Serialization.JsonPropertyName("output")] public string? Output { get; set; } @@ -42,7 +42,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsFunctionObjectFuncti /// The name of the function. /// /// - /// The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet. + /// The output of the function. This will be `null` if the outputs have not been [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) yet. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsObject.g.cs index 03189f09..f3459fe9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDeltaStepDetailsToolCallsObject.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -14,7 +12,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsObject /// An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`. /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")] - public global::System.Collections.Generic.IList>? ToolCalls { get; set; } + public global::System.Collections.Generic.IList? ToolCalls { get; set; } /// /// Always `tool_calls`. @@ -42,7 +40,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsObject [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RunStepDeltaStepDetailsToolCallsObject( - global::System.Collections.Generic.IList>? toolCalls, + global::System.Collections.Generic.IList? toolCalls, global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType type) { this.ToolCalls = toolCalls; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCall.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCall.Json.g.cs new file mode 100644 index 00000000..d73d664c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCall.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct RunStepDetailsToolCall + { + /// + /// 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::tryAGI.OpenAI.RunStepDetailsToolCall? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCall), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDetailsToolCall?; + } + + /// + /// 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::tryAGI.OpenAI.RunStepDetailsToolCall? 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::tryAGI.OpenAI.RunStepDetailsToolCall), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDetailsToolCall?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCall.g.cs new file mode 100644 index 00000000..90314326 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCall.g.cs @@ -0,0 +1,274 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct RunStepDetailsToolCall : global::System.IEquatable + { + /// + /// Details of the Code Interpreter tool call the run step was involved in. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? CallsCodeObject { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? CallsCodeObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CallsCodeObject))] +#endif + public bool IsCallsCodeObject => CallsCodeObject != null; + + /// + /// + /// + public static implicit operator RunStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject value) => new RunStepDetailsToolCall((global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject?(RunStepDetailsToolCall @this) => @this.CallsCodeObject; + + /// + /// + /// + public RunStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? value) + { + CallsCodeObject = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? CallsFileSearchObject { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? CallsFileSearchObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CallsFileSearchObject))] +#endif + public bool IsCallsFileSearchObject => CallsFileSearchObject != null; + + /// + /// + /// + public static implicit operator RunStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject value) => new RunStepDetailsToolCall((global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject?(RunStepDetailsToolCall @this) => @this.CallsFileSearchObject; + + /// + /// + /// + public RunStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? value) + { + CallsFileSearchObject = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? CallsFunctionObject { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? CallsFunctionObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CallsFunctionObject))] +#endif + public bool IsCallsFunctionObject => CallsFunctionObject != null; + + /// + /// + /// + public static implicit operator RunStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject value) => new RunStepDetailsToolCall((global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject?(RunStepDetailsToolCall @this) => @this.CallsFunctionObject; + + /// + /// + /// + public RunStepDetailsToolCall(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? value) + { + CallsFunctionObject = value; + } + + /// + /// + /// + public RunStepDetailsToolCall( + global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? callsCodeObject, + global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? callsFileSearchObject, + global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? callsFunctionObject + ) + { + CallsCodeObject = callsCodeObject; + CallsFileSearchObject = callsFileSearchObject; + CallsFunctionObject = callsFunctionObject; + } + + /// + /// + /// + public object? Object => + CallsFunctionObject as object ?? + CallsFileSearchObject as object ?? + CallsCodeObject as object + ; + + /// + /// + /// + public override string? ToString() => + CallsCodeObject?.ToString() ?? + CallsFileSearchObject?.ToString() ?? + CallsFunctionObject?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCallsCodeObject || IsCallsFileSearchObject || IsCallsFunctionObject; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? callsCodeObject = null, + global::System.Func? callsFileSearchObject = null, + global::System.Func? callsFunctionObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCallsCodeObject && callsCodeObject != null) + { + return callsCodeObject(CallsCodeObject!); + } + else if (IsCallsFileSearchObject && callsFileSearchObject != null) + { + return callsFileSearchObject(CallsFileSearchObject!); + } + else if (IsCallsFunctionObject && callsFunctionObject != null) + { + return callsFunctionObject(CallsFunctionObject!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? callsCodeObject = null, + global::System.Action? callsFileSearchObject = null, + global::System.Action? callsFunctionObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCallsCodeObject) + { + callsCodeObject?.Invoke(CallsCodeObject!); + } + else if (IsCallsFileSearchObject) + { + callsFileSearchObject?.Invoke(CallsFileSearchObject!); + } + else if (IsCallsFunctionObject) + { + callsFunctionObject?.Invoke(CallsFunctionObject!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CallsCodeObject, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject), + CallsFileSearchObject, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject), + CallsFunctionObject, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RunStepDetailsToolCall other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CallsCodeObject, other.CallsCodeObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CallsFileSearchObject, other.CallsFileSearchObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CallsFunctionObject, other.CallsFunctionObject) + ; + } + + /// + /// + /// + public static bool operator ==(RunStepDetailsToolCall obj1, RunStepDetailsToolCall obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RunStepDetailsToolCall obj1, RunStepDetailsToolCall obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RunStepDetailsToolCall o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallDiscriminator.Json.g.cs new file mode 100644 index 00000000..d7e33fb7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RunStepDetailsToolCallDiscriminator + { + /// + /// 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::tryAGI.OpenAI.RunStepDetailsToolCallDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDetailsToolCallDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.RunStepDetailsToolCallDiscriminator? 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::tryAGI.OpenAI.RunStepDetailsToolCallDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDetailsToolCallDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallDiscriminator.g.cs new file mode 100644 index 00000000..b334d53b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RunStepDetailsToolCallDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 RunStepDetailsToolCallDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RunStepDetailsToolCallDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreter.g.cs index 760728d6..5125f2d6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreter.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -22,7 +20,7 @@ public sealed partial class RunStepDetailsToolCallsCodeObjectCodeInterpreter /// [global::System.Text.Json.Serialization.JsonPropertyName("outputs")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Outputs { get; set; } + public required global::System.Collections.Generic.IList Outputs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -44,7 +42,7 @@ public sealed partial class RunStepDetailsToolCallsCodeObjectCodeInterpreter #endif public RunStepDetailsToolCallsCodeObjectCodeInterpreter( string input, - global::System.Collections.Generic.IList> outputs) + global::System.Collections.Generic.IList outputs) { this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); this.Outputs = outputs ?? throw new global::System.ArgumentNullException(nameof(outputs)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput.Json.g.cs new file mode 100644 index 00000000..8fd90e4a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput + { + /// + /// 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::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput?; + } + + /// + /// 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::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput? 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::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs new file mode 100644 index 00000000..71979cd7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput : global::System.IEquatable + { + /// + /// Text output from the Code Interpreter tool call as part of a run step. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Logs { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Logs { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Logs))] +#endif + public bool IsLogs => Logs != null; + + /// + /// + /// + public static implicit operator RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject value) => new RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput((global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject?(RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput @this) => @this.Logs; + + /// + /// + /// + public RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? value) + { + Logs = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Image { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Image { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Image))] +#endif + public bool IsImage => Image != null; + + /// + /// + /// + public static implicit operator RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject value) => new RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput((global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject?(RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput @this) => @this.Image; + + /// + /// + /// + public RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? value) + { + Image = value; + } + + /// + /// + /// + public RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput( + global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? logs, + global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? image + ) + { + Logs = logs; + Image = image; + } + + /// + /// + /// + public object? Object => + Image as object ?? + Logs as object + ; + + /// + /// + /// + public override string? ToString() => + Logs?.ToString() ?? + Image?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsLogs || IsImage; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? logs = null, + global::System.Func? image = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsLogs && logs != null) + { + return logs(Logs!); + } + else if (IsImage && image != null) + { + return image(Image!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? logs = null, + global::System.Action? image = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsLogs) + { + logs?.Invoke(Logs!); + } + else if (IsImage) + { + image?.Invoke(Image!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Logs, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject), + Image, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Logs, other.Logs) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Image, other.Image) + ; + } + + /// + /// + /// + public static bool operator ==(RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput obj1, RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput obj1, RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RunStepDetailsToolCallsCodeObjectCodeInterpreterOutput o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.Json.g.cs new file mode 100644 index 00000000..13d55998 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator + { + /// + /// 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::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator? 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::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.g.cs new file mode 100644 index 00000000..5c4bcc7f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeOutputImageObjectImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeOutputImageObjectImage.g.cs index d449e730..3ae2c7ca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeOutputImageObjectImage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsCodeOutputImageObjectImage.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class RunStepDetailsToolCallsCodeOutputImageObjectImage { /// - /// The [file](/docs/api-reference/files) ID of the image. + /// The [file](https://platform.openai.com/docs/api-reference/files) ID of the image. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -25,7 +25,7 @@ public sealed partial class RunStepDetailsToolCallsCodeOutputImageObjectImage /// Initializes a new instance of the class. /// /// - /// The [file](/docs/api-reference/files) ID of the image. + /// The [file](https://platform.openai.com/docs/api-reference/files) ID of the image. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsFunctionObjectFunction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsFunctionObjectFunction.g.cs index df6286ab..51a482de 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsFunctionObjectFunction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsFunctionObjectFunction.g.cs @@ -23,7 +23,7 @@ public sealed partial class RunStepDetailsToolCallsFunctionObjectFunction public required string Name { get; set; } /// - /// The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet. + /// The output of the function. This will be `null` if the outputs have not been [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) yet. /// [global::System.Text.Json.Serialization.JsonPropertyName("output")] [global::System.Text.Json.Serialization.JsonRequired] @@ -45,7 +45,7 @@ public sealed partial class RunStepDetailsToolCallsFunctionObjectFunction /// The name of the function. /// /// - /// The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet. + /// The output of the function. This will be `null` if the outputs have not been [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) yet. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsObject.g.cs index 2d1fb18c..e1c50687 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepDetailsToolCallsObject.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -15,7 +13,7 @@ public sealed partial class RunStepDetailsToolCallsObject /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> ToolCalls { get; set; } + public required global::System.Collections.Generic.IList ToolCalls { get; set; } /// /// Always `tool_calls`. @@ -43,7 +41,7 @@ public sealed partial class RunStepDetailsToolCallsObject [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RunStepDetailsToolCallsObject( - global::System.Collections.Generic.IList> toolCalls, + global::System.Collections.Generic.IList toolCalls, global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType type) { this.ToolCalls = toolCalls ?? throw new global::System.ArgumentNullException(nameof(toolCalls)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObject.g.cs index 75701a2e..836c26d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObject.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -11,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class RunStepObject { /// - /// The ID of the [assistant](/docs/api-reference/assistants) associated with the run step. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) associated with the run step. /// [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -88,7 +86,7 @@ public sealed partial class RunStepObject public global::tryAGI.OpenAI.RunStepObjectObject Object { get; set; } /// - /// The ID of the [run](/docs/api-reference/runs) that this run step is a part of. + /// The ID of the [run](https://platform.openai.com/docs/api-reference/runs) that this run step is a part of. /// [global::System.Text.Json.Serialization.JsonPropertyName("run_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -106,12 +104,12 @@ public sealed partial class RunStepObject /// The details of the run step. /// [global::System.Text.Json.Serialization.JsonPropertyName("step_details")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RunStepObjectStepDetailsJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf StepDetails { get; set; } + public required global::tryAGI.OpenAI.RunStepObjectStepDetails StepDetails { get; set; } /// - /// The ID of the [thread](/docs/api-reference/threads) that was run. + /// The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run. /// [global::System.Text.Json.Serialization.JsonPropertyName("thread_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -142,7 +140,7 @@ public sealed partial class RunStepObject /// Initializes a new instance of the class. /// /// - /// The ID of the [assistant](/docs/api-reference/assistants) associated with the run step. + /// The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) associated with the run step. /// /// /// The Unix timestamp (in seconds) for when the run step was cancelled. @@ -176,7 +174,7 @@ public sealed partial class RunStepObject /// The object type, which is always `thread.run.step`. /// /// - /// The ID of the [run](/docs/api-reference/runs) that this run step is a part of. + /// The ID of the [run](https://platform.openai.com/docs/api-reference/runs) that this run step is a part of. /// /// /// The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`. @@ -185,7 +183,7 @@ public sealed partial class RunStepObject /// The details of the run step. /// /// - /// The ID of the [thread](/docs/api-reference/threads) that was run. + /// The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run. /// /// /// The type of run step, which can be either `message_creation` or `tool_calls`. @@ -206,7 +204,7 @@ public RunStepObject( global::tryAGI.OpenAI.RunStepObjectLastError? lastError, string runId, global::tryAGI.OpenAI.RunStepObjectStatus status, - global::tryAGI.OpenAI.OneOf stepDetails, + global::tryAGI.OpenAI.RunStepObjectStepDetails stepDetails, string threadId, global::tryAGI.OpenAI.RunStepObjectType type, global::tryAGI.OpenAI.RunStepCompletionUsage? usage, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetails.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetails.Json.g.cs new file mode 100644 index 00000000..3a15c38f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetails.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct RunStepObjectStepDetails + { + /// + /// 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::tryAGI.OpenAI.RunStepObjectStepDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepObjectStepDetails), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepObjectStepDetails?; + } + + /// + /// 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::tryAGI.OpenAI.RunStepObjectStepDetails? 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::tryAGI.OpenAI.RunStepObjectStepDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepObjectStepDetails?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetails.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetails.g.cs new file mode 100644 index 00000000..3c5cb89d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetails.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// The details of the run step. + /// + public readonly partial struct RunStepObjectStepDetails : global::System.IEquatable + { + /// + /// Details of the message creation by the run step. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? MessageCreation { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? MessageCreation { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageCreation))] +#endif + public bool IsMessageCreation => MessageCreation != null; + + /// + /// + /// + public static implicit operator RunStepObjectStepDetails(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject value) => new RunStepObjectStepDetails((global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject?(RunStepObjectStepDetails @this) => @this.MessageCreation; + + /// + /// + /// + public RunStepObjectStepDetails(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? value) + { + MessageCreation = value; + } + + /// + /// Details of the tool call. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? ToolCalls { get; init; } +#else + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? ToolCalls { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolCalls))] +#endif + public bool IsToolCalls => ToolCalls != null; + + /// + /// + /// + public static implicit operator RunStepObjectStepDetails(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject value) => new RunStepObjectStepDetails((global::tryAGI.OpenAI.RunStepDetailsToolCallsObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.RunStepDetailsToolCallsObject?(RunStepObjectStepDetails @this) => @this.ToolCalls; + + /// + /// + /// + public RunStepObjectStepDetails(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? value) + { + ToolCalls = value; + } + + /// + /// + /// + public RunStepObjectStepDetails( + global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? messageCreation, + global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? toolCalls + ) + { + MessageCreation = messageCreation; + ToolCalls = toolCalls; + } + + /// + /// + /// + public object? Object => + ToolCalls as object ?? + MessageCreation as object + ; + + /// + /// + /// + public override string? ToString() => + MessageCreation?.ToString() ?? + ToolCalls?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsMessageCreation || IsToolCalls; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? messageCreation = null, + global::System.Func? toolCalls = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageCreation && messageCreation != null) + { + return messageCreation(MessageCreation!); + } + else if (IsToolCalls && toolCalls != null) + { + return toolCalls(ToolCalls!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? messageCreation = null, + global::System.Action? toolCalls = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageCreation) + { + messageCreation?.Invoke(MessageCreation!); + } + else if (IsToolCalls) + { + toolCalls?.Invoke(ToolCalls!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + MessageCreation, + typeof(global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject), + ToolCalls, + typeof(global::tryAGI.OpenAI.RunStepDetailsToolCallsObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RunStepObjectStepDetails other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageCreation, other.MessageCreation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolCalls, other.ToolCalls) + ; + } + + /// + /// + /// + public static bool operator ==(RunStepObjectStepDetails obj1, RunStepObjectStepDetails obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RunStepObjectStepDetails obj1, RunStepObjectStepDetails obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RunStepObjectStepDetails o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetailsDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetailsDiscriminator.Json.g.cs new file mode 100644 index 00000000..32ba20e9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetailsDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RunStepObjectStepDetailsDiscriminator + { + /// + /// 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::tryAGI.OpenAI.RunStepObjectStepDetailsDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepObjectStepDetailsDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepObjectStepDetailsDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.RunStepObjectStepDetailsDiscriminator? 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::tryAGI.OpenAI.RunStepObjectStepDetailsDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepObjectStepDetailsDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetailsDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetailsDiscriminator.g.cs new file mode 100644 index 00000000..04d9fdc3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepObjectStepDetailsDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RunStepObjectStepDetailsDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 RunStepObjectStepDetailsDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RunStepObjectStepDetailsDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs index 67863514..0584d8fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public readonly partial struct RunStepStreamEvent : global::System.IEquatable { /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is created. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) is created. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Value1 { get; init; } @@ -45,7 +45,7 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant1? valu } /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) moves to an `in_progress` state. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) moves to an `in_progress` state. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Value2 { get; init; } @@ -80,7 +80,7 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant2? valu } /// - /// Occurs when parts of a [run step](/docs/api-reference/run-steps/step-object) are being streamed. + /// Occurs when parts of a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) are being streamed. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Value3 { get; init; } @@ -115,7 +115,7 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant3? valu } /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is completed. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) is completed. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Value4 { get; init; } @@ -150,7 +150,7 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant4? valu } /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) fails. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) fails. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Value5 { get; init; } @@ -185,7 +185,7 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant5? valu } /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is cancelled. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) is cancelled. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Value6 { get; init; } @@ -220,7 +220,7 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant6? valu } /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) expires. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) expires. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Value7 { get; init; } @@ -307,7 +307,7 @@ Value1 as object ///
public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && IsValue7; + return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5 || IsValue6 || IsValue7; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventDiscriminator.Json.g.cs new file mode 100644 index 00000000..bfe3671b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RunStepStreamEventDiscriminator + { + /// + /// 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::tryAGI.OpenAI.RunStepStreamEventDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStepStreamEventDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStepStreamEventDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.RunStepStreamEventDiscriminator? 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::tryAGI.OpenAI.RunStepStreamEventDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStepStreamEventDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventDiscriminator.g.cs new file mode 100644 index 00000000..c1c09e3a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RunStepStreamEventDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event")] + public string? Event { 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 RunStepStreamEventDiscriminator( + string? @event) + { + this.Event = @event; + } + + /// + /// Initializes a new instance of the class. + /// + public RunStepStreamEventDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant1.g.cs index 9ec47c26..4743cefc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant1.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is created. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) is created. /// public sealed partial class RunStepStreamEventVariant1 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant2.g.cs index 7bceee1b..b57e82c5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant2.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) moves to an `in_progress` state. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) moves to an `in_progress` state. /// public sealed partial class RunStepStreamEventVariant2 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant3.g.cs index e6c85613..623e4bb9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant3.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Occurs when parts of a [run step](/docs/api-reference/run-steps/step-object) are being streamed. + /// Occurs when parts of a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) are being streamed. /// public sealed partial class RunStepStreamEventVariant3 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant4.g.cs index f0308cef..dd6a5225 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant4.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is completed. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) is completed. /// public sealed partial class RunStepStreamEventVariant4 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant5.g.cs index e986095f..2c5c1163 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant5.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) fails. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) fails. /// public sealed partial class RunStepStreamEventVariant5 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant6.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant6.g.cs index f6a6942b..95f02e25 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant6.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant6.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is cancelled. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) is cancelled. /// public sealed partial class RunStepStreamEventVariant6 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant7.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant7.g.cs index 5507a663..8d4ba68f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant7.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEventVariant7.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) expires. + /// Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) expires. /// public sealed partial class RunStepStreamEventVariant7 { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs index c5c01629..f2a763a6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public readonly partial struct RunStreamEvent : global::System.IEquatable { /// - /// Occurs when a new [run](/docs/api-reference/runs/object) is created. + /// Occurs when a new [run](https://platform.openai.com/docs/api-reference/runs/object) is created. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant1? Value1 { get; init; } @@ -45,7 +45,7 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant1? value) } /// - /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `queued` status. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `queued` status. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant2? Value2 { get; init; } @@ -80,7 +80,7 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant2? value) } /// - /// Occurs when a [run](/docs/api-reference/runs/object) moves to an `in_progress` status. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to an `in_progress` status. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant3? Value3 { get; init; } @@ -115,7 +115,7 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant3? value) } /// - /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `requires_action` status. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `requires_action` status. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant4? Value4 { get; init; } @@ -150,7 +150,7 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant4? value) } /// - /// Occurs when a [run](/docs/api-reference/runs/object) is completed. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) is completed. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant5? Value5 { get; init; } @@ -185,7 +185,7 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant5? value) } /// - /// Occurs when a [run](/docs/api-reference/runs/object) ends with status `incomplete`. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) ends with status `incomplete`. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant6? Value6 { get; init; } @@ -220,7 +220,7 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant6? value) } /// - /// Occurs when a [run](/docs/api-reference/runs/object) fails. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) fails. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant7? Value7 { get; init; } @@ -255,7 +255,7 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant7? value) } /// - /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `cancelling` status. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `cancelling` status. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant8? Value8 { get; init; } @@ -290,7 +290,7 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant8? value) } /// - /// Occurs when a [run](/docs/api-reference/runs/object) is cancelled. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) is cancelled. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant9? Value9 { get; init; } @@ -325,7 +325,7 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant9? value) } /// - /// Occurs when a [run](/docs/api-reference/runs/object) expires. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) expires. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RunStreamEventVariant10? Value10 { get; init; } @@ -424,7 +424,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && IsValue10; + return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5 || IsValue6 || IsValue7 || IsValue8 || IsValue9 || IsValue10; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventDiscriminator.Json.g.cs new file mode 100644 index 00000000..3cdf1a48 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class RunStreamEventDiscriminator + { + /// + /// 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::tryAGI.OpenAI.RunStreamEventDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.RunStreamEventDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.RunStreamEventDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.RunStreamEventDiscriminator? 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::tryAGI.OpenAI.RunStreamEventDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.RunStreamEventDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventDiscriminator.g.cs new file mode 100644 index 00000000..00f0f553 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class RunStreamEventDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event")] + public string? Event { 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 RunStreamEventDiscriminator( + string? @event) + { + this.Event = @event; + } + + /// + /// Initializes a new instance of the class. + /// + public RunStreamEventDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant1.g.cs index 38d67631..ea12692f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant1.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a new [run](/docs/api-reference/runs/object) is created. + /// Occurs when a new [run](https://platform.openai.com/docs/api-reference/runs/object) is created. /// public sealed partial class RunStreamEventVariant1 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant1 /// Initializes a new instance of the class. /// /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant10.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant10.g.cs index 289c3da7..12495239 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant10.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant10.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run](/docs/api-reference/runs/object) expires. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) expires. /// public sealed partial class RunStreamEventVariant10 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant10 /// Initializes a new instance of the class. ///
/// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant2.g.cs index e8446e32..9d97bb92 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant2.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `queued` status. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `queued` status. /// public sealed partial class RunStreamEventVariant2 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant2 /// Initializes a new instance of the class. ///
/// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant3.g.cs index 45ec75ff..ef1c006f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant3.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run](/docs/api-reference/runs/object) moves to an `in_progress` status. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to an `in_progress` status. /// public sealed partial class RunStreamEventVariant3 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant3 /// Initializes a new instance of the class. /// /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant4.g.cs index 86548ac1..ef4790c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant4.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `requires_action` status. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `requires_action` status. /// public sealed partial class RunStreamEventVariant4 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant4 /// Initializes a new instance of the class. /// /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant5.g.cs index 1a0055cf..7e5a07a8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant5.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run](/docs/api-reference/runs/object) is completed. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) is completed. /// public sealed partial class RunStreamEventVariant5 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant5 /// Initializes a new instance of the class. /// /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant6.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant6.g.cs index 5a910b44..831d82ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant6.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant6.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run](/docs/api-reference/runs/object) ends with status `incomplete`. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) ends with status `incomplete`. /// public sealed partial class RunStreamEventVariant6 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant6 /// Initializes a new instance of the class. /// /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant7.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant7.g.cs index b3172d55..46ea9d73 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant7.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant7.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run](/docs/api-reference/runs/object) fails. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) fails. /// public sealed partial class RunStreamEventVariant7 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant7 /// Initializes a new instance of the class. /// /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant8.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant8.g.cs index 7187cbbe..fa078369 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant8.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant8.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `cancelling` status. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `cancelling` status. /// public sealed partial class RunStreamEventVariant8 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant8 /// Initializes a new instance of the class. /// /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant9.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant9.g.cs index ab632f72..c4777bbd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant9.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEventVariant9.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a [run](/docs/api-reference/runs/object) is cancelled. + /// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) is cancelled. /// public sealed partial class RunStreamEventVariant9 { /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,7 +32,7 @@ public sealed partial class RunStreamEventVariant9 /// Initializes a new instance of the class. /// /// - /// Represents an execution run on a [thread](/docs/api-reference/threads). + /// Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunToolCallObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunToolCallObject.g.cs index 359ad1e0..1b5f8f66 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunToolCallObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunToolCallObject.g.cs @@ -16,7 +16,7 @@ public sealed partial class RunToolCallObject public required global::tryAGI.OpenAI.RunToolCallObjectFunction Function { get; set; } /// - /// The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint. + /// The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) endpoint. /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -42,7 +42,7 @@ public sealed partial class RunToolCallObject /// The function definition. /// /// - /// The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint. + /// The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) endpoint. /// /// /// The type of tool call the output is required for. For now, this is always `function`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTier.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTier.g.cs index 660c35ad..2e7faf02 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTier.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ServiceTier.g.cs @@ -7,7 +7,7 @@ namespace tryAGI.OpenAI /// Specifies the processing type used for serving the request.
/// - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
/// - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
- /// - If set to '[flex](/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
+ /// - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.
/// - When not set, the default behavior is 'auto'.
/// When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
/// Default Value: auto @@ -23,7 +23,7 @@ public enum ServiceTier /// Default, /// - /// //openai.com/contact-sales) to learn more about Priority processing. + /// //platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing. /// Flex, /// @@ -31,7 +31,7 @@ public enum ServiceTier /// Scale, /// - /// //openai.com/contact-sales) to learn more about Priority processing. + /// //platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing. /// Priority, } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source.Json.g.cs new file mode 100644 index 00000000..e1c5ceef --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct Source + { + /// + /// 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::tryAGI.OpenAI.Source? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.Source), + jsonSerializerContext) as global::tryAGI.OpenAI.Source?; + } + + /// + /// 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::tryAGI.OpenAI.Source? 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::tryAGI.OpenAI.Source), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.Source?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source.g.cs new file mode 100644 index 00000000..d08fff24 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source.g.cs @@ -0,0 +1,274 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Determines what populates the `item` namespace in this run's data source. + /// + public readonly partial struct Source : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? EvalJsonlFileContent { get; init; } +#else + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? EvalJsonlFileContent { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalJsonlFileContent))] +#endif + public bool IsEvalJsonlFileContent => EvalJsonlFileContent != null; + + /// + /// + /// + public static implicit operator Source(global::tryAGI.OpenAI.EvalJsonlFileContentSource value) => new Source((global::tryAGI.OpenAI.EvalJsonlFileContentSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalJsonlFileContentSource?(Source @this) => @this.EvalJsonlFileContent; + + /// + /// + /// + public Source(global::tryAGI.OpenAI.EvalJsonlFileContentSource? value) + { + EvalJsonlFileContent = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? EvalJsonlFileId { get; init; } +#else + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? EvalJsonlFileId { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalJsonlFileId))] +#endif + public bool IsEvalJsonlFileId => EvalJsonlFileId != null; + + /// + /// + /// + public static implicit operator Source(global::tryAGI.OpenAI.EvalJsonlFileIdSource value) => new Source((global::tryAGI.OpenAI.EvalJsonlFileIdSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalJsonlFileIdSource?(Source @this) => @this.EvalJsonlFileId; + + /// + /// + /// + public Source(global::tryAGI.OpenAI.EvalJsonlFileIdSource? value) + { + EvalJsonlFileId = value; + } + + /// + /// A StoredCompletionsRunDataSource configuration describing a set of filters + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalStoredCompletionsSource? EvalStoredCompletions { get; init; } +#else + public global::tryAGI.OpenAI.EvalStoredCompletionsSource? EvalStoredCompletions { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalStoredCompletions))] +#endif + public bool IsEvalStoredCompletions => EvalStoredCompletions != null; + + /// + /// + /// + public static implicit operator Source(global::tryAGI.OpenAI.EvalStoredCompletionsSource value) => new Source((global::tryAGI.OpenAI.EvalStoredCompletionsSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalStoredCompletionsSource?(Source @this) => @this.EvalStoredCompletions; + + /// + /// + /// + public Source(global::tryAGI.OpenAI.EvalStoredCompletionsSource? value) + { + EvalStoredCompletions = value; + } + + /// + /// + /// + public Source( + global::tryAGI.OpenAI.EvalJsonlFileContentSource? evalJsonlFileContent, + global::tryAGI.OpenAI.EvalJsonlFileIdSource? evalJsonlFileId, + global::tryAGI.OpenAI.EvalStoredCompletionsSource? evalStoredCompletions + ) + { + EvalJsonlFileContent = evalJsonlFileContent; + EvalJsonlFileId = evalJsonlFileId; + EvalStoredCompletions = evalStoredCompletions; + } + + /// + /// + /// + public object? Object => + EvalStoredCompletions as object ?? + EvalJsonlFileId as object ?? + EvalJsonlFileContent as object + ; + + /// + /// + /// + public override string? ToString() => + EvalJsonlFileContent?.ToString() ?? + EvalJsonlFileId?.ToString() ?? + EvalStoredCompletions?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsEvalJsonlFileContent || IsEvalJsonlFileId || IsEvalStoredCompletions; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? evalJsonlFileContent = null, + global::System.Func? evalJsonlFileId = null, + global::System.Func? evalStoredCompletions = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsEvalJsonlFileContent && evalJsonlFileContent != null) + { + return evalJsonlFileContent(EvalJsonlFileContent!); + } + else if (IsEvalJsonlFileId && evalJsonlFileId != null) + { + return evalJsonlFileId(EvalJsonlFileId!); + } + else if (IsEvalStoredCompletions && evalStoredCompletions != null) + { + return evalStoredCompletions(EvalStoredCompletions!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? evalJsonlFileContent = null, + global::System.Action? evalJsonlFileId = null, + global::System.Action? evalStoredCompletions = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsEvalJsonlFileContent) + { + evalJsonlFileContent?.Invoke(EvalJsonlFileContent!); + } + else if (IsEvalJsonlFileId) + { + evalJsonlFileId?.Invoke(EvalJsonlFileId!); + } + else if (IsEvalStoredCompletions) + { + evalStoredCompletions?.Invoke(EvalStoredCompletions!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + EvalJsonlFileContent, + typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), + EvalJsonlFileId, + typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), + EvalStoredCompletions, + typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSource), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Source other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalJsonlFileContent, other.EvalJsonlFileContent) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalJsonlFileId, other.EvalJsonlFileId) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalStoredCompletions, other.EvalStoredCompletions) + ; + } + + /// + /// + /// + public static bool operator ==(Source obj1, Source obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Source obj1, Source obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Source o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source2.Json.g.cs new file mode 100644 index 00000000..33eb9e87 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct Source2 + { + /// + /// 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::tryAGI.OpenAI.Source2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.Source2), + jsonSerializerContext) as global::tryAGI.OpenAI.Source2?; + } + + /// + /// 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::tryAGI.OpenAI.Source2? 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::tryAGI.OpenAI.Source2), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.Source2?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source2.g.cs new file mode 100644 index 00000000..56dcda2b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source2.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Determines what populates the `item` namespace in the data source. + /// + public readonly partial struct Source2 : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? EvalJsonlFileContentSource { get; init; } +#else + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? EvalJsonlFileContentSource { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalJsonlFileContentSource))] +#endif + public bool IsEvalJsonlFileContentSource => EvalJsonlFileContentSource != null; + + /// + /// + /// + public static implicit operator Source2(global::tryAGI.OpenAI.EvalJsonlFileContentSource value) => new Source2((global::tryAGI.OpenAI.EvalJsonlFileContentSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalJsonlFileContentSource?(Source2 @this) => @this.EvalJsonlFileContentSource; + + /// + /// + /// + public Source2(global::tryAGI.OpenAI.EvalJsonlFileContentSource? value) + { + EvalJsonlFileContentSource = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? EvalJsonlFileIdSource { get; init; } +#else + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? EvalJsonlFileIdSource { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalJsonlFileIdSource))] +#endif + public bool IsEvalJsonlFileIdSource => EvalJsonlFileIdSource != null; + + /// + /// + /// + public static implicit operator Source2(global::tryAGI.OpenAI.EvalJsonlFileIdSource value) => new Source2((global::tryAGI.OpenAI.EvalJsonlFileIdSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalJsonlFileIdSource?(Source2 @this) => @this.EvalJsonlFileIdSource; + + /// + /// + /// + public Source2(global::tryAGI.OpenAI.EvalJsonlFileIdSource? value) + { + EvalJsonlFileIdSource = value; + } + + /// + /// + /// + public Source2( + global::tryAGI.OpenAI.EvalJsonlFileContentSource? evalJsonlFileContentSource, + global::tryAGI.OpenAI.EvalJsonlFileIdSource? evalJsonlFileIdSource + ) + { + EvalJsonlFileContentSource = evalJsonlFileContentSource; + EvalJsonlFileIdSource = evalJsonlFileIdSource; + } + + /// + /// + /// + public object? Object => + EvalJsonlFileIdSource as object ?? + EvalJsonlFileContentSource as object + ; + + /// + /// + /// + public override string? ToString() => + EvalJsonlFileContentSource?.ToString() ?? + EvalJsonlFileIdSource?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsEvalJsonlFileContentSource || IsEvalJsonlFileIdSource; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? evalJsonlFileContentSource = null, + global::System.Func? evalJsonlFileIdSource = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsEvalJsonlFileContentSource && evalJsonlFileContentSource != null) + { + return evalJsonlFileContentSource(EvalJsonlFileContentSource!); + } + else if (IsEvalJsonlFileIdSource && evalJsonlFileIdSource != null) + { + return evalJsonlFileIdSource(EvalJsonlFileIdSource!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? evalJsonlFileContentSource = null, + global::System.Action? evalJsonlFileIdSource = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsEvalJsonlFileContentSource) + { + evalJsonlFileContentSource?.Invoke(EvalJsonlFileContentSource!); + } + else if (IsEvalJsonlFileIdSource) + { + evalJsonlFileIdSource?.Invoke(EvalJsonlFileIdSource!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + EvalJsonlFileContentSource, + typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), + EvalJsonlFileIdSource, + typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Source2 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalJsonlFileContentSource, other.EvalJsonlFileContentSource) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalJsonlFileIdSource, other.EvalJsonlFileIdSource) + ; + } + + /// + /// + /// + public static bool operator ==(Source2 obj1, Source2 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Source2 obj1, Source2 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Source2 o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source3.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source3.Json.g.cs new file mode 100644 index 00000000..570525ea --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct Source3 + { + /// + /// 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::tryAGI.OpenAI.Source3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.Source3), + jsonSerializerContext) as global::tryAGI.OpenAI.Source3?; + } + + /// + /// 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::tryAGI.OpenAI.Source3? 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::tryAGI.OpenAI.Source3), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.Source3?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source3.g.cs new file mode 100644 index 00000000..e259f420 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Source3.g.cs @@ -0,0 +1,274 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Determines what populates the `item` namespace in this run's data source. + /// + public readonly partial struct Source3 : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? EvalJsonlFileContentSource { get; init; } +#else + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? EvalJsonlFileContentSource { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalJsonlFileContentSource))] +#endif + public bool IsEvalJsonlFileContentSource => EvalJsonlFileContentSource != null; + + /// + /// + /// + public static implicit operator Source3(global::tryAGI.OpenAI.EvalJsonlFileContentSource value) => new Source3((global::tryAGI.OpenAI.EvalJsonlFileContentSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalJsonlFileContentSource?(Source3 @this) => @this.EvalJsonlFileContentSource; + + /// + /// + /// + public Source3(global::tryAGI.OpenAI.EvalJsonlFileContentSource? value) + { + EvalJsonlFileContentSource = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? EvalJsonlFileIdSource { get; init; } +#else + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? EvalJsonlFileIdSource { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalJsonlFileIdSource))] +#endif + public bool IsEvalJsonlFileIdSource => EvalJsonlFileIdSource != null; + + /// + /// + /// + public static implicit operator Source3(global::tryAGI.OpenAI.EvalJsonlFileIdSource value) => new Source3((global::tryAGI.OpenAI.EvalJsonlFileIdSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalJsonlFileIdSource?(Source3 @this) => @this.EvalJsonlFileIdSource; + + /// + /// + /// + public Source3(global::tryAGI.OpenAI.EvalJsonlFileIdSource? value) + { + EvalJsonlFileIdSource = value; + } + + /// + /// A EvalResponsesSource object describing a run data source configuration. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalResponsesSource? EvalResponsesSource { get; init; } +#else + public global::tryAGI.OpenAI.EvalResponsesSource? EvalResponsesSource { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalResponsesSource))] +#endif + public bool IsEvalResponsesSource => EvalResponsesSource != null; + + /// + /// + /// + public static implicit operator Source3(global::tryAGI.OpenAI.EvalResponsesSource value) => new Source3((global::tryAGI.OpenAI.EvalResponsesSource?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalResponsesSource?(Source3 @this) => @this.EvalResponsesSource; + + /// + /// + /// + public Source3(global::tryAGI.OpenAI.EvalResponsesSource? value) + { + EvalResponsesSource = value; + } + + /// + /// + /// + public Source3( + global::tryAGI.OpenAI.EvalJsonlFileContentSource? evalJsonlFileContentSource, + global::tryAGI.OpenAI.EvalJsonlFileIdSource? evalJsonlFileIdSource, + global::tryAGI.OpenAI.EvalResponsesSource? evalResponsesSource + ) + { + EvalJsonlFileContentSource = evalJsonlFileContentSource; + EvalJsonlFileIdSource = evalJsonlFileIdSource; + EvalResponsesSource = evalResponsesSource; + } + + /// + /// + /// + public object? Object => + EvalResponsesSource as object ?? + EvalJsonlFileIdSource as object ?? + EvalJsonlFileContentSource as object + ; + + /// + /// + /// + public override string? ToString() => + EvalJsonlFileContentSource?.ToString() ?? + EvalJsonlFileIdSource?.ToString() ?? + EvalResponsesSource?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsEvalJsonlFileContentSource || IsEvalJsonlFileIdSource || IsEvalResponsesSource; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? evalJsonlFileContentSource = null, + global::System.Func? evalJsonlFileIdSource = null, + global::System.Func? evalResponsesSource = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsEvalJsonlFileContentSource && evalJsonlFileContentSource != null) + { + return evalJsonlFileContentSource(EvalJsonlFileContentSource!); + } + else if (IsEvalJsonlFileIdSource && evalJsonlFileIdSource != null) + { + return evalJsonlFileIdSource(EvalJsonlFileIdSource!); + } + else if (IsEvalResponsesSource && evalResponsesSource != null) + { + return evalResponsesSource(EvalResponsesSource!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? evalJsonlFileContentSource = null, + global::System.Action? evalJsonlFileIdSource = null, + global::System.Action? evalResponsesSource = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsEvalJsonlFileContentSource) + { + evalJsonlFileContentSource?.Invoke(EvalJsonlFileContentSource!); + } + else if (IsEvalJsonlFileIdSource) + { + evalJsonlFileIdSource?.Invoke(EvalJsonlFileIdSource!); + } + else if (IsEvalResponsesSource) + { + evalResponsesSource?.Invoke(EvalResponsesSource!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + EvalJsonlFileContentSource, + typeof(global::tryAGI.OpenAI.EvalJsonlFileContentSource), + EvalJsonlFileIdSource, + typeof(global::tryAGI.OpenAI.EvalJsonlFileIdSource), + EvalResponsesSource, + typeof(global::tryAGI.OpenAI.EvalResponsesSource), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Source3 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalJsonlFileContentSource, other.EvalJsonlFileContentSource) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalJsonlFileIdSource, other.EvalJsonlFileIdSource) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalResponsesSource, other.EvalResponsesSource) + ; + } + + /// + /// + /// + public static bool operator ==(Source3 obj1, Source3 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Source3 obj1, Source3 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Source3 o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs index 289599ec..d38ac4ff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs @@ -104,7 +104,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsValue1 || IsValue2; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStream.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStream.Json.g.cs new file mode 100644 index 00000000..c1757fa0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStream.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class SubmitToolOutputsRunRequestWithoutStream + { + /// + /// 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::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStream? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStream), + jsonSerializerContext) as global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStream; + } + + /// + /// 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::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStream? 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::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStream), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStream; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStream.g.cs new file mode 100644 index 00000000..1d8b259d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStream.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class SubmitToolOutputsRunRequestWithoutStream + { + /// + /// A list of tools for which the outputs are being submitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_outputs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ToolOutputs { 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. + /// + /// + /// A list of tools for which the outputs are being submitted. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SubmitToolOutputsRunRequestWithoutStream( + global::System.Collections.Generic.IList toolOutputs) + { + this.ToolOutputs = toolOutputs ?? throw new global::System.ArgumentNullException(nameof(toolOutputs)); + } + + /// + /// Initializes a new instance of the class. + /// + public SubmitToolOutputsRunRequestWithoutStream() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStreamToolOutput.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStreamToolOutput.Json.g.cs new file mode 100644 index 00000000..c25b5d47 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStreamToolOutput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class SubmitToolOutputsRunRequestWithoutStreamToolOutput + { + /// + /// 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::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStreamToolOutput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStreamToolOutput), + jsonSerializerContext) as global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStreamToolOutput; + } + + /// + /// 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::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStreamToolOutput? 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::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStreamToolOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.SubmitToolOutputsRunRequestWithoutStreamToolOutput; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStreamToolOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStreamToolOutput.g.cs new file mode 100644 index 00000000..26321a3a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SubmitToolOutputsRunRequestWithoutStreamToolOutput.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class SubmitToolOutputsRunRequestWithoutStreamToolOutput + { + /// + /// The output of the tool call to be submitted to continue the run. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public string? Output { get; set; } + + /// + /// The ID of the tool call in the `required_action` object within the run object the output is being submitted for. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] + public string? ToolCallId { 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 output of the tool call to be submitted to continue the run. + /// + /// + /// The ID of the tool call in the `required_action` object within the run object the output is being submitted for. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SubmitToolOutputsRunRequestWithoutStreamToolOutput( + string? output, + string? toolCallId) + { + this.Output = output; + this.ToolCallId = toolCallId; + } + + /// + /// Initializes a new instance of the class. + /// + public SubmitToolOutputsRunRequestWithoutStreamToolOutput() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TemplateItem.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TemplateItem.Json.g.cs new file mode 100644 index 00000000..1c70086d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TemplateItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct TemplateItem + { + /// + /// 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::tryAGI.OpenAI.TemplateItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.TemplateItem), + jsonSerializerContext) as global::tryAGI.OpenAI.TemplateItem?; + } + + /// + /// 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::tryAGI.OpenAI.TemplateItem? 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::tryAGI.OpenAI.TemplateItem), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.TemplateItem?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TemplateItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TemplateItem.g.cs new file mode 100644 index 00000000..72c31e0f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TemplateItem.g.cs @@ -0,0 +1,230 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct TemplateItem : global::System.IEquatable + { + /// + /// A message input to the model with a role indicating instruction following
+ /// hierarchy. Instructions given with the `developer` or `system` role take
+ /// precedence over instructions given with the `user` role. Messages with the
+ /// `assistant` role are presumed to have been generated by the model in previous
+ /// interactions. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EasyInputMessage? EasyInputMessage { get; init; } +#else + public global::tryAGI.OpenAI.EasyInputMessage? EasyInputMessage { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EasyInputMessage))] +#endif + public bool IsEasyInputMessage => EasyInputMessage != null; + + /// + /// + /// + public static implicit operator TemplateItem(global::tryAGI.OpenAI.EasyInputMessage value) => new TemplateItem((global::tryAGI.OpenAI.EasyInputMessage?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EasyInputMessage?(TemplateItem @this) => @this.EasyInputMessage; + + /// + /// + /// + public TemplateItem(global::tryAGI.OpenAI.EasyInputMessage? value) + { + EasyInputMessage = value; + } + + /// + /// A message input to the model with a role indicating instruction following
+ /// hierarchy. Instructions given with the `developer` or `system` role take
+ /// precedence over instructions given with the `user` role. Messages with the
+ /// `assistant` role are presumed to have been generated by the model in previous
+ /// interactions. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalItem? Eval { get; init; } +#else + public global::tryAGI.OpenAI.EvalItem? Eval { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Eval))] +#endif + public bool IsEval => Eval != null; + + /// + /// + /// + public static implicit operator TemplateItem(global::tryAGI.OpenAI.EvalItem value) => new TemplateItem((global::tryAGI.OpenAI.EvalItem?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalItem?(TemplateItem @this) => @this.Eval; + + /// + /// + /// + public TemplateItem(global::tryAGI.OpenAI.EvalItem? value) + { + Eval = value; + } + + /// + /// + /// + public TemplateItem( + global::tryAGI.OpenAI.EasyInputMessage? easyInputMessage, + global::tryAGI.OpenAI.EvalItem? eval + ) + { + EasyInputMessage = easyInputMessage; + Eval = eval; + } + + /// + /// + /// + public object? Object => + Eval as object ?? + EasyInputMessage as object + ; + + /// + /// + /// + public override string? ToString() => + EasyInputMessage?.ToString() ?? + Eval?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsEasyInputMessage || IsEval; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? easyInputMessage = null, + global::System.Func? eval = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsEasyInputMessage && easyInputMessage != null) + { + return easyInputMessage(EasyInputMessage!); + } + else if (IsEval && eval != null) + { + return eval(Eval!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? easyInputMessage = null, + global::System.Action? eval = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsEasyInputMessage) + { + easyInputMessage?.Invoke(EasyInputMessage!); + } + else if (IsEval) + { + eval?.Invoke(Eval!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + EasyInputMessage, + typeof(global::tryAGI.OpenAI.EasyInputMessage), + Eval, + typeof(global::tryAGI.OpenAI.EvalItem), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(TemplateItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(EasyInputMessage, other.EasyInputMessage) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Eval, other.Eval) + ; + } + + /// + /// + /// + public static bool operator ==(TemplateItem obj1, TemplateItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(TemplateItem obj1, TemplateItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is TemplateItem o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TestingCriteriaItem.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TestingCriteriaItem.Json.g.cs new file mode 100644 index 00000000..2acd0ef6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TestingCriteriaItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct TestingCriteriaItem + { + /// + /// 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::tryAGI.OpenAI.TestingCriteriaItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.TestingCriteriaItem), + jsonSerializerContext) as global::tryAGI.OpenAI.TestingCriteriaItem?; + } + + /// + /// 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::tryAGI.OpenAI.TestingCriteriaItem? 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::tryAGI.OpenAI.TestingCriteriaItem), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.TestingCriteriaItem?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TestingCriteriaItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TestingCriteriaItem.g.cs new file mode 100644 index 00000000..747aaa60 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TestingCriteriaItem.g.cs @@ -0,0 +1,379 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct TestingCriteriaItem : global::System.IEquatable + { + /// + /// A LabelModelGrader object which uses a model to assign labels to each item
+ /// in the evaluation. + ///
+#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? CreateEvalLabelModelGrader { get; init; } +#else + public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? CreateEvalLabelModelGrader { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateEvalLabelModelGrader))] +#endif + public bool IsCreateEvalLabelModelGrader => CreateEvalLabelModelGrader != null; + + /// + /// + /// + public static implicit operator TestingCriteriaItem(global::tryAGI.OpenAI.CreateEvalLabelModelGrader value) => new TestingCriteriaItem((global::tryAGI.OpenAI.CreateEvalLabelModelGrader?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CreateEvalLabelModelGrader?(TestingCriteriaItem @this) => @this.CreateEvalLabelModelGrader; + + /// + /// + /// + public TestingCriteriaItem(global::tryAGI.OpenAI.CreateEvalLabelModelGrader? value) + { + CreateEvalLabelModelGrader = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalGraderStringCheck? EvalGraderStringCheck { get; init; } +#else + public global::tryAGI.OpenAI.EvalGraderStringCheck? EvalGraderStringCheck { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalGraderStringCheck))] +#endif + public bool IsEvalGraderStringCheck => EvalGraderStringCheck != null; + + /// + /// + /// + public static implicit operator TestingCriteriaItem(global::tryAGI.OpenAI.EvalGraderStringCheck value) => new TestingCriteriaItem((global::tryAGI.OpenAI.EvalGraderStringCheck?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalGraderStringCheck?(TestingCriteriaItem @this) => @this.EvalGraderStringCheck; + + /// + /// + /// + public TestingCriteriaItem(global::tryAGI.OpenAI.EvalGraderStringCheck? value) + { + EvalGraderStringCheck = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalGraderTextSimilarity? EvalGraderTextSimilarity { get; init; } +#else + public global::tryAGI.OpenAI.EvalGraderTextSimilarity? EvalGraderTextSimilarity { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalGraderTextSimilarity))] +#endif + public bool IsEvalGraderTextSimilarity => EvalGraderTextSimilarity != null; + + /// + /// + /// + public static implicit operator TestingCriteriaItem(global::tryAGI.OpenAI.EvalGraderTextSimilarity value) => new TestingCriteriaItem((global::tryAGI.OpenAI.EvalGraderTextSimilarity?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalGraderTextSimilarity?(TestingCriteriaItem @this) => @this.EvalGraderTextSimilarity; + + /// + /// + /// + public TestingCriteriaItem(global::tryAGI.OpenAI.EvalGraderTextSimilarity? value) + { + EvalGraderTextSimilarity = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalGraderPython? EvalGraderPython { get; init; } +#else + public global::tryAGI.OpenAI.EvalGraderPython? EvalGraderPython { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalGraderPython))] +#endif + public bool IsEvalGraderPython => EvalGraderPython != null; + + /// + /// + /// + public static implicit operator TestingCriteriaItem(global::tryAGI.OpenAI.EvalGraderPython value) => new TestingCriteriaItem((global::tryAGI.OpenAI.EvalGraderPython?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalGraderPython?(TestingCriteriaItem @this) => @this.EvalGraderPython; + + /// + /// + /// + public TestingCriteriaItem(global::tryAGI.OpenAI.EvalGraderPython? value) + { + EvalGraderPython = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.EvalGraderScoreModel? EvalGraderScoreModel { get; init; } +#else + public global::tryAGI.OpenAI.EvalGraderScoreModel? EvalGraderScoreModel { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalGraderScoreModel))] +#endif + public bool IsEvalGraderScoreModel => EvalGraderScoreModel != null; + + /// + /// + /// + public static implicit operator TestingCriteriaItem(global::tryAGI.OpenAI.EvalGraderScoreModel value) => new TestingCriteriaItem((global::tryAGI.OpenAI.EvalGraderScoreModel?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.EvalGraderScoreModel?(TestingCriteriaItem @this) => @this.EvalGraderScoreModel; + + /// + /// + /// + public TestingCriteriaItem(global::tryAGI.OpenAI.EvalGraderScoreModel? value) + { + EvalGraderScoreModel = value; + } + + /// + /// + /// + public TestingCriteriaItem( + global::tryAGI.OpenAI.CreateEvalLabelModelGrader? createEvalLabelModelGrader, + global::tryAGI.OpenAI.EvalGraderStringCheck? evalGraderStringCheck, + global::tryAGI.OpenAI.EvalGraderTextSimilarity? evalGraderTextSimilarity, + global::tryAGI.OpenAI.EvalGraderPython? evalGraderPython, + global::tryAGI.OpenAI.EvalGraderScoreModel? evalGraderScoreModel + ) + { + CreateEvalLabelModelGrader = createEvalLabelModelGrader; + EvalGraderStringCheck = evalGraderStringCheck; + EvalGraderTextSimilarity = evalGraderTextSimilarity; + EvalGraderPython = evalGraderPython; + EvalGraderScoreModel = evalGraderScoreModel; + } + + /// + /// + /// + public object? Object => + EvalGraderScoreModel as object ?? + EvalGraderPython as object ?? + EvalGraderTextSimilarity as object ?? + EvalGraderStringCheck as object ?? + CreateEvalLabelModelGrader as object + ; + + /// + /// + /// + public override string? ToString() => + CreateEvalLabelModelGrader?.ToString() ?? + EvalGraderStringCheck?.ToString() ?? + EvalGraderTextSimilarity?.ToString() ?? + EvalGraderPython?.ToString() ?? + EvalGraderScoreModel?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCreateEvalLabelModelGrader || IsEvalGraderStringCheck || IsEvalGraderTextSimilarity || IsEvalGraderPython || IsEvalGraderScoreModel; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? createEvalLabelModelGrader = null, + global::System.Func? evalGraderStringCheck = null, + global::System.Func? evalGraderTextSimilarity = null, + global::System.Func? evalGraderPython = null, + global::System.Func? evalGraderScoreModel = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateEvalLabelModelGrader && createEvalLabelModelGrader != null) + { + return createEvalLabelModelGrader(CreateEvalLabelModelGrader!); + } + else if (IsEvalGraderStringCheck && evalGraderStringCheck != null) + { + return evalGraderStringCheck(EvalGraderStringCheck!); + } + else if (IsEvalGraderTextSimilarity && evalGraderTextSimilarity != null) + { + return evalGraderTextSimilarity(EvalGraderTextSimilarity!); + } + else if (IsEvalGraderPython && evalGraderPython != null) + { + return evalGraderPython(EvalGraderPython!); + } + else if (IsEvalGraderScoreModel && evalGraderScoreModel != null) + { + return evalGraderScoreModel(EvalGraderScoreModel!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? createEvalLabelModelGrader = null, + global::System.Action? evalGraderStringCheck = null, + global::System.Action? evalGraderTextSimilarity = null, + global::System.Action? evalGraderPython = null, + global::System.Action? evalGraderScoreModel = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateEvalLabelModelGrader) + { + createEvalLabelModelGrader?.Invoke(CreateEvalLabelModelGrader!); + } + else if (IsEvalGraderStringCheck) + { + evalGraderStringCheck?.Invoke(EvalGraderStringCheck!); + } + else if (IsEvalGraderTextSimilarity) + { + evalGraderTextSimilarity?.Invoke(EvalGraderTextSimilarity!); + } + else if (IsEvalGraderPython) + { + evalGraderPython?.Invoke(EvalGraderPython!); + } + else if (IsEvalGraderScoreModel) + { + evalGraderScoreModel?.Invoke(EvalGraderScoreModel!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CreateEvalLabelModelGrader, + typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGrader), + EvalGraderStringCheck, + typeof(global::tryAGI.OpenAI.EvalGraderStringCheck), + EvalGraderTextSimilarity, + typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity), + EvalGraderPython, + typeof(global::tryAGI.OpenAI.EvalGraderPython), + EvalGraderScoreModel, + typeof(global::tryAGI.OpenAI.EvalGraderScoreModel), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(TestingCriteriaItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateEvalLabelModelGrader, other.CreateEvalLabelModelGrader) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalGraderStringCheck, other.EvalGraderStringCheck) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalGraderTextSimilarity, other.EvalGraderTextSimilarity) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalGraderPython, other.EvalGraderPython) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalGraderScoreModel, other.EvalGraderScoreModel) + ; + } + + /// + /// + /// + public static bool operator ==(TestingCriteriaItem obj1, TestingCriteriaItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(TestingCriteriaItem obj1, TestingCriteriaItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is TestingCriteriaItem o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotation.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotation.Json.g.cs new file mode 100644 index 00000000..0a5f8d0e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotation.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct TextAnnotation + { + /// + /// 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::tryAGI.OpenAI.TextAnnotation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.TextAnnotation), + jsonSerializerContext) as global::tryAGI.OpenAI.TextAnnotation?; + } + + /// + /// 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::tryAGI.OpenAI.TextAnnotation? 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::tryAGI.OpenAI.TextAnnotation), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.TextAnnotation?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotation.g.cs new file mode 100644 index 00000000..296adf89 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotation.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct TextAnnotation : global::System.IEquatable + { + /// + /// A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? MessageContentAnnotationsFileCitationObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? MessageContentAnnotationsFileCitationObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageContentAnnotationsFileCitationObject))] +#endif + public bool IsMessageContentAnnotationsFileCitationObject => MessageContentAnnotationsFileCitationObject != null; + + /// + /// + /// + public static implicit operator TextAnnotation(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject value) => new TextAnnotation((global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject?(TextAnnotation @this) => @this.MessageContentAnnotationsFileCitationObject; + + /// + /// + /// + public TextAnnotation(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? value) + { + MessageContentAnnotationsFileCitationObject = value; + } + + /// + /// A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? MessageContentAnnotationsFilePathObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? MessageContentAnnotationsFilePathObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageContentAnnotationsFilePathObject))] +#endif + public bool IsMessageContentAnnotationsFilePathObject => MessageContentAnnotationsFilePathObject != null; + + /// + /// + /// + public static implicit operator TextAnnotation(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject value) => new TextAnnotation((global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject?(TextAnnotation @this) => @this.MessageContentAnnotationsFilePathObject; + + /// + /// + /// + public TextAnnotation(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? value) + { + MessageContentAnnotationsFilePathObject = value; + } + + /// + /// + /// + public TextAnnotation( + global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? messageContentAnnotationsFileCitationObject, + global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? messageContentAnnotationsFilePathObject + ) + { + MessageContentAnnotationsFileCitationObject = messageContentAnnotationsFileCitationObject; + MessageContentAnnotationsFilePathObject = messageContentAnnotationsFilePathObject; + } + + /// + /// + /// + public object? Object => + MessageContentAnnotationsFilePathObject as object ?? + MessageContentAnnotationsFileCitationObject as object + ; + + /// + /// + /// + public override string? ToString() => + MessageContentAnnotationsFileCitationObject?.ToString() ?? + MessageContentAnnotationsFilePathObject?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsMessageContentAnnotationsFileCitationObject || IsMessageContentAnnotationsFilePathObject; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? messageContentAnnotationsFileCitationObject = null, + global::System.Func? messageContentAnnotationsFilePathObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageContentAnnotationsFileCitationObject && messageContentAnnotationsFileCitationObject != null) + { + return messageContentAnnotationsFileCitationObject(MessageContentAnnotationsFileCitationObject!); + } + else if (IsMessageContentAnnotationsFilePathObject && messageContentAnnotationsFilePathObject != null) + { + return messageContentAnnotationsFilePathObject(MessageContentAnnotationsFilePathObject!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? messageContentAnnotationsFileCitationObject = null, + global::System.Action? messageContentAnnotationsFilePathObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageContentAnnotationsFileCitationObject) + { + messageContentAnnotationsFileCitationObject?.Invoke(MessageContentAnnotationsFileCitationObject!); + } + else if (IsMessageContentAnnotationsFilePathObject) + { + messageContentAnnotationsFilePathObject?.Invoke(MessageContentAnnotationsFilePathObject!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + MessageContentAnnotationsFileCitationObject, + typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject), + MessageContentAnnotationsFilePathObject, + typeof(global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(TextAnnotation other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageContentAnnotationsFileCitationObject, other.MessageContentAnnotationsFileCitationObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageContentAnnotationsFilePathObject, other.MessageContentAnnotationsFilePathObject) + ; + } + + /// + /// + /// + public static bool operator ==(TextAnnotation obj1, TextAnnotation obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(TextAnnotation obj1, TextAnnotation obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is TextAnnotation o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDelta.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDelta.Json.g.cs new file mode 100644 index 00000000..9708fa3e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct TextAnnotationDelta + { + /// + /// 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::tryAGI.OpenAI.TextAnnotationDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.TextAnnotationDelta), + jsonSerializerContext) as global::tryAGI.OpenAI.TextAnnotationDelta?; + } + + /// + /// 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::tryAGI.OpenAI.TextAnnotationDelta? 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::tryAGI.OpenAI.TextAnnotationDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.TextAnnotationDelta?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDelta.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDelta.g.cs new file mode 100644 index 00000000..74a3231c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDelta.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct TextAnnotationDelta : global::System.IEquatable + { + /// + /// A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? MessageContentAnnotationsFileCitationObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? MessageContentAnnotationsFileCitationObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageContentAnnotationsFileCitationObject))] +#endif + public bool IsMessageContentAnnotationsFileCitationObject => MessageContentAnnotationsFileCitationObject != null; + + /// + /// + /// + public static implicit operator TextAnnotationDelta(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject value) => new TextAnnotationDelta((global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject?(TextAnnotationDelta @this) => @this.MessageContentAnnotationsFileCitationObject; + + /// + /// + /// + public TextAnnotationDelta(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? value) + { + MessageContentAnnotationsFileCitationObject = value; + } + + /// + /// A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? MessageContentAnnotationsFilePathObject { get; init; } +#else + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? MessageContentAnnotationsFilePathObject { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageContentAnnotationsFilePathObject))] +#endif + public bool IsMessageContentAnnotationsFilePathObject => MessageContentAnnotationsFilePathObject != null; + + /// + /// + /// + public static implicit operator TextAnnotationDelta(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject value) => new TextAnnotationDelta((global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject?(TextAnnotationDelta @this) => @this.MessageContentAnnotationsFilePathObject; + + /// + /// + /// + public TextAnnotationDelta(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? value) + { + MessageContentAnnotationsFilePathObject = value; + } + + /// + /// + /// + public TextAnnotationDelta( + global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? messageContentAnnotationsFileCitationObject, + global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? messageContentAnnotationsFilePathObject + ) + { + MessageContentAnnotationsFileCitationObject = messageContentAnnotationsFileCitationObject; + MessageContentAnnotationsFilePathObject = messageContentAnnotationsFilePathObject; + } + + /// + /// + /// + public object? Object => + MessageContentAnnotationsFilePathObject as object ?? + MessageContentAnnotationsFileCitationObject as object + ; + + /// + /// + /// + public override string? ToString() => + MessageContentAnnotationsFileCitationObject?.ToString() ?? + MessageContentAnnotationsFilePathObject?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsMessageContentAnnotationsFileCitationObject || IsMessageContentAnnotationsFilePathObject; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? messageContentAnnotationsFileCitationObject = null, + global::System.Func? messageContentAnnotationsFilePathObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageContentAnnotationsFileCitationObject && messageContentAnnotationsFileCitationObject != null) + { + return messageContentAnnotationsFileCitationObject(MessageContentAnnotationsFileCitationObject!); + } + else if (IsMessageContentAnnotationsFilePathObject && messageContentAnnotationsFilePathObject != null) + { + return messageContentAnnotationsFilePathObject(MessageContentAnnotationsFilePathObject!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? messageContentAnnotationsFileCitationObject = null, + global::System.Action? messageContentAnnotationsFilePathObject = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsMessageContentAnnotationsFileCitationObject) + { + messageContentAnnotationsFileCitationObject?.Invoke(MessageContentAnnotationsFileCitationObject!); + } + else if (IsMessageContentAnnotationsFilePathObject) + { + messageContentAnnotationsFilePathObject?.Invoke(MessageContentAnnotationsFilePathObject!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + MessageContentAnnotationsFileCitationObject, + typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject), + MessageContentAnnotationsFilePathObject, + typeof(global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(TextAnnotationDelta other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageContentAnnotationsFileCitationObject, other.MessageContentAnnotationsFileCitationObject) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageContentAnnotationsFilePathObject, other.MessageContentAnnotationsFilePathObject) + ; + } + + /// + /// + /// + public static bool operator ==(TextAnnotationDelta obj1, TextAnnotationDelta obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(TextAnnotationDelta obj1, TextAnnotationDelta obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is TextAnnotationDelta o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDeltaDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDeltaDiscriminator.Json.g.cs new file mode 100644 index 00000000..2b1f7211 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDeltaDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class TextAnnotationDeltaDiscriminator + { + /// + /// 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::tryAGI.OpenAI.TextAnnotationDeltaDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.TextAnnotationDeltaDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.TextAnnotationDeltaDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.TextAnnotationDeltaDiscriminator? 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::tryAGI.OpenAI.TextAnnotationDeltaDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.TextAnnotationDeltaDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDeltaDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDeltaDiscriminator.g.cs new file mode 100644 index 00000000..d4d76ce3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDeltaDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class TextAnnotationDeltaDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 TextAnnotationDeltaDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public TextAnnotationDeltaDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDiscriminator.Json.g.cs new file mode 100644 index 00000000..e2097535 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class TextAnnotationDiscriminator + { + /// + /// 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::tryAGI.OpenAI.TextAnnotationDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.TextAnnotationDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.TextAnnotationDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.TextAnnotationDiscriminator? 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::tryAGI.OpenAI.TextAnnotationDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.TextAnnotationDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDiscriminator.g.cs new file mode 100644 index 00000000..a7c07456 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextAnnotationDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class TextAnnotationDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 TextAnnotationDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public TextAnnotationDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs index 55f1cd4d..ae0401f0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs @@ -8,7 +8,7 @@ namespace tryAGI.OpenAI /// An object specifying the format that the model must output.
/// Configuring `{ "type": "json_schema" }` enables Structured Outputs,
/// which ensures the model will match your supplied JSON schema. Learn more in the
- /// [Structured Outputs guide](/docs/guides/structured-outputs).
+ /// [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
/// The default format is `{ "type": "text" }` with no additional options.
/// **Not recommended for gpt-4o and newer models:**
/// Setting to `{ "type": "json_object" }` enables the older JSON mode, which
@@ -54,7 +54,7 @@ public TextResponseFormatConfiguration(global::tryAGI.OpenAI.ResponseFormatText? /// /// JSON Schema response format. Used to generate structured JSON responses.
- /// Learn more about [Structured Outputs](/docs/guides/structured-outputs). + /// Learn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs). ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Value2 { get; init; } @@ -163,7 +163,7 @@ Value1 as object ///
public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 || !IsValue1 && IsValue2 && !IsValue3 || !IsValue1 && !IsValue2 && IsValue3; + return IsValue1 || IsValue2 || IsValue3; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfigurationDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfigurationDiscriminator.Json.g.cs new file mode 100644 index 00000000..a5298070 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfigurationDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class TextResponseFormatConfigurationDiscriminator + { + /// + /// 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::tryAGI.OpenAI.TextResponseFormatConfigurationDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.TextResponseFormatConfigurationDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.TextResponseFormatConfigurationDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.TextResponseFormatConfigurationDiscriminator? 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::tryAGI.OpenAI.TextResponseFormatConfigurationDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.TextResponseFormatConfigurationDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfigurationDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfigurationDiscriminator.g.cs new file mode 100644 index 00000000..303aefe2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfigurationDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class TextResponseFormatConfigurationDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 TextResponseFormatConfigurationDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public TextResponseFormatConfigurationDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatJsonSchema.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatJsonSchema.g.cs index 07e17164..aeb6a962 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatJsonSchema.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatJsonSchema.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// JSON Schema response format. Used to generate structured JSON responses.
- /// Learn more about [Structured Outputs](/docs/guides/structured-outputs). + /// Learn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs). ///
public sealed partial class TextResponseFormatJsonSchema { @@ -37,7 +37,7 @@ public sealed partial class TextResponseFormatJsonSchema /// If set to true, the model will always follow the exact schema defined
/// in the `schema` field. Only a subset of JSON Schema is supported when
/// `strict` is `true`. To learn more, read the [Structured Outputs
- /// guide](/docs/guides/structured-outputs).
+ /// guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("strict")] @@ -76,7 +76,7 @@ public sealed partial class TextResponseFormatJsonSchema /// If set to true, the model will always follow the exact schema defined
/// in the `schema` field. Only a subset of JSON Schema is supported when
/// `strict` is `true`. To learn more, read the [Structured Outputs
- /// guide](/docs/guides/structured-outputs).
+ /// guide](https://platform.openai.com/docs/guides/structured-outputs).
/// Default Value: false /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObject.g.cs index e8a49034..ea1aaf25 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObject.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Represents a thread that contains [messages](/docs/api-reference/messages). + /// Represents a thread that contains [messages](https://platform.openai.com/docs/api-reference/messages). /// public sealed partial class ThreadObject { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObjectToolResourcesCodeInterpreter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObjectToolResourcesCodeInterpreter.g.cs index beea0e95..12e9ebca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObjectToolResourcesCodeInterpreter.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObjectToolResourcesCodeInterpreter.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class ThreadObjectToolResourcesCodeInterpreter { /// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] public global::System.Collections.Generic.IList? FileIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class ThreadObjectToolResourcesCodeInterpreter /// Initializes a new instance of the class. /// /// - /// A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. + /// A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObjectToolResourcesFileSearch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObjectToolResourcesFileSearch.g.cs index 447ae84b..950f2c4b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObjectToolResourcesFileSearch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadObjectToolResourcesFileSearch.g.cs @@ -9,7 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class ThreadObjectToolResourcesFileSearch { /// - /// The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. + /// The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_ids")] public global::System.Collections.Generic.IList? VectorStoreIds { get; set; } @@ -24,7 +24,7 @@ public sealed partial class ThreadObjectToolResourcesFileSearch /// Initializes a new instance of the class. /// /// - /// The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. + /// The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs index 041b40d1..0fb96ae8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs @@ -10,7 +10,7 @@ namespace tryAGI.OpenAI public readonly partial struct ThreadStreamEvent : global::System.IEquatable { /// - /// Occurs when a new [thread](/docs/api-reference/threads/object) is created. + /// Occurs when a new [thread](https://platform.openai.com/docs/api-reference/threads/object) is created. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Value1 { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventDiscriminator.Json.g.cs new file mode 100644 index 00000000..345244d2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ThreadStreamEventDiscriminator + { + /// + /// 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::tryAGI.OpenAI.ThreadStreamEventDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ThreadStreamEventDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.ThreadStreamEventDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.ThreadStreamEventDiscriminator? 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::tryAGI.OpenAI.ThreadStreamEventDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ThreadStreamEventDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventDiscriminator.g.cs new file mode 100644 index 00000000..d93d9bf6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ThreadStreamEventDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event")] + public string? Event { 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 ThreadStreamEventDiscriminator( + string? @event) + { + this.Event = @event; + } + + /// + /// Initializes a new instance of the class. + /// + public ThreadStreamEventDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventVariant1.g.cs index 951d69f1..90955aff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEventVariant1.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Occurs when a new [thread](/docs/api-reference/threads/object) is created. + /// Occurs when a new [thread](https://platform.openai.com/docs/api-reference/threads/object) is created. /// public sealed partial class ThreadStreamEventVariant1 { /// - /// Represents a thread that contains [messages](/docs/api-reference/messages). + /// Represents a thread that contains [messages](https://platform.openai.com/docs/api-reference/messages). /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] @@ -38,7 +38,7 @@ public sealed partial class ThreadStreamEventVariant1 /// Initializes a new instance of the class. /// /// - /// Represents a thread that contains [messages](/docs/api-reference/messages). + /// Represents a thread that contains [messages](https://platform.openai.com/docs/api-reference/messages). /// /// /// Whether to enable input audio transcription. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs index eaf851fd..ce35d441 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs @@ -151,7 +151,7 @@ public Tool(global::tryAGI.OpenAI.ComputerUsePreviewTool? value) /// /// Give the model access to additional tools via remote Model Context Protocol
- /// (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp). + /// (MCP) servers. [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp). ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.MCPTool? MCP { get; init; } @@ -347,7 +347,7 @@ Function as object /// public bool Validate() { - return IsFunction && !IsFileSearch && !IsWebSearchPreview && !IsComputerUsePreview && !IsMCP && !IsCodeInterpreter && !IsImageGen && !IsLocalShell || !IsFunction && IsFileSearch && !IsWebSearchPreview && !IsComputerUsePreview && !IsMCP && !IsCodeInterpreter && !IsImageGen && !IsLocalShell || !IsFunction && !IsFileSearch && IsWebSearchPreview && !IsComputerUsePreview && !IsMCP && !IsCodeInterpreter && !IsImageGen && !IsLocalShell || !IsFunction && !IsFileSearch && !IsWebSearchPreview && IsComputerUsePreview && !IsMCP && !IsCodeInterpreter && !IsImageGen && !IsLocalShell || !IsFunction && !IsFileSearch && !IsWebSearchPreview && !IsComputerUsePreview && IsMCP && !IsCodeInterpreter && !IsImageGen && !IsLocalShell || !IsFunction && !IsFileSearch && !IsWebSearchPreview && !IsComputerUsePreview && !IsMCP && IsCodeInterpreter && !IsImageGen && !IsLocalShell || !IsFunction && !IsFileSearch && !IsWebSearchPreview && !IsComputerUsePreview && !IsMCP && !IsCodeInterpreter && IsImageGen && !IsLocalShell || !IsFunction && !IsFileSearch && !IsWebSearchPreview && !IsComputerUsePreview && !IsMCP && !IsCodeInterpreter && !IsImageGen && IsLocalShell; + return IsFunction || IsFileSearch || IsWebSearchPreview || IsComputerUsePreview || IsMCP || IsCodeInterpreter || IsImageGen || IsLocalShell; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceTypes.g.cs index 8519485e..b58e88db 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceTypes.g.cs @@ -5,13 +5,13 @@ namespace tryAGI.OpenAI { /// /// Indicates that the model should use a built-in tool to generate a response.
- /// [Learn more about built-in tools](/docs/guides/tools). + /// [Learn more about built-in tools](https://platform.openai.com/docs/guides/tools). ///
public sealed partial class ToolChoiceTypes { /// /// The type of hosted tool the model should to use. Learn more about
- /// [built-in tools](/docs/guides/tools).
+ /// [built-in tools](https://platform.openai.com/docs/guides/tools).
/// Allowed values are:
/// - `file_search`
/// - `web_search_preview`
@@ -35,7 +35,7 @@ public sealed partial class ToolChoiceTypes ///
/// /// The type of hosted tool the model should to use. Learn more about
- /// [built-in tools](/docs/guides/tools).
+ /// [built-in tools](https://platform.openai.com/docs/guides/tools).
/// Allowed values are:
/// - `file_search`
/// - `web_search_preview`
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceTypesType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceTypesType.g.cs index ff463b13..39a05c11 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceTypesType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceTypesType.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// /// The type of hosted tool the model should to use. Learn more about
- /// [built-in tools](/docs/guides/tools).
+ /// [built-in tools](https://platform.openai.com/docs/guides/tools).
/// Allowed values are:
/// - `file_search`
/// - `web_search_preview`
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem.Json.g.cs new file mode 100644 index 00000000..096e2d2d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct ToolsItem + { + /// + /// 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::tryAGI.OpenAI.ToolsItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ToolsItem), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolsItem?; + } + + /// + /// 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::tryAGI.OpenAI.ToolsItem? 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::tryAGI.OpenAI.ToolsItem), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolsItem?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem.g.cs new file mode 100644 index 00000000..0c2b59be --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem.g.cs @@ -0,0 +1,222 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public readonly partial struct ToolsItem : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.AssistantToolsCode? AssistantCode { get; init; } +#else + public global::tryAGI.OpenAI.AssistantToolsCode? AssistantCode { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantCode))] +#endif + public bool IsAssistantCode => AssistantCode != null; + + /// + /// + /// + public static implicit operator ToolsItem(global::tryAGI.OpenAI.AssistantToolsCode value) => new ToolsItem((global::tryAGI.OpenAI.AssistantToolsCode?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.AssistantToolsCode?(ToolsItem @this) => @this.AssistantCode; + + /// + /// + /// + public ToolsItem(global::tryAGI.OpenAI.AssistantToolsCode? value) + { + AssistantCode = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly? AssistantFileSearchTypeOnly { get; init; } +#else + public global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly? AssistantFileSearchTypeOnly { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFileSearchTypeOnly))] +#endif + public bool IsAssistantFileSearchTypeOnly => AssistantFileSearchTypeOnly != null; + + /// + /// + /// + public static implicit operator ToolsItem(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly value) => new ToolsItem((global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly?(ToolsItem @this) => @this.AssistantFileSearchTypeOnly; + + /// + /// + /// + public ToolsItem(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly? value) + { + AssistantFileSearchTypeOnly = value; + } + + /// + /// + /// + public ToolsItem( + global::tryAGI.OpenAI.AssistantToolsCode? assistantCode, + global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly? assistantFileSearchTypeOnly + ) + { + AssistantCode = assistantCode; + AssistantFileSearchTypeOnly = assistantFileSearchTypeOnly; + } + + /// + /// + /// + public object? Object => + AssistantFileSearchTypeOnly as object ?? + AssistantCode as object + ; + + /// + /// + /// + public override string? ToString() => + AssistantCode?.ToString() ?? + AssistantFileSearchTypeOnly?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsAssistantCode || IsAssistantFileSearchTypeOnly; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? assistantCode = null, + global::System.Func? assistantFileSearchTypeOnly = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAssistantCode && assistantCode != null) + { + return assistantCode(AssistantCode!); + } + else if (IsAssistantFileSearchTypeOnly && assistantFileSearchTypeOnly != null) + { + return assistantFileSearchTypeOnly(AssistantFileSearchTypeOnly!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? assistantCode = null, + global::System.Action? assistantFileSearchTypeOnly = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAssistantCode) + { + assistantCode?.Invoke(AssistantCode!); + } + else if (IsAssistantFileSearchTypeOnly) + { + assistantFileSearchTypeOnly?.Invoke(AssistantFileSearchTypeOnly!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + AssistantCode, + typeof(global::tryAGI.OpenAI.AssistantToolsCode), + AssistantFileSearchTypeOnly, + typeof(global::tryAGI.OpenAI.AssistantToolsFileSearchTypeOnly), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ToolsItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantCode, other.AssistantCode) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFileSearchTypeOnly, other.AssistantFileSearchTypeOnly) + ; + } + + /// + /// + /// + public static bool operator ==(ToolsItem obj1, ToolsItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ToolsItem obj1, ToolsItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ToolsItem o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptTextDeltaEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptTextDeltaEvent.g.cs index 0b8701fc..4633891b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptTextDeltaEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptTextDeltaEvent.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`. + /// Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`. /// public sealed partial class TranscriptTextDeltaEvent { @@ -16,7 +16,7 @@ public sealed partial class TranscriptTextDeltaEvent public required string Delta { get; set; } /// - /// The log probabilities of the delta. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`. + /// The log probabilities of the delta. Only included if you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`. /// [global::System.Text.Json.Serialization.JsonPropertyName("logprobs")] public global::System.Collections.Generic.IList? Logprobs { get; set; } @@ -41,7 +41,7 @@ public sealed partial class TranscriptTextDeltaEvent /// The text delta that was additionally transcribed. /// /// - /// The log probabilities of the delta. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`. + /// The log probabilities of the delta. Only included if you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`. /// /// /// The type of the event. Always `transcript.text.delta`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptTextDoneEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptTextDoneEvent.g.cs index e281dfac..fd328d11 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptTextDoneEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptTextDoneEvent.g.cs @@ -4,12 +4,12 @@ namespace tryAGI.OpenAI { /// - /// Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`. + /// Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`. /// public sealed partial class TranscriptTextDoneEvent { /// - /// The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`. + /// The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`. /// [global::System.Text.Json.Serialization.JsonPropertyName("logprobs")] public global::System.Collections.Generic.IList? Logprobs { get; set; } @@ -44,7 +44,7 @@ public sealed partial class TranscriptTextDoneEvent /// Initializes a new instance of the class. ///
/// - /// The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`. + /// The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`. /// /// /// The text that was transcribed. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs index c17da718..e90f118c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs @@ -5,16 +5,12 @@ namespace tryAGI.OpenAI { /// - /// Controls how the audio is cut into chunks. When set to `"auto"`, the
- /// server first normalizes loudness and then uses voice activity detection (VAD) to
- /// choose boundaries. `server_vad` object can be provided to tweak VAD detection
- /// parameters manually. If unset, the audio is transcribed as a single block. + /// Controls how the audio is cut into chunks. When set to `"auto"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection parameters manually. If unset, the audio is transcribed as a single block. ///
public readonly partial struct TranscriptionChunkingStrategy : global::System.IEquatable { /// - /// Automatically set chunking parameters based on the audio. Must be set to `"auto"`.
- /// Default Value: [auto] + /// Automatically set chunking parameters based on the audio. Must be set to `"auto"`. ///
#if NET6_0_OR_GREATER public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Value1 { get; init; } @@ -116,7 +112,7 @@ Value1 as object ///
public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsValue1 || IsValue2; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategyEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategyEnum.g.cs index e33cf6d1..1080d362 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategyEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategyEnum.g.cs @@ -4,8 +4,7 @@ namespace tryAGI.OpenAI { /// - /// Automatically set chunking parameters based on the audio. Must be set to `"auto"`.
- /// Default Value: [auto] + /// Automatically set chunking parameters based on the audio. Must be set to `"auto"`. ///
public enum TranscriptionChunkingStrategyEnum { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Upload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Upload.g.cs index 0d4bae49..23246076 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Upload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Upload.g.cs @@ -56,10 +56,10 @@ public sealed partial class Upload ///
[global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UploadObjectJsonConverter))] - public global::tryAGI.OpenAI.UploadObject? Object { get; set; } + public global::tryAGI.OpenAI.UploadObject Object { get; set; } /// - /// The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values. + /// The intended purpose of the file. [Please refer here](https://platform.openai.com/docs/api-reference/files/object#files/object-purpose) for acceptable values. /// [global::System.Text.Json.Serialization.JsonPropertyName("purpose")] [global::System.Text.Json.Serialization.JsonRequired] @@ -104,7 +104,7 @@ public sealed partial class Upload /// The object type, which is always "upload". /// /// - /// The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values. + /// The intended purpose of the file. [Please refer here](https://platform.openai.com/docs/api-reference/files/object#files/object-purpose) for acceptable values. /// /// /// The status of the Upload. @@ -121,7 +121,7 @@ public Upload( string purpose, global::tryAGI.OpenAI.UploadStatus status, global::tryAGI.OpenAI.OpenAIFile? file, - global::tryAGI.OpenAI.UploadObject? @object) + global::tryAGI.OpenAI.UploadObject @object) { this.Bytes = bytes; this.CreatedAt = createdAt; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucket.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucket.g.cs index af709efa..8e761448 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucket.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucket.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -29,7 +27,7 @@ public sealed partial class UsageTimeBucket /// [global::System.Text.Json.Serialization.JsonPropertyName("result")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Result { get; set; } + public required global::System.Collections.Generic.IList Result { get; set; } /// /// @@ -56,7 +54,7 @@ public sealed partial class UsageTimeBucket #endif public UsageTimeBucket( int endTime, - global::System.Collections.Generic.IList> result, + global::System.Collections.Generic.IList result, int startTime, global::tryAGI.OpenAI.UsageTimeBucketObject @object) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultItemDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultItemDiscriminator.Json.g.cs new file mode 100644 index 00000000..7002802d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultItemDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class UsageTimeBucketResultItemDiscriminator + { + /// + /// 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::tryAGI.OpenAI.UsageTimeBucketResultItemDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.UsageTimeBucketResultItemDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.UsageTimeBucketResultItemDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.UsageTimeBucketResultItemDiscriminator? 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::tryAGI.OpenAI.UsageTimeBucketResultItemDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.UsageTimeBucketResultItemDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultItemDiscriminator.g.cs new file mode 100644 index 00000000..a1e832e7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultItemDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class UsageTimeBucketResultItemDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + public string? Object { 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 UsageTimeBucketResultItemDiscriminator( + string? @object) + { + this.Object = @object; + } + + /// + /// Initializes a new instance of the class. + /// + public UsageTimeBucketResultItemDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ValidateGraderRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ValidateGraderRequest.g.cs index 02a7d91a..f6edd617 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ValidateGraderRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ValidateGraderRequest.g.cs @@ -14,9 +14,9 @@ public sealed partial class ValidateGraderRequest /// The grader used for the fine-tuning job. /// [global::System.Text.Json.Serialization.JsonPropertyName("grader")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Grader { get; set; } + public required global::tryAGI.OpenAI.AnyOf Grader { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -34,7 +34,7 @@ public sealed partial class ValidateGraderRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ValidateGraderRequest( - global::tryAGI.OpenAI.OneOf grader) + global::tryAGI.OpenAI.AnyOf grader) { this.Grader = grader; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ValidateGraderResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ValidateGraderResponse.g.cs index 41ea0c80..19db148a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ValidateGraderResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ValidateGraderResponse.g.cs @@ -14,8 +14,8 @@ public sealed partial class ValidateGraderResponse /// The grader used for the fine-tuning job. /// [global::System.Text.Json.Serialization.JsonPropertyName("grader")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? Grader { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Grader { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -33,7 +33,7 @@ public sealed partial class ValidateGraderResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ValidateGraderResponse( - global::tryAGI.OpenAI.OneOf? grader) + global::tryAGI.OpenAI.AnyOf? grader) { this.Grader = grader; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileBatchObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileBatchObject.g.cs index cc0d2077..0898e451 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileBatchObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileBatchObject.g.cs @@ -46,7 +46,7 @@ public sealed partial class VectorStoreFileBatchObject public required global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus Status { get; set; } /// - /// The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to. + /// The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) that the [File](https://platform.openai.com/docs/api-reference/files) is attached to. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -75,7 +75,7 @@ public sealed partial class VectorStoreFileBatchObject /// The status of the vector store files batch, which can be either `in_progress`, `completed`, `cancelled` or `failed`. /// /// - /// The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to. + /// The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) that the [File](https://platform.openai.com/docs/api-reference/files) is attached to. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileObject.g.cs index ce94a244..29c92517 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileObject.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI @@ -24,8 +22,8 @@ public sealed partial class VectorStoreFileObject /// The strategy used to chunk the file. /// [global::System.Text.Json.Serialization.JsonPropertyName("chunking_strategy")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? ChunkingStrategy { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyResponseJsonConverter))] + public global::tryAGI.OpenAI.ChunkingStrategyResponse? ChunkingStrategy { get; set; } /// /// The Unix timestamp (in seconds) for when the vector store file was created. @@ -72,7 +70,7 @@ public sealed partial class VectorStoreFileObject public required int UsageBytes { get; set; } /// - /// The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to. + /// The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) that the [File](https://platform.openai.com/docs/api-reference/files) is attached to. /// [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -116,7 +114,7 @@ public sealed partial class VectorStoreFileObject /// The total vector store usage in bytes. Note that this may be different from the original file size. /// /// - /// The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to. + /// The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) that the [File](https://platform.openai.com/docs/api-reference/files) is attached to. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -129,7 +127,7 @@ public VectorStoreFileObject( int usageBytes, string vectorStoreId, object? attributes, - global::tryAGI.OpenAI.OneOf? chunkingStrategy, + global::tryAGI.OpenAI.ChunkingStrategyResponse? chunkingStrategy, global::tryAGI.OpenAI.VectorStoreFileObjectObject @object) { this.CreatedAt = createdAt; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequest.g.cs index 86789cbb..4fa9a6e4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequest.g.cs @@ -14,8 +14,8 @@ public sealed partial class VectorStoreSearchRequest /// A filter to apply based on file attributes. /// [global::System.Text.Json.Serialization.JsonPropertyName("filters")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] - public global::tryAGI.OpenAI.OneOf? Filters { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + public global::tryAGI.OpenAI.AnyOf? Filters { get; set; } /// /// The maximum number of results to return. This number should be between 1 and 50 inclusive.
@@ -28,9 +28,9 @@ public sealed partial class VectorStoreSearchRequest /// A query string for a search ///
[global::System.Text.Json.Serialization.JsonPropertyName("query")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf> Query { get; set; } + public required global::tryAGI.OpenAI.AnyOf> Query { get; set; } /// /// Ranking options for search. @@ -75,8 +75,8 @@ public sealed partial class VectorStoreSearchRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public VectorStoreSearchRequest( - global::tryAGI.OpenAI.OneOf> query, - global::tryAGI.OpenAI.OneOf? filters, + global::tryAGI.OpenAI.AnyOf> query, + global::tryAGI.OpenAI.AnyOf? filters, int? maxNumResults, global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? rankingOptions, bool? rewriteQuery) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequestRankingOptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequestRankingOptions.g.cs index 350d9e6c..e1550f69 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequestRankingOptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequestRankingOptions.g.cs @@ -9,6 +9,7 @@ namespace tryAGI.OpenAI public sealed partial class VectorStoreSearchRequestRankingOptions { /// + /// Enable re-ranking; set to `none` to disable, which can help reduce latency.
/// Default Value: auto ///
[global::System.Text.Json.Serialization.JsonPropertyName("ranker")] @@ -31,6 +32,7 @@ public sealed partial class VectorStoreSearchRequestRankingOptions /// Initializes a new instance of the class. ///
/// + /// Enable re-ranking; set to `none` to disable, which can help reduce latency.
/// Default Value: auto /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequestRankingOptionsRanker.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequestRankingOptionsRanker.g.cs index 14eb93f9..bed1f3dd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequestRankingOptionsRanker.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreSearchRequestRankingOptionsRanker.g.cs @@ -4,10 +4,15 @@ namespace tryAGI.OpenAI { /// + /// Enable re-ranking; set to `none` to disable, which can help reduce latency.
/// Default Value: auto ///
public enum VectorStoreSearchRequestRankingOptionsRanker { + /// + /// + /// + None, /// /// /// @@ -30,6 +35,7 @@ public static string ToValueString(this VectorStoreSearchRequestRankingOptionsRa { return value switch { + VectorStoreSearchRequestRankingOptionsRanker.None => "none", VectorStoreSearchRequestRankingOptionsRanker.Auto => "auto", VectorStoreSearchRequestRankingOptionsRanker.Default20241115 => "default-2024-11-15", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -42,6 +48,7 @@ public static string ToValueString(this VectorStoreSearchRequestRankingOptionsRa { return value switch { + "none" => VectorStoreSearchRequestRankingOptionsRanker.None, "auto" => VectorStoreSearchRequestRankingOptionsRanker.Auto, "default-2024-11-15" => VectorStoreSearchRequestRankingOptionsRanker.Default20241115, _ => null, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCall.g.cs index feaa94e6..074e48c5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCall.g.cs @@ -1,13 +1,11 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace tryAGI.OpenAI { /// /// The results of a web search tool call. See the
- /// [web search guide](/docs/guides/tools-web-search) for more information. + /// [web search guide](https://platform.openai.com/docs/guides/tools-web-search) for more information. ///
public sealed partial class WebSearchToolCall { @@ -16,9 +14,9 @@ public sealed partial class WebSearchToolCall /// Includes details on how the model used the web (search, open_page, find). /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.OneOf Action { get; set; } + public required global::tryAGI.OpenAI.WebSearchToolCallAction Action { get; set; } /// /// The unique ID of the web search tool call. @@ -68,7 +66,7 @@ public sealed partial class WebSearchToolCall [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WebSearchToolCall( - global::tryAGI.OpenAI.OneOf action, + global::tryAGI.OpenAI.WebSearchToolCallAction action, string id, global::tryAGI.OpenAI.WebSearchToolCallStatus status, global::tryAGI.OpenAI.WebSearchToolCallType type) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.Json.g.cs new file mode 100644 index 00000000..8daf75f1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public readonly partial struct WebSearchToolCallAction + { + /// + /// 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::tryAGI.OpenAI.WebSearchToolCallAction? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.WebSearchToolCallAction), + jsonSerializerContext) as global::tryAGI.OpenAI.WebSearchToolCallAction?; + } + + /// + /// 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::tryAGI.OpenAI.WebSearchToolCallAction? 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::tryAGI.OpenAI.WebSearchToolCallAction), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.WebSearchToolCallAction?; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs new file mode 100644 index 00000000..434cecc4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs @@ -0,0 +1,275 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// An object describing the specific action taken in this web search call.
+ /// Includes details on how the model used the web (search, open_page, find). + ///
+ public readonly partial struct WebSearchToolCallAction : global::System.IEquatable + { + /// + /// Action type "search" - Performs a web search query. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.WebSearchActionSearch? Value1 { get; init; } +#else + public global::tryAGI.OpenAI.WebSearchActionSearch? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// + public static implicit operator WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionSearch value) => new WebSearchToolCallAction((global::tryAGI.OpenAI.WebSearchActionSearch?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.WebSearchActionSearch?(WebSearchToolCallAction @this) => @this.Value1; + + /// + /// + /// + public WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionSearch? value) + { + Value1 = value; + } + + /// + /// Action type "open_page" - Opens a specific URL from search results. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Value2 { get; init; } +#else + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// + public static implicit operator WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionOpenPage value) => new WebSearchToolCallAction((global::tryAGI.OpenAI.WebSearchActionOpenPage?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.WebSearchActionOpenPage?(WebSearchToolCallAction @this) => @this.Value2; + + /// + /// + /// + public WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionOpenPage? value) + { + Value2 = value; + } + + /// + /// Action type "find": Searches for a pattern within a loaded page. + /// +#if NET6_0_OR_GREATER + public global::tryAGI.OpenAI.WebSearchActionFind? Value3 { get; init; } +#else + public global::tryAGI.OpenAI.WebSearchActionFind? Value3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] +#endif + public bool IsValue3 => Value3 != null; + + /// + /// + /// + public static implicit operator WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionFind value) => new WebSearchToolCallAction((global::tryAGI.OpenAI.WebSearchActionFind?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.WebSearchActionFind?(WebSearchToolCallAction @this) => @this.Value3; + + /// + /// + /// + public WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionFind? value) + { + Value3 = value; + } + + /// + /// + /// + public WebSearchToolCallAction( + global::tryAGI.OpenAI.WebSearchActionSearch? value1, + global::tryAGI.OpenAI.WebSearchActionOpenPage? value2, + global::tryAGI.OpenAI.WebSearchActionFind? value3 + ) + { + Value1 = value1; + Value2 = value2; + Value3 = value3; + } + + /// + /// + /// + public object? Object => + Value3 as object ?? + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public override string? ToString() => + Value1?.ToString() ?? + Value2?.ToString() ?? + Value3?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 || IsValue2 || IsValue3; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + global::System.Func? value3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + else if (IsValue3 && value3 != null) + { + return value3(Value3!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + global::System.Action? value3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(global::tryAGI.OpenAI.WebSearchActionSearch), + Value2, + typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), + Value3, + typeof(global::tryAGI.OpenAI.WebSearchActionFind), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(WebSearchToolCallAction other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + ; + } + + /// + /// + /// + public static bool operator ==(WebSearchToolCallAction obj1, WebSearchToolCallAction obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(WebSearchToolCallAction obj1, WebSearchToolCallAction obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is WebSearchToolCallAction o && Equals(o); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.Json.g.cs new file mode 100644 index 00000000..cb29f6c3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class WebSearchToolCallActionDiscriminator + { + /// + /// 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::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator), + jsonSerializerContext) as global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator; + } + + /// + /// 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::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? 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::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator; + } + + /// + /// 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/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.g.cs new file mode 100644 index 00000000..5ab75bc2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class WebSearchToolCallActionDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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 WebSearchToolCallActionDiscriminator( + string? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public WebSearchToolCallActionDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs index 31da42c1..e824d6cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteModelResponseContent( ref string content); /// + /// Delete a fine-tuned model
/// Delete a fine-tuned model. You must have the Owner role in your organization to delete a model. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs index 2c77437b..a4e182cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs @@ -20,6 +20,7 @@ partial void ProcessListModelsResponseContent( ref string content); /// + /// List models
/// Lists the currently available models, and provides basic information about each one such as the owner and availability. ///
/// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs index 49bcabd5..f13f8266 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs @@ -22,6 +22,7 @@ partial void ProcessRetrieveModelResponseContent( ref string content); /// + /// Retrieve model
/// Retrieves a model instance, providing basic information about the model such as the owner and permissioning. ///
/// @@ -29,7 +30,7 @@ partial void ProcessRetrieveModelResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RetrieveModelAsync( + public async global::System.Threading.Tasks.Task RetrieveModelAsync( string model, global::System.Threading.CancellationToken cancellationToken = default) { @@ -109,7 +110,7 @@ partial void ProcessRetrieveModelResponseContent( __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.Model14.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.Model16.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +141,7 @@ partial void ProcessRetrieveModelResponseContent( ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.Model14.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.Model16.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs index 5f44bc46..475d491f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs @@ -22,8 +22,9 @@ partial void ProcessCreateModerationResponseContent( ref string content); /// + /// Create moderation
/// Classifies if text and/or image inputs are potentially harmful. Learn
- /// more in the [moderation guide](/docs/guides/moderation). + /// more in the [moderation guide](https://platform.openai.com/docs/guides/moderation). ///
/// /// The token to cancel the operation with @@ -167,8 +168,9 @@ partial void ProcessCreateModerationResponseContent( } /// + /// Create moderation
/// Classifies if text and/or image inputs are potentially harmful. Learn
- /// more in the [moderation guide](/docs/guides/moderation). + /// more in the [moderation guide](https://platform.openai.com/docs/guides/moderation). ///
/// /// Input (or inputs) to classify. Can be a single string, an array of strings, or
@@ -176,15 +178,13 @@ partial void ProcessCreateModerationResponseContent( /// /// /// The content moderation model you would like to use. Learn more in
- /// [the moderation guide](/docs/guides/moderation), and learn about
- /// available models [here](/docs/models#moderation).
- /// Default Value: omni-moderation-latest
- /// Example: omni-moderation-2024-09-26 + /// [the moderation guide](https://platform.openai.com/docs/guides/moderation), and learn about
+ /// available models [here](https://platform.openai.com/docs/models#moderation). /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateModerationAsync( - global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList>> input, + global::tryAGI.OpenAI.AnyOf, global::System.Collections.Generic.IList> input, global::tryAGI.OpenAI.AnyOf? model = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs index a842c8cd..57b91e97 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs @@ -22,8 +22,8 @@ partial void ProcessAdminApiKeysCreateResponseContent( ref string content); /// - /// Create an organization admin API key
- /// Create a new admin-level API key for the organization. + /// Create admin API key
+ /// Create an organization admin API key ///
/// /// The token to cancel the operation with @@ -167,8 +167,8 @@ partial void ProcessAdminApiKeysCreateResponseContent( } /// - /// Create an organization admin API key
- /// Create a new admin-level API key for the organization. + /// Create admin API key
+ /// Create an organization admin API key ///
/// /// Example: New Admin Key diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs index 79f591de..1caa29cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs @@ -22,8 +22,8 @@ partial void ProcessAdminApiKeysDeleteResponseContent( ref string content); /// - /// Delete an organization admin API key
- /// Delete the specified admin API key. + /// Delete admin API key
+ /// Delete an organization admin API key ///
/// /// The ID of the API key to be deleted. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs index 8346ba63..ecb7e245 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs @@ -22,8 +22,8 @@ partial void ProcessAdminApiKeysGetResponseContent( ref string content); /// - /// Retrieve a single organization API key
- /// Get details for a specific organization API key by its ID. + /// Retrieve admin API key
+ /// Retrieve a single organization API key ///
/// /// The ID of the API key. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs index dcf238b4..2c322c50 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs @@ -26,8 +26,8 @@ partial void ProcessAdminApiKeysListResponseContent( ref string content); /// - /// List organization API keys
- /// Retrieve a paginated list of organization admin API keys. + /// List all organization and project API keys.
+ /// List organization API keys ///
/// /// Return keys with IDs that come after this ID in the pagination order. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs index f071f105..593b2772 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs @@ -22,8 +22,8 @@ partial void ProcessCreateContainerResponseContent( ref string content); /// - /// Create Container
- /// Creates a container. + /// Create container
+ /// Create Container ///
/// /// The token to cancel the operation with @@ -167,8 +167,8 @@ partial void ProcessCreateContainerResponseContent( } /// - /// Create Container
- /// Creates a container. + /// Create container
+ /// Create Container ///
/// /// Container expiration time in seconds relative to the 'anchor' time. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs index ad9192ee..aad296a0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs @@ -24,9 +24,9 @@ partial void ProcessCreateContainerFileResponseContent( ref string content); /// + /// Create container file
/// Create a Container File
- /// You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID.
- /// Creates a container file. + /// You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID. ///
/// /// @@ -186,9 +186,9 @@ partial void ProcessCreateContainerFileResponseContent( } /// + /// Create container file
/// Create a Container File
- /// You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID.
- /// Creates a container file. + /// You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID. ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs index 3cd061f6..a8958fd1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs @@ -17,8 +17,8 @@ partial void ProcessDeleteContainerResponse( global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// Delete Container
- /// Delete a container. + /// Delete a container
+ /// Delete Container ///
/// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs index 6371d62b..5d1d43e7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs @@ -19,8 +19,8 @@ partial void ProcessDeleteContainerFileResponse( global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// Delete Container File
- /// Delete a container file. + /// Delete a container file
+ /// Delete Container File ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs index 0f70d6cb..a729ee04 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs @@ -28,8 +28,8 @@ partial void ProcessListContainerFilesResponseContent( ref string content); /// - /// List Container files
- /// Lists container files. + /// List container files
+ /// List Container files ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs index 64fe1a6c..0a0c002e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs @@ -26,8 +26,8 @@ partial void ProcessListContainersResponseContent( ref string content); /// - /// List Containers
- /// Lists containers. + /// List containers
+ /// List Containers ///
/// /// Default Value: 20 diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs index 29ae1e8b..f9e4d195 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs @@ -22,8 +22,8 @@ partial void ProcessRetrieveContainerResponseContent( ref string content); /// - /// Retrieve Container
- /// Retrieves a container. + /// Retrieve container
+ /// Retrieve Container ///
/// /// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs index 6a60c781..7bf1a859 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs @@ -24,8 +24,8 @@ partial void ProcessRetrieveContainerFileResponseContent( ref string content); /// - /// Retrieve Container File
- /// Retrieves a container file. + /// Retrieve container file
+ /// Retrieve Container File ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs index e8e3092d..272109ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs @@ -19,8 +19,8 @@ partial void ProcessRetrieveContainerFileContentResponse( global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// Retrieve Container File Content
- /// Retrieves a container file content. + /// Retrieve container file content
+ /// Retrieve Container File Content ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs index 0c927270..5fbf7183 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs @@ -22,6 +22,7 @@ partial void ProcessArchiveProjectResponseContent( ref string content); /// + /// Archive project
/// Archives a project in the organization. Archived projects cannot be used or updated. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs index 4c412154..3c3070b9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateProjectResponseContent( ref string content); /// + /// Create project
/// Create a new project in the organization. Projects can be created and archived, but cannot be deleted. ///
/// @@ -166,6 +167,7 @@ partial void ProcessCreateProjectResponseContent( } /// + /// Create project
/// Create a new project in the organization. Projects can be created and archived, but cannot be deleted. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs index b1dbb99e..3c614606 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs @@ -24,6 +24,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( ref string content); /// + /// Create project service account
/// Creates a new service account in the project. This also returns an unredacted API key for the service account. ///
/// @@ -209,6 +210,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( } /// + /// Create project service account
/// Creates a new service account in the project. This also returns an unredacted API key for the service account. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs index 54f3360e..6f83c861 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs @@ -24,6 +24,7 @@ partial void ProcessCreateProjectUserResponseContent( ref string content); /// + /// Create project user
/// Adds a user to the project. Users must already be members of the organization to be added to a project. ///
/// @@ -209,6 +210,7 @@ partial void ProcessCreateProjectUserResponseContent( } /// + /// Create project user
/// Adds a user to the project. Users must already be members of the organization to be added to a project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs index 895e93fe..d65fd445 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs @@ -24,6 +24,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( ref string content); /// + /// Delete project API key
/// Deletes an API key from the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs index 8667f42d..22ccbb3f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs @@ -24,6 +24,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( ref string content); /// + /// Delete project service account
/// Deletes a service account from the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs index 7865c81e..15d7ba9a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs @@ -24,6 +24,7 @@ partial void ProcessDeleteProjectUserResponseContent( ref string content); /// + /// Delete project user
/// Deletes a user from the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs index 6726b397..2846a874 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs @@ -26,6 +26,7 @@ partial void ProcessListProjectApiKeysResponseContent( ref string content); /// + /// List project API keys
/// Returns a list of API keys in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs index a1e89ff3..fe782004 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs @@ -28,6 +28,7 @@ partial void ProcessListProjectRateLimitsResponseContent( ref string content); /// + /// List project rate limits
/// Returns the rate limits per model for a project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs index d49aa7c7..1bfb7329 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs @@ -26,6 +26,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( ref string content); /// + /// List project service accounts
/// Returns a list of service accounts in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs index 2cca89b0..a5014fe9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs @@ -26,6 +26,7 @@ partial void ProcessListProjectUsersResponseContent( ref string content); /// + /// List project users
/// Returns a list of users in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs index c0dc2f2f..0d9ad986 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs @@ -26,6 +26,7 @@ partial void ProcessListProjectsResponseContent( ref string content); /// + /// List projects
/// Returns a list of projects. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs index 3e343363..e8a4b68b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs @@ -24,6 +24,7 @@ partial void ProcessModifyProjectResponseContent( ref string content); /// + /// Modify project
/// Modifies a project in the organization. ///
/// @@ -209,6 +210,7 @@ partial void ProcessModifyProjectResponseContent( } /// + /// Modify project
/// Modifies a project in the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs index 16f74106..a46e08f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs @@ -26,6 +26,7 @@ partial void ProcessModifyProjectUserResponseContent( ref string content); /// + /// Modify project user
/// Modifies a user's role in the project. ///
/// @@ -215,6 +216,7 @@ partial void ProcessModifyProjectUserResponseContent( } /// + /// Modify project user
/// Modifies a user's role in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs index 148af42a..c6c3dca6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs @@ -22,6 +22,7 @@ partial void ProcessRetrieveProjectResponseContent( ref string content); /// + /// Retrieve project
/// Retrieves a project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs index 37861e64..5352df28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs @@ -24,6 +24,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( ref string content); /// + /// Retrieve project API key
/// Retrieves an API key in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs index 9daa4403..54ba3f3b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs @@ -24,6 +24,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( ref string content); /// + /// Retrieve project service account
/// Retrieves a service account in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs index b4aa68cf..7bf87c34 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs @@ -24,6 +24,7 @@ partial void ProcessRetrieveProjectUserResponseContent( ref string content); /// + /// Retrieve project user
/// Retrieves a user in the project. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs index efad0c9a..5ac6ca40 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs @@ -26,6 +26,7 @@ partial void ProcessUpdateProjectRateLimitsResponseContent( ref string content); /// + /// Modify project rate limit
/// Updates a project rate limit. ///
/// @@ -215,6 +216,7 @@ partial void ProcessUpdateProjectRateLimitsResponseContent( } /// + /// Modify project rate limit
/// Updates a project rate limit. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeSession.g.cs index f8fd7745..e4897313 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeSession.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateRealtimeSessionResponseContent( ref string content); /// + /// Create session
/// Create an ephemeral API token for use in client-side applications with the
/// Realtime API. Can be configured with the same session parameters as the
/// `session.update` client event.
@@ -171,6 +172,7 @@ partial void ProcessCreateRealtimeSessionResponseContent( } /// + /// Create session
/// Create an ephemeral API token for use in client-side applications with the
/// Realtime API. Can be configured with the same session parameters as the
/// `session.update` client event.
@@ -257,7 +259,7 @@ partial void ProcessCreateRealtimeSessionResponseContent( global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioNoiseReduction? inputAudioNoiseReduction = default, global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? inputAudioTranscription = default, string? instructions = default, - global::tryAGI.OpenAI.OneOf? maxResponseOutputTokens = default, + global::tryAGI.OpenAI.AnyOf? maxResponseOutputTokens = default, global::System.Collections.Generic.IList? modalities = default, global::tryAGI.OpenAI.RealtimeSessionCreateRequestModel? model = default, global::tryAGI.OpenAI.RealtimeSessionCreateRequestOutputAudioFormat? outputAudioFormat = default, @@ -265,7 +267,7 @@ partial void ProcessCreateRealtimeSessionResponseContent( double? temperature = default, string? toolChoice = default, global::System.Collections.Generic.IList? tools = default, - global::tryAGI.OpenAI.OneOf? tracing = default, + global::tryAGI.OpenAI.AnyOf? tracing = default, global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? turnDetection = default, global::tryAGI.OpenAI.VoiceIdsShared? voice = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranscriptionSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranscriptionSession.g.cs index ee30b5df..c9e7f4cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranscriptionSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranscriptionSession.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( ref string content); /// + /// Create transcription session
/// Create an ephemeral API token for use in client-side applications with the
/// Realtime API specifically for realtime transcriptions.
/// Can be configured with the same session parameters as the `transcription_session.update` client event.
@@ -171,6 +172,7 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( } /// + /// Create transcription session
/// Create an ephemeral API token for use in client-side applications with the
/// Realtime API specifically for realtime transcriptions.
/// Can be configured with the same session parameters as the `transcription_session.update` client event.
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs index d394c792..0d804736 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs @@ -22,9 +22,10 @@ partial void ProcessCancelResponseResponseContent( ref string content); /// + /// Cancel a response
/// Cancels a model response with the given ID. Only responses created with
/// the `background` parameter set to `true` can be cancelled.
- /// [Learn more](/docs/guides/background). + /// [Learn more](https://platform.openai.com/docs/guides/background). ///
/// /// Example: resp_677efb5139a88190b512bc3fef8e535d diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs index 8ad5e29c..1b5094c8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs @@ -22,12 +22,13 @@ partial void ProcessCreateResponseResponseContent( ref string content); /// - /// Creates a model response. Provide [text](/docs/guides/text) or
- /// [image](/docs/guides/images) inputs to generate [text](/docs/guides/text)
- /// or [JSON](/docs/guides/structured-outputs) outputs. Have the model call
- /// your own [custom code](/docs/guides/function-calling) or use built-in
- /// [tools](/docs/guides/tools) like [web search](/docs/guides/tools-web-search)
- /// or [file search](/docs/guides/tools-file-search) to use your own data
+ /// Create a model response
+ /// Creates a model response. Provide [text](https://platform.openai.com/docs/guides/text) or
+ /// [image](https://platform.openai.com/docs/guides/images) inputs to generate [text](https://platform.openai.com/docs/guides/text)
+ /// or [JSON](https://platform.openai.com/docs/guides/structured-outputs) outputs. Have the model call
+ /// your own [custom code](https://platform.openai.com/docs/guides/function-calling) or use built-in
+ /// [tools](https://platform.openai.com/docs/guides/tools) like [web search](https://platform.openai.com/docs/guides/tools-web-search)
+ /// or [file search](https://platform.openai.com/docs/guides/tools-file-search) to use your own data
/// as input for the model's response. ///
/// @@ -170,12 +171,13 @@ partial void ProcessCreateResponseResponseContent( } /// - /// Creates a model response. Provide [text](/docs/guides/text) or
- /// [image](/docs/guides/images) inputs to generate [text](/docs/guides/text)
- /// or [JSON](/docs/guides/structured-outputs) outputs. Have the model call
- /// your own [custom code](/docs/guides/function-calling) or use built-in
- /// [tools](/docs/guides/tools) like [web search](/docs/guides/tools-web-search)
- /// or [file search](/docs/guides/tools-file-search) to use your own data
+ /// Create a model response
+ /// Creates a model response. Provide [text](https://platform.openai.com/docs/guides/text) or
+ /// [image](https://platform.openai.com/docs/guides/images) inputs to generate [text](https://platform.openai.com/docs/guides/text)
+ /// or [JSON](https://platform.openai.com/docs/guides/structured-outputs) outputs. Have the model call
+ /// your own [custom code](https://platform.openai.com/docs/guides/function-calling) or use built-in
+ /// [tools](https://platform.openai.com/docs/guides/tools) like [web search](https://platform.openai.com/docs/guides/tools-web-search)
+ /// or [file search](https://platform.openai.com/docs/guides/tools-file-search) to use your own data
/// as input for the model's response. ///
/// The token to cancel the operation with diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs index 35b7eb79..e3282c2e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs @@ -17,6 +17,7 @@ partial void ProcessDeleteResponseResponse( global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// + /// Delete a model response
/// Deletes a model response with the given ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs index 2b30cf9e..7febeddd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs @@ -28,6 +28,7 @@ partial void ProcessGetResponseResponseContent( ref string content); /// + /// Get a model response
/// Retrieves a model response with the given ID. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs index 1b75fc85..786082d3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs @@ -32,6 +32,7 @@ partial void ProcessListInputItemsResponseContent( ref string content); /// + /// List input items
/// Returns a list of input items for a given response. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs index d838e0e8..68373669 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs @@ -24,9 +24,10 @@ partial void ProcessAddUploadPartResponseContent( ref string content); /// - /// Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
+ /// Add upload part
+ /// Adds a [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
/// Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.
- /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete). + /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete). ///
/// /// Example: upload_abc123 @@ -179,9 +180,10 @@ partial void ProcessAddUploadPartResponseContent( } /// - /// Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
+ /// Add upload part
+ /// Adds a [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
/// Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.
- /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete). + /// It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete). ///
/// /// Example: upload_abc123 diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs index f4212a5b..fbfc07ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs @@ -22,6 +22,7 @@ partial void ProcessCancelUploadResponseContent( ref string content); /// + /// Cancel upload
/// Cancels the Upload. No Parts may be added after an Upload is cancelled. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs index 51fe56cf..16580acd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs @@ -24,8 +24,9 @@ partial void ProcessCompleteUploadResponseContent( ref string content); /// - /// Completes the [Upload](/docs/api-reference/uploads/object).
- /// Within the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
+ /// Complete upload
+ /// Completes the [Upload](https://platform.openai.com/docs/api-reference/uploads/object).
+ /// Within the returned Upload object, there is a nested [File](https://platform.openai.com/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
/// You can specify the order of the Parts by passing in an ordered list of the Part IDs.
/// The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed. ///
@@ -177,8 +178,9 @@ partial void ProcessCompleteUploadResponseContent( } /// - /// Completes the [Upload](/docs/api-reference/uploads/object).
- /// Within the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
+ /// Complete upload
+ /// Completes the [Upload](https://platform.openai.com/docs/api-reference/uploads/object).
+ /// Within the returned Upload object, there is a nested [File](https://platform.openai.com/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
/// You can specify the order of the Parts by passing in an ordered list of the Part IDs.
/// The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed. ///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs index 4b468985..28e66142 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs @@ -22,20 +22,21 @@ partial void ProcessCreateUploadResponseContent( ref string content); /// - /// Creates an intermediate [Upload](/docs/api-reference/uploads/object) object
- /// that you can add [Parts](/docs/api-reference/uploads/part-object) to.
+ /// Create upload
+ /// Creates an intermediate [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object
+ /// that you can add [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to.
/// Currently, an Upload can accept at most 8 GB in total and expires after an
/// hour after you create it.
/// Once you complete the Upload, we will create a
- /// [File](/docs/api-reference/files/object) object that contains all the parts
+ /// [File](https://platform.openai.com/docs/api-reference/files/object) object that contains all the parts
/// you uploaded. This File is usable in the rest of our platform as a regular
/// File object.
/// For certain `purpose` values, the correct `mime_type` must be specified.
/// Please refer to documentation for the
- /// [supported MIME types for your use case](/docs/assistants/tools/file-search#supported-files).
+ /// [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files).
/// For guidance on the proper filename extensions for each purpose, please
/// follow the documentation on [creating a
- /// File](/docs/api-reference/files/create). + /// File](https://platform.openai.com/docs/api-reference/files/create). ///
/// /// The token to cancel the operation with @@ -179,20 +180,21 @@ partial void ProcessCreateUploadResponseContent( } /// - /// Creates an intermediate [Upload](/docs/api-reference/uploads/object) object
- /// that you can add [Parts](/docs/api-reference/uploads/part-object) to.
+ /// Create upload
+ /// Creates an intermediate [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object
+ /// that you can add [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to.
/// Currently, an Upload can accept at most 8 GB in total and expires after an
/// hour after you create it.
/// Once you complete the Upload, we will create a
- /// [File](/docs/api-reference/files/object) object that contains all the parts
+ /// [File](https://platform.openai.com/docs/api-reference/files/object) object that contains all the parts
/// you uploaded. This File is usable in the rest of our platform as a regular
/// File object.
/// For certain `purpose` values, the correct `mime_type` must be specified.
/// Please refer to documentation for the
- /// [supported MIME types for your use case](/docs/assistants/tools/file-search#supported-files).
+ /// [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files).
/// For guidance on the proper filename extensions for each purpose, please
/// follow the documentation on [creating a
- /// File](/docs/api-reference/files/create). + /// File](https://platform.openai.com/docs/api-reference/files/create). ///
/// /// The number of bytes in the file you are uploading. @@ -206,7 +208,7 @@ partial void ProcessCreateUploadResponseContent( /// /// /// The intended purpose of the uploaded file.
- /// See the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose). + /// See the [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose). /// /// The token to cancel the operation with /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs index f47d0776..c13e4321 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs @@ -40,6 +40,7 @@ partial void ProcessUsageAudioSpeechesResponseContent( ref string content); /// + /// Audio speeches
/// Get audio speeches usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs index 96d0bc84..34f50997 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs @@ -40,6 +40,7 @@ partial void ProcessUsageAudioTranscriptionsResponseContent( ref string content); /// + /// Audio transcriptions
/// Get audio transcriptions usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs index 806efb81..2db65ffe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs @@ -34,6 +34,7 @@ partial void ProcessUsageCodeInterpreterSessionsResponseContent( ref string content); /// + /// Code interpreter sessions
/// Get code interpreter sessions usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs index dfd33172..962ad882 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs @@ -42,6 +42,7 @@ partial void ProcessUsageCompletionsResponseContent( ref string content); /// + /// Completions
/// Get completions usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs index 20473ef2..7bde06ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs @@ -34,6 +34,7 @@ partial void ProcessUsageCostsResponseContent( ref string content); /// + /// Costs
/// Get costs details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs index 8f6cbe56..d3ea6314 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs @@ -40,6 +40,7 @@ partial void ProcessUsageEmbeddingsResponseContent( ref string content); /// + /// Embeddings
/// Get embeddings usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs index e044f0ee..57c50b55 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs @@ -44,6 +44,7 @@ partial void ProcessUsageImagesResponseContent( ref string content); /// + /// Images
/// Get images usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs index d5d0fbee..25f3c696 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs @@ -40,6 +40,7 @@ partial void ProcessUsageModerationsResponseContent( ref string content); /// + /// Moderations
/// Get moderations usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs index 2d6603c9..1c798fd3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs @@ -34,6 +34,7 @@ partial void ProcessUsageVectorStoresResponseContent( ref string content); /// + /// Vector stores
/// Get vector stores usage details for the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs index 58c4126f..e91da150 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteUserResponseContent( ref string content); /// + /// Delete user
/// Deletes a user from the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs index 1613a099..9839e8be 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs @@ -26,6 +26,7 @@ partial void ProcessListUsersResponseContent( ref string content); /// + /// List users
/// Lists all of the users in the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs index 83cd5173..186d39a5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs @@ -24,6 +24,7 @@ partial void ProcessModifyUserResponseContent( ref string content); /// + /// Modify user
/// Modifies a user's role in the organization. ///
/// @@ -172,6 +173,7 @@ partial void ProcessModifyUserResponseContent( } /// + /// Modify user
/// Modifies a user's role in the organization. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs index 62044ec7..2edb3753 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs @@ -22,6 +22,7 @@ partial void ProcessRetrieveUserResponseContent( ref string content); /// + /// Retrieve user
/// Retrieves a user by their identifier. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs index 719214b8..e1838696 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs @@ -24,6 +24,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( ref string content); /// + /// Cancel vector store file batch
/// Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs index d3a8a611..1314bfce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs @@ -22,6 +22,7 @@ partial void ProcessCreateVectorStoreResponseContent( ref string content); /// + /// Create vector store
/// Create a vector store. ///
/// @@ -166,6 +167,7 @@ partial void ProcessCreateVectorStoreResponseContent( } /// + /// Create vector store
/// Create a vector store. ///
/// @@ -175,7 +177,7 @@ partial void ProcessCreateVectorStoreResponseContent( /// The expiration policy for a vector store. /// /// - /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. + /// A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. /// /// /// Set of 16 key-value pairs that can be attached to an object. This can be
@@ -190,7 +192,7 @@ partial void ProcessCreateVectorStoreResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateVectorStoreAsync( - global::tryAGI.OpenAI.OneOf? chunkingStrategy = default, + global::tryAGI.OpenAI.ChunkingStrategyRequestParam? chunkingStrategy = default, global::tryAGI.OpenAI.VectorStoreExpirationAfter? expiresAfter = default, global::System.Collections.Generic.IList? fileIds = default, global::System.Collections.Generic.Dictionary? metadata = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs index 4662ddc8..a43d307a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs @@ -24,7 +24,8 @@ partial void ProcessCreateVectorStoreFileResponseContent( ref string content); /// - /// Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object). + /// Create vector store file
+ /// Create a vector store file by attaching a [File](https://platform.openai.com/docs/api-reference/files) to a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object). ///
/// /// Example: vs_abc123 @@ -174,7 +175,8 @@ partial void ProcessCreateVectorStoreFileResponseContent( } /// - /// Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object). + /// Create vector store file
+ /// Create a vector store file by attaching a [File](https://platform.openai.com/docs/api-reference/files) to a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object). ///
/// /// Example: vs_abc123 @@ -187,10 +189,10 @@ partial void ProcessCreateVectorStoreFileResponseContent( /// length of 512 characters, booleans, or numbers. /// /// - /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. /// /// - /// A [File](/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. + /// A [File](https://platform.openai.com/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. /// /// The token to cancel the operation with /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs index 654294d5..c8b0f71c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs @@ -24,6 +24,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( ref string content); /// + /// Create vector store file batch
/// Create a vector store file batch. ///
/// @@ -174,6 +175,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( } /// + /// Create vector store file batch
/// Create a vector store file batch. ///
/// @@ -187,10 +189,10 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( /// length of 512 characters, booleans, or numbers. /// /// - /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. + /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty. /// /// - /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. + /// A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. /// /// The token to cancel the operation with /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs index a3223c50..fd67f32c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs @@ -22,6 +22,7 @@ partial void ProcessDeleteVectorStoreResponseContent( ref string content); /// + /// Delete vector store
/// Delete a vector store. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs index 40b883dd..fd4891fb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs @@ -24,7 +24,8 @@ partial void ProcessDeleteVectorStoreFileResponseContent( ref string content); /// - /// Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint. + /// Delete vector store file
+ /// Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](https://platform.openai.com/docs/api-reference/files/delete) endpoint. ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs index 3ec84d04..65205a8f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs @@ -22,6 +22,7 @@ partial void ProcessGetVectorStoreResponseContent( ref string content); /// + /// Retrieve vector store
/// Retrieves a vector store. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs index 5bac7967..82b2a029 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs @@ -24,6 +24,7 @@ partial void ProcessGetVectorStoreFileResponseContent( ref string content); /// + /// Retrieve vector store file
/// Retrieves a vector store file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs index 3a13d81a..d906c938 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs @@ -24,6 +24,7 @@ partial void ProcessGetVectorStoreFileBatchResponseContent( ref string content); /// + /// Retrieve vector store file batch
/// Retrieves a vector store file batch. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs index 90a6f102..1a6fe1cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs @@ -34,6 +34,7 @@ partial void ProcessListFilesInVectorStoreBatchResponseContent( ref string content); /// + /// List vector store files in a batch
/// Returns a list of vector store files in a batch. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs index cdbf4957..58978565 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs @@ -32,6 +32,7 @@ partial void ProcessListVectorStoreFilesResponseContent( ref string content); /// + /// List vector store files
/// Returns a list of vector store files. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs index fb9efd56..29f038d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs @@ -28,6 +28,7 @@ partial void ProcessListVectorStoresResponseContent( ref string content); /// + /// List vector stores
/// Returns a list of vector stores. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs index e5e89cd7..ce6c7cd6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs @@ -24,6 +24,7 @@ partial void ProcessModifyVectorStoreResponseContent( ref string content); /// + /// Modify vector store
/// Modifies a vector store. ///
/// @@ -172,6 +173,7 @@ partial void ProcessModifyVectorStoreResponseContent( } /// + /// Modify vector store
/// Modifies a vector store. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs index 06c4c039..917c99eb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs @@ -24,6 +24,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( ref string content); /// + /// Retrieve vector store file content
/// Retrieve the parsed contents of a vector store file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs index 1761b75f..c8f68801 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs @@ -24,6 +24,7 @@ partial void ProcessSearchVectorStoreResponseContent( ref string content); /// + /// Search vector store
/// Search a vector store for relevant chunks based on a query and file attributes filter. ///
/// @@ -174,6 +175,7 @@ partial void ProcessSearchVectorStoreResponseContent( } /// + /// Search vector store
/// Search a vector store for relevant chunks based on a query and file attributes filter. ///
/// @@ -200,8 +202,8 @@ partial void ProcessSearchVectorStoreResponseContent( /// public async global::System.Threading.Tasks.Task SearchVectorStoreAsync( string vectorStoreId, - global::tryAGI.OpenAI.OneOf> query, - global::tryAGI.OpenAI.OneOf? filters = default, + global::tryAGI.OpenAI.AnyOf> query, + global::tryAGI.OpenAI.AnyOf? filters = default, int? maxNumResults = default, global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? rankingOptions = default, bool? rewriteQuery = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs index 3d489c5e..c236fd9f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs @@ -26,6 +26,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( ref string content); /// + /// Update vector store file attributes
/// Update attributes on a vector store file. ///
/// @@ -182,6 +183,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( } /// + /// Update vector store file attributes
/// Update attributes on a vector store file. ///
/// diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml index b71edd9e..19822069 100644 --- a/src/libs/tryAGI.OpenAI/openapi.yaml +++ b/src/libs/tryAGI.OpenAI/openapi.yaml @@ -17,7 +17,8 @@ paths: get: tags: - Assistants - summary: Returns a list of assistants. + summary: List assistants + description: Returns a list of assistants. operationId: listAssistants parameters: - name: limit @@ -58,7 +59,6 @@ paths: request: curl: "curl \"https://api.openai.com/v1/assistants?order=desc&limit=20\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n page, err := client.Beta.Assistants.List(context.TODO(), openai.BetaAssistantListParams{\n\n })\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", page)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.assistants.AssistantListPage;\nimport com.openai.models.beta.assistants.AssistantListParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n AssistantListPage page = client.beta().assistants().list();\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.assistants.AssistantListPage\nimport com.openai.models.beta.assistants.AssistantListParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val page: AssistantListPage = client.beta().assistants().list()\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\n// Automatically fetches more pages as needed.\nfor await (const assistant of client.beta.assistants.list()) {\n console.log(assistant.id);\n}" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\npage = client.beta.assistants.list()\npage = page.data[0]\nprint(page.id)" @@ -66,11 +66,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"asst_abc123\",\n \"object\": \"assistant\",\n \"created_at\": 1698982736,\n \"name\": \"Coding Tutor\",\n \"description\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": \"You are a helpful assistant designed to make me better at coding!\",\n \"tools\": [],\n \"tool_resources\": {},\n \"metadata\": {},\n \"top_p\": 1.0,\n \"temperature\": 1.0,\n \"response_format\": \"auto\"\n },\n {\n \"id\": \"asst_abc456\",\n \"object\": \"assistant\",\n \"created_at\": 1698982718,\n \"name\": \"My Assistant\",\n \"description\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": \"You are a helpful assistant designed to make me better at coding!\",\n \"tools\": [],\n \"tool_resources\": {},\n \"metadata\": {},\n \"top_p\": 1.0,\n \"temperature\": 1.0,\n \"response_format\": \"auto\"\n },\n {\n \"id\": \"asst_abc789\",\n \"object\": \"assistant\",\n \"created_at\": 1698982643,\n \"name\": null,\n \"description\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": null,\n \"tools\": [],\n \"tool_resources\": {},\n \"metadata\": {},\n \"top_p\": 1.0,\n \"temperature\": 1.0,\n \"response_format\": \"auto\"\n }\n ],\n \"first_id\": \"asst_abc123\",\n \"last_id\": \"asst_abc789\",\n \"has_more\": false\n}\n" group: assistants name: List assistants - returns: 'A list of [assistant](/docs/api-reference/assistants/object) objects.' + returns: 'A list of [assistant](https://platform.openai.com/docs/api-reference/assistants/object) objects.' post: tags: - Assistants - summary: Create an assistant with a model and instructions. + summary: Create assistant + description: Create an assistant with a model and instructions. operationId: createAssistant requestBody: content: @@ -91,7 +92,6 @@ paths: request: curl: "curl \"https://api.openai.com/v1/assistants\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d '{\n \"instructions\": \"You are a personal math tutor. When asked a question, write and run Python code to answer the question.\",\n \"name\": \"Math Tutor\",\n \"tools\": [{\"type\": \"code_interpreter\"}],\n \"model\": \"gpt-4o\"\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n \"github.com/openai/openai-go/shared\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n assistant, err := client.Beta.Assistants.New(context.TODO(), openai.BetaAssistantNewParams{\n Model: shared.ChatModelGPT4_1,\n })\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", assistant.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.ChatModel;\nimport com.openai.models.beta.assistants.Assistant;\nimport com.openai.models.beta.assistants.AssistantCreateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n AssistantCreateParams params = AssistantCreateParams.builder()\n .model(ChatModel.GPT_4_1)\n .build();\n Assistant assistant = client.beta().assistants().create(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.ChatModel\nimport com.openai.models.beta.assistants.Assistant\nimport com.openai.models.beta.assistants.AssistantCreateParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: AssistantCreateParams = AssistantCreateParams.builder()\n .model(ChatModel.GPT_4_1)\n .build()\n val assistant: Assistant = client.beta().assistants().create(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst assistant = await client.beta.assistants.create({ model: 'gpt-4o' });\n\nconsole.log(assistant.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nassistant = client.beta.assistants.create(\n model=\"gpt-4o\",\n)\nprint(assistant.id)" @@ -100,12 +100,13 @@ paths: title: Code Interpreter group: assistants name: Create assistant - returns: 'An [assistant](/docs/api-reference/assistants/object) object.' + returns: 'An [assistant](https://platform.openai.com/docs/api-reference/assistants/object) object.' '/assistants/{assistant_id}': delete: tags: - Assistants - summary: Delete an assistant. + summary: Delete assistant + description: Delete an assistant. operationId: deleteAssistant parameters: - name: assistant_id @@ -127,7 +128,6 @@ paths: request: curl: "curl https://api.openai.com/v1/assistants/asst_abc123 \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -X DELETE\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n assistantDeleted, err := client.Beta.Assistants.Delete(context.TODO(), \"assistant_id\")\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", assistantDeleted.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.assistants.AssistantDeleteParams;\nimport com.openai.models.beta.assistants.AssistantDeleted;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n AssistantDeleted assistantDeleted = client.beta().assistants().delete(\"assistant_id\");\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.assistants.AssistantDeleteParams\nimport com.openai.models.beta.assistants.AssistantDeleted\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val assistantDeleted: AssistantDeleted = client.beta().assistants().delete(\"assistant_id\")\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst assistantDeleted = await client.beta.assistants.delete('assistant_id');\n\nconsole.log(assistantDeleted.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nassistant_deleted = client.beta.assistants.delete(\n \"assistant_id\",\n)\nprint(assistant_deleted.id)" @@ -139,7 +139,8 @@ paths: get: tags: - Assistants - summary: Retrieves an assistant. + summary: Retrieve assistant + description: Retrieves an assistant. operationId: getAssistant parameters: - name: assistant_id @@ -161,7 +162,6 @@ paths: request: curl: "curl https://api.openai.com/v1/assistants/asst_abc123 \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n assistant, err := client.Beta.Assistants.Get(context.TODO(), \"assistant_id\")\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", assistant.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.assistants.Assistant;\nimport com.openai.models.beta.assistants.AssistantRetrieveParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n Assistant assistant = client.beta().assistants().retrieve(\"assistant_id\");\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.assistants.Assistant\nimport com.openai.models.beta.assistants.AssistantRetrieveParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val assistant: Assistant = client.beta().assistants().retrieve(\"assistant_id\")\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst assistant = await client.beta.assistants.retrieve('assistant_id');\n\nconsole.log(assistant.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nassistant = client.beta.assistants.retrieve(\n \"assistant_id\",\n)\nprint(assistant.id)" @@ -169,11 +169,12 @@ paths: response: "{\n \"id\": \"asst_abc123\",\n \"object\": \"assistant\",\n \"created_at\": 1699009709,\n \"name\": \"HR Helper\",\n \"description\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": \"You are an HR bot, and you have access to files to answer employee questions about company policies.\",\n \"tools\": [\n {\n \"type\": \"file_search\"\n }\n ],\n \"metadata\": {},\n \"top_p\": 1.0,\n \"temperature\": 1.0,\n \"response_format\": \"auto\"\n}\n" group: assistants name: Retrieve assistant - returns: 'The [assistant](/docs/api-reference/assistants/object) object matching the specified ID.' + returns: 'The [assistant](https://platform.openai.com/docs/api-reference/assistants/object) object matching the specified ID.' post: tags: - Assistants - summary: Modifies an assistant. + summary: Modify assistant + description: Modifies an assistant. operationId: modifyAssistant parameters: - name: assistant_id @@ -201,7 +202,6 @@ paths: request: curl: "curl https://api.openai.com/v1/assistants/asst_abc123 \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d '{\n \"instructions\": \"You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.\",\n \"tools\": [{\"type\": \"file_search\"}],\n \"model\": \"gpt-4o\"\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n assistant, err := client.Beta.Assistants.Update(\n context.TODO(),\n \"assistant_id\",\n openai.BetaAssistantUpdateParams{\n\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", assistant.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.assistants.Assistant;\nimport com.openai.models.beta.assistants.AssistantUpdateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n Assistant assistant = client.beta().assistants().update(\"assistant_id\");\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.assistants.Assistant\nimport com.openai.models.beta.assistants.AssistantUpdateParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val assistant: Assistant = client.beta().assistants().update(\"assistant_id\")\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst assistant = await client.beta.assistants.update('assistant_id');\n\nconsole.log(assistant.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nassistant = client.beta.assistants.update(\n assistant_id=\"assistant_id\",\n)\nprint(assistant.id)" @@ -209,12 +209,13 @@ paths: response: "{\n \"id\": \"asst_123\",\n \"object\": \"assistant\",\n \"created_at\": 1699009709,\n \"name\": \"HR Helper\",\n \"description\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": \"You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.\",\n \"tools\": [\n {\n \"type\": \"file_search\"\n }\n ],\n \"tool_resources\": {\n \"file_search\": {\n \"vector_store_ids\": []\n }\n },\n \"metadata\": {},\n \"top_p\": 1.0,\n \"temperature\": 1.0,\n \"response_format\": \"auto\"\n}\n" group: assistants name: Modify assistant - returns: 'The modified [assistant](/docs/api-reference/assistants/object) object.' + returns: 'The modified [assistant](https://platform.openai.com/docs/api-reference/assistants/object) object.' /audio/speech: post: tags: - Audio - summary: Generates audio from the input text. + summary: Create speech + description: Generates audio from the input text. operationId: createSpeech requestBody: content: @@ -253,12 +254,13 @@ paths: title: Default group: audio name: Create speech - returns: 'The audio file content or a [stream of audio events](/docs/api-reference/audio/speech-audio-delta-event).' + returns: 'The audio file content or a [stream of audio events](https://platform.openai.com/docs/api-reference/audio/speech-audio-delta-event).' /audio/transcriptions: post: tags: - Audio - summary: Transcribes audio into the input language. + summary: Create transcription + description: Transcribes audio into the input language. operationId: createTranscription requestBody: content: @@ -272,7 +274,7 @@ paths: content: application/json: schema: - oneOf: + anyOf: - $ref: '#/components/schemas/CreateTranscriptionResponseJson' - $ref: '#/components/schemas/CreateTranscriptionResponseVerboseJson' text/event-stream: @@ -294,12 +296,13 @@ paths: title: Default group: audio name: Create transcription - returns: 'The [transcription object](/docs/api-reference/audio/json-object), a [verbose transcription object](/docs/api-reference/audio/verbose-json-object) or a [stream of transcript events](/docs/api-reference/audio/transcript-text-delta-event).' + returns: 'The [transcription object](https://platform.openai.com/docs/api-reference/audio/json-object), a [verbose transcription object](https://platform.openai.com/docs/api-reference/audio/verbose-json-object) or a [stream of transcript events](https://platform.openai.com/docs/api-reference/audio/transcript-text-delta-event).' /audio/translations: post: tags: - Audio - summary: Translates audio into English. + summary: Create translation + description: Translates audio into English. operationId: createTranslation requestBody: content: @@ -313,7 +316,7 @@ paths: content: application/json: schema: - oneOf: + anyOf: - $ref: '#/components/schemas/CreateTranslationResponseJson' - $ref: '#/components/schemas/CreateTranslationResponseVerboseJson' x-oaiMeta: @@ -336,7 +339,8 @@ paths: get: tags: - Batch - summary: List your organization's batches. + summary: List batch + description: List your organization's batches. operationId: listBatches parameters: - name: after @@ -371,11 +375,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"batch_abc123\",\n \"object\": \"batch\",\n \"endpoint\": \"/v1/chat/completions\",\n \"errors\": null,\n \"input_file_id\": \"file-abc123\",\n \"completion_window\": \"24h\",\n \"status\": \"completed\",\n \"output_file_id\": \"file-cvaTdG\",\n \"error_file_id\": \"file-HOWS94\",\n \"created_at\": 1711471533,\n \"in_progress_at\": 1711471538,\n \"expires_at\": 1711557933,\n \"finalizing_at\": 1711493133,\n \"completed_at\": 1711493163,\n \"failed_at\": null,\n \"expired_at\": null,\n \"cancelling_at\": null,\n \"cancelled_at\": null,\n \"request_counts\": {\n \"total\": 100,\n \"completed\": 95,\n \"failed\": 5\n },\n \"metadata\": {\n \"customer_id\": \"user_123456789\",\n \"batch_description\": \"Nightly job\",\n }\n },\n { ... },\n ],\n \"first_id\": \"batch_abc123\",\n \"last_id\": \"batch_abc456\",\n \"has_more\": true\n}\n" group: batch name: List batch - returns: 'A list of paginated [Batch](/docs/api-reference/batch/object) objects.' + returns: 'A list of paginated [Batch](https://platform.openai.com/docs/api-reference/batch/object) objects.' post: tags: - Batch - summary: Creates and executes a batch from an uploaded file of requests + summary: Create batch + description: Creates and executes a batch from an uploaded file of requests operationId: createBatch requestBody: content: @@ -402,7 +407,7 @@ paths: description: 'The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.' input_file_id: type: string - description: "The ID of an uploaded file that contains requests for the new batch.\n\nSee [upload file](/docs/api-reference/files/create) for how to upload a file.\n\nYour input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.\n" + description: "The ID of an uploaded file that contains requests for the new batch.\n\nSee [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.\n\nYour input file must be formatted as a [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.\n" metadata: $ref: '#/components/schemas/Metadata' required: true @@ -427,12 +432,13 @@ paths: response: "{\n \"id\": \"batch_abc123\",\n \"object\": \"batch\",\n \"endpoint\": \"/v1/chat/completions\",\n \"errors\": null,\n \"input_file_id\": \"file-abc123\",\n \"completion_window\": \"24h\",\n \"status\": \"validating\",\n \"output_file_id\": null,\n \"error_file_id\": null,\n \"created_at\": 1711471533,\n \"in_progress_at\": null,\n \"expires_at\": null,\n \"finalizing_at\": null,\n \"completed_at\": null,\n \"failed_at\": null,\n \"expired_at\": null,\n \"cancelling_at\": null,\n \"cancelled_at\": null,\n \"request_counts\": {\n \"total\": 0,\n \"completed\": 0,\n \"failed\": 0\n },\n \"metadata\": {\n \"customer_id\": \"user_123456789\",\n \"batch_description\": \"Nightly eval job\",\n }\n}\n" group: batch name: Create batch - returns: 'The created [Batch](/docs/api-reference/batch/object) object.' + returns: 'The created [Batch](https://platform.openai.com/docs/api-reference/batch/object) object.' '/batches/{batch_id}': get: tags: - Batch - summary: Retrieves a batch. + summary: Retrieve batch + description: Retrieves a batch. operationId: retrieveBatch parameters: - name: batch_id @@ -462,12 +468,13 @@ paths: response: "{\n \"id\": \"batch_abc123\",\n \"object\": \"batch\",\n \"endpoint\": \"/v1/completions\",\n \"errors\": null,\n \"input_file_id\": \"file-abc123\",\n \"completion_window\": \"24h\",\n \"status\": \"completed\",\n \"output_file_id\": \"file-cvaTdG\",\n \"error_file_id\": \"file-HOWS94\",\n \"created_at\": 1711471533,\n \"in_progress_at\": 1711471538,\n \"expires_at\": 1711557933,\n \"finalizing_at\": 1711493133,\n \"completed_at\": 1711493163,\n \"failed_at\": null,\n \"expired_at\": null,\n \"cancelling_at\": null,\n \"cancelled_at\": null,\n \"request_counts\": {\n \"total\": 100,\n \"completed\": 95,\n \"failed\": 5\n },\n \"metadata\": {\n \"customer_id\": \"user_123456789\",\n \"batch_description\": \"Nightly eval job\",\n }\n}\n" group: batch name: Retrieve batch - returns: 'The [Batch](/docs/api-reference/batch/object) object matching the specified ID.' + returns: 'The [Batch](https://platform.openai.com/docs/api-reference/batch/object) object matching the specified ID.' '/batches/{batch_id}/cancel': post: tags: - Batch - summary: 'Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file.' + summary: Cancel batch + description: 'Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file.' operationId: cancelBatch parameters: - name: batch_id @@ -497,12 +504,13 @@ paths: response: "{\n \"id\": \"batch_abc123\",\n \"object\": \"batch\",\n \"endpoint\": \"/v1/chat/completions\",\n \"errors\": null,\n \"input_file_id\": \"file-abc123\",\n \"completion_window\": \"24h\",\n \"status\": \"cancelling\",\n \"output_file_id\": null,\n \"error_file_id\": null,\n \"created_at\": 1711471533,\n \"in_progress_at\": 1711471538,\n \"expires_at\": 1711557933,\n \"finalizing_at\": null,\n \"completed_at\": null,\n \"failed_at\": null,\n \"expired_at\": null,\n \"cancelling_at\": 1711475133,\n \"cancelled_at\": null,\n \"request_counts\": {\n \"total\": 100,\n \"completed\": 23,\n \"failed\": 1\n },\n \"metadata\": {\n \"customer_id\": \"user_123456789\",\n \"batch_description\": \"Nightly eval job\",\n }\n}\n" group: batch name: Cancel batch - returns: 'The [Batch](/docs/api-reference/batch/object) object matching the specified ID.' + returns: 'The [Batch](https://platform.openai.com/docs/api-reference/batch/object) object matching the specified ID.' /chat/completions: get: tags: - Chat - summary: "List stored Chat Completions. Only Chat Completions that have been stored\nwith the `store` parameter set to `true` will be returned.\n" + summary: List Chat Completions + description: "List stored Chat Completions. Only Chat Completions that have been stored\nwith the `store` parameter set to `true` will be returned.\n" operationId: listChatCompletions parameters: - name: model @@ -556,11 +564,12 @@ paths: group: chat name: List Chat Completions path: list - returns: 'A list of [Chat Completions](/docs/api-reference/chat/list-object) matching the specified filters.' + returns: 'A list of [Chat Completions](https://platform.openai.com/docs/api-reference/chat/list-object) matching the specified filters.' post: tags: - Chat - summary: "**Starting a new project?** We recommend trying [Responses](/docs/api-reference/responses) \nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](/docs/guides/responses-vs-chat-completions?api-mode=responses).\n\n---\n\nCreates a model response for the given chat conversation. Learn more in the\n[text generation](/docs/guides/text-generation), [vision](/docs/guides/vision),\nand [audio](/docs/guides/audio) guides.\n\nParameter support can differ depending on the model used to generate the\nresponse, particularly for newer reasoning models. Parameters that are only\nsupported for reasoning models are noted below. For the current state of \nunsupported parameters in reasoning models, \n[refer to the reasoning guide](/docs/guides/reasoning).\n" + summary: Create chat completion + description: "**Starting a new project?** We recommend trying [Responses](https://platform.openai.com/docs/api-reference/responses) \nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses).\n\n---\n\nCreates a model response for the given chat conversation. Learn more in the\n[text generation](https://platform.openai.com/docs/guides/text-generation), [vision](https://platform.openai.com/docs/guides/vision),\nand [audio](https://platform.openai.com/docs/guides/audio) guides.\n\nParameter support can differ depending on the model used to generate the\nresponse, particularly for newer reasoning models. Parameters that are only\nsupported for reasoning models are noted below. For the current state of \nunsupported parameters in reasoning models, \n[refer to the reasoning guide](https://platform.openai.com/docs/guides/reasoning).\n" operationId: createChatCompletion requestBody: content: @@ -594,12 +603,13 @@ paths: group: chat name: Create chat completion path: create - returns: "Returns a [chat completion](/docs/api-reference/chat/object) object, or a streamed sequence of [chat completion chunk](/docs/api-reference/chat/streaming) objects if the request is streamed.\n" + returns: "Returns a [chat completion](https://platform.openai.com/docs/api-reference/chat/object) object, or a streamed sequence of [chat completion chunk](https://platform.openai.com/docs/api-reference/chat/streaming) objects if the request is streamed.\n" '/chat/completions/{completion_id}': delete: tags: - Chat - summary: "Delete a stored chat completion. Only Chat Completions that have been\ncreated with the `store` parameter set to `true` can be deleted.\n" + summary: Delete chat completion + description: "Delete a stored chat completion. Only Chat Completions that have been\ncreated with the `store` parameter set to `true` can be deleted.\n" operationId: deleteChatCompletion parameters: - name: completion_id @@ -632,7 +642,8 @@ paths: get: tags: - Chat - summary: "Get a stored chat completion. Only Chat Completions that have been created\nwith the `store` parameter set to `true` will be returned.\n" + summary: Get chat completion + description: "Get a stored chat completion. Only Chat Completions that have been created\nwith the `store` parameter set to `true` will be returned.\n" operationId: getChatCompletion parameters: - name: completion_id @@ -661,11 +672,12 @@ paths: response: "{\n \"object\": \"chat.completion\",\n \"id\": \"chatcmpl-abc123\",\n \"model\": \"gpt-4o-2024-08-06\",\n \"created\": 1738960610,\n \"request_id\": \"req_ded8ab984ec4bf840f37566c1011c417\",\n \"tool_choice\": null,\n \"usage\": {\n \"total_tokens\": 31,\n \"completion_tokens\": 18,\n \"prompt_tokens\": 13\n },\n \"seed\": 4944116822809979520,\n \"top_p\": 1.0,\n \"temperature\": 1.0,\n \"presence_penalty\": 0.0,\n \"frequency_penalty\": 0.0,\n \"system_fingerprint\": \"fp_50cad350e4\",\n \"input_user\": null,\n \"service_tier\": \"default\",\n \"tools\": null,\n \"metadata\": {},\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"content\": \"Mind of circuits hum, \\nLearning patterns in silence— \\nFuture's quiet spark.\",\n \"role\": \"assistant\",\n \"tool_calls\": null,\n \"function_call\": null\n },\n \"finish_reason\": \"stop\",\n \"logprobs\": null\n }\n ],\n \"response_format\": null\n}\n" group: chat name: Get chat completion - returns: 'The [ChatCompletion](/docs/api-reference/chat/object) object matching the specified ID.' + returns: 'The [ChatCompletion](https://platform.openai.com/docs/api-reference/chat/object) object matching the specified ID.' post: tags: - Chat - summary: "Modify a stored chat completion. Only Chat Completions that have been\ncreated with the `store` parameter set to `true` can be modified. Currently,\nthe only supported modification is to update the `metadata` field.\n" + summary: Update chat completion + description: "Modify a stored chat completion. Only Chat Completions that have been\ncreated with the `store` parameter set to `true` can be modified. Currently,\nthe only supported modification is to update the `metadata` field.\n" operationId: updateChatCompletion parameters: - name: completion_id @@ -705,12 +717,13 @@ paths: response: "{\n \"object\": \"chat.completion\",\n \"id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2\",\n \"model\": \"gpt-4o-2024-08-06\",\n \"created\": 1738960610,\n \"request_id\": \"req_ded8ab984ec4bf840f37566c1011c417\",\n \"tool_choice\": null,\n \"usage\": {\n \"total_tokens\": 31,\n \"completion_tokens\": 18,\n \"prompt_tokens\": 13\n },\n \"seed\": 4944116822809979520,\n \"top_p\": 1.0,\n \"temperature\": 1.0,\n \"presence_penalty\": 0.0,\n \"frequency_penalty\": 0.0,\n \"system_fingerprint\": \"fp_50cad350e4\",\n \"input_user\": null,\n \"service_tier\": \"default\",\n \"tools\": null,\n \"metadata\": {\n \"foo\": \"bar\"\n },\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"content\": \"Mind of circuits hum, \\nLearning patterns in silence— \\nFuture's quiet spark.\",\n \"role\": \"assistant\",\n \"tool_calls\": null,\n \"function_call\": null\n },\n \"finish_reason\": \"stop\",\n \"logprobs\": null\n }\n ],\n \"response_format\": null\n}\n" group: chat name: Update chat completion - returns: 'The [ChatCompletion](/docs/api-reference/chat/object) object matching the specified ID.' + returns: 'The [ChatCompletion](https://platform.openai.com/docs/api-reference/chat/object) object matching the specified ID.' '/chat/completions/{completion_id}/messages': get: tags: - Chat - summary: "Get the messages in a stored chat completion. Only Chat Completions that\nhave been created with the `store` parameter set to `true` will be\nreturned.\n" + summary: Get chat messages + description: "Get the messages in a stored chat completion. Only Chat Completions that\nhave been created with the `store` parameter set to `true` will be\nreturned.\n" operationId: getChatCompletionMessages parameters: - name: completion_id @@ -759,12 +772,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2-0\",\n \"role\": \"user\",\n \"content\": \"write a haiku about ai\",\n \"name\": null,\n \"content_parts\": null\n }\n ],\n \"first_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2-0\",\n \"last_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2-0\",\n \"has_more\": false\n}\n" group: chat name: Get chat messages - returns: 'A list of [messages](/docs/api-reference/chat/message-list) for the specified chat completion.' + returns: 'A list of [messages](https://platform.openai.com/docs/api-reference/chat/message-list) for the specified chat completion.' /completions: post: tags: - Completions - summary: Creates a completion for the provided prompt and parameters. + summary: Create completion + description: Creates a completion for the provided prompt and parameters. operationId: createCompletion requestBody: content: @@ -794,11 +808,11 @@ paths: group: completions legacy: true name: Create completion - returns: "Returns a [completion](/docs/api-reference/completions/object) object, or a sequence of completion objects if the request is streamed.\n" + returns: "Returns a [completion](https://platform.openai.com/docs/api-reference/completions/object) object, or a sequence of completion objects if the request is streamed.\n" /containers: get: - summary: List Containers - description: Lists containers. + summary: List containers + description: List Containers operationId: ListContainers parameters: - name: limit @@ -842,10 +856,10 @@ paths: group: containers name: List containers path: get - returns: 'a list of [container](/docs/api-reference/containers/object) objects.' + returns: 'a list of [container](https://platform.openai.com/docs/api-reference/containers/object) objects.' post: - summary: Create Container - description: Creates a container. + summary: Create container + description: Create Container operationId: CreateContainer requestBody: content: @@ -873,11 +887,11 @@ paths: group: containers name: Create container path: post - returns: 'The created [container](/docs/api-reference/containers/object) object.' + returns: 'The created [container](https://platform.openai.com/docs/api-reference/containers/object) object.' '/containers/{container_id}': delete: - summary: Delete Container - description: Delete a container. + summary: Delete a container + description: Delete Container operationId: DeleteContainer parameters: - name: container_id @@ -905,8 +919,8 @@ paths: path: delete returns: Deletion Status get: - summary: Retrieve Container - description: Retrieves a container. + summary: Retrieve container + description: Retrieve Container operationId: RetrieveContainer parameters: - name: container_id @@ -935,11 +949,11 @@ paths: group: containers name: Retrieve container path: get - returns: 'The [container](/docs/api-reference/containers/object) object.' + returns: 'The [container](https://platform.openai.com/docs/api-reference/containers/object) object.' '/containers/{container_id}/files': get: - summary: List Container files - description: Lists container files. + summary: List container files + description: List Container files operationId: ListContainerFiles parameters: - name: container_id @@ -988,10 +1002,10 @@ paths: group: containers name: List container files path: get - returns: 'a list of [container file](/docs/api-reference/container-files/object) objects.' + returns: 'a list of [container file](https://platform.openai.com/docs/api-reference/container-files/object) objects.' post: - summary: "Create a Container File\n\nYou can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID.\n" - description: "Creates a container file.\n" + summary: Create container file + description: "Create a Container File\n\nYou can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID.\n" operationId: CreateContainerFile parameters: - name: container_id @@ -1026,11 +1040,11 @@ paths: group: containers name: Create container file path: post - returns: 'The created [container file](/docs/api-reference/container-files/object) object.' + returns: 'The created [container file](https://platform.openai.com/docs/api-reference/container-files/object) object.' '/containers/{container_id}/files/{file_id}': delete: - summary: Delete Container File - description: Delete a container file. + summary: Delete a container file + description: Delete Container File operationId: DeleteContainerFile parameters: - name: container_id @@ -1062,8 +1076,8 @@ paths: path: delete returns: Deletion Status get: - summary: Retrieve Container File - description: Retrieves a container file. + summary: Retrieve container file + description: Retrieve Container File operationId: RetrieveContainerFile parameters: - name: container_id @@ -1097,11 +1111,11 @@ paths: group: containers name: Retrieve container file path: get - returns: 'The [container file](/docs/api-reference/container-files/object) object.' + returns: 'The [container file](https://platform.openai.com/docs/api-reference/container-files/object) object.' '/containers/{container_id}/files/{file_id}/content': get: - summary: Retrieve Container File Content - description: Retrieves a container file content. + summary: Retrieve container file content + description: Retrieve Container File Content operationId: RetrieveContainerFileContent parameters: - name: container_id @@ -1136,7 +1150,8 @@ paths: post: tags: - Embeddings - summary: Creates an embedding vector representing the input text. + summary: Create embeddings + description: Creates an embedding vector representing the input text. operationId: createEmbedding requestBody: content: @@ -1165,12 +1180,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"embedding\",\n \"embedding\": [\n 0.0023064255,\n -0.009327292,\n .... (1536 floats total for ada-002)\n -0.0028842222,\n ],\n \"index\": 0\n }\n ],\n \"model\": \"text-embedding-ada-002\",\n \"usage\": {\n \"prompt_tokens\": 8,\n \"total_tokens\": 8\n }\n}\n" group: embeddings name: Create embeddings - returns: 'A list of [embedding](/docs/api-reference/embeddings/object) objects.' + returns: 'A list of [embedding](https://platform.openai.com/docs/api-reference/embeddings/object) objects.' /evals: get: tags: - Evals - summary: "List evaluations for a project.\n" + summary: List evals + description: "List evaluations for a project.\n" operationId: listEvals parameters: - name: after @@ -1222,11 +1238,12 @@ paths: group: evals name: List evals path: list - returns: 'A list of [evals](/docs/api-reference/evals/object) matching the specified filters.' + returns: 'A list of [evals](https://platform.openai.com/docs/api-reference/evals/object) matching the specified filters.' post: tags: - Evals - summary: "Create the structure of an evaluation that can be used to test a model's performance.\nAn evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources.\nFor more information, see the [Evals guide](/docs/guides/evals).\n" + summary: Create eval + description: "Create the structure of an evaluation that can be used to test a model's performance.\nAn evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources.\nFor more information, see the [Evals guide](https://platform.openai.com/docs/guides/evals).\n" operationId: createEval requestBody: content: @@ -1254,12 +1271,13 @@ paths: group: evals name: Create eval path: post - returns: 'The created [Eval](/docs/api-reference/evals/object) object.' + returns: 'The created [Eval](https://platform.openai.com/docs/api-reference/evals/object) object.' '/evals/{eval_id}': delete: tags: - Evals - summary: "Delete an evaluation.\n" + summary: Delete an eval + description: "Delete an evaluation.\n" operationId: deleteEval parameters: - name: eval_id @@ -1311,7 +1329,8 @@ paths: get: tags: - Evals - summary: "Get an evaluation by ID.\n" + summary: Get an eval + description: "Get an evaluation by ID.\n" operationId: getEval parameters: - name: eval_id @@ -1340,11 +1359,12 @@ paths: group: evals name: Get an eval path: get - returns: 'The [Eval](/docs/api-reference/evals/object) object matching the specified ID.' + returns: 'The [Eval](https://platform.openai.com/docs/api-reference/evals/object) object matching the specified ID.' post: tags: - Evals - summary: "Update certain properties of an evaluation.\n" + summary: Update an eval + description: "Update certain properties of an evaluation.\n" operationId: updateEval parameters: - name: eval_id @@ -1386,12 +1406,13 @@ paths: group: evals name: Update an eval path: update - returns: 'The [Eval](/docs/api-reference/evals/object) object matching the updated version.' + returns: 'The [Eval](https://platform.openai.com/docs/api-reference/evals/object) object matching the updated version.' '/evals/{eval_id}/runs': get: tags: - Evals - summary: "Get a list of runs for an evaluation.\n" + summary: Get eval runs + description: "Get a list of runs for an evaluation.\n" operationId: getEvalRuns parameters: - name: eval_id @@ -1451,11 +1472,12 @@ paths: group: evals name: Get eval runs path: get-runs - returns: 'A list of [EvalRun](/docs/api-reference/evals/run-object) objects matching the specified ID.' + returns: 'A list of [EvalRun](https://platform.openai.com/docs/api-reference/evals/run-object) objects matching the specified ID.' post: tags: - Evals - summary: "Kicks off a new run for a given evaluation, specifying the data source, and what model configuration to use to test. The datasource will be validated against the schema specified in the config of the evaluation.\n" + summary: Create eval run + description: "Kicks off a new run for a given evaluation, specifying the data source, and what model configuration to use to test. The datasource will be validated against the schema specified in the config of the evaluation.\n" operationId: createEvalRun parameters: - name: eval_id @@ -1495,12 +1517,13 @@ paths: response: "{\n \"object\": \"eval.run\",\n \"id\": \"evalrun_67e57965b480819094274e3a32235e4c\",\n \"eval_id\": \"eval_67e579652b548190aaa83ada4b125f47\",\n \"report_url\": \"https://platform.openai.com/evaluations/eval_67e579652b548190aaa83ada4b125f47&run_id=evalrun_67e57965b480819094274e3a32235e4c\",\n \"status\": \"queued\",\n \"model\": \"gpt-4o-mini\",\n \"name\": \"gpt-4o-mini\",\n \"created_at\": 1743092069,\n \"result_counts\": {\n \"total\": 0,\n \"errored\": 0,\n \"failed\": 0,\n \"passed\": 0\n },\n \"per_model_usage\": null,\n \"per_testing_criteria_results\": null,\n \"data_source\": {\n \"type\": \"completions\",\n \"source\": {\n \"type\": \"file_content\",\n \"content\": [\n {\n \"item\": {\n \"input\": \"Tech Company Launches Advanced Artificial Intelligence Platform\",\n \"ground_truth\": \"Technology\"\n }\n }\n ]\n },\n \"input_messages\": {\n \"type\": \"template\",\n \"template\": [\n {\n \"type\": \"message\",\n \"role\": \"developer\",\n \"content\": {\n \"type\": \"input_text\",\n \"text\": \"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\\n\\n# Steps\\n\\n1. Analyze the content of the news headline to understand its primary focus.\\n2. Extract the subject matter, identifying any key indicators or keywords.\\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\\n4. Ensure only one category is selected per headline.\\n\\n# Output Format\\n\\nRespond with the chosen category as a single word. For instance: \\\"Technology\\\", \\\"Markets\\\", \\\"World\\\", \\\"Business\\\", or \\\"Sports\\\".\\n\\n# Examples\\n\\n**Input**: \\\"Apple Unveils New iPhone Model, Featuring Advanced AI Features\\\" \\n**Output**: \\\"Technology\\\"\\n\\n**Input**: \\\"Global Stocks Mixed as Investors Await Central Bank Decisions\\\" \\n**Output**: \\\"Markets\\\"\\n\\n**Input**: \\\"War in Ukraine: Latest Updates on Negotiation Status\\\" \\n**Output**: \\\"World\\\"\\n\\n**Input**: \\\"Microsoft in Talks to Acquire Gaming Company for $2 Billion\\\" \\n**Output**: \\\"Business\\\"\\n\\n**Input**: \\\"Manchester United Secures Win in Premier League Football Match\\\" \\n**Output**: \\\"Sports\\\" \\n\\n# Notes\\n\\n- If the headline appears to fit into more than one category, choose the most dominant theme.\\n- Keywords or phrases such as \\\"stocks\\\", \\\"company acquisition\\\", \\\"match\\\", or technological brands can be good indicators for classification.\\n\"\n }\n },\n {\n \"type\": \"message\",\n \"role\": \"user\",\n \"content\": {\n \"type\": \"input_text\",\n \"text\": \"{{item.input}}\"\n }\n }\n ]\n },\n \"model\": \"gpt-4o-mini\",\n \"sampling_params\": {\n \"seed\": 42,\n \"temperature\": 1.0,\n \"top_p\": 1.0,\n \"max_completions_tokens\": 2048\n }\n },\n \"error\": null,\n \"metadata\": {}\n}\n" group: evals name: Create eval run - returns: 'The [EvalRun](/docs/api-reference/evals/run-object) object matching the specified ID.' + returns: 'The [EvalRun](https://platform.openai.com/docs/api-reference/evals/run-object) object matching the specified ID.' '/evals/{eval_id}/runs/{run_id}': delete: tags: - Evals - summary: "Delete an eval run.\n" + summary: Delete eval run + description: "Delete an eval run.\n" operationId: deleteEvalRun parameters: - name: eval_id @@ -1555,7 +1578,8 @@ paths: get: tags: - Evals - summary: "Get an evaluation run by ID.\n" + summary: Get an eval run + description: "Get an evaluation run by ID.\n" operationId: getEvalRun parameters: - name: eval_id @@ -1590,11 +1614,12 @@ paths: group: evals name: Get an eval run path: get - returns: 'The [EvalRun](/docs/api-reference/evals/run-object) object matching the specified ID.' + returns: 'The [EvalRun](https://platform.openai.com/docs/api-reference/evals/run-object) object matching the specified ID.' post: tags: - Evals - summary: "Cancel an ongoing evaluation run.\n" + summary: Cancel eval run + description: "Cancel an ongoing evaluation run.\n" operationId: cancelEvalRun parameters: - name: eval_id @@ -1629,12 +1654,13 @@ paths: group: evals name: Cancel eval run path: post - returns: 'The updated [EvalRun](/docs/api-reference/evals/run-object) object reflecting that the run is canceled.' + returns: 'The updated [EvalRun](https://platform.openai.com/docs/api-reference/evals/run-object) object reflecting that the run is canceled.' '/evals/{eval_id}/runs/{run_id}/output_items': get: tags: - Evals - summary: "Get a list of output items for an evaluation run.\n" + summary: Get eval run output items + description: "Get a list of output items for an evaluation run.\n" operationId: getEvalRunOutputItems parameters: - name: eval_id @@ -1697,12 +1723,13 @@ paths: group: evals name: Get eval run output items path: get - returns: 'A list of [EvalRunOutputItem](/docs/api-reference/evals/run-output-item-object) objects matching the specified ID.' + returns: 'A list of [EvalRunOutputItem](https://platform.openai.com/docs/api-reference/evals/run-output-item-object) objects matching the specified ID.' '/evals/{eval_id}/runs/{run_id}/output_items/{output_item_id}': get: tags: - Evals - summary: "Get an evaluation run output item by ID.\n" + summary: Get an output item of an eval run + description: "Get an evaluation run output item by ID.\n" operationId: getEvalRunOutputItem parameters: - name: eval_id @@ -1743,12 +1770,13 @@ paths: group: evals name: Get an output item of an eval run path: get - returns: 'The [EvalRunOutputItem](/docs/api-reference/evals/run-output-item-object) object matching the specified ID.' + returns: 'The [EvalRunOutputItem](https://platform.openai.com/docs/api-reference/evals/run-output-item-object) object matching the specified ID.' /files: get: tags: - Files - summary: Returns a list of files. + summary: List files + description: Returns a list of files. operationId: listFiles parameters: - name: purpose @@ -1796,11 +1824,12 @@ paths: response: "{\n \"data\": [\n {\n \"id\": \"file-abc123\",\n \"object\": \"file\",\n \"bytes\": 175,\n \"created_at\": 1613677385,\n \"filename\": \"salesOverview.pdf\",\n \"purpose\": \"assistants\",\n },\n {\n \"id\": \"file-abc123\",\n \"object\": \"file\",\n \"bytes\": 140,\n \"created_at\": 1613779121,\n \"filename\": \"puppy.jsonl\",\n \"purpose\": \"fine-tune\",\n }\n ],\n \"object\": \"list\"\n}\n" group: files name: List files - returns: 'A list of [File](/docs/api-reference/files/object) objects.' + returns: 'A list of [File](https://platform.openai.com/docs/api-reference/files/object) objects.' post: tags: - Files - summary: "Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.\n\nThe Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details.\n\nThe Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models.\n\nThe Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input).\n\nPlease [contact us](https://help.openai.com/) if you need to increase these storage limits.\n" + summary: Upload file + description: "Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.\n\nThe Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details.\n\nThe Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models.\n\nThe Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input).\n\nPlease [contact us](https://help.openai.com/) if you need to increase these storage limits.\n" operationId: createFile requestBody: content: @@ -1828,12 +1857,13 @@ paths: response: "{\n \"id\": \"file-abc123\",\n \"object\": \"file\",\n \"bytes\": 120000,\n \"created_at\": 1677610602,\n \"filename\": \"mydata.jsonl\",\n \"purpose\": \"fine-tune\",\n}\n" group: files name: Upload file - returns: 'The uploaded [File](/docs/api-reference/files/object) object.' + returns: 'The uploaded [File](https://platform.openai.com/docs/api-reference/files/object) object.' '/files/{file_id}': delete: tags: - Files - summary: Delete a file. + summary: Delete file + description: Delete a file. operationId: deleteFile parameters: - name: file_id @@ -1866,7 +1896,8 @@ paths: get: tags: - Files - summary: Returns information about a specific file. + summary: Retrieve file + description: Returns information about a specific file. operationId: retrieveFile parameters: - name: file_id @@ -1895,12 +1926,13 @@ paths: response: "{\n \"id\": \"file-abc123\",\n \"object\": \"file\",\n \"bytes\": 120000,\n \"created_at\": 1677610602,\n \"filename\": \"mydata.jsonl\",\n \"purpose\": \"fine-tune\",\n}\n" group: files name: Retrieve file - returns: 'The [File](/docs/api-reference/files/object) object matching the specified ID.' + returns: 'The [File](https://platform.openai.com/docs/api-reference/files/object) object matching the specified ID.' '/files/{file_id}/content': get: tags: - Files - summary: Returns the contents of the specified file. + summary: Retrieve file content + description: Returns the contents of the specified file. operationId: downloadFile parameters: - name: file_id @@ -1935,7 +1967,8 @@ paths: post: tags: - Fine-tuning - summary: "Run a grader.\n" + summary: Run grader + description: "Run a grader.\n" operationId: runGrader requestBody: content: @@ -1969,7 +2002,8 @@ paths: post: tags: - Fine-tuning - summary: "Validate a grader.\n" + summary: Validate grader + description: "Validate a grader.\n" operationId: validateGrader requestBody: content: @@ -2003,7 +2037,8 @@ paths: get: tags: - Fine-tuning - summary: "**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).\n\nOrganization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.\n" + summary: List checkpoint permissions + description: "**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).\n\nOrganization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.\n" operationId: listFineTuningCheckpointPermissions parameters: - name: fine_tuned_model_checkpoint @@ -2058,11 +2093,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"checkpoint.permission\",\n \"id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n \"created_at\": 1721764867,\n \"project_id\": \"proj_abGMw1llN8IrBb6SvvY5A1iH\"\n },\n {\n \"object\": \"checkpoint.permission\",\n \"id\": \"cp_enQCFmOTGj3syEpYVhBRLTSy\",\n \"created_at\": 1721764800,\n \"project_id\": \"proj_iqGMw1llN8IrBb6SvvY5A1oF\"\n },\n ],\n \"first_id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n \"last_id\": \"cp_enQCFmOTGj3syEpYVhBRLTSy\",\n \"has_more\": false\n}\n" group: fine-tuning name: List checkpoint permissions - returns: 'A list of fine-tuned model checkpoint [permission objects](/docs/api-reference/fine-tuning/permission-object) for a fine-tuned model checkpoint.' + returns: 'A list of fine-tuned model checkpoint [permission objects](https://platform.openai.com/docs/api-reference/fine-tuning/permission-object) for a fine-tuned model checkpoint.' post: tags: - Fine-tuning - summary: "**NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).\n\nThis enables organization owners to share fine-tuned models with other projects in their organization.\n" + summary: Create checkpoint permissions + description: "**NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).\n\nThis enables organization owners to share fine-tuned models with other projects in their organization.\n" operationId: createFineTuningCheckpointPermission parameters: - name: fine_tuned_model_checkpoint @@ -2098,12 +2134,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"checkpoint.permission\",\n \"id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n \"created_at\": 1721764867,\n \"project_id\": \"proj_abGMw1llN8IrBb6SvvY5A1iH\"\n }\n ],\n \"first_id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n \"last_id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n \"has_more\": false\n}\n" group: fine-tuning name: Create checkpoint permissions - returns: 'A list of fine-tuned model checkpoint [permission objects](/docs/api-reference/fine-tuning/permission-object) for a fine-tuned model checkpoint.' + returns: 'A list of fine-tuned model checkpoint [permission objects](https://platform.openai.com/docs/api-reference/fine-tuning/permission-object) for a fine-tuned model checkpoint.' '/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}': delete: tags: - Fine-tuning - summary: "**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).\n\nOrganization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.\n" + summary: Delete checkpoint permission + description: "**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).\n\nOrganization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.\n" operationId: deleteFineTuningCheckpointPermission parameters: - name: fine_tuned_model_checkpoint @@ -2140,12 +2177,13 @@ paths: response: "{\n \"object\": \"checkpoint.permission\",\n \"id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n \"deleted\": true\n}\n" group: fine-tuning name: Delete checkpoint permission - returns: 'The deletion status of the fine-tuned model checkpoint [permission object](/docs/api-reference/fine-tuning/permission-object).' + returns: 'The deletion status of the fine-tuned model checkpoint [permission object](https://platform.openai.com/docs/api-reference/fine-tuning/permission-object).' /fine_tuning/jobs: get: tags: - Fine-tuning - summary: "List your organization's fine-tuning jobs\n" + summary: List fine-tuning jobs + description: "List your organization's fine-tuning jobs\n" operationId: listPaginatedFineTuningJobs parameters: - name: after @@ -2189,11 +2227,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"fine_tuning.job\",\n \"id\": \"ftjob-abc123\",\n \"model\": \"gpt-4o-mini-2024-07-18\",\n \"created_at\": 1721764800,\n \"fine_tuned_model\": null,\n \"organization_id\": \"org-123\",\n \"result_files\": [],\n \"status\": \"queued\",\n \"validation_file\": null,\n \"training_file\": \"file-abc123\",\n \"metadata\": {\n \"key\": \"value\"\n }\n },\n { ... },\n { ... }\n ], \"has_more\": true\n}\n" group: fine-tuning name: List fine-tuning jobs - returns: 'A list of paginated [fine-tuning job](/docs/api-reference/fine-tuning/object) objects.' + returns: 'A list of paginated [fine-tuning job](https://platform.openai.com/docs/api-reference/fine-tuning/object) objects.' post: tags: - Fine-tuning - summary: "Creates a fine-tuning job which begins the process of creating a new model from a given dataset.\n\nResponse includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\n\n[Learn more about fine-tuning](/docs/guides/model-optimization)\n" + summary: Create fine-tuning job + description: "Creates a fine-tuning job which begins the process of creating a new model from a given dataset.\n\nResponse includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\n\n[Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization)\n" operationId: createFineTuningJob requestBody: content: @@ -2222,12 +2261,13 @@ paths: title: Default group: fine-tuning name: Create fine-tuning job - returns: 'A [fine-tuning.job](/docs/api-reference/fine-tuning/object) object.' + returns: 'A [fine-tuning.job](https://platform.openai.com/docs/api-reference/fine-tuning/object) object.' '/fine_tuning/jobs/{fine_tuning_job_id}': get: tags: - Fine-tuning - summary: "Get info about a fine-tuning job.\n\n[Learn more about fine-tuning](/docs/guides/model-optimization)\n" + summary: Retrieve fine-tuning job + description: "Get info about a fine-tuning job.\n\n[Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization)\n" operationId: retrieveFineTuningJob parameters: - name: fine_tuning_job_id @@ -2257,12 +2297,13 @@ paths: response: "{\n \"object\": \"fine_tuning.job\",\n \"id\": \"ftjob-abc123\",\n \"model\": \"davinci-002\",\n \"created_at\": 1692661014,\n \"finished_at\": 1692661190,\n \"fine_tuned_model\": \"ft:davinci-002:my-org:custom_suffix:7q8mpxmy\",\n \"organization_id\": \"org-123\",\n \"result_files\": [\n \"file-abc123\"\n ],\n \"status\": \"succeeded\",\n \"validation_file\": null,\n \"training_file\": \"file-abc123\",\n \"hyperparameters\": {\n \"n_epochs\": 4,\n \"batch_size\": 1,\n \"learning_rate_multiplier\": 1.0\n },\n \"trained_tokens\": 5768,\n \"integrations\": [],\n \"seed\": 0,\n \"estimated_finish\": 0,\n \"method\": {\n \"type\": \"supervised\",\n \"supervised\": {\n \"hyperparameters\": {\n \"n_epochs\": 4,\n \"batch_size\": 1,\n \"learning_rate_multiplier\": 1.0\n }\n }\n }\n}\n" group: fine-tuning name: Retrieve fine-tuning job - returns: 'The [fine-tuning](/docs/api-reference/fine-tuning/object) object with the given ID.' + returns: 'The [fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning/object) object with the given ID.' '/fine_tuning/jobs/{fine_tuning_job_id}/cancel': post: tags: - Fine-tuning - summary: "Immediately cancel a fine-tune job.\n" + summary: Cancel fine-tuning + description: "Immediately cancel a fine-tune job.\n" operationId: cancelFineTuningJob parameters: - name: fine_tuning_job_id @@ -2292,12 +2333,13 @@ paths: response: "{\n \"object\": \"fine_tuning.job\",\n \"id\": \"ftjob-abc123\",\n \"model\": \"gpt-4o-mini-2024-07-18\",\n \"created_at\": 1721764800,\n \"fine_tuned_model\": null,\n \"organization_id\": \"org-123\",\n \"result_files\": [],\n \"status\": \"cancelled\",\n \"validation_file\": \"file-abc123\",\n \"training_file\": \"file-abc123\"\n}\n" group: fine-tuning name: Cancel fine-tuning - returns: 'The cancelled [fine-tuning](/docs/api-reference/fine-tuning/object) object.' + returns: 'The cancelled [fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning/object) object.' '/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints': get: tags: - Fine-tuning - summary: "List checkpoints for a fine-tuning job.\n" + summary: List fine-tuning checkpoints + description: "List checkpoints for a fine-tuning job.\n" operationId: listFineTuningJobCheckpoints parameters: - name: fine_tuning_job_id @@ -2338,12 +2380,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"fine_tuning.job.checkpoint\",\n \"id\": \"ftckpt_zc4Q7MP6XxulcVzj4MZdwsAB\",\n \"created_at\": 1721764867,\n \"fine_tuned_model_checkpoint\": \"ft:gpt-4o-mini-2024-07-18:my-org:custom-suffix:96olL566:ckpt-step-2000\",\n \"metrics\": {\n \"full_valid_loss\": 0.134,\n \"full_valid_mean_token_accuracy\": 0.874\n },\n \"fine_tuning_job_id\": \"ftjob-abc123\",\n \"step_number\": 2000\n },\n {\n \"object\": \"fine_tuning.job.checkpoint\",\n \"id\": \"ftckpt_enQCFmOTGj3syEpYVhBRLTSy\",\n \"created_at\": 1721764800,\n \"fine_tuned_model_checkpoint\": \"ft:gpt-4o-mini-2024-07-18:my-org:custom-suffix:7q8mpxmy:ckpt-step-1000\",\n \"metrics\": {\n \"full_valid_loss\": 0.167,\n \"full_valid_mean_token_accuracy\": 0.781\n },\n \"fine_tuning_job_id\": \"ftjob-abc123\",\n \"step_number\": 1000\n }\n ],\n \"first_id\": \"ftckpt_zc4Q7MP6XxulcVzj4MZdwsAB\",\n \"last_id\": \"ftckpt_enQCFmOTGj3syEpYVhBRLTSy\",\n \"has_more\": true\n}\n" group: fine-tuning name: List fine-tuning checkpoints - returns: 'A list of fine-tuning [checkpoint objects](/docs/api-reference/fine-tuning/checkpoint-object) for a fine-tuning job.' + returns: 'A list of fine-tuning [checkpoint objects](https://platform.openai.com/docs/api-reference/fine-tuning/checkpoint-object) for a fine-tuning job.' '/fine_tuning/jobs/{fine_tuning_job_id}/events': get: tags: - Fine-tuning - summary: "Get status updates for a fine-tuning job.\n" + summary: List fine-tuning events + description: "Get status updates for a fine-tuning job.\n" operationId: listFineTuningEvents parameters: - name: fine_tuning_job_id @@ -2389,7 +2432,8 @@ paths: post: tags: - Fine-tuning - summary: "Pause a fine-tune job.\n" + summary: Pause fine-tuning + description: "Pause a fine-tune job.\n" operationId: pauseFineTuningJob parameters: - name: fine_tuning_job_id @@ -2419,12 +2463,13 @@ paths: response: "{\n \"object\": \"fine_tuning.job\",\n \"id\": \"ftjob-abc123\",\n \"model\": \"gpt-4o-mini-2024-07-18\",\n \"created_at\": 1721764800,\n \"fine_tuned_model\": null,\n \"organization_id\": \"org-123\",\n \"result_files\": [],\n \"status\": \"paused\",\n \"validation_file\": \"file-abc123\",\n \"training_file\": \"file-abc123\"\n}\n" group: fine-tuning name: Pause fine-tuning - returns: 'The paused [fine-tuning](/docs/api-reference/fine-tuning/object) object.' + returns: 'The paused [fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning/object) object.' '/fine_tuning/jobs/{fine_tuning_job_id}/resume': post: tags: - Fine-tuning - summary: "Resume a fine-tune job.\n" + summary: Resume fine-tuning + description: "Resume a fine-tune job.\n" operationId: resumeFineTuningJob parameters: - name: fine_tuning_job_id @@ -2454,12 +2499,13 @@ paths: response: "{\n \"object\": \"fine_tuning.job\",\n \"id\": \"ftjob-abc123\",\n \"model\": \"gpt-4o-mini-2024-07-18\",\n \"created_at\": 1721764800,\n \"fine_tuned_model\": null,\n \"organization_id\": \"org-123\",\n \"result_files\": [],\n \"status\": \"queued\",\n \"validation_file\": \"file-abc123\",\n \"training_file\": \"file-abc123\"\n}\n" group: fine-tuning name: Resume fine-tuning - returns: 'The resumed [fine-tuning](/docs/api-reference/fine-tuning/object) object.' + returns: 'The resumed [fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning/object) object.' /images/edits: post: tags: - Images - summary: Creates an edited or extended image given one or more source images and a prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`. + summary: Create image edit + description: Creates an edited or extended image given one or more source images and a prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`. operationId: createImageEdit requestBody: content: @@ -2490,12 +2536,13 @@ paths: title: Edit image group: images name: Create image edit - returns: 'Returns an [image](/docs/api-reference/images/object) object.' + returns: 'Returns an [image](https://platform.openai.com/docs/api-reference/images/object) object.' /images/generations: post: tags: - Images - summary: "Creates an image given a prompt. [Learn more](/docs/guides/images).\n" + summary: Create image + description: "Creates an image given a prompt. [Learn more](https://platform.openai.com/docs/guides/images).\n" operationId: createImage requestBody: content: @@ -2527,12 +2574,13 @@ paths: title: Generate image group: images name: Create image - returns: 'Returns an [image](/docs/api-reference/images/object) object.' + returns: 'Returns an [image](https://platform.openai.com/docs/api-reference/images/object) object.' /images/variations: post: tags: - Images - summary: Creates a variation of a given image. This endpoint only supports `dall-e-2`. + summary: Create image variation + description: Creates a variation of a given image. This endpoint only supports `dall-e-2`. operationId: createImageVariation requestBody: content: @@ -2561,12 +2609,13 @@ paths: response: "{\n \"created\": 1589478378,\n \"data\": [\n {\n \"url\": \"https://...\"\n },\n {\n \"url\": \"https://...\"\n }\n ]\n}\n" group: images name: Create image variation - returns: 'Returns a list of [image](/docs/api-reference/images/object) objects.' + returns: 'Returns a list of [image](https://platform.openai.com/docs/api-reference/images/object) objects.' /models: get: tags: - Models - summary: 'Lists the currently available models, and provides basic information about each one such as the owner and availability.' + summary: List models + description: 'Lists the currently available models, and provides basic information about each one such as the owner and availability.' operationId: listModels responses: '200': @@ -2589,12 +2638,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"model-id-0\",\n \"object\": \"model\",\n \"created\": 1686935002,\n \"owned_by\": \"organization-owner\"\n },\n {\n \"id\": \"model-id-1\",\n \"object\": \"model\",\n \"created\": 1686935002,\n \"owned_by\": \"organization-owner\",\n },\n {\n \"id\": \"model-id-2\",\n \"object\": \"model\",\n \"created\": 1686935002,\n \"owned_by\": \"openai\"\n },\n ],\n \"object\": \"list\"\n}\n" group: models name: List models - returns: 'A list of [model](/docs/api-reference/models/object) objects.' + returns: 'A list of [model](https://platform.openai.com/docs/api-reference/models/object) objects.' '/models/{model}': delete: tags: - Models - summary: Delete a fine-tuned model. You must have the Owner role in your organization to delete a model. + summary: Delete a fine-tuned model + description: Delete a fine-tuned model. You must have the Owner role in your organization to delete a model. operationId: deleteModel parameters: - name: model @@ -2629,7 +2679,8 @@ paths: get: tags: - Models - summary: 'Retrieves a model instance, providing basic information about the model such as the owner and permissioning.' + summary: Retrieve model + description: 'Retrieves a model instance, providing basic information about the model such as the owner and permissioning.' operationId: retrieveModel parameters: - name: model @@ -2660,12 +2711,13 @@ paths: response: "{\n \"id\": \"VAR_chat_model_id\",\n \"object\": \"model\",\n \"created\": 1686935002,\n \"owned_by\": \"openai\"\n}\n" group: models name: Retrieve model - returns: 'The [model](/docs/api-reference/models/object) object matching the specified ID.' + returns: 'The [model](https://platform.openai.com/docs/api-reference/models/object) object matching the specified ID.' /moderations: post: tags: - Moderations - summary: "Classifies if text and/or image inputs are potentially harmful. Learn\nmore in the [moderation guide](/docs/guides/moderation).\n" + summary: Create moderation + description: "Classifies if text and/or image inputs are potentially harmful. Learn\nmore in the [moderation guide](https://platform.openai.com/docs/guides/moderation).\n" operationId: createModeration requestBody: content: @@ -2695,11 +2747,11 @@ paths: title: Single string group: moderations name: Create moderation - returns: 'A [moderation](/docs/api-reference/moderations/object) object.' + returns: 'A [moderation](https://platform.openai.com/docs/api-reference/moderations/object) object.' /organization/admin_api_keys: get: - summary: List organization API keys - description: Retrieve a paginated list of organization admin API keys. + summary: List all organization and project API keys. + description: List organization API keys operationId: admin-api-keys-list parameters: - name: after @@ -2739,8 +2791,8 @@ paths: name: List all organization and project API keys. returns: A list of admin and project API key objects. post: - summary: Create an organization admin API key - description: Create a new admin-level API key for the organization. + summary: Create admin API key + description: Create an organization admin API key operationId: admin-api-keys-create requestBody: content: @@ -2768,11 +2820,11 @@ paths: response: "{\n \"object\": \"organization.admin_api_key\",\n \"id\": \"key_xyz\",\n \"name\": \"New Admin Key\",\n \"redacted_value\": \"sk-admin...xyz\",\n \"created_at\": 1711471533,\n \"last_used_at\": 1711471534,\n \"owner\": {\n \"type\": \"user\",\n \"object\": \"organization.user\",\n \"id\": \"user_123\",\n \"name\": \"John Doe\",\n \"created_at\": 1711471533,\n \"role\": \"owner\"\n },\n \"value\": \"sk-admin-1234abcd\"\n}\n" group: administration name: Create admin API key - returns: 'The created [AdminApiKey](/docs/api-reference/admin-api-keys/object) object.' + returns: 'The created [AdminApiKey](https://platform.openai.com/docs/api-reference/admin-api-keys/object) object.' '/organization/admin_api_keys/{key_id}': delete: - summary: Delete an organization admin API key - description: Delete the specified admin API key. + summary: Delete admin API key + description: Delete an organization admin API key operationId: admin-api-keys-delete parameters: - name: key_id @@ -2807,8 +2859,8 @@ paths: name: Delete admin API key returns: A confirmation object indicating the key was deleted. get: - summary: Retrieve a single organization API key - description: Get details for a specific organization API key by its ID. + summary: Retrieve admin API key + description: Retrieve a single organization API key operationId: admin-api-keys-get parameters: - name: key_id @@ -2831,12 +2883,13 @@ paths: response: "{\n \"object\": \"organization.admin_api_key\",\n \"id\": \"key_abc\",\n \"name\": \"Main Admin Key\",\n \"redacted_value\": \"sk-admin...xyz\",\n \"created_at\": 1711471533,\n \"last_used_at\": 1711471534,\n \"owner\": {\n \"type\": \"user\",\n \"object\": \"organization.user\",\n \"id\": \"user_123\",\n \"name\": \"John Doe\",\n \"created_at\": 1711471533,\n \"role\": \"owner\"\n }\n}\n" group: administration name: Retrieve admin API key - returns: 'The requested [AdminApiKey](/docs/api-reference/admin-api-keys/object) object.' + returns: 'The requested [AdminApiKey](https://platform.openai.com/docs/api-reference/admin-api-keys/object) object.' /organization/audit_logs: get: tags: - Audit Logs - summary: List user actions and configuration changes within this organization. + summary: List audit logs + description: List user actions and configuration changes within this organization. operationId: list-audit-logs parameters: - name: effective_at @@ -2866,7 +2919,7 @@ paths: type: string - name: 'event_types[]' in: query - description: 'Return only events with a `type` in one of these values. For example, `project.created`. For all options, see the documentation for the [audit log object](/docs/api-reference/audit-logs/object).' + description: 'Return only events with a `type` in one of these values. For example, `project.created`. For all options, see the documentation for the [audit log object](https://platform.openai.com/docs/api-reference/audit-logs/object).' schema: type: array items: @@ -2922,12 +2975,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"audit_log-xxx_yyyymmdd\",\n \"type\": \"project.archived\",\n \"effective_at\": 1722461446,\n \"actor\": {\n \"type\": \"api_key\",\n \"api_key\": {\n \"type\": \"user\",\n \"user\": {\n \"id\": \"user-xxx\",\n \"email\": \"user@example.com\"\n }\n }\n },\n \"project.archived\": {\n \"id\": \"proj_abc\"\n },\n },\n {\n \"id\": \"audit_log-yyy__20240101\",\n \"type\": \"api_key.updated\",\n \"effective_at\": 1720804190,\n \"actor\": {\n \"type\": \"session\",\n \"session\": {\n \"user\": {\n \"id\": \"user-xxx\",\n \"email\": \"user@example.com\"\n },\n \"ip_address\": \"127.0.0.1\",\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36\",\n \"ja3\": \"a497151ce4338a12c4418c44d375173e\",\n \"ja4\": \"q13d0313h3_55b375c5d22e_c7319ce65786\",\n \"ip_address_details\": {\n \"country\": \"US\",\n \"city\": \"San Francisco\",\n \"region\": \"California\",\n \"region_code\": \"CA\",\n \"asn\": \"1234\",\n \"latitude\": \"37.77490\",\n \"longitude\": \"-122.41940\"\n }\n }\n },\n \"api_key.updated\": {\n \"id\": \"key_xxxx\",\n \"data\": {\n \"scopes\": [\"resource_2.operation_2\"]\n }\n },\n }\n ],\n \"first_id\": \"audit_log-xxx__20240101\",\n \"last_id\": \"audit_log_yyy__20240101\",\n \"has_more\": true\n}\n" group: audit-logs name: List audit logs - returns: 'A list of paginated [Audit Log](/docs/api-reference/audit-logs/object) objects.' + returns: 'A list of paginated [Audit Log](https://platform.openai.com/docs/api-reference/audit-logs/object) objects.' /organization/certificates: get: tags: - Certificates - summary: List uploaded certificates for this organization. + summary: List organization certificates + description: List uploaded certificates for this organization. operationId: listOrganizationCertificates parameters: - name: limit @@ -2964,11 +3018,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"organization.certificate\",\n \"id\": \"cert_abc\",\n \"name\": \"My Example Certificate\",\n \"active\": true,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n ],\n \"first_id\": \"cert_abc\",\n \"last_id\": \"cert_abc\",\n \"has_more\": false\n}\n" group: administration name: List organization certificates - returns: 'A list of [Certificate](/docs/api-reference/certificates/object) objects.' + returns: 'A list of [Certificate](https://platform.openai.com/docs/api-reference/certificates/object) objects.' post: tags: - Certificates - summary: "Upload a certificate to the organization. This does **not** automatically activate the certificate.\n\nOrganizations can upload up to 50 certificates.\n" + summary: Upload certificate + description: "Upload a certificate to the organization. This does **not** automatically activate the certificate.\n\nOrganizations can upload up to 50 certificates.\n" operationId: uploadCertificate requestBody: description: The certificate upload payload. @@ -2991,12 +3046,13 @@ paths: response: "{\n \"object\": \"certificate\",\n \"id\": \"cert_abc\",\n \"name\": \"My Example Certificate\",\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n}\n" group: administration name: Upload certificate - returns: 'A single [Certificate](/docs/api-reference/certificates/object) object.' + returns: 'A single [Certificate](https://platform.openai.com/docs/api-reference/certificates/object) object.' /organization/certificates/activate: post: tags: - Certificates - summary: "Activate certificates at the organization level.\n\nYou can atomically and idempotently activate up to 10 certificates at a time.\n" + summary: Activate certificates for organization + description: "Activate certificates at the organization level.\n\nYou can atomically and idempotently activate up to 10 certificates at a time.\n" operationId: activateOrganizationCertificates requestBody: description: The certificate activation payload. @@ -3019,12 +3075,13 @@ paths: response: "{\n \"object\": \"organization.certificate.activation\",\n \"data\": [\n {\n \"object\": \"organization.certificate\",\n \"id\": \"cert_abc\",\n \"name\": \"My Example Certificate\",\n \"active\": true,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n {\n \"object\": \"organization.certificate\",\n \"id\": \"cert_def\",\n \"name\": \"My Example Certificate 2\",\n \"active\": true,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n ],\n}\n" group: administration name: Activate certificates for organization - returns: 'A list of [Certificate](/docs/api-reference/certificates/object) objects that were activated.' + returns: 'A list of [Certificate](https://platform.openai.com/docs/api-reference/certificates/object) objects that were activated.' /organization/certificates/deactivate: post: tags: - Certificates - summary: "Deactivate certificates at the organization level.\n\nYou can atomically and idempotently deactivate up to 10 certificates at a time.\n" + summary: Deactivate certificates for organization + description: "Deactivate certificates at the organization level.\n\nYou can atomically and idempotently deactivate up to 10 certificates at a time.\n" operationId: deactivateOrganizationCertificates requestBody: description: The certificate deactivation payload. @@ -3047,12 +3104,13 @@ paths: response: "{\n \"object\": \"organization.certificate.deactivation\",\n \"data\": [\n {\n \"object\": \"organization.certificate\",\n \"id\": \"cert_abc\",\n \"name\": \"My Example Certificate\",\n \"active\": false,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n {\n \"object\": \"organization.certificate\",\n \"id\": \"cert_def\",\n \"name\": \"My Example Certificate 2\",\n \"active\": false,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n ],\n}\n" group: administration name: Deactivate certificates for organization - returns: 'A list of [Certificate](/docs/api-reference/certificates/object) objects that were deactivated.' + returns: 'A list of [Certificate](https://platform.openai.com/docs/api-reference/certificates/object) objects that were deactivated.' '/organization/certificates/{certificate_id}': delete: tags: - Certificates - summary: "Delete a certificate from the organization.\n\nThe certificate must be inactive for the organization and all projects.\n" + summary: Delete certificate + description: "Delete a certificate from the organization.\n\nThe certificate must be inactive for the organization and all projects.\n" operationId: deleteCertificate responses: '200': @@ -3072,7 +3130,8 @@ paths: get: tags: - Certificates - summary: "Get a certificate that has been uploaded to the organization.\n\nYou can get a certificate regardless of whether it is active or not.\n" + summary: Get certificate + description: "Get a certificate that has been uploaded to the organization.\n\nYou can get a certificate regardless of whether it is active or not.\n" operationId: getCertificate parameters: - name: certificate_id @@ -3104,11 +3163,12 @@ paths: response: "{\n \"object\": \"certificate\",\n \"id\": \"cert_abc\",\n \"name\": \"My Example Certificate\",\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 1234567,\n \"expires_at\": 12345678,\n \"content\": \"-----BEGIN CERTIFICATE-----MIIDeT...-----END CERTIFICATE-----\"\n }\n}\n" group: administration name: Get certificate - returns: 'A single [Certificate](/docs/api-reference/certificates/object) object.' + returns: 'A single [Certificate](https://platform.openai.com/docs/api-reference/certificates/object) object.' post: tags: - Certificates - summary: "Modify a certificate. Note that only the name can be modified.\n" + summary: Modify certificate + description: "Modify a certificate. Note that only the name can be modified.\n" operationId: modifyCertificate requestBody: description: The certificate modification payload. @@ -3131,12 +3191,13 @@ paths: response: "{\n \"object\": \"certificate\",\n \"id\": \"cert_abc\",\n \"name\": \"Renamed Certificate\",\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n}\n" group: administration name: Modify certificate - returns: 'The updated [Certificate](/docs/api-reference/certificates/object) object.' + returns: 'The updated [Certificate](https://platform.openai.com/docs/api-reference/certificates/object) object.' /organization/costs: get: tags: - Usage - summary: Get costs details for the organization. + summary: Costs + description: Get costs details for the organization. operationId: usage-costs parameters: - name: start_time @@ -3200,12 +3261,13 @@ paths: response: "{\n \"object\": \"page\",\n \"data\": [\n {\n \"object\": \"bucket\",\n \"start_time\": 1730419200,\n \"end_time\": 1730505600,\n \"results\": [\n {\n \"object\": \"organization.costs.result\",\n \"amount\": {\n \"value\": 0.06,\n \"currency\": \"usd\"\n },\n \"line_item\": null,\n \"project_id\": null\n }\n ]\n }\n ],\n \"has_more\": false,\n \"next_page\": null\n}\n" group: usage-costs name: Costs - returns: 'A list of paginated, time bucketed [Costs](/docs/api-reference/usage/costs_object) objects.' + returns: 'A list of paginated, time bucketed [Costs](https://platform.openai.com/docs/api-reference/usage/costs_object) objects.' /organization/invites: get: tags: - Invites - summary: Returns a list of invites in the organization. + summary: List invites + description: Returns a list of invites in the organization. operationId: list-invites parameters: - name: limit @@ -3233,11 +3295,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"organization.invite\",\n \"id\": \"invite-abc\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"status\": \"accepted\",\n \"invited_at\": 1711471533,\n \"expires_at\": 1711471533,\n \"accepted_at\": 1711471533\n }\n ],\n \"first_id\": \"invite-abc\",\n \"last_id\": \"invite-abc\",\n \"has_more\": false\n}\n" group: administration name: List invites - returns: 'A list of [Invite](/docs/api-reference/invite/object) objects.' + returns: 'A list of [Invite](https://platform.openai.com/docs/api-reference/invite/object) objects.' post: tags: - Invites - summary: Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization. + summary: Create invite + description: Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization. operationId: inviteUser requestBody: description: The invite request payload. @@ -3260,12 +3323,13 @@ paths: response: "{\n \"object\": \"organization.invite\",\n \"id\": \"invite-def\",\n \"email\": \"anotheruser@example.com\",\n \"role\": \"reader\",\n \"status\": \"pending\",\n \"invited_at\": 1711471533,\n \"expires_at\": 1711471533,\n \"accepted_at\": null,\n \"projects\": [\n {\n \"id\": \"project-xyz\",\n \"role\": \"member\"\n },\n {\n \"id\": \"project-abc\",\n \"role\": \"owner\"\n }\n ]\n}\n" group: administration name: Create invite - returns: 'The created [Invite](/docs/api-reference/invite/object) object.' + returns: 'The created [Invite](https://platform.openai.com/docs/api-reference/invite/object) object.' '/organization/invites/{invite_id}': delete: tags: - Invites - summary: 'Delete an invite. If the invite has already been accepted, it cannot be deleted.' + summary: Delete invite + description: 'Delete an invite. If the invite has already been accepted, it cannot be deleted.' operationId: delete-invite parameters: - name: invite_id @@ -3292,7 +3356,8 @@ paths: get: tags: - Invites - summary: Retrieves an invite. + summary: Retrieve invite + description: Retrieves an invite. operationId: retrieve-invite parameters: - name: invite_id @@ -3315,12 +3380,13 @@ paths: response: "{\n \"object\": \"organization.invite\",\n \"id\": \"invite-abc\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"status\": \"accepted\",\n \"invited_at\": 1711471533,\n \"expires_at\": 1711471533,\n \"accepted_at\": 1711471533\n}\n" group: administration name: Retrieve invite - returns: 'The [Invite](/docs/api-reference/invite/object) object matching the specified ID.' + returns: 'The [Invite](https://platform.openai.com/docs/api-reference/invite/object) object matching the specified ID.' /organization/projects: get: tags: - Projects - summary: Returns a list of projects. + summary: List projects + description: Returns a list of projects. operationId: list-projects parameters: - name: limit @@ -3354,11 +3420,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"proj_abc\",\n \"object\": \"organization.project\",\n \"name\": \"Project example\",\n \"created_at\": 1711471533,\n \"archived_at\": null,\n \"status\": \"active\"\n }\n ],\n \"first_id\": \"proj-abc\",\n \"last_id\": \"proj-xyz\",\n \"has_more\": false\n}\n" group: administration name: List projects - returns: 'A list of [Project](/docs/api-reference/projects/object) objects.' + returns: 'A list of [Project](https://platform.openai.com/docs/api-reference/projects/object) objects.' post: tags: - Projects - summary: 'Create a new project in the organization. Projects can be created and archived, but cannot be deleted.' + summary: Create project + description: 'Create a new project in the organization. Projects can be created and archived, but cannot be deleted.' operationId: create-project requestBody: description: The project create request payload. @@ -3381,12 +3448,13 @@ paths: response: "{\n \"id\": \"proj_abc\",\n \"object\": \"organization.project\",\n \"name\": \"Project ABC\",\n \"created_at\": 1711471533,\n \"archived_at\": null,\n \"status\": \"active\"\n}\n" group: administration name: Create project - returns: 'The created [Project](/docs/api-reference/projects/object) object.' + returns: 'The created [Project](https://platform.openai.com/docs/api-reference/projects/object) object.' '/organization/projects/{project_id}': get: tags: - Projects - summary: Retrieves a project. + summary: Retrieve project + description: Retrieves a project. operationId: retrieve-project parameters: - name: project_id @@ -3410,11 +3478,12 @@ paths: response: "{\n \"id\": \"proj_abc\",\n \"object\": \"organization.project\",\n \"name\": \"Project example\",\n \"created_at\": 1711471533,\n \"archived_at\": null,\n \"status\": \"active\"\n}\n" group: administration name: Retrieve project - returns: 'The [Project](/docs/api-reference/projects/object) object matching the specified ID.' + returns: 'The [Project](https://platform.openai.com/docs/api-reference/projects/object) object matching the specified ID.' post: tags: - Projects - summary: Modifies a project in the organization. + summary: Modify project + description: Modifies a project in the organization. operationId: modify-project parameters: - name: project_id @@ -3450,12 +3519,13 @@ paths: response: '' group: administration name: Modify project - returns: 'The updated [Project](/docs/api-reference/projects/object) object.' + returns: 'The updated [Project](https://platform.openai.com/docs/api-reference/projects/object) object.' '/organization/projects/{project_id}/api_keys': get: tags: - Projects - summary: Returns a list of API keys in the project. + summary: List project API keys + description: Returns a list of API keys in the project. operationId: list-project-api-keys parameters: - name: project_id @@ -3489,12 +3559,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"organization.project.api_key\",\n \"redacted_value\": \"sk-abc...def\",\n \"name\": \"My API Key\",\n \"created_at\": 1711471533,\n \"last_used_at\": 1711471534,\n \"id\": \"key_abc\",\n \"owner\": {\n \"type\": \"user\",\n \"user\": {\n \"object\": \"organization.project.user\",\n \"id\": \"user_abc\",\n \"name\": \"First Last\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"added_at\": 1711471533\n }\n }\n }\n ],\n \"first_id\": \"key_abc\",\n \"last_id\": \"key_xyz\",\n \"has_more\": false\n}\n" group: administration name: List project API keys - returns: 'A list of [ProjectApiKey](/docs/api-reference/project-api-keys/object) objects.' + returns: 'A list of [ProjectApiKey](https://platform.openai.com/docs/api-reference/project-api-keys/object) objects.' '/organization/projects/{project_id}/api_keys/{key_id}': delete: tags: - Projects - summary: Deletes an API key from the project. + summary: Delete project API key + description: Deletes an API key from the project. operationId: delete-project-api-key parameters: - name: project_id @@ -3533,7 +3604,8 @@ paths: get: tags: - Projects - summary: Retrieves an API key in the project. + summary: Retrieve project API key + description: Retrieves an API key in the project. operationId: retrieve-project-api-key parameters: - name: project_id @@ -3562,12 +3634,13 @@ paths: response: "{\n \"object\": \"organization.project.api_key\",\n \"redacted_value\": \"sk-abc...def\",\n \"name\": \"My API Key\",\n \"created_at\": 1711471533,\n \"last_used_at\": 1711471534,\n \"id\": \"key_abc\",\n \"owner\": {\n \"type\": \"user\",\n \"user\": {\n \"object\": \"organization.project.user\",\n \"id\": \"user_abc\",\n \"name\": \"First Last\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"added_at\": 1711471533\n }\n }\n}\n" group: administration name: Retrieve project API key - returns: 'The [ProjectApiKey](/docs/api-reference/project-api-keys/object) object matching the specified ID.' + returns: 'The [ProjectApiKey](https://platform.openai.com/docs/api-reference/project-api-keys/object) object matching the specified ID.' '/organization/projects/{project_id}/archive': post: tags: - Projects - summary: Archives a project in the organization. Archived projects cannot be used or updated. + summary: Archive project + description: Archives a project in the organization. Archived projects cannot be used or updated. operationId: archive-project parameters: - name: project_id @@ -3590,12 +3663,13 @@ paths: response: "{\n \"id\": \"proj_abc\",\n \"object\": \"organization.project\",\n \"name\": \"Project DEF\",\n \"created_at\": 1711471533,\n \"archived_at\": 1711471533,\n \"status\": \"archived\"\n}\n" group: administration name: Archive project - returns: 'The archived [Project](/docs/api-reference/projects/object) object.' + returns: 'The archived [Project](https://platform.openai.com/docs/api-reference/projects/object) object.' '/organization/projects/{project_id}/certificates': get: tags: - Certificates - summary: List certificates for this project. + summary: List project certificates + description: List certificates for this project. operationId: listProjectCertificates parameters: - name: project_id @@ -3638,12 +3712,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"organization.project.certificate\",\n \"id\": \"cert_abc\",\n \"name\": \"My Example Certificate\",\n \"active\": true,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n ],\n \"first_id\": \"cert_abc\",\n \"last_id\": \"cert_abc\",\n \"has_more\": false\n}\n" group: administration name: List project certificates - returns: 'A list of [Certificate](/docs/api-reference/certificates/object) objects.' + returns: 'A list of [Certificate](https://platform.openai.com/docs/api-reference/certificates/object) objects.' '/organization/projects/{project_id}/certificates/activate': post: tags: - Certificates - summary: "Activate certificates at the project level.\n\nYou can atomically and idempotently activate up to 10 certificates at a time.\n" + summary: Activate certificates for project + description: "Activate certificates at the project level.\n\nYou can atomically and idempotently activate up to 10 certificates at a time.\n" operationId: activateProjectCertificates parameters: - name: project_id @@ -3673,12 +3748,13 @@ paths: response: "{\n \"object\": \"organization.project.certificate.activation\",\n \"data\": [\n {\n \"object\": \"organization.project.certificate\",\n \"id\": \"cert_abc\",\n \"name\": \"My Example Certificate\",\n \"active\": true,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n {\n \"object\": \"organization.project.certificate\",\n \"id\": \"cert_def\",\n \"name\": \"My Example Certificate 2\",\n \"active\": true,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n ],\n}\n" group: administration name: Activate certificates for project - returns: 'A list of [Certificate](/docs/api-reference/certificates/object) objects that were activated.' + returns: 'A list of [Certificate](https://platform.openai.com/docs/api-reference/certificates/object) objects that were activated.' '/organization/projects/{project_id}/certificates/deactivate': post: tags: - Certificates - summary: "Deactivate certificates at the project level. You can atomically and \nidempotently deactivate up to 10 certificates at a time.\n" + summary: Deactivate certificates for project + description: "Deactivate certificates at the project level. You can atomically and \nidempotently deactivate up to 10 certificates at a time.\n" operationId: deactivateProjectCertificates parameters: - name: project_id @@ -3708,12 +3784,13 @@ paths: response: "{\n \"object\": \"organization.project.certificate.deactivation\",\n \"data\": [\n {\n \"object\": \"organization.project.certificate\",\n \"id\": \"cert_abc\",\n \"name\": \"My Example Certificate\",\n \"active\": false,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n {\n \"object\": \"organization.project.certificate\",\n \"id\": \"cert_def\",\n \"name\": \"My Example Certificate 2\",\n \"active\": false,\n \"created_at\": 1234567,\n \"certificate_details\": {\n \"valid_at\": 12345667,\n \"expires_at\": 12345678\n }\n },\n ],\n}\n" group: administration name: Deactivate certificates for project - returns: 'A list of [Certificate](/docs/api-reference/certificates/object) objects that were deactivated.' + returns: 'A list of [Certificate](https://platform.openai.com/docs/api-reference/certificates/object) objects that were deactivated.' '/organization/projects/{project_id}/rate_limits': get: tags: - Projects - summary: Returns the rate limits per model for a project. + summary: List project rate limits + description: Returns the rate limits per model for a project. operationId: list-project-rate-limits parameters: - name: project_id @@ -3753,12 +3830,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"project.rate_limit\",\n \"id\": \"rl-ada\",\n \"model\": \"ada\",\n \"max_requests_per_1_minute\": 600,\n \"max_tokens_per_1_minute\": 150000,\n \"max_images_per_1_minute\": 10\n }\n ],\n \"first_id\": \"rl-ada\",\n \"last_id\": \"rl-ada\",\n \"has_more\": false\n}\n" group: administration name: List project rate limits - returns: 'A list of [ProjectRateLimit](/docs/api-reference/project-rate-limits/object) objects.' + returns: 'A list of [ProjectRateLimit](https://platform.openai.com/docs/api-reference/project-rate-limits/object) objects.' '/organization/projects/{project_id}/rate_limits/{rate_limit_id}': post: tags: - Projects - summary: Updates a project rate limit. + summary: Modify project rate limit + description: Updates a project rate limit. operationId: update-project-rate-limits parameters: - name: project_id @@ -3801,12 +3879,13 @@ paths: response: "{\n \"object\": \"project.rate_limit\",\n \"id\": \"rl-ada\",\n \"model\": \"ada\",\n \"max_requests_per_1_minute\": 600,\n \"max_tokens_per_1_minute\": 150000,\n \"max_images_per_1_minute\": 10\n }\n" group: administration name: Modify project rate limit - returns: 'The updated [ProjectRateLimit](/docs/api-reference/project-rate-limits/object) object.' + returns: 'The updated [ProjectRateLimit](https://platform.openai.com/docs/api-reference/project-rate-limits/object) object.' '/organization/projects/{project_id}/service_accounts': get: tags: - Projects - summary: Returns a list of service accounts in the project. + summary: List project service accounts + description: Returns a list of service accounts in the project. operationId: list-project-service-accounts parameters: - name: project_id @@ -3846,11 +3925,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"organization.project.service_account\",\n \"id\": \"svc_acct_abc\",\n \"name\": \"Service Account\",\n \"role\": \"owner\",\n \"created_at\": 1711471533\n }\n ],\n \"first_id\": \"svc_acct_abc\",\n \"last_id\": \"svc_acct_xyz\",\n \"has_more\": false\n}\n" group: administration name: List project service accounts - returns: 'A list of [ProjectServiceAccount](/docs/api-reference/project-service-accounts/object) objects.' + returns: 'A list of [ProjectServiceAccount](https://platform.openai.com/docs/api-reference/project-service-accounts/object) objects.' post: tags: - Projects - summary: Creates a new service account in the project. This also returns an unredacted API key for the service account. + summary: Create project service account + description: Creates a new service account in the project. This also returns an unredacted API key for the service account. operationId: create-project-service-account parameters: - name: project_id @@ -3886,12 +3966,13 @@ paths: response: "{\n \"object\": \"organization.project.service_account\",\n \"id\": \"svc_acct_abc\",\n \"name\": \"Production App\",\n \"role\": \"member\",\n \"created_at\": 1711471533,\n \"api_key\": {\n \"object\": \"organization.project.service_account.api_key\",\n \"value\": \"sk-abcdefghijklmnop123\",\n \"name\": \"Secret Key\",\n \"created_at\": 1711471533,\n \"id\": \"key_abc\"\n }\n}\n" group: administration name: Create project service account - returns: 'The created [ProjectServiceAccount](/docs/api-reference/project-service-accounts/object) object.' + returns: 'The created [ProjectServiceAccount](https://platform.openai.com/docs/api-reference/project-service-accounts/object) object.' '/organization/projects/{project_id}/service_accounts/{service_account_id}': delete: tags: - Projects - summary: Deletes a service account from the project. + summary: Delete project service account + description: Deletes a service account from the project. operationId: delete-project-service-account parameters: - name: project_id @@ -3924,7 +4005,8 @@ paths: get: tags: - Projects - summary: Retrieves a service account in the project. + summary: Retrieve project service account + description: Retrieves a service account in the project. operationId: retrieve-project-service-account parameters: - name: project_id @@ -3953,12 +4035,13 @@ paths: response: "{\n \"object\": \"organization.project.service_account\",\n \"id\": \"svc_acct_abc\",\n \"name\": \"Service Account\",\n \"role\": \"owner\",\n \"created_at\": 1711471533\n}\n" group: administration name: Retrieve project service account - returns: 'The [ProjectServiceAccount](/docs/api-reference/project-service-accounts/object) object matching the specified ID.' + returns: 'The [ProjectServiceAccount](https://platform.openai.com/docs/api-reference/project-service-accounts/object) object matching the specified ID.' '/organization/projects/{project_id}/users': get: tags: - Projects - summary: Returns a list of users in the project. + summary: List project users + description: Returns a list of users in the project. operationId: list-project-users parameters: - name: project_id @@ -3998,11 +4081,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"organization.project.user\",\n \"id\": \"user_abc\",\n \"name\": \"First Last\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"added_at\": 1711471533\n }\n ],\n \"first_id\": \"user-abc\",\n \"last_id\": \"user-xyz\",\n \"has_more\": false\n}\n" group: administration name: List project users - returns: 'A list of [ProjectUser](/docs/api-reference/project-users/object) objects.' + returns: 'A list of [ProjectUser](https://platform.openai.com/docs/api-reference/project-users/object) objects.' post: tags: - Projects - summary: Adds a user to the project. Users must already be members of the organization to be added to a project. + summary: Create project user + description: Adds a user to the project. Users must already be members of the organization to be added to a project. operationId: create-project-user parameters: - name: project_id @@ -4038,12 +4122,13 @@ paths: response: "{\n \"object\": \"organization.project.user\",\n \"id\": \"user_abc\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"added_at\": 1711471533\n}\n" group: administration name: Create project user - returns: 'The created [ProjectUser](/docs/api-reference/project-users/object) object.' + returns: 'The created [ProjectUser](https://platform.openai.com/docs/api-reference/project-users/object) object.' '/organization/projects/{project_id}/users/{user_id}': delete: tags: - Projects - summary: Deletes a user from the project. + summary: Delete project user + description: Deletes a user from the project. operationId: delete-project-user parameters: - name: project_id @@ -4082,7 +4167,8 @@ paths: get: tags: - Projects - summary: Retrieves a user in the project. + summary: Retrieve project user + description: Retrieves a user in the project. operationId: retrieve-project-user parameters: - name: project_id @@ -4111,11 +4197,12 @@ paths: response: "{\n \"object\": \"organization.project.user\",\n \"id\": \"user_abc\",\n \"name\": \"First Last\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"added_at\": 1711471533\n}\n" group: administration name: Retrieve project user - returns: 'The [ProjectUser](/docs/api-reference/project-users/object) object matching the specified ID.' + returns: 'The [ProjectUser](https://platform.openai.com/docs/api-reference/project-users/object) object matching the specified ID.' post: tags: - Projects - summary: Modifies a user's role in the project. + summary: Modify project user + description: Modifies a user's role in the project. operationId: modify-project-user parameters: - name: project_id @@ -4157,12 +4244,13 @@ paths: response: "{\n \"object\": \"organization.project.user\",\n \"id\": \"user_abc\",\n \"name\": \"First Last\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"added_at\": 1711471533\n}\n" group: administration name: Modify project user - returns: 'The updated [ProjectUser](/docs/api-reference/project-users/object) object.' + returns: 'The updated [ProjectUser](https://platform.openai.com/docs/api-reference/project-users/object) object.' /organization/usage/audio_speeches: get: tags: - Usage - summary: Get audio speeches usage details for the organization. + summary: Audio speeches + description: Get audio speeches usage details for the organization. operationId: usage-audio-speeches parameters: - name: start_time @@ -4250,12 +4338,13 @@ paths: response: "{\n \"object\": \"page\",\n \"data\": [\n {\n \"object\": \"bucket\",\n \"start_time\": 1730419200,\n \"end_time\": 1730505600,\n \"results\": [\n {\n \"object\": \"organization.usage.audio_speeches.result\",\n \"characters\": 45,\n \"num_model_requests\": 1,\n \"project_id\": null,\n \"user_id\": null,\n \"api_key_id\": null,\n \"model\": null\n }\n ]\n }\n ],\n \"has_more\": false,\n \"next_page\": null\n}\n" group: usage-audio-speeches name: Audio speeches - returns: 'A list of paginated, time bucketed [Audio speeches usage](/docs/api-reference/usage/audio_speeches_object) objects.' + returns: 'A list of paginated, time bucketed [Audio speeches usage](https://platform.openai.com/docs/api-reference/usage/audio_speeches_object) objects.' /organization/usage/audio_transcriptions: get: tags: - Usage - summary: Get audio transcriptions usage details for the organization. + summary: Audio transcriptions + description: Get audio transcriptions usage details for the organization. operationId: usage-audio-transcriptions parameters: - name: start_time @@ -4343,12 +4432,13 @@ paths: response: "{\n \"object\": \"page\",\n \"data\": [\n {\n \"object\": \"bucket\",\n \"start_time\": 1730419200,\n \"end_time\": 1730505600,\n \"results\": [\n {\n \"object\": \"organization.usage.audio_transcriptions.result\",\n \"seconds\": 20,\n \"num_model_requests\": 1,\n \"project_id\": null,\n \"user_id\": null,\n \"api_key_id\": null,\n \"model\": null\n }\n ]\n }\n ],\n \"has_more\": false,\n \"next_page\": null\n}\n" group: usage-audio-transcriptions name: Audio transcriptions - returns: 'A list of paginated, time bucketed [Audio transcriptions usage](/docs/api-reference/usage/audio_transcriptions_object) objects.' + returns: 'A list of paginated, time bucketed [Audio transcriptions usage](https://platform.openai.com/docs/api-reference/usage/audio_transcriptions_object) objects.' /organization/usage/code_interpreter_sessions: get: tags: - Usage - summary: Get code interpreter sessions usage details for the organization. + summary: Code interpreter sessions + description: Get code interpreter sessions usage details for the organization. operationId: usage-code-interpreter-sessions parameters: - name: start_time @@ -4412,12 +4502,13 @@ paths: response: "{\n \"object\": \"page\",\n \"data\": [\n {\n \"object\": \"bucket\",\n \"start_time\": 1730419200,\n \"end_time\": 1730505600,\n \"results\": [\n {\n \"object\": \"organization.usage.code_interpreter_sessions.result\",\n \"num_sessions\": 1,\n \"project_id\": null\n }\n ]\n }\n ],\n \"has_more\": false,\n \"next_page\": null\n}\n" group: usage-code-interpreter-sessions name: Code interpreter sessions - returns: 'A list of paginated, time bucketed [Code interpreter sessions usage](/docs/api-reference/usage/code_interpreter_sessions_object) objects.' + returns: 'A list of paginated, time bucketed [Code interpreter sessions usage](https://platform.openai.com/docs/api-reference/usage/code_interpreter_sessions_object) objects.' /organization/usage/completions: get: tags: - Usage - summary: Get completions usage details for the organization. + summary: Completions + description: Get completions usage details for the organization. operationId: usage-completions parameters: - name: start_time @@ -4511,12 +4602,13 @@ paths: response: "{\n \"object\": \"page\",\n \"data\": [\n {\n \"object\": \"bucket\",\n \"start_time\": 1730419200,\n \"end_time\": 1730505600,\n \"results\": [\n {\n \"object\": \"organization.usage.completions.result\",\n \"input_tokens\": 1000,\n \"output_tokens\": 500,\n \"input_cached_tokens\": 800,\n \"input_audio_tokens\": 0,\n \"output_audio_tokens\": 0,\n \"num_model_requests\": 5,\n \"project_id\": null,\n \"user_id\": null,\n \"api_key_id\": null,\n \"model\": null,\n \"batch\": null\n }\n ]\n }\n ],\n \"has_more\": true,\n \"next_page\": \"page_AAAAAGdGxdEiJdKOAAAAAGcqsYA=\"\n}\n" group: usage-completions name: Completions - returns: 'A list of paginated, time bucketed [Completions usage](/docs/api-reference/usage/completions_object) objects.' + returns: 'A list of paginated, time bucketed [Completions usage](https://platform.openai.com/docs/api-reference/usage/completions_object) objects.' /organization/usage/embeddings: get: tags: - Usage - summary: Get embeddings usage details for the organization. + summary: Embeddings + description: Get embeddings usage details for the organization. operationId: usage-embeddings parameters: - name: start_time @@ -4604,12 +4696,13 @@ paths: response: "{\n \"object\": \"page\",\n \"data\": [\n {\n \"object\": \"bucket\",\n \"start_time\": 1730419200,\n \"end_time\": 1730505600,\n \"results\": [\n {\n \"object\": \"organization.usage.embeddings.result\",\n \"input_tokens\": 16,\n \"num_model_requests\": 2,\n \"project_id\": null,\n \"user_id\": null,\n \"api_key_id\": null,\n \"model\": null\n }\n ]\n }\n ],\n \"has_more\": false,\n \"next_page\": null\n}\n" group: usage-embeddings name: Embeddings - returns: 'A list of paginated, time bucketed [Embeddings usage](/docs/api-reference/usage/embeddings_object) objects.' + returns: 'A list of paginated, time bucketed [Embeddings usage](https://platform.openai.com/docs/api-reference/usage/embeddings_object) objects.' /organization/usage/images: get: tags: - Usage - summary: Get images usage details for the organization. + summary: Images + description: Get images usage details for the organization. operationId: usage-images parameters: - name: start_time @@ -4723,12 +4816,13 @@ paths: response: "{\n \"object\": \"page\",\n \"data\": [\n {\n \"object\": \"bucket\",\n \"start_time\": 1730419200,\n \"end_time\": 1730505600,\n \"results\": [\n {\n \"object\": \"organization.usage.images.result\",\n \"images\": 2,\n \"num_model_requests\": 2,\n \"size\": null,\n \"source\": null,\n \"project_id\": null,\n \"user_id\": null,\n \"api_key_id\": null,\n \"model\": null\n }\n ]\n }\n ],\n \"has_more\": false,\n \"next_page\": null\n}\n" group: usage-images name: Images - returns: 'A list of paginated, time bucketed [Images usage](/docs/api-reference/usage/images_object) objects.' + returns: 'A list of paginated, time bucketed [Images usage](https://platform.openai.com/docs/api-reference/usage/images_object) objects.' /organization/usage/moderations: get: tags: - Usage - summary: Get moderations usage details for the organization. + summary: Moderations + description: Get moderations usage details for the organization. operationId: usage-moderations parameters: - name: start_time @@ -4816,12 +4910,13 @@ paths: response: "{\n \"object\": \"page\",\n \"data\": [\n {\n \"object\": \"bucket\",\n \"start_time\": 1730419200,\n \"end_time\": 1730505600,\n \"results\": [\n {\n \"object\": \"organization.usage.moderations.result\",\n \"input_tokens\": 16,\n \"num_model_requests\": 2,\n \"project_id\": null,\n \"user_id\": null,\n \"api_key_id\": null,\n \"model\": null\n }\n ]\n }\n ],\n \"has_more\": false,\n \"next_page\": null\n}\n" group: usage-moderations name: Moderations - returns: 'A list of paginated, time bucketed [Moderations usage](/docs/api-reference/usage/moderations_object) objects.' + returns: 'A list of paginated, time bucketed [Moderations usage](https://platform.openai.com/docs/api-reference/usage/moderations_object) objects.' /organization/usage/vector_stores: get: tags: - Usage - summary: Get vector stores usage details for the organization. + summary: Vector stores + description: Get vector stores usage details for the organization. operationId: usage-vector-stores parameters: - name: start_time @@ -4885,12 +4980,13 @@ paths: response: "{\n \"object\": \"page\",\n \"data\": [\n {\n \"object\": \"bucket\",\n \"start_time\": 1730419200,\n \"end_time\": 1730505600,\n \"results\": [\n {\n \"object\": \"organization.usage.vector_stores.result\",\n \"usage_bytes\": 1024,\n \"project_id\": null\n }\n ]\n }\n ],\n \"has_more\": false,\n \"next_page\": null\n}\n" group: usage-vector-stores name: Vector stores - returns: 'A list of paginated, time bucketed [Vector stores usage](/docs/api-reference/usage/vector_stores_object) objects.' + returns: 'A list of paginated, time bucketed [Vector stores usage](https://platform.openai.com/docs/api-reference/usage/vector_stores_object) objects.' /organization/users: get: tags: - Users - summary: Lists all of the users in the organization. + summary: List users + description: Lists all of the users in the organization. operationId: list-users parameters: - name: limit @@ -4925,12 +5021,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"organization.user\",\n \"id\": \"user_abc\",\n \"name\": \"First Last\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"added_at\": 1711471533\n }\n ],\n \"first_id\": \"user-abc\",\n \"last_id\": \"user-xyz\",\n \"has_more\": false\n}\n" group: administration name: List users - returns: 'A list of [User](/docs/api-reference/users/object) objects.' + returns: 'A list of [User](https://platform.openai.com/docs/api-reference/users/object) objects.' '/organization/users/{user_id}': delete: tags: - Users - summary: Deletes a user from the organization. + summary: Delete user + description: Deletes a user from the organization. operationId: delete-user parameters: - name: user_id @@ -4957,7 +5054,8 @@ paths: get: tags: - Users - summary: Retrieves a user by their identifier. + summary: Retrieve user + description: Retrieves a user by their identifier. operationId: retrieve-user parameters: - name: user_id @@ -4980,11 +5078,12 @@ paths: response: "{\n \"object\": \"organization.user\",\n \"id\": \"user_abc\",\n \"name\": \"First Last\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"added_at\": 1711471533\n}\n" group: administration name: Retrieve user - returns: 'The [User](/docs/api-reference/users/object) object matching the specified ID.' + returns: 'The [User](https://platform.openai.com/docs/api-reference/users/object) object matching the specified ID.' post: tags: - Users - summary: Modifies a user's role in the organization. + summary: Modify user + description: Modifies a user's role in the organization. operationId: modify-user parameters: - name: user_id @@ -5014,12 +5113,13 @@ paths: response: "{\n \"object\": \"organization.user\",\n \"id\": \"user_abc\",\n \"name\": \"First Last\",\n \"email\": \"user@example.com\",\n \"role\": \"owner\",\n \"added_at\": 1711471533\n}\n" group: administration name: Modify user - returns: 'The updated [User](/docs/api-reference/users/object) object.' + returns: 'The updated [User](https://platform.openai.com/docs/api-reference/users/object) object.' /realtime/sessions: post: tags: - Realtime - summary: "Create an ephemeral API token for use in client-side applications with the\nRealtime API. Can be configured with the same session parameters as the\n`session.update` client event.\n\nIt responds with a session object, plus a `client_secret` key which contains\na usable ephemeral API token that can be used to authenticate browser clients\nfor the Realtime API.\n" + summary: Create session + description: "Create an ephemeral API token for use in client-side applications with the\nRealtime API. Can be configured with the same session parameters as the\n`session.update` client event.\n\nIt responds with a session object, plus a `client_secret` key which contains\na usable ephemeral API token that can be used to authenticate browser clients\nfor the Realtime API.\n" operationId: create-realtime-session requestBody: description: Create an ephemeral API key with the given session configuration. @@ -5051,7 +5151,8 @@ paths: post: tags: - Realtime - summary: "Create an ephemeral API token for use in client-side applications with the\nRealtime API specifically for realtime transcriptions. \nCan be configured with the same session parameters as the `transcription_session.update` client event.\n\nIt responds with a session object, plus a `client_secret` key which contains\na usable ephemeral API token that can be used to authenticate browser clients\nfor the Realtime API.\n" + summary: Create transcription session + description: "Create an ephemeral API token for use in client-side applications with the\nRealtime API specifically for realtime transcriptions. \nCan be configured with the same session parameters as the `transcription_session.update` client event.\n\nIt responds with a session object, plus a `client_secret` key which contains\na usable ephemeral API token that can be used to authenticate browser clients\nfor the Realtime API.\n" operationId: create-realtime-transcription-session requestBody: description: Create an ephemeral API key with the given session configuration. @@ -5078,12 +5179,13 @@ paths: response: "{\n \"id\": \"sess_BBwZc7cFV3XizEyKGDCGL\",\n \"object\": \"realtime.transcription_session\",\n \"modalities\": [\"audio\", \"text\"],\n \"turn_detection\": {\n \"type\": \"server_vad\",\n \"threshold\": 0.5,\n \"prefix_padding_ms\": 300,\n \"silence_duration_ms\": 200\n },\n \"input_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"gpt-4o-transcribe\",\n \"language\": null,\n \"prompt\": \"\"\n },\n \"client_secret\": null\n}\n" group: realtime name: Create transcription session - returns: 'The created [Realtime transcription session object](/docs/api-reference/realtime-sessions/transcription_session_object), plus an ephemeral key' + returns: 'The created [Realtime transcription session object](https://platform.openai.com/docs/api-reference/realtime-sessions/transcription_session_object), plus an ephemeral key' /responses: post: tags: - Responses - summary: "Creates a model response. Provide [text](/docs/guides/text) or\n[image](/docs/guides/images) inputs to generate [text](/docs/guides/text)\nor [JSON](/docs/guides/structured-outputs) outputs. Have the model call\nyour own [custom code](/docs/guides/function-calling) or use built-in\n[tools](/docs/guides/tools) like [web search](/docs/guides/tools-web-search)\nor [file search](/docs/guides/tools-file-search) to use your own data\nas input for the model's response.\n" + summary: Create a model response + description: "Creates a model response. Provide [text](https://platform.openai.com/docs/guides/text) or\n[image](https://platform.openai.com/docs/guides/images) inputs to generate [text](https://platform.openai.com/docs/guides/text)\nor [JSON](https://platform.openai.com/docs/guides/structured-outputs) outputs. Have the model call\nyour own [custom code](https://platform.openai.com/docs/guides/function-calling) or use built-in\n[tools](https://platform.openai.com/docs/guides/tools) like [web search](https://platform.openai.com/docs/guides/tools-web-search)\nor [file search](https://platform.openai.com/docs/guides/tools-file-search) to use your own data\nas input for the model's response.\n" operationId: createResponse requestBody: content: @@ -5118,12 +5220,13 @@ paths: group: responses name: Create a model response path: create - returns: "Returns a [Response](/docs/api-reference/responses/object) object.\n" + returns: "Returns a [Response](https://platform.openai.com/docs/api-reference/responses/object) object.\n" '/responses/{response_id}': delete: tags: - Responses - summary: "Deletes a model response with the given ID.\n" + summary: Delete a model response + description: "Deletes a model response with the given ID.\n" operationId: deleteResponse parameters: - name: response_id @@ -5160,7 +5263,8 @@ paths: get: tags: - Responses - summary: "Retrieves a model response with the given ID.\n" + summary: Get a model response + description: "Retrieves a model response with the given ID.\n" operationId: getResponse parameters: - name: response_id @@ -5179,7 +5283,7 @@ paths: $ref: '#/components/schemas/Includable' - name: stream in: query - description: "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](/docs/api-reference/responses-streaming)\nfor more information.\n" + description: "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)\nfor more information.\n" schema: type: boolean - name: starting_after @@ -5208,12 +5312,13 @@ paths: response: "{\n \"id\": \"resp_67cb71b351908190a308f3859487620d06981a8637e6bc44\",\n \"object\": \"response\",\n \"created_at\": 1741386163,\n \"status\": \"completed\",\n \"error\": null,\n \"incomplete_details\": null,\n \"instructions\": null,\n \"max_output_tokens\": null,\n \"model\": \"gpt-4o-2024-08-06\",\n \"output\": [\n {\n \"type\": \"message\",\n \"id\": \"msg_67cb71b3c2b0819084d481baaaf148f206981a8637e6bc44\",\n \"status\": \"completed\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"output_text\",\n \"text\": \"Silent circuits hum, \\nThoughts emerge in data streams— \\nDigital dawn breaks.\",\n \"annotations\": []\n }\n ]\n }\n ],\n \"parallel_tool_calls\": true,\n \"previous_response_id\": null,\n \"reasoning\": {\n \"effort\": null,\n \"summary\": null\n },\n \"store\": true,\n \"temperature\": 1.0,\n \"text\": {\n \"format\": {\n \"type\": \"text\"\n }\n },\n \"tool_choice\": \"auto\",\n \"tools\": [],\n \"top_p\": 1.0,\n \"truncation\": \"disabled\",\n \"usage\": {\n \"input_tokens\": 32,\n \"input_tokens_details\": {\n \"cached_tokens\": 0\n },\n \"output_tokens\": 18,\n \"output_tokens_details\": {\n \"reasoning_tokens\": 0\n },\n \"total_tokens\": 50\n },\n \"user\": null,\n \"metadata\": {}\n}\n" group: responses name: Get a model response - returns: "The [Response](/docs/api-reference/responses/object) object matching the\nspecified ID.\n" + returns: "The [Response](https://platform.openai.com/docs/api-reference/responses/object) object matching the\nspecified ID.\n" '/responses/{response_id}/cancel': post: tags: - Responses - summary: "Cancels a model response with the given ID. Only responses created with\nthe `background` parameter set to `true` can be cancelled. \n[Learn more](/docs/guides/background).\n" + summary: Cancel a response + description: "Cancels a model response with the given ID. Only responses created with\nthe `background` parameter set to `true` can be cancelled. \n[Learn more](https://platform.openai.com/docs/guides/background).\n" operationId: cancelResponse parameters: - name: response_id @@ -5250,12 +5355,13 @@ paths: response: "{\n \"id\": \"resp_67cb71b351908190a308f3859487620d06981a8637e6bc44\",\n \"object\": \"response\",\n \"created_at\": 1741386163,\n \"status\": \"completed\",\n \"error\": null,\n \"incomplete_details\": null,\n \"instructions\": null,\n \"max_output_tokens\": null,\n \"model\": \"gpt-4o-2024-08-06\",\n \"output\": [\n {\n \"type\": \"message\",\n \"id\": \"msg_67cb71b3c2b0819084d481baaaf148f206981a8637e6bc44\",\n \"status\": \"completed\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"output_text\",\n \"text\": \"Silent circuits hum, \\nThoughts emerge in data streams— \\nDigital dawn breaks.\",\n \"annotations\": []\n }\n ]\n }\n ],\n \"parallel_tool_calls\": true,\n \"previous_response_id\": null,\n \"reasoning\": {\n \"effort\": null,\n \"summary\": null\n },\n \"store\": true,\n \"temperature\": 1.0,\n \"text\": {\n \"format\": {\n \"type\": \"text\"\n }\n },\n \"tool_choice\": \"auto\",\n \"tools\": [],\n \"top_p\": 1.0,\n \"truncation\": \"disabled\",\n \"usage\": {\n \"input_tokens\": 32,\n \"input_tokens_details\": {\n \"cached_tokens\": 0\n },\n \"output_tokens\": 18,\n \"output_tokens_details\": {\n \"reasoning_tokens\": 0\n },\n \"total_tokens\": 50\n },\n \"user\": null,\n \"metadata\": {}\n}\n" group: responses name: Cancel a response - returns: "A [Response](/docs/api-reference/responses/object) object.\n" + returns: "A [Response](https://platform.openai.com/docs/api-reference/responses/object) object.\n" '/responses/{response_id}/input_items': get: tags: - Responses - summary: Returns a list of input items for a given response. + summary: List input items + description: Returns a list of input items for a given response. operationId: listInputItems parameters: - name: response_id @@ -5321,7 +5427,8 @@ paths: post: tags: - Assistants - summary: Create a thread. + summary: Create thread + description: Create a thread. operationId: createThread requestBody: content: @@ -5341,7 +5448,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d ''\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n thread, err := client.Beta.Threads.New(context.TODO(), openai.BetaThreadNewParams{\n\n })\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", thread.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.Thread;\nimport com.openai.models.beta.threads.ThreadCreateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n Thread thread = client.beta().threads().create();\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.Thread\nimport com.openai.models.beta.threads.ThreadCreateParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val thread: Thread = client.beta().threads().create()\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst thread = await client.beta.threads.create();\n\nconsole.log(thread.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nthread = client.beta.threads.create()\nprint(thread.id)" @@ -5350,12 +5456,13 @@ paths: title: Empty group: threads name: Create thread - returns: 'A [thread](/docs/api-reference/threads) object.' + returns: 'A [thread](https://platform.openai.com/docs/api-reference/threads) object.' /threads/runs: post: tags: - Assistants - summary: Create a thread and run it in one request. + summary: Create thread and run + description: Create a thread and run it in one request. operationId: createThreadAndRun requestBody: content: @@ -5376,7 +5483,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/runs \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d '{\n \"assistant_id\": \"asst_abc123\",\n \"thread\": {\n \"messages\": [\n {\"role\": \"user\", \"content\": \"Explain deep learning to a 5 year old.\"}\n ]\n }\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n run, err := client.Beta.Threads.NewAndRun(context.TODO(), openai.BetaThreadNewAndRunParams{\n AssistantID: \"assistant_id\",\n })\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", run.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.ThreadCreateAndRunParams;\nimport com.openai.models.beta.threads.runs.Run;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n ThreadCreateAndRunParams params = ThreadCreateAndRunParams.builder()\n .assistantId(\"assistant_id\")\n .build();\n Run run = client.beta().threads().createAndRun(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.ThreadCreateAndRunParams\nimport com.openai.models.beta.threads.runs.Run\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: ThreadCreateAndRunParams = ThreadCreateAndRunParams.builder()\n .assistantId(\"assistant_id\")\n .build()\n val run: Run = client.beta().threads().createAndRun(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst run = await client.beta.threads.createAndRun({ assistant_id: 'assistant_id' });\n\nconsole.log(run.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nrun = client.beta.threads.create_and_run(\n assistant_id=\"assistant_id\",\n)\nprint(run.id)" @@ -5385,12 +5491,13 @@ paths: title: Default group: threads name: Create thread and run - returns: 'A [run](/docs/api-reference/runs/object) object.' + returns: 'A [run](https://platform.openai.com/docs/api-reference/runs/object) object.' '/threads/{thread_id}': delete: tags: - Assistants - summary: Delete a thread. + summary: Delete thread + description: Delete a thread. operationId: deleteThread parameters: - name: thread_id @@ -5412,7 +5519,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123 \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -X DELETE\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n threadDeleted, err := client.Beta.Threads.Delete(context.TODO(), \"thread_id\")\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", threadDeleted.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.ThreadDeleteParams;\nimport com.openai.models.beta.threads.ThreadDeleted;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n ThreadDeleted threadDeleted = client.beta().threads().delete(\"thread_id\");\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.ThreadDeleteParams\nimport com.openai.models.beta.threads.ThreadDeleted\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val threadDeleted: ThreadDeleted = client.beta().threads().delete(\"thread_id\")\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst threadDeleted = await client.beta.threads.delete('thread_id');\n\nconsole.log(threadDeleted.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nthread_deleted = client.beta.threads.delete(\n \"thread_id\",\n)\nprint(thread_deleted.id)" @@ -5424,7 +5530,8 @@ paths: get: tags: - Assistants - summary: Retrieves a thread. + summary: Retrieve thread + description: Retrieves a thread. operationId: getThread parameters: - name: thread_id @@ -5446,7 +5553,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123 \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n thread, err := client.Beta.Threads.Get(context.TODO(), \"thread_id\")\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", thread.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.Thread;\nimport com.openai.models.beta.threads.ThreadRetrieveParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n Thread thread = client.beta().threads().retrieve(\"thread_id\");\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.Thread\nimport com.openai.models.beta.threads.ThreadRetrieveParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val thread: Thread = client.beta().threads().retrieve(\"thread_id\")\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst thread = await client.beta.threads.retrieve('thread_id');\n\nconsole.log(thread.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nthread = client.beta.threads.retrieve(\n \"thread_id\",\n)\nprint(thread.id)" @@ -5454,11 +5560,12 @@ paths: response: "{\n \"id\": \"thread_abc123\",\n \"object\": \"thread\",\n \"created_at\": 1699014083,\n \"metadata\": {},\n \"tool_resources\": {\n \"code_interpreter\": {\n \"file_ids\": []\n }\n }\n}\n" group: threads name: Retrieve thread - returns: 'The [thread](/docs/api-reference/threads/object) object matching the specified ID.' + returns: 'The [thread](https://platform.openai.com/docs/api-reference/threads/object) object matching the specified ID.' post: tags: - Assistants - summary: Modifies a thread. + summary: Modify thread + description: Modifies a thread. operationId: modifyThread parameters: - name: thread_id @@ -5486,7 +5593,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123 \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d '{\n \"metadata\": {\n \"modified\": \"true\",\n \"user\": \"abc123\"\n }\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n thread, err := client.Beta.Threads.Update(\n context.TODO(),\n \"thread_id\",\n openai.BetaThreadUpdateParams{\n\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", thread.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.Thread;\nimport com.openai.models.beta.threads.ThreadUpdateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n Thread thread = client.beta().threads().update(\"thread_id\");\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.Thread\nimport com.openai.models.beta.threads.ThreadUpdateParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val thread: Thread = client.beta().threads().update(\"thread_id\")\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst thread = await client.beta.threads.update('thread_id');\n\nconsole.log(thread.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nthread = client.beta.threads.update(\n thread_id=\"thread_id\",\n)\nprint(thread.id)" @@ -5494,17 +5600,18 @@ paths: response: "{\n \"id\": \"thread_abc123\",\n \"object\": \"thread\",\n \"created_at\": 1699014083,\n \"metadata\": {\n \"modified\": \"true\",\n \"user\": \"abc123\"\n },\n \"tool_resources\": {}\n}\n" group: threads name: Modify thread - returns: 'The modified [thread](/docs/api-reference/threads/object) object matching the specified ID.' + returns: 'The modified [thread](https://platform.openai.com/docs/api-reference/threads/object) object matching the specified ID.' '/threads/{thread_id}/messages': get: tags: - Assistants - summary: Returns a list of messages for a given thread. + summary: List messages + description: Returns a list of messages for a given thread. operationId: listMessages parameters: - name: thread_id in: path - description: 'The ID of the [thread](/docs/api-reference/threads) the messages belong to.' + description: 'The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) the messages belong to.' required: true schema: type: string @@ -5551,7 +5658,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/messages \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n page, err := client.Beta.Threads.Messages.List(\n context.TODO(),\n \"thread_id\",\n openai.BetaThreadMessageListParams{\n\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", page)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.messages.MessageListPage;\nimport com.openai.models.beta.threads.messages.MessageListParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n MessageListPage page = client.beta().threads().messages().list(\"thread_id\");\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.messages.MessageListPage\nimport com.openai.models.beta.threads.messages.MessageListParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val page: MessageListPage = client.beta().threads().messages().list(\"thread_id\")\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\n// Automatically fetches more pages as needed.\nfor await (const message of client.beta.threads.messages.list('thread_id')) {\n console.log(message.id);\n}" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\npage = client.beta.threads.messages.list(\n thread_id=\"thread_id\",\n)\npage = page.data[0]\nprint(page.id)" @@ -5559,16 +5665,17 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"msg_abc123\",\n \"object\": \"thread.message\",\n \"created_at\": 1699016383,\n \"assistant_id\": null,\n \"thread_id\": \"thread_abc123\",\n \"run_id\": null,\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": {\n \"value\": \"How does AI work? Explain it in simple terms.\",\n \"annotations\": []\n }\n }\n ],\n \"attachments\": [],\n \"metadata\": {}\n },\n {\n \"id\": \"msg_abc456\",\n \"object\": \"thread.message\",\n \"created_at\": 1699016383,\n \"assistant_id\": null,\n \"thread_id\": \"thread_abc123\",\n \"run_id\": null,\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": {\n \"value\": \"Hello, what is AI?\",\n \"annotations\": []\n }\n }\n ],\n \"attachments\": [],\n \"metadata\": {}\n }\n ],\n \"first_id\": \"msg_abc123\",\n \"last_id\": \"msg_abc456\",\n \"has_more\": false\n}\n" group: threads name: List messages - returns: 'A list of [message](/docs/api-reference/messages) objects.' + returns: 'A list of [message](https://platform.openai.com/docs/api-reference/messages) objects.' post: tags: - Assistants - summary: Create a message. + summary: Create message + description: Create a message. operationId: createMessage parameters: - name: thread_id in: path - description: 'The ID of the [thread](/docs/api-reference/threads) to create a message for.' + description: 'The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) to create a message for.' required: true schema: type: string @@ -5591,7 +5698,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/messages \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d '{\n \"role\": \"user\",\n \"content\": \"How does AI work? Explain it in simple terms.\"\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n message, err := client.Beta.Threads.Messages.New(\n context.TODO(),\n \"thread_id\",\n openai.BetaThreadMessageNewParams{\n Content: openai.BetaThreadMessageNewParamsContentUnion{\n OfString: openai.String(\"string\"),\n },\n Role: openai.BetaThreadMessageNewParamsRoleUser,\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", message.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.messages.Message;\nimport com.openai.models.beta.threads.messages.MessageCreateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n MessageCreateParams params = MessageCreateParams.builder()\n .threadId(\"thread_id\")\n .content(\"string\")\n .role(MessageCreateParams.Role.USER)\n .build();\n Message message = client.beta().threads().messages().create(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.messages.Message\nimport com.openai.models.beta.threads.messages.MessageCreateParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: MessageCreateParams = MessageCreateParams.builder()\n .threadId(\"thread_id\")\n .content(\"string\")\n .role(MessageCreateParams.Role.USER)\n .build()\n val message: Message = client.beta().threads().messages().create(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst message = await client.beta.threads.messages.create('thread_id', { content: 'string', role: 'user' });\n\nconsole.log(message.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nmessage = client.beta.threads.messages.create(\n thread_id=\"thread_id\",\n content=\"string\",\n role=\"user\",\n)\nprint(message.id)" @@ -5599,12 +5705,13 @@ paths: response: "{\n \"id\": \"msg_abc123\",\n \"object\": \"thread.message\",\n \"created_at\": 1713226573,\n \"assistant_id\": null,\n \"thread_id\": \"thread_abc123\",\n \"run_id\": null,\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": {\n \"value\": \"How does AI work? Explain it in simple terms.\",\n \"annotations\": []\n }\n }\n ],\n \"attachments\": [],\n \"metadata\": {}\n}\n" group: threads name: Create message - returns: 'A [message](/docs/api-reference/messages/object) object.' + returns: 'A [message](https://platform.openai.com/docs/api-reference/messages/object) object.' '/threads/{thread_id}/messages/{message_id}': delete: tags: - Assistants - summary: Deletes a message. + summary: Delete message + description: Deletes a message. operationId: deleteMessage parameters: - name: thread_id @@ -5632,7 +5739,6 @@ paths: request: curl: "curl -X DELETE https://api.openai.com/v1/threads/thread_abc123/messages/msg_abc123 \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n messageDeleted, err := client.Beta.Threads.Messages.Delete(\n context.TODO(),\n \"thread_id\",\n \"message_id\",\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", messageDeleted.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.messages.MessageDeleteParams;\nimport com.openai.models.beta.threads.messages.MessageDeleted;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n MessageDeleteParams params = MessageDeleteParams.builder()\n .threadId(\"thread_id\")\n .messageId(\"message_id\")\n .build();\n MessageDeleted messageDeleted = client.beta().threads().messages().delete(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.messages.MessageDeleteParams\nimport com.openai.models.beta.threads.messages.MessageDeleted\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: MessageDeleteParams = MessageDeleteParams.builder()\n .threadId(\"thread_id\")\n .messageId(\"message_id\")\n .build()\n val messageDeleted: MessageDeleted = client.beta().threads().messages().delete(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst messageDeleted = await client.beta.threads.messages.delete('message_id', { thread_id: 'thread_id' });\n\nconsole.log(messageDeleted.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nmessage_deleted = client.beta.threads.messages.delete(\n message_id=\"message_id\",\n thread_id=\"thread_id\",\n)\nprint(message_deleted.id)" @@ -5644,12 +5750,13 @@ paths: get: tags: - Assistants - summary: Retrieve a message. + summary: Retrieve message + description: Retrieve a message. operationId: getMessage parameters: - name: thread_id in: path - description: 'The ID of the [thread](/docs/api-reference/threads) to which this message belongs.' + description: 'The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) to which this message belongs.' required: true schema: type: string @@ -5672,7 +5779,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/messages/msg_abc123 \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n message, err := client.Beta.Threads.Messages.Get(\n context.TODO(),\n \"thread_id\",\n \"message_id\",\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", message.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.messages.Message;\nimport com.openai.models.beta.threads.messages.MessageRetrieveParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n MessageRetrieveParams params = MessageRetrieveParams.builder()\n .threadId(\"thread_id\")\n .messageId(\"message_id\")\n .build();\n Message message = client.beta().threads().messages().retrieve(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.messages.Message\nimport com.openai.models.beta.threads.messages.MessageRetrieveParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: MessageRetrieveParams = MessageRetrieveParams.builder()\n .threadId(\"thread_id\")\n .messageId(\"message_id\")\n .build()\n val message: Message = client.beta().threads().messages().retrieve(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst message = await client.beta.threads.messages.retrieve('message_id', { thread_id: 'thread_id' });\n\nconsole.log(message.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nmessage = client.beta.threads.messages.retrieve(\n message_id=\"message_id\",\n thread_id=\"thread_id\",\n)\nprint(message.id)" @@ -5680,11 +5786,12 @@ paths: response: "{\n \"id\": \"msg_abc123\",\n \"object\": \"thread.message\",\n \"created_at\": 1699017614,\n \"assistant_id\": null,\n \"thread_id\": \"thread_abc123\",\n \"run_id\": null,\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": {\n \"value\": \"How does AI work? Explain it in simple terms.\",\n \"annotations\": []\n }\n }\n ],\n \"attachments\": [],\n \"metadata\": {}\n}\n" group: threads name: Retrieve message - returns: 'The [message](/docs/api-reference/messages/object) object matching the specified ID.' + returns: 'The [message](https://platform.openai.com/docs/api-reference/messages/object) object matching the specified ID.' post: tags: - Assistants - summary: Modifies a message. + summary: Modify message + description: Modifies a message. operationId: modifyMessage parameters: - name: thread_id @@ -5718,7 +5825,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/messages/msg_abc123 \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d '{\n \"metadata\": {\n \"modified\": \"true\",\n \"user\": \"abc123\"\n }\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n message, err := client.Beta.Threads.Messages.Update(\n context.TODO(),\n \"thread_id\",\n \"message_id\",\n openai.BetaThreadMessageUpdateParams{\n\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", message.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.messages.Message;\nimport com.openai.models.beta.threads.messages.MessageUpdateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n MessageUpdateParams params = MessageUpdateParams.builder()\n .threadId(\"thread_id\")\n .messageId(\"message_id\")\n .build();\n Message message = client.beta().threads().messages().update(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.messages.Message\nimport com.openai.models.beta.threads.messages.MessageUpdateParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: MessageUpdateParams = MessageUpdateParams.builder()\n .threadId(\"thread_id\")\n .messageId(\"message_id\")\n .build()\n val message: Message = client.beta().threads().messages().update(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst message = await client.beta.threads.messages.update('message_id', { thread_id: 'thread_id' });\n\nconsole.log(message.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nmessage = client.beta.threads.messages.update(\n message_id=\"message_id\",\n thread_id=\"thread_id\",\n)\nprint(message.id)" @@ -5726,12 +5832,13 @@ paths: response: "{\n \"id\": \"msg_abc123\",\n \"object\": \"thread.message\",\n \"created_at\": 1699017614,\n \"assistant_id\": null,\n \"thread_id\": \"thread_abc123\",\n \"run_id\": null,\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": {\n \"value\": \"How does AI work? Explain it in simple terms.\",\n \"annotations\": []\n }\n }\n ],\n \"file_ids\": [],\n \"metadata\": {\n \"modified\": \"true\",\n \"user\": \"abc123\"\n }\n}\n" group: threads name: Modify message - returns: 'The modified [message](/docs/api-reference/messages/object) object.' + returns: 'The modified [message](https://platform.openai.com/docs/api-reference/messages/object) object.' '/threads/{thread_id}/runs': get: tags: - Assistants - summary: Returns a list of runs belonging to a thread. + summary: List runs + description: Returns a list of runs belonging to a thread. operationId: listRuns parameters: - name: thread_id @@ -5778,7 +5885,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/runs \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n page, err := client.Beta.Threads.Runs.List(\n context.TODO(),\n \"thread_id\",\n openai.BetaThreadRunListParams{\n\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", page)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.runs.RunListPage;\nimport com.openai.models.beta.threads.runs.RunListParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n RunListPage page = client.beta().threads().runs().list(\"thread_id\");\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.runs.RunListPage\nimport com.openai.models.beta.threads.runs.RunListParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val page: RunListPage = client.beta().threads().runs().list(\"thread_id\")\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\n// Automatically fetches more pages as needed.\nfor await (const run of client.beta.threads.runs.list('thread_id')) {\n console.log(run.id);\n}" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\npage = client.beta.threads.runs.list(\n thread_id=\"thread_id\",\n)\npage = page.data[0]\nprint(page.id)" @@ -5786,11 +5892,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"run_abc123\",\n \"object\": \"thread.run\",\n \"created_at\": 1699075072,\n \"assistant_id\": \"asst_abc123\",\n \"thread_id\": \"thread_abc123\",\n \"status\": \"completed\",\n \"started_at\": 1699075072,\n \"expires_at\": null,\n \"cancelled_at\": null,\n \"failed_at\": null,\n \"completed_at\": 1699075073,\n \"last_error\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": null,\n \"incomplete_details\": null,\n \"tools\": [\n {\n \"type\": \"code_interpreter\"\n }\n ],\n \"tool_resources\": {\n \"code_interpreter\": {\n \"file_ids\": [\n \"file-abc123\",\n \"file-abc456\"\n ]\n }\n },\n \"metadata\": {},\n \"usage\": {\n \"prompt_tokens\": 123,\n \"completion_tokens\": 456,\n \"total_tokens\": 579\n },\n \"temperature\": 1.0,\n \"top_p\": 1.0,\n \"max_prompt_tokens\": 1000,\n \"max_completion_tokens\": 1000,\n \"truncation_strategy\": {\n \"type\": \"auto\",\n \"last_messages\": null\n },\n \"response_format\": \"auto\",\n \"tool_choice\": \"auto\",\n \"parallel_tool_calls\": true\n },\n {\n \"id\": \"run_abc456\",\n \"object\": \"thread.run\",\n \"created_at\": 1699063290,\n \"assistant_id\": \"asst_abc123\",\n \"thread_id\": \"thread_abc123\",\n \"status\": \"completed\",\n \"started_at\": 1699063290,\n \"expires_at\": null,\n \"cancelled_at\": null,\n \"failed_at\": null,\n \"completed_at\": 1699063291,\n \"last_error\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": null,\n \"incomplete_details\": null,\n \"tools\": [\n {\n \"type\": \"code_interpreter\"\n }\n ],\n \"tool_resources\": {\n \"code_interpreter\": {\n \"file_ids\": [\n \"file-abc123\",\n \"file-abc456\"\n ]\n }\n },\n \"metadata\": {},\n \"usage\": {\n \"prompt_tokens\": 123,\n \"completion_tokens\": 456,\n \"total_tokens\": 579\n },\n \"temperature\": 1.0,\n \"top_p\": 1.0,\n \"max_prompt_tokens\": 1000,\n \"max_completion_tokens\": 1000,\n \"truncation_strategy\": {\n \"type\": \"auto\",\n \"last_messages\": null\n },\n \"response_format\": \"auto\",\n \"tool_choice\": \"auto\",\n \"parallel_tool_calls\": true\n }\n ],\n \"first_id\": \"run_abc123\",\n \"last_id\": \"run_abc456\",\n \"has_more\": false\n}\n" group: threads name: List runs - returns: 'A list of [run](/docs/api-reference/runs/object) objects.' + returns: 'A list of [run](https://platform.openai.com/docs/api-reference/runs/object) objects.' post: tags: - Assistants - summary: Create a run. + summary: Create run + description: Create a run. operationId: createRun parameters: - name: thread_id @@ -5801,7 +5908,7 @@ paths: type: string - name: 'include[]' in: query - description: "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" + description: "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" schema: type: array items: @@ -5827,7 +5934,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/runs \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d '{\n \"assistant_id\": \"asst_abc123\"\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n run, err := client.Beta.Threads.Runs.New(\n context.TODO(),\n \"thread_id\",\n openai.BetaThreadRunNewParams{\n AssistantID: \"assistant_id\",\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", run.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.runs.Run;\nimport com.openai.models.beta.threads.runs.RunCreateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n RunCreateParams params = RunCreateParams.builder()\n .threadId(\"thread_id\")\n .assistantId(\"assistant_id\")\n .build();\n Run run = client.beta().threads().runs().create(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.runs.Run\nimport com.openai.models.beta.threads.runs.RunCreateParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: RunCreateParams = RunCreateParams.builder()\n .threadId(\"thread_id\")\n .assistantId(\"assistant_id\")\n .build()\n val run: Run = client.beta().threads().runs().create(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst run = await client.beta.threads.runs.create('thread_id', { assistant_id: 'assistant_id' });\n\nconsole.log(run.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nrun = client.beta.threads.runs.create(\n thread_id=\"thread_id\",\n assistant_id=\"assistant_id\",\n)\nprint(run.id)" @@ -5836,17 +5942,18 @@ paths: title: Default group: threads name: Create run - returns: 'A [run](/docs/api-reference/runs/object) object.' + returns: 'A [run](https://platform.openai.com/docs/api-reference/runs/object) object.' '/threads/{thread_id}/runs/{run_id}': get: tags: - Assistants - summary: Retrieves a run. + summary: Retrieve run + description: Retrieves a run. operationId: getRun parameters: - name: thread_id in: path - description: 'The ID of the [thread](/docs/api-reference/threads) that was run.' + description: 'The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run.' required: true schema: type: string @@ -5869,7 +5976,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123 \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n run, err := client.Beta.Threads.Runs.Get(\n context.TODO(),\n \"thread_id\",\n \"run_id\",\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", run.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.runs.Run;\nimport com.openai.models.beta.threads.runs.RunRetrieveParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n RunRetrieveParams params = RunRetrieveParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .build();\n Run run = client.beta().threads().runs().retrieve(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.runs.Run\nimport com.openai.models.beta.threads.runs.RunRetrieveParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: RunRetrieveParams = RunRetrieveParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .build()\n val run: Run = client.beta().threads().runs().retrieve(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst run = await client.beta.threads.runs.retrieve('run_id', { thread_id: 'thread_id' });\n\nconsole.log(run.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nrun = client.beta.threads.runs.retrieve(\n run_id=\"run_id\",\n thread_id=\"thread_id\",\n)\nprint(run.id)" @@ -5877,16 +5983,17 @@ paths: response: "{\n \"id\": \"run_abc123\",\n \"object\": \"thread.run\",\n \"created_at\": 1699075072,\n \"assistant_id\": \"asst_abc123\",\n \"thread_id\": \"thread_abc123\",\n \"status\": \"completed\",\n \"started_at\": 1699075072,\n \"expires_at\": null,\n \"cancelled_at\": null,\n \"failed_at\": null,\n \"completed_at\": 1699075073,\n \"last_error\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": null,\n \"incomplete_details\": null,\n \"tools\": [\n {\n \"type\": \"code_interpreter\"\n }\n ],\n \"metadata\": {},\n \"usage\": {\n \"prompt_tokens\": 123,\n \"completion_tokens\": 456,\n \"total_tokens\": 579\n },\n \"temperature\": 1.0,\n \"top_p\": 1.0,\n \"max_prompt_tokens\": 1000,\n \"max_completion_tokens\": 1000,\n \"truncation_strategy\": {\n \"type\": \"auto\",\n \"last_messages\": null\n },\n \"response_format\": \"auto\",\n \"tool_choice\": \"auto\",\n \"parallel_tool_calls\": true\n}\n" group: threads name: Retrieve run - returns: 'The [run](/docs/api-reference/runs/object) object matching the specified ID.' + returns: 'The [run](https://platform.openai.com/docs/api-reference/runs/object) object matching the specified ID.' post: tags: - Assistants - summary: Modifies a run. + summary: Modify run + description: Modifies a run. operationId: modifyRun parameters: - name: thread_id in: path - description: 'The ID of the [thread](/docs/api-reference/threads) that was run.' + description: 'The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run.' required: true schema: type: string @@ -5915,7 +6022,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123 \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d '{\n \"metadata\": {\n \"user_id\": \"user_abc123\"\n }\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n run, err := client.Beta.Threads.Runs.Update(\n context.TODO(),\n \"thread_id\",\n \"run_id\",\n openai.BetaThreadRunUpdateParams{\n\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", run.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.runs.Run;\nimport com.openai.models.beta.threads.runs.RunUpdateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n RunUpdateParams params = RunUpdateParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .build();\n Run run = client.beta().threads().runs().update(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.runs.Run\nimport com.openai.models.beta.threads.runs.RunUpdateParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: RunUpdateParams = RunUpdateParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .build()\n val run: Run = client.beta().threads().runs().update(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst run = await client.beta.threads.runs.update('run_id', { thread_id: 'thread_id' });\n\nconsole.log(run.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nrun = client.beta.threads.runs.update(\n run_id=\"run_id\",\n thread_id=\"thread_id\",\n)\nprint(run.id)" @@ -5923,12 +6029,13 @@ paths: response: "{\n \"id\": \"run_abc123\",\n \"object\": \"thread.run\",\n \"created_at\": 1699075072,\n \"assistant_id\": \"asst_abc123\",\n \"thread_id\": \"thread_abc123\",\n \"status\": \"completed\",\n \"started_at\": 1699075072,\n \"expires_at\": null,\n \"cancelled_at\": null,\n \"failed_at\": null,\n \"completed_at\": 1699075073,\n \"last_error\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": null,\n \"incomplete_details\": null,\n \"tools\": [\n {\n \"type\": \"code_interpreter\"\n }\n ],\n \"tool_resources\": {\n \"code_interpreter\": {\n \"file_ids\": [\n \"file-abc123\",\n \"file-abc456\"\n ]\n }\n },\n \"metadata\": {\n \"user_id\": \"user_abc123\"\n },\n \"usage\": {\n \"prompt_tokens\": 123,\n \"completion_tokens\": 456,\n \"total_tokens\": 579\n },\n \"temperature\": 1.0,\n \"top_p\": 1.0,\n \"max_prompt_tokens\": 1000,\n \"max_completion_tokens\": 1000,\n \"truncation_strategy\": {\n \"type\": \"auto\",\n \"last_messages\": null\n },\n \"response_format\": \"auto\",\n \"tool_choice\": \"auto\",\n \"parallel_tool_calls\": true\n}\n" group: threads name: Modify run - returns: 'The modified [run](/docs/api-reference/runs/object) object matching the specified ID.' + returns: 'The modified [run](https://platform.openai.com/docs/api-reference/runs/object) object matching the specified ID.' '/threads/{thread_id}/runs/{run_id}/cancel': post: tags: - Assistants - summary: Cancels a run that is `in_progress`. + summary: Cancel a run + description: Cancels a run that is `in_progress`. operationId: cancelRun parameters: - name: thread_id @@ -5956,7 +6063,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/cancel \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -X POST\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n run, err := client.Beta.Threads.Runs.Cancel(\n context.TODO(),\n \"thread_id\",\n \"run_id\",\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", run.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.runs.Run;\nimport com.openai.models.beta.threads.runs.RunCancelParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n RunCancelParams params = RunCancelParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .build();\n Run run = client.beta().threads().runs().cancel(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.runs.Run\nimport com.openai.models.beta.threads.runs.RunCancelParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: RunCancelParams = RunCancelParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .build()\n val run: Run = client.beta().threads().runs().cancel(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst run = await client.beta.threads.runs.cancel('run_id', { thread_id: 'thread_id' });\n\nconsole.log(run.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nrun = client.beta.threads.runs.cancel(\n run_id=\"run_id\",\n thread_id=\"thread_id\",\n)\nprint(run.id)" @@ -5964,12 +6070,13 @@ paths: response: "{\n \"id\": \"run_abc123\",\n \"object\": \"thread.run\",\n \"created_at\": 1699076126,\n \"assistant_id\": \"asst_abc123\",\n \"thread_id\": \"thread_abc123\",\n \"status\": \"cancelling\",\n \"started_at\": 1699076126,\n \"expires_at\": 1699076726,\n \"cancelled_at\": null,\n \"failed_at\": null,\n \"completed_at\": null,\n \"last_error\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": \"You summarize books.\",\n \"tools\": [\n {\n \"type\": \"file_search\"\n }\n ],\n \"tool_resources\": {\n \"file_search\": {\n \"vector_store_ids\": [\"vs_123\"]\n }\n },\n \"metadata\": {},\n \"usage\": null,\n \"temperature\": 1.0,\n \"top_p\": 1.0,\n \"response_format\": \"auto\",\n \"tool_choice\": \"auto\",\n \"parallel_tool_calls\": true\n}\n" group: threads name: Cancel a run - returns: 'The modified [run](/docs/api-reference/runs/object) object matching the specified ID.' + returns: 'The modified [run](https://platform.openai.com/docs/api-reference/runs/object) object matching the specified ID.' '/threads/{thread_id}/runs/{run_id}/steps': get: tags: - Assistants - summary: Returns a list of run steps belonging to a run. + summary: List run steps + description: Returns a list of run steps belonging to a run. operationId: listRunSteps parameters: - name: thread_id @@ -6011,7 +6118,7 @@ paths: type: string - name: 'include[]' in: query - description: "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" + description: "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" schema: type: array items: @@ -6031,7 +6138,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/steps \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n page, err := client.Beta.Threads.Runs.Steps.List(\n context.TODO(),\n \"thread_id\",\n \"run_id\",\n openai.BetaThreadRunStepListParams{\n\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", page)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.runs.steps.StepListPage;\nimport com.openai.models.beta.threads.runs.steps.StepListParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n StepListParams params = StepListParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .build();\n StepListPage page = client.beta().threads().runs().steps().list(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.runs.steps.StepListPage\nimport com.openai.models.beta.threads.runs.steps.StepListParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: StepListParams = StepListParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .build()\n val page: StepListPage = client.beta().threads().runs().steps().list(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\n// Automatically fetches more pages as needed.\nfor await (const runStep of client.beta.threads.runs.steps.list('run_id', { thread_id: 'thread_id' })) {\n console.log(runStep.id);\n}" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\npage = client.beta.threads.runs.steps.list(\n run_id=\"run_id\",\n thread_id=\"thread_id\",\n)\npage = page.data[0]\nprint(page.id)" @@ -6039,12 +6145,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"step_abc123\",\n \"object\": \"thread.run.step\",\n \"created_at\": 1699063291,\n \"run_id\": \"run_abc123\",\n \"assistant_id\": \"asst_abc123\",\n \"thread_id\": \"thread_abc123\",\n \"type\": \"message_creation\",\n \"status\": \"completed\",\n \"cancelled_at\": null,\n \"completed_at\": 1699063291,\n \"expired_at\": null,\n \"failed_at\": null,\n \"last_error\": null,\n \"step_details\": {\n \"type\": \"message_creation\",\n \"message_creation\": {\n \"message_id\": \"msg_abc123\"\n }\n },\n \"usage\": {\n \"prompt_tokens\": 123,\n \"completion_tokens\": 456,\n \"total_tokens\": 579\n }\n }\n ],\n \"first_id\": \"step_abc123\",\n \"last_id\": \"step_abc456\",\n \"has_more\": false\n}\n" group: threads name: List run steps - returns: 'A list of [run step](/docs/api-reference/run-steps/step-object) objects.' + returns: 'A list of [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) objects.' '/threads/{thread_id}/runs/{run_id}/steps/{step_id}': get: tags: - Assistants - summary: Retrieves a run step. + summary: Retrieve run step + description: Retrieves a run step. operationId: getRunStep parameters: - name: thread_id @@ -6067,7 +6174,7 @@ paths: type: string - name: 'include[]' in: query - description: "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" + description: "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" schema: type: array items: @@ -6087,7 +6194,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/steps/step_abc123 \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -H \"OpenAI-Beta: assistants=v2\"\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n runStep, err := client.Beta.Threads.Runs.Steps.Get(\n context.TODO(),\n \"thread_id\",\n \"run_id\",\n \"step_id\",\n openai.BetaThreadRunStepGetParams{\n\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", runStep.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.runs.steps.RunStep;\nimport com.openai.models.beta.threads.runs.steps.StepRetrieveParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n StepRetrieveParams params = StepRetrieveParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .stepId(\"step_id\")\n .build();\n RunStep runStep = client.beta().threads().runs().steps().retrieve(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.runs.steps.RunStep\nimport com.openai.models.beta.threads.runs.steps.StepRetrieveParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: StepRetrieveParams = StepRetrieveParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .stepId(\"step_id\")\n .build()\n val runStep: RunStep = client.beta().threads().runs().steps().retrieve(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst runStep = await client.beta.threads.runs.steps.retrieve('step_id', {\n thread_id: 'thread_id',\n run_id: 'run_id',\n});\n\nconsole.log(runStep.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nrun_step = client.beta.threads.runs.steps.retrieve(\n step_id=\"step_id\",\n thread_id=\"thread_id\",\n run_id=\"run_id\",\n)\nprint(run_step.id)" @@ -6095,17 +6201,18 @@ paths: response: "{\n \"id\": \"step_abc123\",\n \"object\": \"thread.run.step\",\n \"created_at\": 1699063291,\n \"run_id\": \"run_abc123\",\n \"assistant_id\": \"asst_abc123\",\n \"thread_id\": \"thread_abc123\",\n \"type\": \"message_creation\",\n \"status\": \"completed\",\n \"cancelled_at\": null,\n \"completed_at\": 1699063291,\n \"expired_at\": null,\n \"failed_at\": null,\n \"last_error\": null,\n \"step_details\": {\n \"type\": \"message_creation\",\n \"message_creation\": {\n \"message_id\": \"msg_abc123\"\n }\n },\n \"usage\": {\n \"prompt_tokens\": 123,\n \"completion_tokens\": 456,\n \"total_tokens\": 579\n }\n}\n" group: threads name: Retrieve run step - returns: 'The [run step](/docs/api-reference/run-steps/step-object) object matching the specified ID.' + returns: 'The [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) object matching the specified ID.' '/threads/{thread_id}/runs/{run_id}/submit_tool_outputs': post: tags: - Assistants - summary: "When a run has the `status: \"requires_action\"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.\n" + summary: Submit tool outputs to run + description: "When a run has the `status: \"requires_action\"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.\n" operationId: submitToolOuputsToRun parameters: - name: thread_id in: path - description: 'The ID of the [thread](/docs/api-reference/threads) to which this run belongs.' + description: 'The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) to which this run belongs.' required: true schema: type: string @@ -6134,7 +6241,6 @@ paths: request: curl: "curl https://api.openai.com/v1/threads/thread_123/runs/run_123/submit_tool_outputs \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -H \"OpenAI-Beta: assistants=v2\" \\\n -d '{\n \"tool_outputs\": [\n {\n \"tool_call_id\": \"call_001\",\n \"output\": \"70 degrees and sunny.\"\n }\n ]\n }'\n" go: "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/openai/openai-go\"\n \"github.com/openai/openai-go/option\"\n)\n\nfunc main() {\n client := openai.NewClient(\n option.WithAPIKey(\"My API Key\"),\n )\n run, err := client.Beta.Threads.Runs.SubmitToolOutputs(\n context.TODO(),\n \"thread_id\",\n \"run_id\",\n openai.BetaThreadRunSubmitToolOutputsParams{\n ToolOutputs: []openai.BetaThreadRunSubmitToolOutputsParamsToolOutput{openai.BetaThreadRunSubmitToolOutputsParamsToolOutput{\n\n }},\n },\n )\n if err != nil {\n panic(err.Error())\n }\n fmt.Printf(\"%+v\\n\", run.ID)\n}\n" - java: "package com.openai.example;\n\nimport com.openai.client.OpenAIClient;\nimport com.openai.client.okhttp.OpenAIOkHttpClient;\nimport com.openai.models.beta.threads.runs.Run;\nimport com.openai.models.beta.threads.runs.RunSubmitToolOutputsParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n OpenAIClient client = OpenAIOkHttpClient.fromEnv();\n\n RunSubmitToolOutputsParams params = RunSubmitToolOutputsParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .addToolOutput(RunSubmitToolOutputsParams.ToolOutput.builder().build())\n .build();\n Run run = client.beta().threads().runs().submitToolOutputs(params);\n }\n}" kotlin: "package com.openai.example\n\nimport com.openai.client.OpenAIClient\nimport com.openai.client.okhttp.OpenAIOkHttpClient\nimport com.openai.models.beta.threads.runs.Run\nimport com.openai.models.beta.threads.runs.RunSubmitToolOutputsParams\n\nfun main() {\n val client: OpenAIClient = OpenAIOkHttpClient.fromEnv()\n\n val params: RunSubmitToolOutputsParams = RunSubmitToolOutputsParams.builder()\n .threadId(\"thread_id\")\n .runId(\"run_id\")\n .addToolOutput(RunSubmitToolOutputsParams.ToolOutput.builder().build())\n .build()\n val run: Run = client.beta().threads().runs().submitToolOutputs(params)\n}" node.js: "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: 'My API Key',\n});\n\nconst run = await client.beta.threads.runs.submitToolOutputs('run_id', {\n thread_id: 'thread_id',\n tool_outputs: [{}],\n});\n\nconsole.log(run.id);" python: "from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"My API Key\",\n)\nrun = client.beta.threads.runs.submit_tool_outputs(\n run_id=\"run_id\",\n thread_id=\"thread_id\",\n tool_outputs=[{}],\n)\nprint(run.id)" @@ -6143,12 +6249,13 @@ paths: title: Default group: threads name: Submit tool outputs to run - returns: 'The modified [run](/docs/api-reference/runs/object) object matching the specified ID.' + returns: 'The modified [run](https://platform.openai.com/docs/api-reference/runs/object) object matching the specified ID.' /uploads: post: tags: - Uploads - summary: "Creates an intermediate [Upload](/docs/api-reference/uploads/object) object\nthat you can add [Parts](/docs/api-reference/uploads/part-object) to.\nCurrently, an Upload can accept at most 8 GB in total and expires after an\nhour after you create it.\n\nOnce you complete the Upload, we will create a\n[File](/docs/api-reference/files/object) object that contains all the parts\nyou uploaded. This File is usable in the rest of our platform as a regular\nFile object.\n\nFor certain `purpose` values, the correct `mime_type` must be specified. \nPlease refer to documentation for the \n[supported MIME types for your use case](/docs/assistants/tools/file-search#supported-files).\n\nFor guidance on the proper filename extensions for each purpose, please\nfollow the documentation on [creating a\nFile](/docs/api-reference/files/create).\n" + summary: Create upload + description: "Creates an intermediate [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object\nthat you can add [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to.\nCurrently, an Upload can accept at most 8 GB in total and expires after an\nhour after you create it.\n\nOnce you complete the Upload, we will create a\n[File](https://platform.openai.com/docs/api-reference/files/object) object that contains all the parts\nyou uploaded. This File is usable in the rest of our platform as a regular\nFile object.\n\nFor certain `purpose` values, the correct `mime_type` must be specified. \nPlease refer to documentation for the \n[supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files).\n\nFor guidance on the proper filename extensions for each purpose, please\nfollow the documentation on [creating a\nFile](https://platform.openai.com/docs/api-reference/files/create).\n" operationId: createUpload requestBody: content: @@ -6176,12 +6283,13 @@ paths: response: "{\n \"id\": \"upload_abc123\",\n \"object\": \"upload\",\n \"bytes\": 2147483648,\n \"created_at\": 1719184911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n \"status\": \"pending\",\n \"expires_at\": 1719127296\n}\n" group: uploads name: Create upload - returns: 'The [Upload](/docs/api-reference/uploads/object) object with status `pending`.' + returns: 'The [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object with status `pending`.' '/uploads/{upload_id}/cancel': post: tags: - Uploads - summary: "Cancels the Upload. No Parts may be added after an Upload is cancelled.\n" + summary: Cancel upload + description: "Cancels the Upload. No Parts may be added after an Upload is cancelled.\n" operationId: cancelUpload parameters: - name: upload_id @@ -6211,12 +6319,13 @@ paths: response: "{\n \"id\": \"upload_abc123\",\n \"object\": \"upload\",\n \"bytes\": 2147483648,\n \"created_at\": 1719184911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n \"status\": \"cancelled\",\n \"expires_at\": 1719127296\n}\n" group: uploads name: Cancel upload - returns: 'The [Upload](/docs/api-reference/uploads/object) object with status `cancelled`.' + returns: 'The [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object with status `cancelled`.' '/uploads/{upload_id}/complete': post: tags: - Uploads - summary: "Completes the [Upload](/docs/api-reference/uploads/object). \n\nWithin the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.\n\nYou can specify the order of the Parts by passing in an ordered list of the Part IDs.\n\nThe number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.\n" + summary: Complete upload + description: "Completes the [Upload](https://platform.openai.com/docs/api-reference/uploads/object). \n\nWithin the returned Upload object, there is a nested [File](https://platform.openai.com/docs/api-reference/files/object) object that is ready to use in the rest of the platform.\n\nYou can specify the order of the Parts by passing in an ordered list of the Part IDs.\n\nThe number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.\n" operationId: completeUpload parameters: - name: upload_id @@ -6252,12 +6361,13 @@ paths: response: "{\n \"id\": \"upload_abc123\",\n \"object\": \"upload\",\n \"bytes\": 2147483648,\n \"created_at\": 1719184911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n \"status\": \"completed\",\n \"expires_at\": 1719127296,\n \"file\": {\n \"id\": \"file-xyz321\",\n \"object\": \"file\",\n \"bytes\": 2147483648,\n \"created_at\": 1719186911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n }\n}\n" group: uploads name: Complete upload - returns: 'The [Upload](/docs/api-reference/uploads/object) object with status `completed` with an additional `file` property containing the created usable File object.' + returns: 'The [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object with status `completed` with an additional `file` property containing the created usable File object.' '/uploads/{upload_id}/parts': post: tags: - Uploads - summary: "Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload. \n\nEach Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.\n\nIt is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete).\n" + summary: Add upload part + description: "Adds a [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload. \n\nEach Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.\n\nIt is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete).\n" operationId: addUploadPart parameters: - name: upload_id @@ -6293,12 +6403,13 @@ paths: response: "{\n \"id\": \"part_def456\",\n \"object\": \"upload.part\",\n \"created_at\": 1719185911,\n \"upload_id\": \"upload_abc123\"\n}\n" group: uploads name: Add upload part - returns: 'The upload [Part](/docs/api-reference/uploads/part-object) object.' + returns: 'The upload [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) object.' /vector_stores: get: tags: - Vector stores - summary: Returns a list of vector stores. + summary: List vector stores + description: Returns a list of vector stores. operationId: listVectorStores parameters: - name: limit @@ -6346,11 +6457,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"vs_abc123\",\n \"object\": \"vector_store\",\n \"created_at\": 1699061776,\n \"name\": \"Support FAQ\",\n \"bytes\": 139920,\n \"file_counts\": {\n \"in_progress\": 0,\n \"completed\": 3,\n \"failed\": 0,\n \"cancelled\": 0,\n \"total\": 3\n }\n },\n {\n \"id\": \"vs_abc456\",\n \"object\": \"vector_store\",\n \"created_at\": 1699061776,\n \"name\": \"Support FAQ v2\",\n \"bytes\": 139920,\n \"file_counts\": {\n \"in_progress\": 0,\n \"completed\": 3,\n \"failed\": 0,\n \"cancelled\": 0,\n \"total\": 3\n }\n }\n ],\n \"first_id\": \"vs_abc123\",\n \"last_id\": \"vs_abc456\",\n \"has_more\": false\n}\n" group: vector_stores name: List vector stores - returns: 'A list of [vector store](/docs/api-reference/vector-stores/object) objects.' + returns: 'A list of [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) objects.' post: tags: - Vector stores - summary: Create a vector store. + summary: Create vector store + description: Create a vector store. operationId: createVectorStore requestBody: content: @@ -6378,12 +6490,13 @@ paths: response: "{\n \"id\": \"vs_abc123\",\n \"object\": \"vector_store\",\n \"created_at\": 1699061776,\n \"name\": \"Support FAQ\",\n \"bytes\": 139920,\n \"file_counts\": {\n \"in_progress\": 0,\n \"completed\": 3,\n \"failed\": 0,\n \"cancelled\": 0,\n \"total\": 3\n }\n}\n" group: vector_stores name: Create vector store - returns: 'A [vector store](/docs/api-reference/vector-stores/object) object.' + returns: 'A [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) object.' '/vector_stores/{vector_store_id}': delete: tags: - Vector stores - summary: Delete a vector store. + summary: Delete vector store + description: Delete a vector store. operationId: deleteVectorStore parameters: - name: vector_store_id @@ -6416,7 +6529,8 @@ paths: get: tags: - Vector stores - summary: Retrieves a vector store. + summary: Retrieve vector store + description: Retrieves a vector store. operationId: getVectorStore parameters: - name: vector_store_id @@ -6445,11 +6559,12 @@ paths: response: "{\n \"id\": \"vs_abc123\",\n \"object\": \"vector_store\",\n \"created_at\": 1699061776\n}\n" group: vector_stores name: Retrieve vector store - returns: 'The [vector store](/docs/api-reference/vector-stores/object) object matching the specified ID.' + returns: 'The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) object matching the specified ID.' post: tags: - Vector stores - summary: Modifies a vector store. + summary: Modify vector store + description: Modifies a vector store. operationId: modifyVectorStore parameters: - name: vector_store_id @@ -6484,12 +6599,13 @@ paths: response: "{\n \"id\": \"vs_abc123\",\n \"object\": \"vector_store\",\n \"created_at\": 1699061776,\n \"name\": \"Support FAQ\",\n \"bytes\": 139920,\n \"file_counts\": {\n \"in_progress\": 0,\n \"completed\": 3,\n \"failed\": 0,\n \"cancelled\": 0,\n \"total\": 3\n }\n}\n" group: vector_stores name: Modify vector store - returns: 'The modified [vector store](/docs/api-reference/vector-stores/object) object.' + returns: 'The modified [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) object.' '/vector_stores/{vector_store_id}/file_batches': post: tags: - Vector stores - summary: Create a vector store file batch. + summary: Create vector store file batch + description: Create a vector store file batch. operationId: createVectorStoreFileBatch parameters: - name: vector_store_id @@ -6525,12 +6641,13 @@ paths: response: "{\n \"id\": \"vsfb_abc123\",\n \"object\": \"vector_store.file_batch\",\n \"created_at\": 1699061776,\n \"vector_store_id\": \"vs_abc123\",\n \"status\": \"in_progress\",\n \"file_counts\": {\n \"in_progress\": 1,\n \"completed\": 1,\n \"failed\": 0,\n \"cancelled\": 0,\n \"total\": 0,\n }\n}\n" group: vector_stores name: Create vector store file batch - returns: 'A [vector store file batch](/docs/api-reference/vector-stores-file-batches/batch-object) object.' + returns: 'A [vector store file batch](https://platform.openai.com/docs/api-reference/vector-stores-file-batches/batch-object) object.' '/vector_stores/{vector_store_id}/file_batches/{batch_id}': get: tags: - Vector stores - summary: Retrieves a vector store file batch. + summary: Retrieve vector store file batch + description: Retrieves a vector store file batch. operationId: getVectorStoreFileBatch parameters: - name: vector_store_id @@ -6567,12 +6684,13 @@ paths: response: "{\n \"id\": \"vsfb_abc123\",\n \"object\": \"vector_store.file_batch\",\n \"created_at\": 1699061776,\n \"vector_store_id\": \"vs_abc123\",\n \"status\": \"in_progress\",\n \"file_counts\": {\n \"in_progress\": 1,\n \"completed\": 1,\n \"failed\": 0,\n \"cancelled\": 0,\n \"total\": 0,\n }\n}\n" group: vector_stores name: Retrieve vector store file batch - returns: 'The [vector store file batch](/docs/api-reference/vector-stores-file-batches/batch-object) object.' + returns: 'The [vector store file batch](https://platform.openai.com/docs/api-reference/vector-stores-file-batches/batch-object) object.' '/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel': post: tags: - Vector stores - summary: Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. + summary: Cancel vector store file batch + description: Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. operationId: cancelVectorStoreFileBatch parameters: - name: vector_store_id @@ -6612,7 +6730,8 @@ paths: get: tags: - Vector stores - summary: Returns a list of vector store files in a batch. + summary: List vector store files in a batch + description: Returns a list of vector store files in a batch. operationId: listFilesInVectorStoreBatch parameters: - name: vector_store_id @@ -6682,12 +6801,13 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"file-abc123\",\n \"object\": \"vector_store.file\",\n \"created_at\": 1699061776,\n \"vector_store_id\": \"vs_abc123\"\n },\n {\n \"id\": \"file-abc456\",\n \"object\": \"vector_store.file\",\n \"created_at\": 1699061776,\n \"vector_store_id\": \"vs_abc123\"\n }\n ],\n \"first_id\": \"file-abc123\",\n \"last_id\": \"file-abc456\",\n \"has_more\": false\n}\n" group: vector_stores name: List vector store files in a batch - returns: 'A list of [vector store file](/docs/api-reference/vector-stores-files/file-object) objects.' + returns: 'A list of [vector store file](https://platform.openai.com/docs/api-reference/vector-stores-files/file-object) objects.' '/vector_stores/{vector_store_id}/files': get: tags: - Vector stores - summary: Returns a list of vector store files. + summary: List vector store files + description: Returns a list of vector store files. operationId: listVectorStoreFiles parameters: - name: vector_store_id @@ -6751,11 +6871,12 @@ paths: response: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"file-abc123\",\n \"object\": \"vector_store.file\",\n \"created_at\": 1699061776,\n \"vector_store_id\": \"vs_abc123\"\n },\n {\n \"id\": \"file-abc456\",\n \"object\": \"vector_store.file\",\n \"created_at\": 1699061776,\n \"vector_store_id\": \"vs_abc123\"\n }\n ],\n \"first_id\": \"file-abc123\",\n \"last_id\": \"file-abc456\",\n \"has_more\": false\n}\n" group: vector_stores name: List vector store files - returns: 'A list of [vector store file](/docs/api-reference/vector-stores-files/file-object) objects.' + returns: 'A list of [vector store file](https://platform.openai.com/docs/api-reference/vector-stores-files/file-object) objects.' post: tags: - Vector stores - summary: 'Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object).' + summary: Create vector store file + description: 'Create a vector store file by attaching a [File](https://platform.openai.com/docs/api-reference/files) to a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object).' operationId: createVectorStoreFile parameters: - name: vector_store_id @@ -6791,12 +6912,13 @@ paths: response: "{\n \"id\": \"file-abc123\",\n \"object\": \"vector_store.file\",\n \"created_at\": 1699061776,\n \"usage_bytes\": 1234,\n \"vector_store_id\": \"vs_abcd\",\n \"status\": \"completed\",\n \"last_error\": null\n}\n" group: vector_stores name: Create vector store file - returns: 'A [vector store file](/docs/api-reference/vector-stores-files/file-object) object.' + returns: 'A [vector store file](https://platform.openai.com/docs/api-reference/vector-stores-files/file-object) object.' '/vector_stores/{vector_store_id}/files/{file_id}': delete: tags: - Vector stores - summary: 'Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.' + summary: Delete vector store file + description: 'Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](https://platform.openai.com/docs/api-reference/files/delete) endpoint.' operationId: deleteVectorStoreFile parameters: - name: vector_store_id @@ -6835,7 +6957,8 @@ paths: get: tags: - Vector stores - summary: Retrieves a vector store file. + summary: Retrieve vector store file + description: Retrieves a vector store file. operationId: getVectorStoreFile parameters: - name: vector_store_id @@ -6872,11 +6995,12 @@ paths: response: "{\n \"id\": \"file-abc123\",\n \"object\": \"vector_store.file\",\n \"created_at\": 1699061776,\n \"vector_store_id\": \"vs_abcd\",\n \"status\": \"completed\",\n \"last_error\": null\n}\n" group: vector_stores name: Retrieve vector store file - returns: 'The [vector store file](/docs/api-reference/vector-stores-files/file-object) object.' + returns: 'The [vector store file](https://platform.openai.com/docs/api-reference/vector-stores-files/file-object) object.' post: tags: - Vector stores - summary: Update attributes on a vector store file. + summary: Update vector store file attributes + description: Update attributes on a vector store file. operationId: updateVectorStoreFileAttributes parameters: - name: vector_store_id @@ -6919,12 +7043,13 @@ paths: response: "{\n \"id\": \"file-abc123\",\n \"object\": \"vector_store.file\",\n \"usage_bytes\": 1234,\n \"created_at\": 1699061776,\n \"vector_store_id\": \"vs_abcd\",\n \"status\": \"completed\",\n \"last_error\": null,\n \"chunking_strategy\": {...},\n \"attributes\": {\"key1\": \"value1\", \"key2\": 2}\n}\n" group: vector_stores name: Update vector store file attributes - returns: 'The updated [vector store file](/docs/api-reference/vector-stores-files/file-object) object.' + returns: 'The updated [vector store file](https://platform.openai.com/docs/api-reference/vector-stores-files/file-object) object.' '/vector_stores/{vector_store_id}/files/{file_id}/content': get: tags: - Vector stores - summary: Retrieve the parsed contents of a vector store file. + summary: Retrieve vector store file content + description: Retrieve the parsed contents of a vector store file. operationId: retrieveVectorStoreFileContent parameters: - name: vector_store_id @@ -6966,7 +7091,8 @@ paths: post: tags: - Vector stores - summary: Search a vector store for relevant chunks based on a query and file attributes filter. + summary: Search vector store + description: Search a vector store for relevant chunks based on a query and file attributes filter. operationId: searchVectorStore parameters: - name: vector_store_id @@ -7091,7 +7217,7 @@ components: example: "{\n \"object\": \"organization.admin_api_key\",\n \"id\": \"key_abc\",\n \"name\": \"Main Admin Key\",\n \"redacted_value\": \"sk-admin...xyz\",\n \"created_at\": 1711471533,\n \"last_used_at\": 1711471534,\n \"owner\": {\n \"type\": \"user\",\n \"object\": \"organization.user\",\n \"id\": \"user_123\",\n \"name\": \"John Doe\",\n \"created_at\": 1711471533,\n \"role\": \"owner\"\n }\n}\n" name: The admin API key object Annotation: - oneOf: + anyOf: - $ref: '#/components/schemas/FileCitationBody' - $ref: '#/components/schemas/UrlCitationBody' - $ref: '#/components/schemas/ContainerFileCitationBody' @@ -7179,7 +7305,7 @@ components: $ref: '#/components/schemas/Metadata' model: type: string - description: "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n" + description: "ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.\n" name: maxLength: 256 type: string @@ -7212,7 +7338,7 @@ components: type: array items: type: string - description: "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter`` tool. There can be a maximum of 20 files associated with the tool.\n" + description: "A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter`` tool. There can be a maximum of 20 files associated with the tool.\n" file_search: type: object properties: @@ -7221,17 +7347,14 @@ components: type: array items: type: string - description: "The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" + description: "The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" description: "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n" nullable: true tools: maxItems: 128 type: array items: - oneOf: - - $ref: '#/components/schemas/AssistantToolsCode' - - $ref: '#/components/schemas/AssistantToolsFileSearch' - - $ref: '#/components/schemas/AssistantToolsFunction' + $ref: '#/components/schemas/AssistantTool' description: "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.\n" top_p: maximum: 1 @@ -7247,14 +7370,15 @@ components: example: "{\n \"id\": \"asst_abc123\",\n \"object\": \"assistant\",\n \"created_at\": 1698984975,\n \"name\": \"Math Tutor\",\n \"description\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": \"You are a personal math tutor. When asked a question, write and run Python code to answer the question.\",\n \"tools\": [\n {\n \"type\": \"code_interpreter\"\n }\n ],\n \"metadata\": {},\n \"top_p\": 1.0,\n \"temperature\": 1.0,\n \"response_format\": \"auto\"\n}\n" name: The assistant object AssistantStreamEvent: - oneOf: + anyOf: - $ref: '#/components/schemas/ThreadStreamEvent' - $ref: '#/components/schemas/RunStreamEvent' - $ref: '#/components/schemas/RunStepStreamEvent' - $ref: '#/components/schemas/MessageStreamEvent' - $ref: '#/components/schemas/ErrorEvent' - - $ref: '#/components/schemas/DoneEvent' - description: "Represents an event emitted when streaming a Run.\n\nEach event in a server-sent events stream has an `event` and `data` property:\n\n```\nevent: thread.created\ndata: {\"id\": \"thread_123\", \"object\": \"thread\", ...}\n```\n\nWe emit events whenever a new object is created, transitions to a new state, or is being\nstreamed in parts (deltas). For example, we emit `thread.run.created` when a new run\nis created, `thread.run.completed` when a run completes, and so on. When an Assistant chooses\nto create a message during a run, we emit a `thread.message.created event`, a\n`thread.message.in_progress` event, many `thread.message.delta` events, and finally a\n`thread.message.completed` event.\n\nWe may add additional events over time, so we recommend handling unknown events gracefully\nin your code. See the [Assistants API quickstart](/docs/assistants/overview) to learn how to\nintegrate the Assistants API with streaming.\n" + description: "Represents an event emitted when streaming a Run.\n\nEach event in a server-sent events stream has an `event` and `data` property:\n\n```\nevent: thread.created\ndata: {\"id\": \"thread_123\", \"object\": \"thread\", ...}\n```\n\nWe emit events whenever a new object is created, transitions to a new state, or is being\nstreamed in parts (deltas). For example, we emit `thread.run.created` when a new run\nis created, `thread.run.completed` when a run completes, and so on. When an Assistant chooses\nto create a message during a run, we emit a `thread.message.created event`, a\n`thread.message.in_progress` event, many `thread.message.delta` events, and finally a\n`thread.message.completed` event.\n\nWe may add additional events over time, so we recommend handling unknown events gracefully\nin your code. See the [Assistants API quickstart](https://platform.openai.com/docs/assistants/overview) to learn how to\nintegrate the Assistants API with streaming.\n" + discriminator: + propertyName: event x-oaiMeta: beta: true name: Assistant stream events @@ -7297,6 +7421,13 @@ components: - gpt-3.5-turbo-0125 - gpt-3.5-turbo-16k-0613 type: string + AssistantTool: + anyOf: + - $ref: '#/components/schemas/AssistantToolsCode' + - $ref: '#/components/schemas/AssistantToolsFileSearch' + - $ref: '#/components/schemas/AssistantToolsFunction' + discriminator: + propertyName: type AssistantToolsCode: title: Code interpreter tool required: @@ -7322,7 +7453,7 @@ components: maximum: 50 minimum: 1 type: integer - description: "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" + description: "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" ranking_options: $ref: '#/components/schemas/FileSearchRankingOptions' description: Overrides for the file search tool. @@ -7360,7 +7491,7 @@ components: description: 'The type of tool being defined: `function`' x-stainless-const: true AssistantsApiResponseFormatOption: - oneOf: + anyOf: - enum: - auto type: string @@ -7369,10 +7500,11 @@ components: - $ref: '#/components/schemas/ResponseFormatText' - $ref: '#/components/schemas/ResponseFormatJsonObject' - $ref: '#/components/schemas/ResponseFormatJsonSchema' - description: "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n" + description: "Specifies the format that the model must output. Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n" AssistantsApiToolChoiceOption: - oneOf: - - enum: + anyOf: + - title: Auto + enum: - none - auto - required @@ -7933,22 +8065,7 @@ components: data: type: array items: - type: object - properties: - code: - type: string - description: An error code identifying the error type. - line: - type: integer - description: 'The line number of the input file where the error occurred, if applicable.' - nullable: true - message: - type: string - description: A human-readable message providing more details about the error. - param: - type: string - description: 'The name of the parameter that caused the error, if applicable.' - nullable: true + $ref: '#/components/schemas/BatchError' object: type: string description: 'The object type, which is always `list`.' @@ -7984,22 +8101,7 @@ components: type: string description: The ID of the file containing the outputs of successfully executed requests. request_counts: - required: - - total - - completed - - failed - type: object - properties: - completed: - type: integer - description: Number of requests that have been completed successfully. - failed: - type: integer - description: Number of requests that have failed. - total: - type: integer - description: Total number of requests in the batch. - description: The request counts for different statuses within the batch. + $ref: '#/components/schemas/BatchRequestCounts' status: enum: - validating @@ -8015,6 +8117,40 @@ components: x-oaiMeta: example: "{\n \"id\": \"batch_abc123\",\n \"object\": \"batch\",\n \"endpoint\": \"/v1/completions\",\n \"errors\": null,\n \"input_file_id\": \"file-abc123\",\n \"completion_window\": \"24h\",\n \"status\": \"completed\",\n \"output_file_id\": \"file-cvaTdG\",\n \"error_file_id\": \"file-HOWS94\",\n \"created_at\": 1711471533,\n \"in_progress_at\": 1711471538,\n \"expires_at\": 1711557933,\n \"finalizing_at\": 1711493133,\n \"completed_at\": 1711493163,\n \"failed_at\": null,\n \"expired_at\": null,\n \"cancelling_at\": null,\n \"cancelled_at\": null,\n \"request_counts\": {\n \"total\": 100,\n \"completed\": 95,\n \"failed\": 5\n },\n \"metadata\": {\n \"customer_id\": \"user_123456789\",\n \"batch_description\": \"Nightly eval job\",\n }\n}\n" name: The batch object + BatchError: + type: object + properties: + code: + type: string + description: An error code identifying the error type. + line: + type: integer + description: 'The line number of the input file where the error occurred, if applicable.' + nullable: true + message: + type: string + description: A human-readable message providing more details about the error. + param: + type: string + description: 'The name of the parameter that caused the error, if applicable.' + nullable: true + BatchRequestCounts: + required: + - total + - completed + - failed + type: object + properties: + completed: + type: integer + description: Number of requests that have been completed successfully. + failed: + type: integer + description: Number of requests that have failed. + total: + type: integer + description: Total number of requests in the batch. + description: The request counts for different statuses within the batch. BatchRequestInput: type: object properties: @@ -8144,6 +8280,7 @@ components: type: string description: The name of the function to call. description: "Specifying a particular function via `{\"name\": \"my_function\"}` forces the model to call that function.\n" + x-stainless-variantName: function_call_option ChatCompletionFunctions: required: - name @@ -8216,7 +8353,7 @@ components: content_parts: type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText' - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartImage' description: "If a content parts array was provided, this is an array of `text` and `image_url` parts. \nOtherwise, null.\n" @@ -8312,7 +8449,7 @@ components: - text - audio type: string - description: "Output types that you would like the model to generate for this request.\nMost models are capable of generating text, which is the default:\n\n`[\"text\"]`\n\nThe `gpt-4o-audio-preview` model can also be used to [generate audio](/docs/guides/audio). To\nrequest that this model generate both text and audio responses, you can\nuse:\n\n`[\"text\", \"audio\"]`\n" + description: "Output types that you would like the model to generate for this request.\nMost models are capable of generating text, which is the default:\n\n`[\"text\"]`\n\nThe `gpt-4o-audio-preview` model can also be used to [generate audio](https://platform.openai.com/docs/guides/audio). To\nrequest that this model generate both text and audio responses, you can\nuse:\n\n`[\"text\", \"audio\"]`\n" nullable: true ChatCompletionNamedToolChoice: required: @@ -8349,10 +8486,10 @@ components: id: type: string description: "Unique identifier for a previous audio response from the model.\n" - description: "Data about a previous audio response from the model. \n[Learn more](/docs/guides/audio).\n" + description: "Data about a previous audio response from the model. \n[Learn more](https://platform.openai.com/docs/guides/audio).\n" nullable: true content: - oneOf: + anyOf: - title: Text content type: string description: The contents of the assistant message. @@ -8395,10 +8532,14 @@ components: tool_calls: $ref: '#/components/schemas/ChatCompletionMessageToolCalls' description: "Messages sent by the model in response to user messages.\n" + x-stainless-soft-required: + - content ChatCompletionRequestAssistantMessageContentPart: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText' - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartRefusal' + discriminator: + propertyName: type ChatCompletionRequestDeveloperMessage: title: Developer message required: @@ -8407,7 +8548,7 @@ components: type: object properties: content: - oneOf: + anyOf: - title: Text content type: string description: The contents of the developer message. @@ -8428,6 +8569,9 @@ components: description: 'The role of the messages author, in this case `developer`.' x-stainless-const: true description: "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, `developer` messages\nreplace the previous `system` messages.\n" + x-stainless-naming: + go: + variant_constructor: DeveloperMessage ChatCompletionRequestFunctionMessage: title: Function message required: @@ -8451,13 +8595,15 @@ components: x-stainless-const: true deprecated: true ChatCompletionRequestMessage: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestDeveloperMessage' - $ref: '#/components/schemas/ChatCompletionRequestSystemMessage' - $ref: '#/components/schemas/ChatCompletionRequestUserMessage' - $ref: '#/components/schemas/ChatCompletionRequestAssistantMessage' - $ref: '#/components/schemas/ChatCompletionRequestToolMessage' - $ref: '#/components/schemas/ChatCompletionRequestFunctionMessage' + discriminator: + propertyName: role ChatCompletionRequestMessageContentPartAudio: title: Audio content part required: @@ -8486,7 +8632,10 @@ components: type: string description: The type of the content part. Always `input_audio`. x-stainless-const: true - description: "Learn about [audio inputs](/docs/guides/audio).\n" + description: "Learn about [audio inputs](https://platform.openai.com/docs/guides/audio).\n" + x-stainless-naming: + go: + variant_constructor: InputAudioContentPart ChatCompletionRequestMessageContentPartFile: title: File content part required: @@ -8506,13 +8655,21 @@ components: filename: type: string description: "The name of the file, used when passing the file to the model as a \nstring.\n" + x-stainless-naming: + java: + type_name: FileObject + kotlin: + type_name: FileObject type: enum: - file type: string description: The type of the content part. Always `file`. x-stainless-const: true - description: "Learn about [file inputs](/docs/guides/text) for text generation.\n" + description: "Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text generation.\n" + x-stainless-naming: + go: + variant_constructor: FileContentPart ChatCompletionRequestMessageContentPartImage: title: Image content part required: @@ -8531,7 +8688,7 @@ components: - low - high type: string - description: 'Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).' + description: 'Specifies the detail level of the image. Learn more in the [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding).' default: auto url: type: string @@ -8543,7 +8700,10 @@ components: type: string description: The type of the content part. x-stainless-const: true - description: "Learn about [image inputs](/docs/guides/vision).\n" + description: "Learn about [image inputs](https://platform.openai.com/docs/guides/vision).\n" + x-stainless-naming: + go: + variant_constructor: ImageContentPart ChatCompletionRequestMessageContentPartRefusal: title: Refusal content part required: @@ -8576,7 +8736,10 @@ components: type: string description: The type of the content part. x-stainless-const: true - description: "Learn about [text inputs](/docs/guides/text-generation).\n" + description: "Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation).\n" + x-stainless-naming: + go: + variant_constructor: TextContentPart ChatCompletionRequestSystemMessage: title: System message required: @@ -8585,7 +8748,7 @@ components: type: object properties: content: - oneOf: + anyOf: - title: Text content type: string description: The contents of the system message. @@ -8606,8 +8769,11 @@ components: description: 'The role of the messages author, in this case `system`.' x-stainless-const: true description: "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, use `developer` messages\nfor this purpose instead.\n" + x-stainless-naming: + go: + variant_constructor: SystemMessage ChatCompletionRequestSystemMessageContentPart: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText' ChatCompletionRequestToolMessage: title: Tool message @@ -8618,7 +8784,7 @@ components: type: object properties: content: - oneOf: + anyOf: - title: Text content type: string description: The contents of the tool message. @@ -8638,8 +8804,11 @@ components: tool_call_id: type: string description: Tool call that this message is responding to. + x-stainless-naming: + go: + variant_constructor: ToolMessage ChatCompletionRequestToolMessageContentPart: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText' ChatCompletionRequestUserMessage: title: User message @@ -8649,7 +8818,7 @@ components: type: object properties: content: - oneOf: + anyOf: - title: Text content type: string description: The text contents of the message. @@ -8658,7 +8827,7 @@ components: type: array items: $ref: '#/components/schemas/ChatCompletionRequestUserMessageContentPart' - description: 'An array of content parts with a defined type. Supported options differ based on the [model](/docs/models) being used to generate the response. Can contain text, image, or audio inputs.' + description: 'An array of content parts with a defined type. Supported options differ based on the [model](https://platform.openai.com/docs/models) being used to generate the response. Can contain text, image, or audio inputs.' description: "The contents of the user message.\n" name: type: string @@ -8670,12 +8839,17 @@ components: description: 'The role of the messages author, in this case `user`.' x-stainless-const: true description: "Messages sent by an end user, containing prompts or additional context\ninformation.\n" + x-stainless-naming: + go: + variant_constructor: UserMessage ChatCompletionRequestUserMessageContentPart: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText' - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartImage' - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartAudio' - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartFile' + discriminator: + propertyName: type ChatCompletionResponseMessage: required: - role @@ -8717,7 +8891,7 @@ components: description: The URL of the web resource. description: A URL citation when using web search. description: "A URL citation when using web search.\n" - description: "Annotations for the message, when applicable, as when using the\n[web search tool](/docs/guides/tools-web-search?api-mode=chat).\n" + description: "Annotations for the message, when applicable, as when using the\n[web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat).\n" audio: required: - id @@ -8738,7 +8912,7 @@ components: transcript: type: string description: Transcript of the audio generated by the model. - description: "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](/docs/guides/audio).\n" + description: "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](https://platform.openai.com/docs/guides/audio).\n" nullable: true content: type: string @@ -8883,8 +9057,9 @@ components: description: 'The type of the tool. Currently, only `function` is supported.' x-stainless-const: true ChatCompletionToolChoiceOption: - oneOf: - - enum: + anyOf: + - title: Auto + enum: - none - auto - required @@ -8892,12 +9067,81 @@ components: description: "`none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` means the model must call one or more tools.\n" - $ref: '#/components/schemas/ChatCompletionNamedToolChoice' description: "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tool and instead generates a message.\n`auto` means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools.\nSpecifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n\n`none` is the default when no tools are present. `auto` is the default if tools are present.\n" + ChatModel: + enum: + - gpt-4.1 + - gpt-4.1-mini + - gpt-4.1-nano + - gpt-4.1-2025-04-14 + - gpt-4.1-mini-2025-04-14 + - gpt-4.1-nano-2025-04-14 + - o4-mini + - o4-mini-2025-04-16 + - o3 + - o3-2025-04-16 + - o3-mini + - o3-mini-2025-01-31 + - o1 + - o1-2024-12-17 + - o1-preview + - o1-preview-2024-09-12 + - o1-mini + - o1-mini-2024-09-12 + - gpt-4o + - gpt-4o-2024-11-20 + - gpt-4o-2024-08-06 + - gpt-4o-2024-05-13 + - gpt-4o-audio-preview + - gpt-4o-audio-preview-2024-10-01 + - gpt-4o-audio-preview-2024-12-17 + - gpt-4o-audio-preview-2025-06-03 + - gpt-4o-mini-audio-preview + - gpt-4o-mini-audio-preview-2024-12-17 + - gpt-4o-search-preview + - gpt-4o-mini-search-preview + - gpt-4o-search-preview-2025-03-11 + - gpt-4o-mini-search-preview-2025-03-11 + - chatgpt-4o-latest + - codex-mini-latest + - gpt-4o-mini + - gpt-4o-mini-2024-07-18 + - gpt-4-turbo + - gpt-4-turbo-2024-04-09 + - gpt-4-0125-preview + - gpt-4-turbo-preview + - gpt-4-1106-preview + - gpt-4-vision-preview + - gpt-4 + - gpt-4-0314 + - gpt-4-0613 + - gpt-4-32k + - gpt-4-32k-0314 + - gpt-4-32k-0613 + - gpt-3.5-turbo + - gpt-3.5-turbo-16k + - gpt-3.5-turbo-0301 + - gpt-3.5-turbo-0613 + - gpt-3.5-turbo-1106 + - gpt-3.5-turbo-0125 + - gpt-3.5-turbo-16k-0613 + type: string + x-stainless-nominal: false ChunkingStrategyRequestParam: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/AutoChunkingStrategyRequestParam' - $ref: '#/components/schemas/StaticChunkingStrategyRequestParam' - description: 'The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.' + description: 'The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.' + discriminator: + propertyName: type + ChunkingStrategyResponse: + type: object + anyOf: + - $ref: '#/components/schemas/StaticChunkingStrategyResponseParam' + - $ref: '#/components/schemas/OtherChunkingStrategyResponseParam' + description: The strategy used to chunk the file. + discriminator: + propertyName: type Click: title: Click required: @@ -9019,7 +9263,7 @@ components: type: object properties: container: - oneOf: + anyOf: - type: string description: The container ID. - $ref: '#/components/schemas/CodeInterpreterToolAuto' @@ -9073,9 +9317,11 @@ components: outputs: type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/CodeInterpreterOutputLogs' - $ref: '#/components/schemas/CodeInterpreterOutputImage' + discriminator: + propertyName: type description: "The outputs generated by the code interpreter, such as logs or images. \nCan be null if no outputs are available.\n" nullable: true discriminator: @@ -9120,7 +9366,7 @@ components: description: "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n" default: eq value: - oneOf: + anyOf: - type: string - type: number - type: boolean @@ -9205,7 +9451,7 @@ components: filters: type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/ComparisonFilter' - { } description: Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`. @@ -9220,7 +9466,7 @@ components: x-oaiMeta: name: CompoundFilter ComputerAction: - oneOf: + anyOf: - $ref: '#/components/schemas/Click' - $ref: '#/components/schemas/DoubleClick' - $ref: '#/components/schemas/Drag' @@ -9230,6 +9476,8 @@ components: - $ref: '#/components/schemas/Scroll' - $ref: '#/components/schemas/Type' - $ref: '#/components/schemas/Wait' + discriminator: + propertyName: type ComputerCallOutputItemParam: title: Computer tool call output required: @@ -9344,7 +9592,7 @@ components: type: string description: The type of the computer call. Always `computer_call`. default: computer_call - description: "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n" + description: "A tool call to a computer use tool. See the \n[computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information.\n" ComputerToolCallOutput: title: Computer tool call output required: @@ -9500,7 +9748,6 @@ components: object: enum: - list - type: string description: 'The type of object returned, must be ''list''.' ContainerFileResource: title: The container file object @@ -9527,6 +9774,8 @@ components: type: string description: Unique identifier for the file. object: + enum: + - container.file type: string description: The type of this object (`container.file`). path: @@ -9564,7 +9813,6 @@ components: object: enum: - list - type: string description: 'The type of object returned, must be ''list''.' ContainerResource: title: The container object @@ -9607,7 +9855,7 @@ components: example: "{\n \"id\": \"cntr_682dfebaacac8198bbfe9c2474fb6f4a085685cbe3cb5863\",\n \"object\": \"container\",\n \"created_at\": 1747844794,\n \"status\": \"running\",\n \"expires_after\": {\n \"anchor\": \"last_active_at\",\n \"minutes\": 20\n },\n \"last_active_at\": 1747844794,\n \"name\": \"My Container\"\n}\n" name: The container object Content: - oneOf: + anyOf: - $ref: '#/components/schemas/InputContent' - $ref: '#/components/schemas/OutputContent' description: "Multi-modal input and output contents.\n" @@ -9678,7 +9926,7 @@ components: anyOf: - type: string - $ref: '#/components/schemas/AssistantSupportedModels' - description: "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n" + description: "ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.\n" example: gpt-4o x-oaiTypeLabel: string name: @@ -9709,10 +9957,10 @@ components: type: array items: type: string - description: "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" + description: "A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" file_search: type: object - oneOf: + anyOf: - required: - vector_store_ids - required: @@ -9723,7 +9971,7 @@ components: type: array items: type: string - description: "The [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" + description: "The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" vector_stores: maxItems: 1 type: array @@ -9732,7 +9980,7 @@ components: properties: chunking_strategy: type: object - oneOf: + anyOf: - title: Auto Chunking Strategy required: - type @@ -9774,26 +10022,30 @@ components: description: Always `static`. x-stainless-const: true additionalProperties: false + x-stainless-naming: + java: + type_name: StaticObject + kotlin: + type_name: StaticObject description: 'The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.' + discriminator: + propertyName: type file_ids: maxItems: 10000 type: array items: type: string - description: "A list of [file](/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.\n" + description: "A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.\n" metadata: $ref: '#/components/schemas/Metadata' - description: "A helper to create a [vector store](/docs/api-reference/vector-stores/object) with file_ids and attach it to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" + description: "A helper to create a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) with file_ids and attach it to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" description: "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n" nullable: true tools: maxItems: 128 type: array items: - oneOf: - - $ref: '#/components/schemas/AssistantToolsCode' - - $ref: '#/components/schemas/AssistantToolsFileSearch' - - $ref: '#/components/schemas/AssistantToolsFunction' + $ref: '#/components/schemas/AssistantTool' description: "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.\n" top_p: maximum: 1 @@ -9830,7 +10082,7 @@ components: description: "Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`,\n`opus`, or `pcm16`.\n" voice: $ref: '#/components/schemas/VoiceIdsShared' - description: "Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](/docs/guides/audio).\n" + description: "Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](https://platform.openai.com/docs/guides/audio).\n" nullable: true frequency_penalty: maximum: 2 @@ -9840,8 +10092,9 @@ components: default: 0 nullable: true function_call: - oneOf: - - enum: + anyOf: + - title: function call mode + enum: - none - auto type: string @@ -9872,11 +10125,11 @@ components: nullable: true max_completion_tokens: type: integer - description: "An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n" + description: "An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).\n" nullable: true max_tokens: type: integer - description: "The maximum number of [tokens](/tokenizer) that can be generated in the\nchat completion. This value can be used to control\n[costs](https://openai.com/api/pricing/) for text generated via API.\n\nThis value is now deprecated in favor of `max_completion_tokens`, and is\nnot compatible with [o-series models](/docs/guides/reasoning).\n" + description: "The maximum number of [tokens](/tokenizer) that can be generated in the\nchat completion. This value can be used to control\n[costs](https://openai.com/api/pricing/) for text generated via API.\n\nThis value is now deprecated in favor of `max_completion_tokens`, and is\nnot compatible with [o-series models](https://platform.openai.com/docs/guides/reasoning).\n" nullable: true deprecated: true messages: @@ -9884,7 +10137,7 @@ components: type: array items: $ref: '#/components/schemas/ChatCompletionRequestMessage' - description: "A list of messages comprising the conversation so far. Depending on the\n[model](/docs/models) you use, different message types (modalities) are\nsupported, like [text](/docs/guides/text-generation),\n[images](/docs/guides/vision), and [audio](/docs/guides/audio).\n" + description: "A list of messages comprising the conversation so far. Depending on the\n[model](https://platform.openai.com/docs/models) you use, different message types (modalities) are\nsupported, like [text](https://platform.openai.com/docs/guides/text-generation),\n[images](https://platform.openai.com/docs/guides/vision), and [audio](https://platform.openai.com/docs/guides/audio).\n" modalities: $ref: '#/components/schemas/ResponseModalities' model: @@ -9900,10 +10153,12 @@ components: parallel_tool_calls: $ref: '#/components/schemas/ParallelToolCalls' prediction: - oneOf: + anyOf: - $ref: '#/components/schemas/PredictionContent' - description: "Configuration for a [Predicted Output](/docs/guides/predicted-outputs),\nwhich can greatly improve response times when large parts of the model\nresponse are known ahead of time. This is most common when you are\nregenerating a file with only minor changes to most of the content.\n" + description: "Configuration for a [Predicted Output](https://platform.openai.com/docs/guides/predicted-outputs),\nwhich can greatly improve response times when large parts of the model\nresponse are known ahead of time. This is most common when you are\nregenerating a file with only minor changes to most of the content.\n" nullable: true + discriminator: + propertyName: type presence_penalty: maximum: 2 minimum: -2 @@ -9914,11 +10169,11 @@ components: reasoning_effort: $ref: '#/components/schemas/ReasoningEffort' response_format: - oneOf: + anyOf: - $ref: '#/components/schemas/ResponseFormatText' - $ref: '#/components/schemas/ResponseFormatJsonSchema' - $ref: '#/components/schemas/ResponseFormatJsonObject' - description: "An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n" + description: "An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](https://platform.openai.com/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n" seed: maximum: 9223372036854776000 type: integer @@ -9930,12 +10185,12 @@ components: $ref: '#/components/schemas/StopConfiguration' store: type: boolean - description: "Whether or not to store the output of this chat completion request for \nuse in our [model distillation](/docs/guides/distillation) or\n[evals](/docs/guides/evals) products. \n\nSupports text and image inputs. Note: image inputs over 10MB will be dropped.\n" + description: "Whether or not to store the output of this chat completion request for \nuse in our [model distillation](https://platform.openai.com/docs/guides/distillation) or\n[evals](https://platform.openai.com/docs/guides/evals) products. \n\nSupports text and image inputs. Note: image inputs over 10MB will be dropped.\n" default: false nullable: true stream: type: boolean - description: "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](/docs/api-reference/chat/streaming)\nfor more information, along with the [streaming responses](/docs/guides/streaming-responses)\nguide for more information on how to handle the streaming events.\n" + description: "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming)\nfor more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses)\nguide for more information on how to handle the streaming events.\n" default: false nullable: true stream_options: @@ -9975,7 +10230,7 @@ components: x-stainless-const: true description: "Approximate location parameters for the search.\n" nullable: true - description: "This tool searches the web for relevant results to use in a response.\nLearn more about the [web search tool](/docs/guides/tools-web-search?api-mode=chat).\n" + description: "This tool searches the web for relevant results to use in a response.\nLearn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat).\n" CreateChatCompletionResponse: required: - choices @@ -10132,7 +10387,7 @@ components: description: "This fingerprint represents the backend configuration that the model runs with.\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n" usage: $ref: '#/components/schemas/CompletionUsage' - description: "Represents a streamed chunk of a chat completion response returned\nby the model, based on the provided input. \n[Learn more](/docs/guides/streaming-responses).\n" + description: "Represents a streamed chunk of a chat completion response returned\nby the model, based on the provided input. \n[Learn more](https://platform.openai.com/docs/guides/streaming-responses).\n" x-oaiMeta: example: "{\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1694268190,\"model\":\"gpt-4o-mini\", \"system_fingerprint\": \"fp_44709d6fcb\", \"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"},\"logprobs\":null,\"finish_reason\":null}]}\n\n{\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1694268190,\"model\":\"gpt-4o-mini\", \"system_fingerprint\": \"fp_44709d6fcb\", \"choices\":[{\"index\":0,\"delta\":{\"content\":\"Hello\"},\"logprobs\":null,\"finish_reason\":null}]}\n\n....\n\n{\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1694268190,\"model\":\"gpt-4o-mini\", \"system_fingerprint\": \"fp_44709d6fcb\", \"choices\":[{\"index\":0,\"delta\":{},\"logprobs\":null,\"finish_reason\":\"stop\"}]}\n" group: chat @@ -10159,7 +10414,7 @@ components: maximum: 2 minimum: -2 type: number - description: "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)\n" + description: "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.\n\n[See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)\n" default: 0 nullable: true logit_bias: @@ -10187,12 +10442,13 @@ components: model: anyOf: - type: string - - enum: + - title: Preset + enum: - gpt-3.5-turbo-instruct - davinci-002 - babbage-002 type: string - description: "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n" + description: "ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.\n" x-oaiTypeLabel: string n: maximum: 128 @@ -10206,34 +10462,34 @@ components: maximum: 2 minimum: -2 type: number - description: "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)\n" + description: "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)\n" default: 0 nullable: true prompt: - oneOf: + anyOf: - type: string default: '' example: This is a test. - - type: array + - title: Array of strings + type: array items: type: string default: '' example: This is a test. - - minItems: 1 + - title: Array of tokens + minItems: 1 type: array items: type: integer - example: '[1212, 318, 257, 1332, 13]' - - minItems: 1 + - title: Array of token arrays + minItems: 1 type: array items: minItems: 1 type: array items: type: integer - example: '[[1212, 318, 257, 1332, 13]]' description: "The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.\n\nNote that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.\n" - default: <|endoftext|> nullable: true seed: type: integer @@ -10273,7 +10529,7 @@ components: example: 1 user: type: string - description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n" + description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).\n" example: user-1234 CreateCompletionResponse: required: @@ -10410,13 +10666,13 @@ components: default: float example: float input: - oneOf: + anyOf: - title: string type: string description: The string that will be turned into an embedding. default: '' example: This is a test. - - title: array + - title: Array of strings maxItems: 2048 minItems: 1 type: array @@ -10425,15 +10681,14 @@ components: default: '' example: '[''This is a test.'']' description: The array of strings that will be turned into an embedding. - - title: array + - title: Array of tokens maxItems: 2048 minItems: 1 type: array items: type: integer description: The array of integers that will be turned into an embedding. - example: '[1212, 318, 257, 1332, 13]' - - title: array + - title: Array of token arrays maxItems: 2048 minItems: 1 type: array @@ -10443,7 +10698,6 @@ components: items: type: integer description: The array of arrays containing integers that will be turned into an embedding. - example: '[[1212, 318, 257, 1332, 13]]' description: "Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens for all embedding models), cannot be an empty string, and any array must be 2048 dimensions or less. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens. In addition to the per-input token limit, all embedding models enforce a maximum of 300,000 tokens summed across all inputs in a single request.\n" example: The quick brown fox jumped over the lazy dog model: @@ -10454,12 +10708,13 @@ components: - text-embedding-3-small - text-embedding-3-large type: string - description: "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n" + x-stainless-nominal: false + description: "ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.\n" example: text-embedding-3-small x-oaiTypeLabel: string user: type: string - description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n" + description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).\n" example: user-1234 additionalProperties: false CreateEmbeddingResponse: @@ -10505,7 +10760,7 @@ components: type: object properties: input_messages: - oneOf: + anyOf: - title: TemplateInputMessages required: - type @@ -10515,9 +10770,11 @@ components: template: type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/EasyInputMessage' - $ref: '#/components/schemas/EvalItem' + discriminator: + propertyName: type description: 'A list of chat messages forming the prompt or context. May include variable references to the `item` namespace, ie {{item.name}}.' type: enum: @@ -10539,6 +10796,8 @@ components: type: string description: The type of input messages. Always `item_reference`. description: 'Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace.' + discriminator: + propertyName: type model: type: string description: The name of the model to use for generating completions (e.g. "o3-mini"). @@ -10549,11 +10808,11 @@ components: type: integer description: The maximum number of tokens in the generated output. response_format: - oneOf: + anyOf: - $ref: '#/components/schemas/ResponseFormatText' - $ref: '#/components/schemas/ResponseFormatJsonSchema' - $ref: '#/components/schemas/ResponseFormatJsonObject' - description: "An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n" + description: "An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](https://platform.openai.com/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n" seed: type: integer description: 'A seed value to initialize the randomness, during sampling.' @@ -10572,11 +10831,13 @@ components: description: An alternative to temperature for nucleus sampling; 1.0 includes all tokens. default: 1 source: - oneOf: + anyOf: - $ref: '#/components/schemas/EvalJsonlFileContentSource' - $ref: '#/components/schemas/EvalJsonlFileIdSource' - $ref: '#/components/schemas/EvalStoredCompletionsSource' description: Determines what populates the `item` namespace in this run's data source. + discriminator: + propertyName: type type: enum: - completions @@ -10602,7 +10863,6 @@ components: item_schema: type: object description: The json schema for each row in the data source. - example: "{\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\"type\": \"string\"},\n \"age\": {\"type\": \"integer\"}\n },\n \"required\": [\"name\", \"age\"]\n}\n" type: enum: - custom @@ -10618,7 +10878,7 @@ components: CreateEvalItem: title: CreateEvalItem type: object - oneOf: + anyOf: - title: SimpleInputMessage required: - role @@ -10643,10 +10903,12 @@ components: type: object properties: source: - oneOf: + anyOf: - $ref: '#/components/schemas/EvalJsonlFileContentSource' - $ref: '#/components/schemas/EvalJsonlFileIdSource' description: Determines what populates the `item` namespace in the data source. + discriminator: + propertyName: type type: enum: - jsonl @@ -10711,7 +10973,6 @@ components: metadata: type: object description: Metadata filters for the logs data source. - example: "{\n \"use_case\": \"customer_support_agent\"\n}\n" type: enum: - logs @@ -10733,11 +10994,13 @@ components: properties: data_source_config: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/CreateEvalCustomDataSourceConfig' - $ref: '#/components/schemas/CreateEvalLogsDataSourceConfig' - $ref: '#/components/schemas/CreateEvalStoredCompletionsDataSourceConfig' description: The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation. + discriminator: + propertyName: type metadata: $ref: '#/components/schemas/Metadata' name: @@ -10746,12 +11009,14 @@ components: testing_criteria: type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/CreateEvalLabelModelGrader' - $ref: '#/components/schemas/EvalGraderStringCheck' - $ref: '#/components/schemas/EvalGraderTextSimilarity' - $ref: '#/components/schemas/EvalGraderPython' - $ref: '#/components/schemas/EvalGraderScoreModel' + discriminator: + propertyName: type description: 'A list of graders for all eval runs in this group. Graders can reference variables in the data source using double curly braces notation, like `{{item.variable_name}}`. To reference the model''s output, use the `sample` namespace (ie, `{{sample.output_text}}`).' CreateEvalResponsesRunDataSource: title: ResponsesRunDataSource @@ -10761,7 +11026,7 @@ components: type: object properties: input_messages: - oneOf: + anyOf: - title: InputMessagesTemplate required: - type @@ -10771,7 +11036,7 @@ components: template: type: array items: - oneOf: + anyOf: - title: ChatMessage required: - role @@ -10806,6 +11071,8 @@ components: type: string description: The type of input messages. Always `item_reference`. description: 'Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace.' + discriminator: + propertyName: type model: type: string description: The name of the model to use for generating completions (e.g. "o3-mini"). @@ -10828,22 +11095,24 @@ components: properties: format: $ref: '#/components/schemas/TextResponseFormatConfiguration' - description: "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n" + description: "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](https://platform.openai.com/docs/guides/text)\n- [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)\n" tools: type: array items: $ref: '#/components/schemas/Tool' - description: "An array of tools the model may call while generating a response. You\ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n model's capabilities, like [web search](/docs/guides/tools-web-search)\n or [file search](/docs/guides/tools-file-search). Learn more about\n [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n enabling the model to call your own code. Learn more about\n [function calling](/docs/guides/function-calling).\n" + description: "An array of tools the model may call while generating a response. You\ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search)\n or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about\n [built-in tools](https://platform.openai.com/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n enabling the model to call your own code. Learn more about\n [function calling](https://platform.openai.com/docs/guides/function-calling).\n" top_p: type: number description: An alternative to temperature for nucleus sampling; 1.0 includes all tokens. default: 1 source: - oneOf: + anyOf: - $ref: '#/components/schemas/EvalJsonlFileContentSource' - $ref: '#/components/schemas/EvalJsonlFileIdSource' - $ref: '#/components/schemas/EvalResponsesSource' description: Determines what populates the `item` namespace in this run's data source. + discriminator: + propertyName: type type: enum: - responses @@ -10863,7 +11132,7 @@ components: properties: data_source: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/CreateEvalJsonlRunDataSource' - $ref: '#/components/schemas/CreateEvalCompletionsRunDataSource' - $ref: '#/components/schemas/CreateEvalResponsesRunDataSource' @@ -10882,7 +11151,6 @@ components: metadata: type: object description: Metadata filters for the stored completions data source. - example: "{\n \"use_case\": \"customer_support_agent\"\n}\n" type: enum: - stored_completions @@ -10906,16 +11174,10 @@ components: type: string description: "The File object (not file name) to be uploaded.\n" format: binary + x-oaiMeta: + exampleFilePath: fine-tune.jsonl purpose: - enum: - - assistants - - batch - - fine-tune - - vision - - user_data - - evals - type: string - description: "The intended purpose of the uploaded file. One of: - `assistants`: Used in the Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: Flexible file type for any purpose - `evals`: Used for eval data sets\n" + $ref: '#/components/schemas/FilePurpose' additionalProperties: false CreateFineTuningCheckpointPermissionRequest: required: @@ -10938,8 +11200,9 @@ components: type: object properties: batch_size: - oneOf: - - enum: + anyOf: + - title: Auto + enum: - auto type: string x-stainless-const: true @@ -10949,8 +11212,9 @@ components: description: "Number of examples in each batch. A larger batch size means that model parameters\nare updated less frequently, but with lower variance.\n" default: auto learning_rate_multiplier: - oneOf: - - enum: + anyOf: + - title: Auto + enum: - auto type: string x-stainless-const: true @@ -10958,10 +11222,10 @@ components: exclusiveMinimum: true type: number description: "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid\noverfitting.\n" - default: auto n_epochs: - oneOf: - - enum: + anyOf: + - title: Auto + enum: - auto type: string x-stainless-const: true @@ -10981,7 +11245,7 @@ components: type: object properties: type: - oneOf: + anyOf: - enum: - wandb type: string @@ -11020,13 +11284,14 @@ components: model: anyOf: - type: string - - enum: + - title: Preset + enum: - babbage-002 - davinci-002 - gpt-3.5-turbo - gpt-4o-mini type: string - description: "The name of the model to fine-tune. You can select one of the\n[supported models](/docs/guides/fine-tuning#which-models-can-be-fine-tuned).\n" + description: "The name of the model to fine-tune. You can select one of the\n[supported models](https://platform.openai.com/docs/guides/fine-tuning#which-models-can-be-fine-tuned).\n" example: gpt-4o-mini x-oaiTypeLabel: string seed: @@ -11045,11 +11310,11 @@ components: nullable: true training_file: type: string - description: "The ID of an uploaded file that contains training data.\n\nSee [upload file](/docs/api-reference/files/create) for how to upload a file.\n\nYour dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.\n\nThe contents of the file should differ depending on if the model uses the [chat](/docs/api-reference/fine-tuning/chat-input), [completions](/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](/docs/api-reference/fine-tuning/preference-input) format.\n\nSee the [fine-tuning guide](/docs/guides/model-optimization) for more details.\n" + description: "The ID of an uploaded file that contains training data.\n\nSee [upload file](https://platform.openai.com/docs/api-reference/files/create) for how to upload a file.\n\nYour dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.\n\nThe contents of the file should differ depending on if the model uses the [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input), [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](https://platform.openai.com/docs/api-reference/fine-tuning/preference-input) format.\n\nSee the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.\n" example: file-abc123 validation_file: type: string - description: "The ID of an uploaded file that contains validation data.\n\nIf you provide this file, the data is used to generate validation\nmetrics periodically during fine-tuning. These metrics can be viewed in\nthe fine-tuning results file.\nThe same data should not be present in both train and validation files.\n\nYour dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/model-optimization) for more details.\n" + description: "The ID of an uploaded file that contains validation data.\n\nIf you provide this file, the data is used to generate validation\nmetrics periodically during fine-tuning. These metrics can be viewed in\nthe fine-tuning results file.\nThe same data should not be present in both train and validation files.\n\nYour dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.\n\nSee the [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization) for more details.\n" nullable: true example: file-abc123 CreateImageEditRequest: @@ -11078,12 +11343,16 @@ components: type: string format: binary description: "The image(s) to edit. Must be a supported image file or an array of images.\n\nFor `gpt-image-1`, each image should be a `png`, `webp`, or `jpg` file less \nthan 50MB. You can provide up to 16 images.\n\nFor `dall-e-2`, you can only provide one image, and it should be a square \n`png` file less than 4MB.\n" + x-oaiMeta: + exampleFilePath: otter.png input_fidelity: $ref: '#/components/schemas/ImageInputFidelity' mask: type: string description: 'An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`.' format: binary + x-oaiMeta: + exampleFilePath: mask.png model: anyOf: - type: string @@ -11093,9 +11362,7 @@ components: type: string x-stainless-const: true description: The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used. - default: dall-e-2 nullable: true - example: gpt-image-1 x-oaiTypeLabel: string n: maximum: 10 @@ -11163,13 +11430,13 @@ components: example: 1024x1024 stream: type: boolean - description: "Edit the image in streaming mode. Defaults to `false`. See the \n[Image generation guide](/docs/guides/image-generation) for more information.\n" + description: "Edit the image in streaming mode. Defaults to `false`. See the \n[Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.\n" default: false nullable: true example: false user: type: string - description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n" + description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).\n" example: user-1234 CreateImageRequest: required: @@ -11194,10 +11461,9 @@ components: - dall-e-3 - gpt-image-1 type: string + x-stainless-nominal: false description: 'The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.' - default: dall-e-2 nullable: true - example: gpt-image-1 x-oaiTypeLabel: string moderation: enum: @@ -11277,7 +11543,7 @@ components: example: 1024x1024 stream: type: boolean - description: "Generate the image in streaming mode. Defaults to `false`. See the \n[Image generation guide](/docs/guides/image-generation) for more information.\nThis parameter is only supported for `gpt-image-1`.\n" + description: "Generate the image in streaming mode. Defaults to `false`. See the \n[Image generation guide](https://platform.openai.com/docs/guides/image-generation) for more information.\nThis parameter is only supported for `gpt-image-1`.\n" default: false nullable: true example: false @@ -11292,7 +11558,7 @@ components: example: vivid user: type: string - description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n" + description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).\n" example: user-1234 CreateImageVariationRequest: required: @@ -11303,6 +11569,8 @@ components: type: string description: 'The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.' format: binary + x-oaiMeta: + exampleFilePath: otter.png model: anyOf: - type: string @@ -11311,9 +11579,7 @@ components: type: string x-stainless-const: true description: The model to use for image generation. Only `dall-e-2` is supported at this time. - default: dall-e-2 nullable: true - example: dall-e-2 x-oaiTypeLabel: string n: maximum: 10 @@ -11344,7 +11610,7 @@ components: example: 1024x1024 user: type: string - description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n" + description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids).\n" example: user-1234 CreateMessageRequest: required: @@ -11366,14 +11632,16 @@ components: tools: type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/AssistantToolsCode' - $ref: '#/components/schemas/AssistantToolsFileSearchTypeOnly' + discriminator: + propertyName: type description: The tools to add this file to. description: 'A list of files attached to the message, and the tools they should be added to.' nullable: true content: - oneOf: + anyOf: - title: Text content type: string description: The text contents of the message. @@ -11381,11 +11649,13 @@ components: minItems: 1 type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/MessageContentImageFileObject' - $ref: '#/components/schemas/MessageContentImageUrlObject' - $ref: '#/components/schemas/MessageRequestContentTextObject' - description: 'An array of content parts with a defined type, each can be of type `text` or images can be passed with `image_url` or `image_file`. Image types are only supported on [Vision-compatible models](/docs/models).' + discriminator: + propertyName: type + description: 'An array of content parts with a defined type, each can be of type `text` or images can be passed with `image_url` or `image_file`. Image types are only supported on [Vision-compatible models](https://platform.openai.com/docs/models).' metadata: $ref: '#/components/schemas/Metadata' role: @@ -11411,7 +11681,7 @@ components: type: object properties: input: - oneOf: + anyOf: - type: string description: A string of text to classify for moderation. default: '' @@ -11422,48 +11692,14 @@ components: default: '' example: I want to kill them. description: An array of strings to classify for moderation. - - type: array + - title: Moderation Multi Modal Array + type: array items: - oneOf: - - required: - - type - - image_url - type: object - properties: - image_url: - required: - - url - type: object - properties: - url: - type: string - description: Either a URL of the image or the base64 encoded image data. - format: uri - example: https://example.com/image.jpg - description: Contains either an image URL or a data URL for a base64 encoded image. - type: - enum: - - image_url - type: string - description: Always `image_url`. - x-stainless-const: true - description: An object describing an image to classify. - - required: - - type - - text - type: object - properties: - text: - type: string - description: A string of text to classify. - example: I want to kill them - type: - enum: - - text - type: string - description: Always `text`. - x-stainless-const: true - description: An object describing text to classify. + anyOf: + - $ref: '#/components/schemas/ModerationImageURLInput' + - $ref: '#/components/schemas/ModerationTextInput' + discriminator: + propertyName: type description: An array of multi-modal inputs to the moderation model. description: "Input (or inputs) to classify. Can be a single string, an array of strings, or\nan array of multi-modal input objects similar to other models.\n" model: @@ -11475,9 +11711,8 @@ components: - text-moderation-latest - text-moderation-stable type: string - description: "The content moderation model you would like to use. Learn more in\n[the moderation guide](/docs/guides/moderation), and learn about\navailable models [here](/docs/models#moderation).\n" - default: omni-moderation-latest - example: omni-moderation-2024-09-26 + x-stainless-nominal: false + description: "The content moderation model you would like to use. Learn more in\n[the moderation guide](https://platform.openai.com/docs/guides/moderation), and learn about\navailable models [here](https://platform.openai.com/docs/models#moderation).\n" x-oaiTypeLabel: string CreateModerationResponse: required: @@ -11761,7 +11996,7 @@ components: description: "Specify additional output data to include in the model response. Currently\nsupported values are:\n- `code_interpreter_call.outputs`: Includes the outputs of python code execution\n in code interpreter tool call items.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n- `file_search_call.results`: Include the search results of\n the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `message.output_text.logprobs`: Include logprobs with assistant messages.\n- `reasoning.encrypted_content`: Includes an encrypted version of reasoning\n tokens in reasoning item outputs. This enables reasoning items to be used in\n multi-turn conversations when using the Responses API statelessly (like\n when the `store` parameter is set to `false`, or when an organization is\n enrolled in the zero data retention program).\n" nullable: true input: - oneOf: + anyOf: - title: Text input type: string description: "A text input to the model, equivalent to a text input with the\n`user` role.\n" @@ -11770,7 +12005,7 @@ components: items: $ref: '#/components/schemas/InputItem' description: "A list of one or many input items to the model, containing\ndifferent content types.\n" - description: "Text, image, or file inputs to the model, used to generate a response.\n\nLearn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Image inputs](/docs/guides/images)\n- [File inputs](/docs/guides/pdf-files)\n- [Conversation state](/docs/guides/conversation-state)\n- [Function calling](/docs/guides/function-calling)\n" + description: "Text, image, or file inputs to the model, used to generate a response.\n\nLearn more:\n- [Text inputs and outputs](https://platform.openai.com/docs/guides/text)\n- [Image inputs](https://platform.openai.com/docs/guides/images)\n- [File inputs](https://platform.openai.com/docs/guides/pdf-files)\n- [Conversation state](https://platform.openai.com/docs/guides/conversation-state)\n- [Function calling](https://platform.openai.com/docs/guides/function-calling)\n" instructions: type: string description: "A system (or developer) message inserted into the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n" @@ -11787,7 +12022,7 @@ components: nullable: true stream: type: boolean - description: "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](/docs/api-reference/responses-streaming)\nfor more information.\n" + description: "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)\nfor more information.\n" default: false nullable: true CreateRunRequest: @@ -11807,10 +12042,10 @@ components: nullable: true assistant_id: type: string - description: 'The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run.' + description: 'The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run.' instructions: type: string - description: 'Overrides the [instructions](/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis.' + description: 'Overrides the [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis.' nullable: true max_completion_tokens: minimum: 256 @@ -11828,9 +12063,8 @@ components: anyOf: - type: string - $ref: '#/components/schemas/AssistantSupportedModels' - description: 'The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.' + description: 'The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.' nullable: true - example: gpt-4o x-oaiTypeLabel: string parallel_tool_calls: $ref: '#/components/schemas/ParallelToolCalls' @@ -11856,10 +12090,82 @@ components: maxItems: 20 type: array items: - oneOf: - - $ref: '#/components/schemas/AssistantToolsCode' - - $ref: '#/components/schemas/AssistantToolsFileSearch' - - $ref: '#/components/schemas/AssistantToolsFunction' + $ref: '#/components/schemas/AssistantTool' + description: Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + nullable: true + top_p: + maximum: 1 + minimum: 0 + type: number + description: "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.\n" + default: 1 + nullable: true + example: 1 + truncation_strategy: + $ref: '#/components/schemas/TruncationObject' + additionalProperties: false + CreateRunRequestWithoutStream: + required: + - assistant_id + type: object + properties: + additional_instructions: + type: string + description: Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions. + nullable: true + additional_messages: + type: array + items: + $ref: '#/components/schemas/CreateMessageRequest' + description: Adds additional messages to the thread before creating the run. + nullable: true + assistant_id: + type: string + description: 'The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run.' + instructions: + type: string + description: 'Overrides the [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis.' + nullable: true + max_completion_tokens: + minimum: 256 + type: integer + description: "The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n" + nullable: true + max_prompt_tokens: + minimum: 256 + type: integer + description: "The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n" + nullable: true + metadata: + $ref: '#/components/schemas/Metadata' + model: + anyOf: + - type: string + - $ref: '#/components/schemas/AssistantSupportedModels' + description: 'The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.' + nullable: true + x-oaiTypeLabel: string + parallel_tool_calls: + $ref: '#/components/schemas/ParallelToolCalls' + reasoning_effort: + $ref: '#/components/schemas/ReasoningEffort' + response_format: + $ref: '#/components/schemas/AssistantsApiResponseFormatOption' + temperature: + maximum: 2 + minimum: 0 + type: number + description: "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n" + default: 1 + nullable: true + example: 1 + tool_choice: + $ref: '#/components/schemas/AssistantsApiToolChoiceOption' + tools: + maxItems: 20 + type: array + items: + $ref: '#/components/schemas/AssistantTool' description: Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. nullable: true top_p: @@ -11896,7 +12202,8 @@ components: - tts-1-hd - gpt-4o-mini-tts type: string - description: "One of the available [TTS models](/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.\n" + x-stainless-nominal: false + description: "One of the available [TTS models](https://platform.openai.com/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.\n" x-oaiTypeLabel: string response_format: enum: @@ -11913,32 +12220,157 @@ components: maximum: 4 minimum: 0.25 type: number - description: The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is the default. + description: The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is the default. + default: 1 + stream_format: + enum: + - sse + - audio + type: string + description: The format to stream the audio in. Supported formats are `sse` and `audio`. `sse` is not supported for `tts-1` or `tts-1-hd`. + default: audio + voice: + $ref: '#/components/schemas/VoiceIdsShared' + additionalProperties: false + CreateSpeechResponseStreamEvent: + anyOf: + - $ref: '#/components/schemas/SpeechAudioDeltaEvent' + - $ref: '#/components/schemas/SpeechAudioDoneEvent' + discriminator: + propertyName: type + CreateThreadAndRunRequest: + required: + - assistant_id + type: object + properties: + assistant_id: + type: string + description: 'The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run.' + instructions: + type: string + description: Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis. + nullable: true + max_completion_tokens: + minimum: 256 + type: integer + description: "The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n" + nullable: true + max_prompt_tokens: + minimum: 256 + type: integer + description: "The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n" + nullable: true + metadata: + $ref: '#/components/schemas/Metadata' + model: + anyOf: + - type: string + - enum: + - gpt-4.1 + - gpt-4.1-mini + - gpt-4.1-nano + - gpt-4.1-2025-04-14 + - gpt-4.1-mini-2025-04-14 + - gpt-4.1-nano-2025-04-14 + - gpt-4o + - gpt-4o-2024-11-20 + - gpt-4o-2024-08-06 + - gpt-4o-2024-05-13 + - gpt-4o-mini + - gpt-4o-mini-2024-07-18 + - gpt-4.5-preview + - gpt-4.5-preview-2025-02-27 + - gpt-4-turbo + - gpt-4-turbo-2024-04-09 + - gpt-4-0125-preview + - gpt-4-turbo-preview + - gpt-4-1106-preview + - gpt-4-vision-preview + - gpt-4 + - gpt-4-0314 + - gpt-4-0613 + - gpt-4-32k + - gpt-4-32k-0314 + - gpt-4-32k-0613 + - gpt-3.5-turbo + - gpt-3.5-turbo-16k + - gpt-3.5-turbo-0613 + - gpt-3.5-turbo-1106 + - gpt-3.5-turbo-0125 + - gpt-3.5-turbo-16k-0613 + type: string + description: 'The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.' + nullable: true + x-oaiTypeLabel: string + parallel_tool_calls: + $ref: '#/components/schemas/ParallelToolCalls' + response_format: + $ref: '#/components/schemas/AssistantsApiResponseFormatOption' + stream: + type: boolean + description: "If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.\n" + nullable: true + temperature: + maximum: 2 + minimum: 0 + type: number + description: "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n" + default: 1 + nullable: true + example: 1 + thread: + $ref: '#/components/schemas/CreateThreadRequest' + tool_choice: + $ref: '#/components/schemas/AssistantsApiToolChoiceOption' + tool_resources: + type: object + properties: + code_interpreter: + type: object + properties: + file_ids: + maxItems: 20 + type: array + items: + type: string + description: "A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" + file_search: + type: object + properties: + vector_store_ids: + maxItems: 1 + type: array + items: + type: string + description: "The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" + description: "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n" + nullable: true + tools: + maxItems: 20 + type: array + items: + $ref: '#/components/schemas/AssistantTool' + description: Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + nullable: true + top_p: + maximum: 1 + minimum: 0 + type: number + description: "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.\n" default: 1 - stream_format: - enum: - - sse - - audio - type: string - description: The format to stream the audio in. Supported formats are `sse` and `audio`. `sse` is not supported for `tts-1` or `tts-1-hd`. - default: audio - voice: - $ref: '#/components/schemas/VoiceIdsShared' + nullable: true + example: 1 + truncation_strategy: + $ref: '#/components/schemas/TruncationObject' additionalProperties: false - CreateSpeechResponseStreamEvent: - anyOf: - - $ref: '#/components/schemas/SpeechAudioDeltaEvent' - - $ref: '#/components/schemas/SpeechAudioDoneEvent' - discriminator: - propertyName: type - CreateThreadAndRunRequest: + CreateThreadAndRunRequestWithoutStream: required: - assistant_id type: object properties: assistant_id: type: string - description: 'The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run.' + description: 'The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to execute this run.' instructions: type: string description: Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis. @@ -11992,18 +12424,13 @@ components: - gpt-3.5-turbo-0125 - gpt-3.5-turbo-16k-0613 type: string - description: 'The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.' + description: 'The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.' nullable: true - example: gpt-4o x-oaiTypeLabel: string parallel_tool_calls: $ref: '#/components/schemas/ParallelToolCalls' response_format: $ref: '#/components/schemas/AssistantsApiResponseFormatOption' - stream: - type: boolean - description: "If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.\n" - nullable: true temperature: maximum: 2 minimum: 0 @@ -12027,7 +12454,7 @@ components: type: array items: type: string - description: "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" + description: "A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" file_search: type: object properties: @@ -12036,17 +12463,14 @@ components: type: array items: type: string - description: "The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" + description: "The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" description: "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n" nullable: true tools: maxItems: 20 type: array items: - oneOf: - - $ref: '#/components/schemas/AssistantToolsCode' - - $ref: '#/components/schemas/AssistantToolsFileSearch' - - $ref: '#/components/schemas/AssistantToolsFunction' + $ref: '#/components/schemas/AssistantTool' description: Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. nullable: true top_p: @@ -12067,7 +12491,7 @@ components: type: array items: $ref: '#/components/schemas/CreateMessageRequest' - description: 'A list of [messages](/docs/api-reference/messages) to start the thread with.' + description: 'A list of [messages](https://platform.openai.com/docs/api-reference/messages) to start the thread with.' metadata: $ref: '#/components/schemas/Metadata' tool_resources: @@ -12081,10 +12505,10 @@ components: type: array items: type: string - description: "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" + description: "A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" file_search: type: object - oneOf: + anyOf: - required: - vector_store_ids - required: @@ -12095,7 +12519,7 @@ components: type: array items: type: string - description: "The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.\n" + description: "The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.\n" vector_stores: maxItems: 1 type: array @@ -12104,7 +12528,7 @@ components: properties: chunking_strategy: type: object - oneOf: + anyOf: - title: Auto Chunking Strategy required: - type @@ -12146,16 +12570,23 @@ components: description: Always `static`. x-stainless-const: true additionalProperties: false + x-stainless-naming: + java: + type_name: StaticObject + kotlin: + type_name: StaticObject description: 'The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.' + discriminator: + propertyName: type file_ids: maxItems: 10000 type: array items: type: string - description: "A list of [file](/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.\n" + description: "A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.\n" metadata: $ref: '#/components/schemas/Metadata' - description: "A helper to create a [vector store](/docs/api-reference/vector-stores/object) with file_ids and attach it to this thread. There can be a maximum of 1 vector store attached to the thread.\n" + description: "A helper to create a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) with file_ids and attach it to this thread. There can be a maximum of 1 vector store attached to the thread.\n" description: "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n" nullable: true additionalProperties: false @@ -12167,24 +12598,15 @@ components: type: object properties: chunking_strategy: - anyOf: - - enum: - - auto - type: string - description: "Automatically set chunking parameters based on the audio. Must be set to `\"auto\"`.\n" - default: - - auto - x-stainless-const: true - - $ref: '#/components/schemas/VadConfig' - description: 'Controls how the audio is cut into chunks. When set to `"auto"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection parameters manually. If unset, the audio is transcribed as a single block. ' - nullable: true - x-oaiTypeLabel: string + $ref: '#/components/schemas/TranscriptionChunkingStrategy' file: type: string description: "The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.\n" format: binary + x-oaiMeta: + exampleFilePath: speech.mp3 x-oaiTypeLabel: file - 'include[]': + include: type: array items: $ref: '#/components/schemas/TranscriptionInclude' @@ -12201,24 +12623,25 @@ components: - gpt-4o-mini-transcribe type: string x-stainless-const: true + x-stainless-nominal: false description: "ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).\n" example: gpt-4o-transcribe x-oaiTypeLabel: string prompt: type: string - description: "An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language.\n" + description: "An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match the audio language.\n" response_format: $ref: '#/components/schemas/AudioResponseFormat' stream: type: boolean - description: "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). \nSee the [Streaming section of the Speech-to-Text guide](/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)\nfor more information.\n\nNote: Streaming is not supported for the `whisper-1` model and will be ignored.\n" + description: "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). \nSee the [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)\nfor more information.\n\nNote: Streaming is not supported for the `whisper-1` model and will be ignored.\n" default: false nullable: true temperature: type: number description: "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.\n" default: 0 - 'timestamp_granularities[]': + timestamp_granularities: type: array items: enum: @@ -12256,10 +12679,12 @@ components: description: The transcribed text. usage: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/TranscriptTextUsageTokens' - $ref: '#/components/schemas/TranscriptTextUsageDuration' description: Token usage statistics for the request. + discriminator: + propertyName: type description: 'Represents a transcription response returned by model, based on the provided input.' x-oaiMeta: example: "{\n \"text\": \"Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that.\",\n \"usage\": {\n \"type\": \"tokens\",\n \"input_tokens\": 14,\n \"input_token_details\": {\n \"text_tokens\": 10,\n \"audio_tokens\": 4\n },\n \"output_tokens\": 101,\n \"total_tokens\": 115\n }\n}\n" @@ -12314,6 +12739,8 @@ components: type: string description: "The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.\n" format: binary + x-oaiMeta: + exampleFilePath: speech.mp3 x-oaiTypeLabel: file model: anyOf: @@ -12327,7 +12754,7 @@ components: x-oaiTypeLabel: string prompt: type: string - description: "An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should be in English.\n" + description: "An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should be in English.\n" response_format: enum: - json @@ -12395,7 +12822,7 @@ components: - fine-tune - vision type: string - description: "The intended purpose of the uploaded file.\n\nSee the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose).\n" + description: "The intended purpose of the uploaded file.\n\nSee the [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose).\n" additionalProperties: false CreateVectorStoreFileBatchRequest: required: @@ -12412,7 +12839,7 @@ components: type: array items: type: string - description: 'A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.' + description: 'A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.' additionalProperties: false CreateVectorStoreFileRequest: required: @@ -12425,17 +12852,13 @@ components: $ref: '#/components/schemas/ChunkingStrategyRequestParam' file_id: type: string - description: 'A [File](/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files.' + description: 'A [File](https://platform.openai.com/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files.' additionalProperties: false CreateVectorStoreRequest: type: object properties: chunking_strategy: - type: object - oneOf: - - $ref: '#/components/schemas/AutoChunkingStrategyRequestParam' - - $ref: '#/components/schemas/StaticChunkingStrategyRequestParam' - description: 'The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.' + $ref: '#/components/schemas/ChunkingStrategyRequestParam' expires_after: $ref: '#/components/schemas/VectorStoreExpirationAfter' file_ids: @@ -12443,7 +12866,7 @@ components: type: array items: type: string - description: 'A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.' + description: 'A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.' metadata: $ref: '#/components/schemas/Metadata' name: @@ -12478,7 +12901,6 @@ components: object: enum: - certificate.deleted - type: string description: 'The object type, must be `certificate.deleted`.' x-stainless-const: true DeleteFileResponse: @@ -12662,7 +13084,7 @@ components: type: object properties: content: - oneOf: + anyOf: - title: Text input type: string description: "A text input to the model.\n" @@ -12695,7 +13117,7 @@ components: items: type: number format: float - description: "The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](/docs/guides/embeddings).\n" + description: "The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](https://platform.openai.com/docs/guides/embeddings).\n" index: type: integer description: The index of the embedding in the list of embeddings. @@ -12740,7 +13162,7 @@ components: - error type: string x-stainless-const: true - description: 'Occurs when an [error](/docs/guides/error-codes#api-errors) occurs. This can happen due to an internal server error or a timeout.' + description: 'Occurs when an [error](https://platform.openai.com/docs/guides/error-codes#api-errors) occurs. This can happen due to an internal server error or a timeout.' x-oaiMeta: dataDescription: '`data` is an [error](/docs/guides/error-codes#api-errors)' ErrorResponse: @@ -12767,11 +13189,13 @@ components: description: The Unix timestamp (in seconds) for when the eval was created. data_source_config: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/EvalCustomDataSourceConfig' - $ref: '#/components/schemas/EvalLogsDataSourceConfig' - $ref: '#/components/schemas/EvalStoredCompletionsDataSourceConfig' description: Configuration of data sources used in runs of the evaluation. + discriminator: + propertyName: type id: type: string description: Unique identifier for the evaluation. @@ -12791,14 +13215,13 @@ components: testing_criteria: type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/EvalGraderLabelModel' - $ref: '#/components/schemas/EvalGraderStringCheck' - $ref: '#/components/schemas/EvalGraderTextSimilarity' - $ref: '#/components/schemas/EvalGraderPython' - $ref: '#/components/schemas/EvalGraderScoreModel' description: A list of testing criteria. - default: eval description: "An Eval object with a data source config and testing criteria.\nAn Eval represents a task to be done for your LLM integration.\nLike:\n - Improve the quality of my chatbot\n - See how well my chatbot handles customer support\n - Check if o4-mini is better at my usecase than gpt-4o\n" x-oaiMeta: example: "{\n \"object\": \"eval\",\n \"id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n \"data_source_config\": {\n \"type\": \"custom\",\n \"item_schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"label\": {\"type\": \"string\"},\n },\n \"required\": [\"label\"]\n },\n \"include_sample_schema\": true\n },\n \"testing_criteria\": [\n {\n \"name\": \"My string check grader\",\n \"type\": \"string_check\",\n \"input\": \"{{sample.output_text}}\",\n \"reference\": \"{{item.label}}\",\n \"operation\": \"eq\",\n }\n ],\n \"name\": \"External Data Eval\",\n \"created_at\": 1739314509,\n \"metadata\": {\n \"test\": \"synthetics\",\n }\n}\n" @@ -12832,7 +13255,6 @@ components: schema: type: object description: "The json schema for the run data source items.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n" - example: "{\n \"type\": \"object\",\n \"properties\": {\n \"item\": {\n \"type\": \"object\",\n \"properties\": {\n \"label\": {\"type\": \"string\"},\n },\n \"required\": [\"label\"]\n }\n },\n \"required\": [\"item\"]\n}\n" type: enum: - custom @@ -12903,7 +13325,7 @@ components: type: object properties: content: - oneOf: + anyOf: - title: Text input type: string description: "A text input to the model.\n" @@ -13149,11 +13571,13 @@ components: description: Unix timestamp (in seconds) when the evaluation run was created. data_source: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/CreateEvalJsonlRunDataSource' - $ref: '#/components/schemas/CreateEvalCompletionsRunDataSource' - $ref: '#/components/schemas/CreateEvalResponsesRunDataSource' description: Information about the run's data source. + discriminator: + propertyName: type error: $ref: '#/components/schemas/EvalApiError' eval_id: @@ -13201,6 +13625,9 @@ components: model_name: type: string description: The name of the model. + x-stainless-naming: + python: + property_name: run_model_name prompt_tokens: type: integer description: The number of prompt tokens used. @@ -13577,6 +14004,16 @@ components: description: "The type of the file path. Always `file_path`.\n" x-stainless-const: true description: "A path to a file.\n" + FilePurpose: + enum: + - assistants + - batch + - fine-tune + - vision + - user_data + - evals + type: string + description: "The intended purpose of the uploaded file. One of: - `assistants`: Used in the Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: Flexible file type for any purpose - `evals`: Used for eval data sets\n" FileSearchRanker: enum: - auto @@ -13596,7 +14033,7 @@ components: minimum: 0 type: number description: The score threshold for the file search. All values must be a floating point number between 0 and 1. - description: "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" + description: "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n" FileSearchTool: title: File search required: @@ -13679,7 +14116,7 @@ components: type: string description: "The type of the file search tool call. Always `file_search_call`.\n" x-stainless-const: true - description: "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n" + description: "The results of a file search tool call. See the \n[file search guide](https://platform.openai.com/docs/guides/tools-file-search) for more information.\n" Filters: anyOf: - $ref: '#/components/schemas/ComparisonFilter' @@ -13713,7 +14150,7 @@ components: minItems: 1 type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestSystemMessage' - $ref: '#/components/schemas/ChatCompletionRequestUserMessage' - $ref: '#/components/schemas/FineTuneChatCompletionRequestAssistantMessage' @@ -13734,7 +14171,7 @@ components: type: object properties: batch_size: - oneOf: + anyOf: - enum: - auto type: string @@ -13745,7 +14182,7 @@ components: description: "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n" default: auto beta: - oneOf: + anyOf: - enum: - auto type: string @@ -13755,9 +14192,8 @@ components: exclusiveMinimum: true type: number description: "The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.\n" - default: auto learning_rate_multiplier: - oneOf: + anyOf: - enum: - auto type: string @@ -13766,9 +14202,8 @@ components: exclusiveMinimum: true type: number description: "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n" - default: auto n_epochs: - oneOf: + anyOf: - enum: - auto type: string @@ -13814,7 +14249,7 @@ components: minItems: 1 type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestSystemMessage' - $ref: '#/components/schemas/ChatCompletionRequestUserMessage' - $ref: '#/components/schemas/FineTuneChatCompletionRequestAssistantMessage' @@ -13831,14 +14266,14 @@ components: maxItems: 1 type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestAssistantMessage' description: The non-preferred completion message for the output. preferred_output: maxItems: 1 type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestAssistantMessage' description: The preferred completion message for the output. description: "The per-line training example of a fine-tuning input file for chat models using the dpo method.\nInput messages may contain text or image content only. Audio and file input messages\nare not currently supported for fine-tuning.\n" @@ -13849,7 +14284,7 @@ components: type: object properties: batch_size: - oneOf: + anyOf: - enum: - auto type: string @@ -13860,7 +14295,7 @@ components: description: "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n" default: auto compute_multiplier: - oneOf: + anyOf: - enum: - auto type: string @@ -13870,9 +14305,8 @@ components: exclusiveMinimum: true type: number description: "Multiplier on amount of compute used for exploring search space during training.\n" - default: auto eval_interval: - oneOf: + anyOf: - enum: - auto type: string @@ -13882,7 +14316,7 @@ components: description: "The number of training steps between evaluation runs.\n" default: auto eval_samples: - oneOf: + anyOf: - enum: - auto type: string @@ -13892,7 +14326,7 @@ components: description: "Number of evaluation samples to generate per training step.\n" default: auto learning_rate_multiplier: - oneOf: + anyOf: - enum: - auto type: string @@ -13901,9 +14335,8 @@ components: exclusiveMinimum: true type: number description: "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n" - default: auto n_epochs: - oneOf: + anyOf: - enum: - auto type: string @@ -13930,7 +14363,7 @@ components: properties: grader: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/GraderStringCheck' - $ref: '#/components/schemas/GraderTextSimilarity' - $ref: '#/components/schemas/GraderPython' @@ -13949,7 +14382,7 @@ components: minItems: 1 type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/ChatCompletionRequestDeveloperMessage' - $ref: '#/components/schemas/ChatCompletionRequestUserMessage' - $ref: '#/components/schemas/FineTuneChatCompletionRequestAssistantMessage' @@ -13967,7 +14400,7 @@ components: type: object properties: batch_size: - oneOf: + anyOf: - enum: - auto type: string @@ -13978,7 +14411,7 @@ components: description: "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n" default: auto learning_rate_multiplier: - oneOf: + anyOf: - enum: - auto type: string @@ -13987,9 +14420,8 @@ components: exclusiveMinimum: true type: number description: "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n" - default: auto n_epochs: - oneOf: + anyOf: - enum: - auto type: string @@ -14129,20 +14561,22 @@ components: type: object properties: batch_size: - oneOf: - - enum: + anyOf: + - title: Auto + enum: - auto type: string x-stainless-const: true - - maximum: 256 + - title: Manual + maximum: 256 minimum: 1 type: integer description: "Number of examples in each batch. A larger batch size means that model parameters\nare updated less frequently, but with lower variance.\n" - default: auto nullable: true learning_rate_multiplier: - oneOf: - - enum: + anyOf: + - title: Auto + enum: - auto type: string x-stainless-const: true @@ -14150,10 +14584,10 @@ components: exclusiveMinimum: true type: number description: "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid\noverfitting.\n" - default: auto n_epochs: - oneOf: - - enum: + anyOf: + - title: Auto + enum: - auto type: string x-stainless-const: true @@ -14170,8 +14604,10 @@ components: maxItems: 5 type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/FineTuningIntegration' + discriminator: + propertyName: type description: A list of integrations to enable for this fine-tuning job. nullable: true metadata: @@ -14195,7 +14631,7 @@ components: items: type: string example: file-abc123 - description: 'The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).' + description: 'The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents).' seed: type: integer description: The seed used for the fine-tuning job. @@ -14215,10 +14651,10 @@ components: nullable: true training_file: type: string - description: 'The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).' + description: 'The file ID used for training. You can retrieve the training data with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents).' validation_file: type: string - description: 'The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).' + description: 'The file ID used for validation. You can retrieve the validation results with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents).' nullable: true description: "The `fine_tuning.job` object represents a fine-tuning job that has been created through the API.\n" x-oaiMeta: @@ -14375,12 +14811,12 @@ components: $ref: '#/components/schemas/FunctionParameters' strict: type: boolean - description: 'Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).' + description: 'Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](https://platform.openai.com/docs/guides/function-calling).' default: false nullable: true FunctionParameters: type: object - description: "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list." + description: "The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list." FunctionTool: title: Function required: @@ -14448,7 +14884,7 @@ components: type: string description: "The type of the function tool call. Always `function_call`.\n" x-stainless-const: true - description: "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n" + description: "A tool call to run a function. See the \n[function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information.\n" FunctionToolCallOutput: title: Function tool call output required: @@ -14555,7 +14991,7 @@ components: type: string description: A formula to calculate the output based on grader results. graders: - oneOf: + anyOf: - $ref: '#/components/schemas/GraderStringCheck' - $ref: '#/components/schemas/GraderTextSimilarity' - $ref: '#/components/schemas/GraderPython' @@ -15270,10 +15706,12 @@ components: x-stainless-const: true description: "An audio input to the model.\n" InputContent: - oneOf: + anyOf: - $ref: '#/components/schemas/InputTextContent' - $ref: '#/components/schemas/InputImageContent' - $ref: '#/components/schemas/InputFileContent' + discriminator: + propertyName: type InputFileContent: title: Input file required: @@ -15330,9 +15768,9 @@ components: description: The type of the input item. Always `input_image`. default: input_image x-stainless-const: true - description: 'An image input to the model. Learn about [image inputs](/docs/guides/vision).' + description: 'An image input to the model. Learn about [image inputs](https://platform.openai.com/docs/guides/vision).' InputItem: - oneOf: + anyOf: - $ref: '#/components/schemas/EasyInputMessage' - $ref: '#/components/schemas/Item' - $ref: '#/components/schemas/ItemReferenceParam' @@ -15543,7 +15981,7 @@ components: description: '`owner` or `reader`' Item: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/InputMessage' - $ref: '#/components/schemas/OutputMessage' - $ref: '#/components/schemas/FileSearchToolCall' @@ -15583,7 +16021,7 @@ components: x-stainless-const: true description: An internal identifier for an item to reference. ItemResource: - oneOf: + anyOf: - $ref: '#/components/schemas/InputMessageResource' - $ref: '#/components/schemas/OutputMessage' - $ref: '#/components/schemas/FileSearchToolCall' @@ -16276,7 +16714,7 @@ components: type: object properties: allowed_tools: - oneOf: + anyOf: - title: MCP allowed tools type: array items: @@ -16302,7 +16740,7 @@ components: description: "Optional HTTP headers to send to the MCP server. Use for authentication\nor other purposes.\n" nullable: true require_approval: - oneOf: + anyOf: - title: MCP tool approval filter type: object properties: @@ -16332,7 +16770,6 @@ components: type: string description: "Specify a single approval policy for all tools. One of `always` or \n`never`. When set to `always`, all tools will require approval. When \nset to `never`, all tools will not require approval.\n" description: Specify which of the MCP server's tools require approval. - default: always nullable: true server_description: type: string @@ -16349,7 +16786,7 @@ components: type: string description: The type of the MCP tool. Always `mcp`. x-stainless-const: true - description: "Give the model access to additional tools via remote Model Context Protocol \n(MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).\n" + description: "Give the model access to additional tools via remote Model Context Protocol \n(MCP) servers. [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp).\n" MCPToolCall: title: MCP tool call required: @@ -16387,6 +16824,22 @@ components: description: "The type of the item. Always `mcp_call`.\n" x-stainless-const: true description: "An invocation of a tool on an MCP server.\n" + MessageContent: + anyOf: + - $ref: '#/components/schemas/MessageContentImageFileObject' + - $ref: '#/components/schemas/MessageContentImageUrlObject' + - $ref: '#/components/schemas/MessageContentTextObject' + - $ref: '#/components/schemas/MessageContentRefusalObject' + discriminator: + propertyName: type + MessageContentDelta: + anyOf: + - $ref: '#/components/schemas/MessageDeltaContentImageFileObject' + - $ref: '#/components/schemas/MessageDeltaContentTextObject' + - $ref: '#/components/schemas/MessageDeltaContentRefusalObject' + - $ref: '#/components/schemas/MessageDeltaContentImageUrlObject' + discriminator: + propertyName: type MessageContentImageFileObject: title: Image file required: @@ -16409,14 +16862,14 @@ components: default: auto file_id: type: string - description: 'The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content.' + description: 'The [File](https://platform.openai.com/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content.' type: enum: - image_file type: string description: Always `image_file`. x-stainless-const: true - description: 'References an image [File](/docs/api-reference/files) in the content of a message.' + description: 'References an image [File](https://platform.openai.com/docs/api-reference/files) in the content of a message.' MessageContentImageUrlObject: title: Image URL required: @@ -16548,9 +17001,7 @@ components: annotations: type: array items: - oneOf: - - $ref: '#/components/schemas/MessageContentTextAnnotationsFileCitationObject' - - $ref: '#/components/schemas/MessageContentTextAnnotationsFilePathObject' + $ref: '#/components/schemas/TextAnnotation' value: type: string description: The data that makes up the text. @@ -16581,7 +17032,7 @@ components: default: auto file_id: type: string - description: 'The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content.' + description: 'The [File](https://platform.openai.com/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content.' index: type: integer description: The index of the content part in the message. @@ -16591,7 +17042,7 @@ components: type: string description: Always `image_file`. x-stainless-const: true - description: 'References an image [File](/docs/api-reference/files) in the content of a message.' + description: 'References an image [File](https://platform.openai.com/docs/api-reference/files) in the content of a message.' MessageDeltaContentImageUrlObject: title: Image URL required: @@ -16725,9 +17176,7 @@ components: annotations: type: array items: - oneOf: - - $ref: '#/components/schemas/MessageDeltaContentTextAnnotationsFileCitationObject' - - $ref: '#/components/schemas/MessageDeltaContentTextAnnotationsFilePathObject' + $ref: '#/components/schemas/TextAnnotationDelta' value: type: string description: The data that makes up the text. @@ -16752,11 +17201,7 @@ components: content: type: array items: - oneOf: - - $ref: '#/components/schemas/MessageDeltaContentImageFileObject' - - $ref: '#/components/schemas/MessageDeltaContentTextObject' - - $ref: '#/components/schemas/MessageDeltaContentRefusalObject' - - $ref: '#/components/schemas/MessageDeltaContentImageUrlObject' + $ref: '#/components/schemas/MessageContentDelta' description: The content of the message in array of text and/or images. role: enum: @@ -16796,7 +17241,7 @@ components: properties: assistant_id: type: string - description: 'If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message.' + description: 'If applicable, the ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) that authored this message.' nullable: true attachments: type: array @@ -16809,7 +17254,7 @@ components: tools: type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/AssistantToolsCode' - $ref: '#/components/schemas/AssistantToolsFileSearchTypeOnly' description: The tools to add this file to. @@ -16822,11 +17267,7 @@ components: content: type: array items: - oneOf: - - $ref: '#/components/schemas/MessageContentImageFileObject' - - $ref: '#/components/schemas/MessageContentImageUrlObject' - - $ref: '#/components/schemas/MessageContentTextObject' - - $ref: '#/components/schemas/MessageContentRefusalObject' + $ref: '#/components/schemas/MessageContent' description: The content of the message in array of text and/or images. created_at: type: integer @@ -16870,7 +17311,7 @@ components: description: The entity that produced the message. One of `user` or `assistant`. run_id: type: string - description: 'The ID of the [run](/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints.' + description: 'The ID of the [run](https://platform.openai.com/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints.' nullable: true status: enum: @@ -16881,8 +17322,8 @@ components: description: 'The status of the message, which can be either `in_progress`, `incomplete`, or `completed`.' thread_id: type: string - description: 'The [thread](/docs/api-reference/threads) ID that this message belongs to.' - description: 'Represents a message within a [thread](/docs/api-reference/threads).' + description: 'The [thread](https://platform.openai.com/docs/api-reference/threads) ID that this message belongs to.' + description: 'Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads).' x-oaiMeta: beta: true example: "{\n \"id\": \"msg_abc123\",\n \"object\": \"thread.message\",\n \"created_at\": 1698983503,\n \"thread_id\": \"thread_abc123\",\n \"role\": \"assistant\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": {\n \"value\": \"Hi! How can I help you today?\",\n \"annotations\": []\n }\n }\n ],\n \"assistant_id\": \"asst_abc123\",\n \"run_id\": \"run_abc123\",\n \"attachments\": [],\n \"metadata\": {}\n}\n" @@ -16905,7 +17346,7 @@ components: x-stainless-const: true description: The text content that is part of a message. MessageStreamEvent: - oneOf: + anyOf: - required: - event - data @@ -16918,7 +17359,7 @@ components: - thread.message.created type: string x-stainless-const: true - description: 'Occurs when a [message](/docs/api-reference/messages/object) is created.' + description: 'Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) is created.' x-oaiMeta: dataDescription: '`data` is a [message](/docs/api-reference/messages/object)' - required: @@ -16933,7 +17374,7 @@ components: - thread.message.in_progress type: string x-stainless-const: true - description: 'Occurs when a [message](/docs/api-reference/messages/object) moves to an `in_progress` state.' + description: 'Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) moves to an `in_progress` state.' x-oaiMeta: dataDescription: '`data` is a [message](/docs/api-reference/messages/object)' - required: @@ -16948,7 +17389,7 @@ components: - thread.message.delta type: string x-stainless-const: true - description: 'Occurs when parts of a [Message](/docs/api-reference/messages/object) are being streamed.' + description: 'Occurs when parts of a [Message](https://platform.openai.com/docs/api-reference/messages/object) are being streamed.' x-oaiMeta: dataDescription: '`data` is a [message delta](/docs/api-reference/assistants-streaming/message-delta-object)' - required: @@ -16963,7 +17404,7 @@ components: - thread.message.completed type: string x-stainless-const: true - description: 'Occurs when a [message](/docs/api-reference/messages/object) is completed.' + description: 'Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) is completed.' x-oaiMeta: dataDescription: '`data` is a [message](/docs/api-reference/messages/object)' - required: @@ -16978,9 +17419,11 @@ components: - thread.message.incomplete type: string x-stainless-const: true - description: 'Occurs when a [message](/docs/api-reference/messages/object) ends before it is completed.' + description: 'Occurs when a [message](https://platform.openai.com/docs/api-reference/messages/object) ends before it is completed.' x-oaiMeta: dataDescription: '`data` is a [message](/docs/api-reference/messages/object)' + discriminator: + propertyName: event Metadata: type: object additionalProperties: @@ -17039,63 +17482,7 @@ components: ModelIdsShared: anyOf: - type: string - - enum: - - gpt-4.1 - - gpt-4.1-mini - - gpt-4.1-nano - - gpt-4.1-2025-04-14 - - gpt-4.1-mini-2025-04-14 - - gpt-4.1-nano-2025-04-14 - - o4-mini - - o4-mini-2025-04-16 - - o3 - - o3-2025-04-16 - - o3-mini - - o3-mini-2025-01-31 - - o1 - - o1-2024-12-17 - - o1-preview - - o1-preview-2024-09-12 - - o1-mini - - o1-mini-2024-09-12 - - gpt-4o - - gpt-4o-2024-11-20 - - gpt-4o-2024-08-06 - - gpt-4o-2024-05-13 - - gpt-4o-audio-preview - - gpt-4o-audio-preview-2024-10-01 - - gpt-4o-audio-preview-2024-12-17 - - gpt-4o-audio-preview-2025-06-03 - - gpt-4o-mini-audio-preview - - gpt-4o-mini-audio-preview-2024-12-17 - - gpt-4o-search-preview - - gpt-4o-mini-search-preview - - gpt-4o-search-preview-2025-03-11 - - gpt-4o-mini-search-preview-2025-03-11 - - chatgpt-4o-latest - - codex-mini-latest - - gpt-4o-mini - - gpt-4o-mini-2024-07-18 - - gpt-4-turbo - - gpt-4-turbo-2024-04-09 - - gpt-4-0125-preview - - gpt-4-turbo-preview - - gpt-4-1106-preview - - gpt-4-vision-preview - - gpt-4 - - gpt-4-0314 - - gpt-4-0613 - - gpt-4-32k - - gpt-4-32k-0314 - - gpt-4-32k-0613 - - gpt-3.5-turbo - - gpt-3.5-turbo-16k - - gpt-3.5-turbo-0301 - - gpt-3.5-turbo-0613 - - gpt-3.5-turbo-1106 - - gpt-3.5-turbo-0125 - - gpt-3.5-turbo-16k-0613 - type: string + - $ref: '#/components/schemas/ChatModel' example: gpt-4o ModelResponseProperties: type: object @@ -17104,11 +17491,11 @@ components: $ref: '#/components/schemas/Metadata' prompt_cache_key: type: string - description: "Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching).\n" + description: "Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](https://platform.openai.com/docs/guides/prompt-caching).\n" example: prompt-cache-key-1234 safety_identifier: type: string - description: "A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. \nThe IDs should be a string that uniquely identifies each user. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).\n" + description: "A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. \nThe IDs should be a string that uniquely identifies each user. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).\n" example: safety-identifier-1234 service_tier: $ref: '#/components/schemas/ServiceTier' @@ -17136,9 +17523,50 @@ components: example: 1 user: type: string - description: "This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.\nA stable identifier for your end-users. \nUsed to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).\n" + description: "This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.\nA stable identifier for your end-users. \nUsed to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).\n" example: user-1234 deprecated: true + ModerationImageURLInput: + required: + - type + - image_url + type: object + properties: + image_url: + required: + - url + type: object + properties: + url: + type: string + description: Either a URL of the image or the base64 encoded image data. + format: uri + example: https://example.com/image.jpg + description: Contains either an image URL or a data URL for a base64 encoded image. + type: + enum: + - image_url + type: string + description: Always `image_url`. + x-stainless-const: true + description: An object describing an image to classify. + ModerationTextInput: + required: + - type + - text + type: object + properties: + text: + type: string + description: A string of text to classify. + example: I want to kill them + type: + enum: + - text + type: string + description: Always `text`. + x-stainless-const: true + description: An object describing text to classify. ModifyAssistantRequest: type: object properties: @@ -17158,7 +17586,7 @@ components: anyOf: - type: string - $ref: '#/components/schemas/AssistantSupportedModels' - description: "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n" + description: "ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them.\n" name: maxLength: 256 type: string @@ -17187,7 +17615,7 @@ components: type: array items: type: string - description: "Overrides the list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" + description: "Overrides the list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" file_search: type: object properties: @@ -17196,17 +17624,14 @@ components: type: array items: type: string - description: "Overrides the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" + description: "Overrides the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n" description: "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n" nullable: true tools: maxItems: 128 type: array items: - oneOf: - - $ref: '#/components/schemas/AssistantToolsCode' - - $ref: '#/components/schemas/AssistantToolsFileSearch' - - $ref: '#/components/schemas/AssistantToolsFunction' + $ref: '#/components/schemas/AssistantTool' description: "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.\n" top_p: maximum: 1 @@ -17253,7 +17678,7 @@ components: type: array items: type: string - description: "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" + description: "A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" file_search: type: object properties: @@ -17262,7 +17687,7 @@ components: type: array items: type: string - description: "The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.\n" + description: "The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.\n" description: "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n" nullable: true additionalProperties: false @@ -17384,9 +17809,11 @@ components: x-stainless-const: true description: "An audio output from the model.\n" OutputContent: - oneOf: + anyOf: - $ref: '#/components/schemas/OutputTextContent' - $ref: '#/components/schemas/RefusalContent' + discriminator: + propertyName: type OutputItem: anyOf: - $ref: '#/components/schemas/OutputMessage' @@ -17421,6 +17848,7 @@ components: id: type: string description: "The unique ID of the output message.\n" + x-stainless-go-json: omitzero role: enum: - assistant @@ -17471,7 +17899,7 @@ components: description: A text output from the model. ParallelToolCalls: type: boolean - description: 'Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.' + description: 'Whether to enable [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.' nullable: true PartialImages: maximum: 3 @@ -17489,7 +17917,7 @@ components: type: object properties: content: - oneOf: + anyOf: - title: Text content type: string description: "The content used for a Predicted Output. This is often the\ntext of a file you are regenerating with minor changes.\n" @@ -17498,7 +17926,7 @@ components: type: array items: $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText' - description: 'An array of content parts with a defined type. Supported options differ based on the [model](/docs/models) being used to generate the response. Can contain text inputs.' + description: 'An array of content parts with a defined type. Supported options differ based on the [model](https://platform.openai.com/docs/models) being used to generate the response. Can contain text inputs.' description: "The content that should be matched when generating a model response.\nIf generated tokens would match this content, the entire model response\ncan be returned much more quickly.\n" type: enum: @@ -18011,7 +18439,7 @@ components: type: string description: Optional version of the prompt template. nullable: true - description: "Reference to a prompt template and its variables. \n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n" + description: "Reference to a prompt template and its variables. \n[Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).\n" nullable: true RankingOptions: type: object @@ -18059,7 +18487,6 @@ components: type: enum: - conversation.item.create - type: string description: 'The event type, must be `conversation.item.create`.' x-stainless-const: true description: "Add a new Item to the Conversation's context, including messages, function \ncalls, and function call responses. This event can be used both to populate a \n\"history\" of the conversation and to add new items mid-stream, but has the \ncurrent limitation that it cannot populate assistant audio messages.\n\nIf successful, the server will respond with a `conversation.item.created` \nevent, otherwise an `error` event will be sent.\n" @@ -18082,7 +18509,6 @@ components: type: enum: - conversation.item.delete - type: string description: 'The event type, must be `conversation.item.delete`.' x-stainless-const: true description: "Send this event when you want to remove any item from the conversation \nhistory. The server will respond with a `conversation.item.deleted` event, \nunless the item does not exist in the conversation history, in which case the \nserver will respond with an error.\n" @@ -18105,7 +18531,6 @@ components: type: enum: - conversation.item.retrieve - type: string description: 'The event type, must be `conversation.item.retrieve`.' x-stainless-const: true description: "Send this event when you want to retrieve the server's representation of a specific item in the conversation history. This is useful, for example, to inspect user audio after noise cancellation and VAD.\nThe server will respond with a `conversation.item.retrieved` event, \nunless the item does not exist in the conversation history, in which case the \nserver will respond with an error.\n" @@ -18136,7 +18561,6 @@ components: type: enum: - conversation.item.truncate - type: string description: 'The event type, must be `conversation.item.truncate`.' x-stainless-const: true description: "Send this event to truncate a previous assistant message’s audio. The server \nwill produce audio faster than realtime, so this event is useful when the user \ninterrupts to truncate audio that has already been sent to the client but not \nyet played. This will synchronize the server's understanding of the audio with \nthe client's playback.\n\nTruncating audio will delete the server-side text transcript to ensure there \nis not text in the context that hasn't been heard by the user.\n\nIf successful, the server will respond with a `conversation.item.truncated` \nevent. \n" @@ -18159,7 +18583,6 @@ components: type: enum: - input_audio_buffer.append - type: string description: 'The event type, must be `input_audio_buffer.append`.' x-stainless-const: true description: "Send this event to append audio bytes to the input audio buffer. The audio \nbuffer is temporary storage you can write to and later commit. In Server VAD \nmode, the audio buffer is used to detect speech and the server will decide \nwhen to commit. When Server VAD is disabled, you must commit the audio buffer\nmanually.\n\nThe client may choose how much audio to place in each event up to a maximum \nof 15 MiB, for example streaming smaller chunks from the client may allow the \nVAD to be more responsive. Unlike made other client events, the server will \nnot send a confirmation response to this event.\n" @@ -18178,7 +18601,6 @@ components: type: enum: - input_audio_buffer.clear - type: string description: 'The event type, must be `input_audio_buffer.clear`.' x-stainless-const: true description: "Send this event to clear the audio bytes in the buffer. The server will \nrespond with an `input_audio_buffer.cleared` event.\n" @@ -18197,7 +18619,6 @@ components: type: enum: - input_audio_buffer.commit - type: string description: 'The event type, must be `input_audio_buffer.commit`.' x-stainless-const: true description: "Send this event to commit the user input audio buffer, which will create a \nnew user message item in the conversation. This event will produce an error \nif the input audio buffer is empty. When in Server VAD mode, the client does \nnot need to send this event, the server will commit the audio buffer \nautomatically.\n\nCommitting the input audio buffer will trigger input audio transcription \n(if enabled in session configuration), but it will not create a response \nfrom the model. The server will respond with an `input_audio_buffer.committed` \nevent.\n" @@ -18216,10 +18637,9 @@ components: type: enum: - output_audio_buffer.clear - type: string description: 'The event type, must be `output_audio_buffer.clear`.' x-stainless-const: true - description: "**WebRTC Only:** Emit to cut off the current audio response. This will trigger the server to\nstop generating audio and emit a `output_audio_buffer.cleared` event. This \nevent should be preceded by a `response.cancel` client event to stop the \ngeneration of the current response.\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n" + description: "**WebRTC Only:** Emit to cut off the current audio response. This will trigger the server to\nstop generating audio and emit a `output_audio_buffer.cleared` event. This \nevent should be preceded by a `response.cancel` client event to stop the \ngeneration of the current response.\n[Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n" x-oaiMeta: example: "{\n \"event_id\": \"optional_client_event_id\",\n \"type\": \"output_audio_buffer.clear\"\n}\n" group: realtime @@ -18238,7 +18658,6 @@ components: type: enum: - response.cancel - type: string description: 'The event type, must be `response.cancel`.' x-stainless-const: true description: "Send this event to cancel an in-progress response. The server will respond \nwith a `response.cancelled` event or an error if there is no response to \ncancel.\n" @@ -18259,7 +18678,6 @@ components: type: enum: - response.create - type: string description: 'The event type, must be `response.create`.' x-stainless-const: true description: "This event instructs the server to create a Response, which means triggering \nmodel inference. When in Server VAD mode, the server will create Responses \nautomatically.\n\nA Response will include at least one Item, and may have two, in which case \nthe second will be a function call. These Items will be appended to the \nconversation history.\n\nThe server will respond with a `response.created` event, events for Items \nand content created, and finally a `response.done` event to indicate the \nResponse is complete.\n\nThe `response.create` event includes inference configuration like \n`instructions`, and `temperature`. These fields will override the Session's \nconfiguration for this Response only.\n" @@ -18281,7 +18699,6 @@ components: type: enum: - session.update - type: string description: 'The event type, must be `session.update`.' x-stainless-const: true description: "Send this event to update the session’s default configuration.\nThe client may send this event at any time to update any field,\nexcept for `voice`. However, note that once a session has been\ninitialized with a particular `model`, it can’t be changed to\nanother model using `session.update`.\n\nWhen the server receives a `session.update`, it will respond\nwith a `session.updated` event showing the full, effective configuration.\nOnly the fields that are present are updated. To clear a field like\n`instructions`, pass an empty string.\n" @@ -18303,7 +18720,6 @@ components: type: enum: - transcription_session.update - type: string description: 'The event type, must be `transcription_session.update`.' x-stainless-const: true description: "Send this event to update a transcription session.\n" @@ -18311,6 +18727,13 @@ components: example: "{\n \"type\": \"transcription_session.update\",\n \"session\": {\n \"input_audio_format\": \"pcm16\",\n \"input_audio_transcription\": {\n \"model\": \"gpt-4o-transcribe\",\n \"prompt\": \"\",\n \"language\": \"\"\n },\n \"turn_detection\": {\n \"type\": \"server_vad\",\n \"threshold\": 0.5,\n \"prefix_padding_ms\": 300,\n \"silence_duration_ms\": 500,\n \"create_response\": true,\n },\n \"input_audio_noise_reduction\": {\n \"type\": \"near_field\"\n },\n \"include\": [\n \"item.input_audio_transcription.logprobs\",\n ]\n }\n}\n" group: realtime name: transcription_session.update + RealtimeConnectParams: + required: + - model + type: object + properties: + model: + type: string RealtimeConversationItem: type: object properties: @@ -18386,6 +18809,30 @@ components: description: The output of the function call (for function_call_output items). description: The content of the message. description: "A realtime Item is of three types: message, function_call, or function_call_output.\n\nA message item can contain text or audio.\nA function_call item indicates a model's desire to call a function, which is the only tool supported for now\nA function_call_output item indicates a function response.\nThe client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete.\n" + RealtimeConversationItemContent: + type: object + properties: + audio: + type: string + description: "Base64-encoded audio bytes, used for `input_audio` content type.\n" + id: + type: string + description: "ID of a previous conversation item to reference (for `item_reference`\ncontent types in `response.create` events). These can reference both\nclient and server created items.\n" + text: + type: string + description: "The text content, used for `input_text` and `text` content types.\n" + transcript: + type: string + description: "The transcript of the audio, used for `input_audio` and `audio` \ncontent types.\n" + type: + enum: + - input_text + - input_audio + - item_reference + - text + - audio + type: string + description: "The content type (`input_text`, `input_audio`, `item_reference`, `text`, `audio`).\n" RealtimeConversationItemWithReference: type: object properties: @@ -18414,8 +18861,8 @@ components: description: "The transcript of the audio, used for `input_audio` content type.\n" type: enum: - - input_audio - input_text + - input_audio - item_reference - text type: string @@ -18455,6 +18902,7 @@ components: - message - function_call - function_call_output + - item_reference type: string description: "The type of the item (`message`, `function_call`, `function_call_output`, `item_reference`).\n" description: The item to add to the conversation. @@ -18511,7 +18959,7 @@ components: type: object properties: conversation: - oneOf: + anyOf: - type: string - enum: - auto @@ -18528,7 +18976,7 @@ components: type: string description: "The default system instructions (i.e. system message) prepended to model \ncalls. This field allows the client to guide the model on desired \nresponses. The model can be instructed on response content and format, \n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good \nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion \ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed \nto be followed by the model, but they provide guidance to the model on the \ndesired behavior.\n\nNote that the server sets default instructions which will be used if this \nfield is not set and are visible in the `session.created` event at the \nstart of the session.\n" max_response_output_tokens: - oneOf: + anyOf: - type: integer - enum: - inf @@ -18626,7 +19074,8 @@ components: type: string description: The unique ID of the conversation. object: - type: string + enum: + - realtime.conversation description: 'The object type, must be `realtime.conversation`.' description: The conversation resource. event_id: @@ -18635,7 +19084,6 @@ components: type: enum: - conversation.created - type: string description: 'The event type, must be `conversation.created`.' x-stainless-const: true description: "Returned when a conversation is created. Emitted right after session creation.\n" @@ -18662,7 +19110,6 @@ components: type: enum: - conversation.item.created - type: string description: 'The event type, must be `conversation.item.created`.' x-stainless-const: true description: "Returned when a conversation item is created. There are several scenarios that produce this event:\n - The server is generating a Response, which if successful will produce \n either one or two Items, which will be of type `message` \n (role `assistant`) or type `function_call`.\n - The input audio buffer has been committed, either by the client or the \n server (in `server_vad` mode). The server will take the content of the \n input audio buffer and add it to a new user message Item.\n - The client has sent a `conversation.item.create` event to add a new Item \n to the Conversation.\n" @@ -18686,7 +19133,6 @@ components: type: enum: - conversation.item.deleted - type: string description: 'The event type, must be `conversation.item.deleted`.' x-stainless-const: true description: "Returned when an item in the conversation is deleted by the client with a \n`conversation.item.delete` event. This event is used to synchronize the \nserver's understanding of the conversation history with the client's view.\n" @@ -18730,7 +19176,7 @@ components: x-stainless-const: true usage: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/TranscriptTextUsageTokens' - $ref: '#/components/schemas/TranscriptTextUsageDuration' description: Usage statistics for the transcription. @@ -18767,7 +19213,6 @@ components: type: enum: - conversation.item.input_audio_transcription.delta - type: string description: 'The event type, must be `conversation.item.input_audio_transcription.delta`.' x-stainless-const: true description: "Returned when the text value of an input audio transcription content part is updated.\n" @@ -18835,7 +19280,6 @@ components: type: enum: - conversation.item.retrieved - type: string description: 'The event type, must be `conversation.item.retrieved`.' x-stainless-const: true description: "Returned when a conversation item is retrieved with `conversation.item.retrieve`.\n" @@ -18867,7 +19311,6 @@ components: type: enum: - conversation.item.truncated - type: string description: 'The event type, must be `conversation.item.truncated`.' x-stainless-const: true description: "Returned when an earlier assistant audio message item is truncated by the \nclient with a `conversation.item.truncate` event. This event is used to \nsynchronize the server's understanding of the audio with the client's playback.\n\nThis action will truncate the audio and remove the server-side text transcript \nto ensure there is no text in the context that hasn't been heard by the user.\n" @@ -18913,7 +19356,6 @@ components: type: enum: - error - type: string description: 'The event type, must be `error`.' x-stainless-const: true description: "Returned when an error occurs, which could be a client problem or a server \nproblem. Most errors are recoverable and the session will stay open, we \nrecommend to implementors to monitor and log error messages by default.\n" @@ -18933,7 +19375,6 @@ components: type: enum: - input_audio_buffer.cleared - type: string description: 'The event type, must be `input_audio_buffer.cleared`.' x-stainless-const: true description: "Returned when the input audio buffer is cleared by the client with a \n`input_audio_buffer.clear` event.\n" @@ -18961,7 +19402,6 @@ components: type: enum: - input_audio_buffer.committed - type: string description: 'The event type, must be `input_audio_buffer.committed`.' x-stainless-const: true description: "Returned when an input audio buffer is committed, either by the client or \nautomatically in server VAD mode. The `item_id` property is the ID of the user\nmessage item that will be created, thus a `conversation.item.created` event \nwill also be sent to the client.\n" @@ -18989,7 +19429,6 @@ components: type: enum: - input_audio_buffer.speech_started - type: string description: 'The event type, must be `input_audio_buffer.speech_started`.' x-stainless-const: true description: "Sent by the server when in `server_vad` mode to indicate that speech has been \ndetected in the audio buffer. This can happen any time audio is added to the \nbuffer (unless speech is already detected). The client may want to use this \nevent to interrupt audio playback or provide visual feedback to the user. \n\nThe client should expect to receive a `input_audio_buffer.speech_stopped` event \nwhen speech stops. The `item_id` property is the ID of the user message item \nthat will be created when speech stops and will also be included in the \n`input_audio_buffer.speech_stopped` event (unless the client manually commits \nthe audio buffer during VAD activation).\n" @@ -19017,7 +19456,6 @@ components: type: enum: - input_audio_buffer.speech_stopped - type: string description: 'The event type, must be `input_audio_buffer.speech_stopped`.' x-stainless-const: true description: "Returned in `server_vad` mode when the server detects the end of speech in \nthe audio buffer. The server will also send an `conversation.item.created` \nevent with the user message item that is created from the audio buffer.\n" @@ -19041,10 +19479,9 @@ components: type: enum: - output_audio_buffer.cleared - type: string description: 'The event type, must be `output_audio_buffer.cleared`.' x-stainless-const: true - description: "**WebRTC Only:** Emitted when the output audio buffer is cleared. This happens either in VAD\nmode when the user has interrupted (`input_audio_buffer.speech_started`),\nor when the client has emitted the `output_audio_buffer.clear` event to manually\ncut off the current audio response.\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n" + description: "**WebRTC Only:** Emitted when the output audio buffer is cleared. This happens either in VAD\nmode when the user has interrupted (`input_audio_buffer.speech_started`),\nor when the client has emitted the `output_audio_buffer.clear` event to manually\ncut off the current audio response.\n[Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n" x-oaiMeta: example: "{\n \"event_id\": \"event_abc123\",\n \"type\": \"output_audio_buffer.cleared\",\n \"response_id\": \"resp_abc123\"\n}\n" group: realtime @@ -19065,10 +19502,9 @@ components: type: enum: - output_audio_buffer.started - type: string description: 'The event type, must be `output_audio_buffer.started`.' x-stainless-const: true - description: "**WebRTC Only:** Emitted when the server begins streaming audio to the client. This event is\nemitted after an audio content part has been added (`response.content_part.added`)\nto the response.\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n" + description: "**WebRTC Only:** Emitted when the server begins streaming audio to the client. This event is\nemitted after an audio content part has been added (`response.content_part.added`)\nto the response.\n[Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n" x-oaiMeta: example: "{\n \"event_id\": \"event_abc123\",\n \"type\": \"output_audio_buffer.started\",\n \"response_id\": \"resp_abc123\"\n}\n" group: realtime @@ -19089,10 +19525,9 @@ components: type: enum: - output_audio_buffer.stopped - type: string description: 'The event type, must be `output_audio_buffer.stopped`.' x-stainless-const: true - description: "**WebRTC Only:** Emitted when the output audio buffer has been completely drained on the server,\nand no more audio is forthcoming. This event is emitted after the full response\ndata has been sent to the client (`response.done`).\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n" + description: "**WebRTC Only:** Emitted when the output audio buffer has been completely drained on the server,\nand no more audio is forthcoming. This event is emitted after the full response\ndata has been sent to the client (`response.done`).\n[Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n" x-oaiMeta: example: "{\n \"event_id\": \"event_abc123\",\n \"type\": \"output_audio_buffer.stopped\",\n \"response_id\": \"resp_abc123\"\n}\n" group: realtime @@ -19131,7 +19566,6 @@ components: type: enum: - rate_limits.updated - type: string description: 'The event type, must be `rate_limits.updated`.' x-stainless-const: true description: "Emitted at the beginning of a Response to indicate the updated rate limits. \nWhen a Response is created some tokens will be \"reserved\" for the output \ntokens, the rate limits shown here reflect that reservation, which is then \nadjusted accordingly once the Response is completed.\n" @@ -19171,7 +19605,6 @@ components: type: enum: - response.audio.delta - type: string description: 'The event type, must be `response.audio.delta`.' x-stainless-const: true description: Returned when the model-generated audio is updated. @@ -19207,7 +19640,6 @@ components: type: enum: - response.audio.done - type: string description: 'The event type, must be `response.audio.done`.' x-stainless-const: true description: "Returned when the model-generated audio is done. Also emitted when a Response\nis interrupted, incomplete, or cancelled.\n" @@ -19247,7 +19679,6 @@ components: type: enum: - response.audio_transcript.delta - type: string description: 'The event type, must be `response.audio_transcript.delta`.' x-stainless-const: true description: "Returned when the model-generated transcription of audio output is updated.\n" @@ -19287,7 +19718,6 @@ components: type: enum: - response.audio_transcript.done - type: string description: 'The event type, must be `response.audio_transcript.done`.' x-stainless-const: true description: "Returned when the model-generated transcription of audio output is done\nstreaming. Also emitted when a Response is interrupted, incomplete, or\ncancelled.\n" @@ -19332,8 +19762,8 @@ components: description: The transcript of the audio (if type is "audio"). type: enum: - - audio - text + - audio type: string description: 'The content type ("text", "audio").' description: The content part that was added. @@ -19343,7 +19773,6 @@ components: type: enum: - response.content_part.added - type: string description: 'The event type, must be `response.content_part.added`.' x-stainless-const: true description: "Returned when a new content part is added to an assistant message item during\nresponse generation.\n" @@ -19388,8 +19817,8 @@ components: description: The transcript of the audio (if type is "audio"). type: enum: - - audio - text + - audio type: string description: 'The content type ("text", "audio").' description: The content part that is done. @@ -19399,7 +19828,6 @@ components: type: enum: - response.content_part.done - type: string description: 'The event type, must be `response.content_part.done`.' x-stainless-const: true description: "Returned when a content part is done streaming in an assistant message item.\nAlso emitted when a Response is interrupted, incomplete, or cancelled.\n" @@ -19422,7 +19850,6 @@ components: type: enum: - response.created - type: string description: 'The event type, must be `response.created`.' x-stainless-const: true description: "Returned when a new Response is created. The first event of response creation,\nwhere the response is in an initial state of `in_progress`.\n" @@ -19445,7 +19872,6 @@ components: type: enum: - response.done - type: string description: 'The event type, must be `response.done`.' x-stainless-const: true description: "Returned when a Response is done streaming. Always emitted, no matter the \nfinal state. The Response object included in the `response.done` event will \ninclude all output Items in the Response but will omit the raw audio data.\n" @@ -19485,7 +19911,6 @@ components: type: enum: - response.function_call_arguments.delta - type: string description: "The event type, must be `response.function_call_arguments.delta`.\n" x-stainless-const: true description: "Returned when the model-generated function call arguments are updated.\n" @@ -19525,7 +19950,6 @@ components: type: enum: - response.function_call_arguments.done - type: string description: "The event type, must be `response.function_call_arguments.done`.\n" x-stainless-const: true description: "Returned when the model-generated function call arguments are done streaming.\nAlso emitted when a Response is interrupted, incomplete, or cancelled.\n" @@ -19556,7 +19980,6 @@ components: type: enum: - response.output_item.added - type: string description: 'The event type, must be `response.output_item.added`.' x-stainless-const: true description: Returned when a new Item is created during Response generation. @@ -19587,7 +20010,6 @@ components: type: enum: - response.output_item.done - type: string description: 'The event type, must be `response.output_item.done`.' x-stainless-const: true description: "Returned when an Item is done streaming. Also emitted when a Response is \ninterrupted, incomplete, or cancelled.\n" @@ -19627,7 +20049,6 @@ components: type: enum: - response.text.delta - type: string description: 'The event type, must be `response.text.delta`.' x-stainless-const: true description: Returned when the text value of a "text" content part is updated. @@ -19667,7 +20088,6 @@ components: type: enum: - response.text.done - type: string description: 'The event type, must be `response.text.done`.' x-stainless-const: true description: "Returned when the text value of a \"text\" content part is done streaming. Also\nemitted when a Response is interrupted, incomplete, or cancelled.\n" @@ -19690,7 +20110,6 @@ components: type: enum: - session.created - type: string description: 'The event type, must be `session.created`.' x-stainless-const: true description: "Returned when a Session is created. Emitted automatically when a new \nconnection is established as the first server event. This event will contain \nthe default Session configuration.\n" @@ -19713,7 +20132,6 @@ components: type: enum: - session.updated - type: string description: 'The event type, must be `session.updated`.' x-stainless-const: true description: "Returned when a session is updated with a `session.update` event, unless \nthere is an error.\n" @@ -19736,7 +20154,6 @@ components: type: enum: - transcription_session.updated - type: string description: 'The event type, must be `transcription_session.updated`.' x-stainless-const: true description: "Returned when a transcription session is updated with a `transcription_session.update` event, unless \nthere is an error.\n" @@ -19902,7 +20319,6 @@ components: type: string description: "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n" description: "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n" - default: input_audio_transcription: type: object properties: @@ -19914,13 +20330,13 @@ components: description: "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.\n" prompt: type: string - description: "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n" + description: "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n" description: "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n" instructions: type: string description: "The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion into your voice\", \"laugh frequently\"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.\n\nNote that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.\n" max_response_output_tokens: - oneOf: + anyOf: - type: integer - enum: - inf @@ -19933,9 +20349,6 @@ components: - text - audio type: string - default: - - text - - audio description: "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n" model: enum: @@ -19992,7 +20405,7 @@ components: description: Tools (functions) available to the model. tracing: title: Tracing Configuration - oneOf: + anyOf: - enum: - auto type: string @@ -20085,7 +20498,7 @@ components: type: string description: "The default system instructions (i.e. system message) prepended to model \ncalls. This field allows the client to guide the model on desired \nresponses. The model can be instructed on response content and format, \n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good \nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion \ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed \nto be followed by the model, but they provide guidance to the model on the \ndesired behavior.\n\nNote that the server sets default instructions which will be used if this \nfield is not set and are visible in the `session.created` event at the \nstart of the session.\n" max_response_output_tokens: - oneOf: + anyOf: - type: integer - enum: - inf @@ -20137,7 +20550,7 @@ components: description: Tools (functions) available to the model. tracing: title: Tracing Configuration - oneOf: + anyOf: - enum: - auto type: string @@ -20225,7 +20638,6 @@ components: type: string description: "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n" description: "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n" - default: input_audio_transcription: type: object properties: @@ -20241,7 +20653,7 @@ components: description: "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.\n" prompt: type: string - description: "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n" + description: "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n" description: "Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n" modalities: items: @@ -20249,9 +20661,6 @@ components: - text - audio type: string - default: - - text - - audio description: "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n" turn_detection: type: object @@ -20327,7 +20736,7 @@ components: description: "The model to use for transcription. Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`.\n" prompt: type: string - description: "An optional text to guide the model's style or continue a previous audio\nsegment. The [prompt](/docs/guides/speech-to-text#prompting) should match\nthe audio language.\n" + description: "An optional text to guide the model's style or continue a previous audio\nsegment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) should match\nthe audio language.\n" description: "Configuration of the transcription model.\n" modalities: items: @@ -20398,6 +20807,24 @@ components: - type type: object properties: + content: + type: array + items: + required: + - type + - text + type: object + properties: + text: + type: string + description: "Reasoning text output from the model.\n" + type: + enum: + - reasoning_text + type: string + description: "The type of the object. Always `reasoning_text`.\n" + x-stainless-const: true + description: "Reasoning text content.\n" encrypted_content: type: string description: "The encrypted content of the reasoning item - populated when a response is\ngenerated with `reasoning.encrypted_content` in the `include` parameter.\n" @@ -20422,21 +20849,21 @@ components: properties: text: type: string - description: "A short summary of the reasoning used by the model when generating\nthe response.\n" + description: "A summary of the reasoning output from the model so far.\n" type: enum: - summary_text type: string description: "The type of the object. Always `summary_text`.\n" x-stainless-const: true - description: "Reasoning text contents.\n" + description: "Reasoning summary content.\n" type: enum: - reasoning type: string description: "The type of the object. Always `reasoning`.\n" x-stainless-const: true - description: "A description of the chain of thought used by a reasoning model while generating\na response. Be sure to include these items in your `input` to the Responses API\nfor subsequent turns of a conversation if you are manually \n[managing context](/docs/guides/conversation-state).\n" + description: "A description of the chain of thought used by a reasoning model while generating\na response. Be sure to include these items in your `input` to the Responses API\nfor subsequent turns of a conversation if you are manually \n[managing context](https://platform.openai.com/docs/guides/conversation-state).\n" RefusalContent: title: Refusal required: @@ -20497,7 +20924,7 @@ components: description: "Details about why the response is incomplete.\n" nullable: true instructions: - oneOf: + anyOf: - type: string description: "A text input to the model, equivalent to a text input with the \n`developer` role.\n" - title: Input item list @@ -20525,6 +20952,7 @@ components: x-oaiSupportedSDKs: - python - javascript + x-stainless-skip: true parallel_tool_calls: type: boolean description: "Whether to allow the model to run tool calls in parallel.\n" @@ -20541,49 +20969,6 @@ components: description: "The status of the response generation. One of `completed`, `failed`, \n`in_progress`, `cancelled`, `queued`, or `incomplete`.\n" usage: $ref: '#/components/schemas/ResponseUsage' - example: - created_at: 1741476777 - error: - id: resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41 - incomplete_details: - instructions: - max_output_tokens: - metadata: { } - model: gpt-4o-2024-08-06 - object: response - output: - - content: - - annotations: [ ] - text: 'The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.' - type: output_text - id: msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41 - role: assistant - status: completed - type: message - parallel_tool_calls: true - previous_response_id: - reasoning: - effort: - summary: - status: completed - store: true - temperature: 1 - text: - format: - type: text - tool_choice: auto - tools: [ ] - top_p: 1 - truncation: disabled - usage: - input_tokens: 328 - input_tokens_details: - cached_tokens: 0 - output_tokens: 52 - output_tokens_details: - reasoning_tokens: 0 - total_tokens: 380 - user: ResponseAudioDeltaEvent: required: - type @@ -21151,7 +21536,7 @@ components: $ref: '#/components/schemas/ResponseFormatJsonSchemaSchema' strict: type: boolean - description: "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n" + description: "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](https://platform.openai.com/docs/guides/structured-outputs).\n" default: false nullable: true description: "Structured Outputs configuration options, including a JSON Schema.\n" @@ -21161,7 +21546,7 @@ components: type: string description: The type of response format being defined. Always `json_schema`. x-stainless-const: true - description: "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n" + description: "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).\n" ResponseFormatJsonSchemaSchema: title: JSON schema type: object @@ -21438,7 +21823,6 @@ components: object: enum: - list - type: string description: 'The type of object returned, must be `list`.' x-stainless-const: true description: A list of Response items. @@ -21718,7 +22102,7 @@ components: - text - audio type: string - description: "Output types that you would like the model to generate.\nMost models are capable of generating text, which is the default:\n\n`[\"text\"]`\n\nThe `gpt-4o-audio-preview` model can also be used to \n[generate audio](/docs/guides/audio). To request that this model generate \nboth text and audio responses, you can use:\n\n`[\"text\", \"audio\"]`\n" + description: "Output types that you would like the model to generate.\nMost models are capable of generating text, which is the default:\n\n`[\"text\"]`\n\nThe `gpt-4o-audio-preview` model can also be used to \n[generate audio](https://platform.openai.com/docs/guides/audio). To request that this model generate \nboth text and audio responses, you can use:\n\n`[\"text\", \"audio\"]`\n" nullable: true ResponseOutputItemAddedEvent: required: @@ -21819,7 +22203,7 @@ components: title: Prompt Variables type: object additionalProperties: - oneOf: + anyOf: - type: string - $ref: '#/components/schemas/InputTextContent' - $ref: '#/components/schemas/InputImageContent' @@ -21835,12 +22219,12 @@ components: properties: background: type: boolean - description: "Whether to run the model response in the background. \n[Learn more](/docs/guides/background).\n" + description: "Whether to run the model response in the background. \n[Learn more](https://platform.openai.com/docs/guides/background).\n" default: false nullable: true max_output_tokens: type: integer - description: "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n" + description: "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).\n" nullable: true max_tool_calls: type: integer @@ -21850,7 +22234,7 @@ components: $ref: '#/components/schemas/ModelIdsResponses' previous_response_id: type: string - description: "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about \n[conversation state](/docs/guides/conversation-state).\n" + description: "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about \n[conversation state](https://platform.openai.com/docs/guides/conversation-state).\n" nullable: true prompt: $ref: '#/components/schemas/Prompt' @@ -21861,9 +22245,9 @@ components: properties: format: $ref: '#/components/schemas/TextResponseFormatConfiguration' - description: "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n" + description: "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](https://platform.openai.com/docs/guides/text)\n- [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)\n" tool_choice: - oneOf: + anyOf: - $ref: '#/components/schemas/ToolChoiceOptions' - $ref: '#/components/schemas/ToolChoiceTypes' - $ref: '#/components/schemas/ToolChoiceFunction' @@ -21873,7 +22257,7 @@ components: type: array items: $ref: '#/components/schemas/Tool' - description: "An array of tools the model may call while generating a response. You \ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n model's capabilities, like [web search](/docs/guides/tools-web-search)\n or [file search](/docs/guides/tools-file-search). Learn more about\n [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n enabling the model to call your own code. Learn more about\n [function calling](/docs/guides/function-calling).\n" + description: "An array of tools the model may call while generating a response. You \ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search)\n or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about\n [built-in tools](https://platform.openai.com/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n enabling the model to call your own code. Learn more about\n [function calling](https://platform.openai.com/docs/guides/function-calling).\n" truncation: enum: - auto @@ -21906,80 +22290,6 @@ components: example: "{\n \"type\": \"response.queued\",\n \"response\": {\n \"id\": \"res_123\",\n \"status\": \"queued\",\n \"created_at\": \"2021-01-01T00:00:00Z\",\n \"updated_at\": \"2021-01-01T00:00:00Z\"\n },\n \"sequence_number\": 1\n}\n" group: responses name: response.queued - ResponseReasoningSummaryDeltaEvent: - title: ResponseReasoningSummaryDeltaEvent - required: - - type - - item_id - - output_index - - summary_index - - delta - - sequence_number - type: object - properties: - delta: - type: object - description: The partial update to the reasoning summary content. - item_id: - type: string - description: The unique identifier of the item for which the reasoning summary is being updated. - output_index: - type: integer - description: The index of the output item in the response's output array. - sequence_number: - type: integer - description: The sequence number of this event. - summary_index: - type: integer - description: The index of the summary part within the output item. - type: - enum: - - response.reasoning_summary.delta - type: string - description: The type of the event. Always 'response.reasoning_summary.delta'. - x-stainless-const: true - description: "Emitted when there is a delta (partial update) to the reasoning summary content.\n" - x-oaiMeta: - example: "{\n \"type\": \"response.reasoning_summary.delta\",\n \"item_id\": \"item-abc\",\n \"output_index\": 0,\n \"summary_index\": 0,\n \"delta\": {\n \"text\": \"delta text\"\n },\n \"sequence_number\": 1\n}\n" - group: responses - name: response.reasoning_summary.delta - ResponseReasoningSummaryDoneEvent: - title: ResponseReasoningSummaryDoneEvent - required: - - type - - item_id - - output_index - - summary_index - - text - - sequence_number - type: object - properties: - item_id: - type: string - description: The unique identifier of the item for which the reasoning summary is finalized. - output_index: - type: integer - description: The index of the output item in the response's output array. - sequence_number: - type: integer - description: The sequence number of this event. - summary_index: - type: integer - description: The index of the summary part within the output item. - text: - type: string - description: The finalized reasoning summary text. - type: - enum: - - response.reasoning_summary.done - type: string - description: The type of the event. Always 'response.reasoning_summary.done'. - x-stainless-const: true - description: "Emitted when the reasoning summary content is finalized for an item.\n" - x-oaiMeta: - example: "{\n \"type\": \"response.reasoning_summary.done\",\n \"item_id\": \"item-abc\",\n \"output_index\": 0,\n \"summary_index\": 0,\n \"text\": \"This is a test reasoning summary\",\n \"sequence_number\": 1\n}\n" - group: responses - name: response.reasoning_summary.done ResponseReasoningSummaryPartAddedEvent: required: - type @@ -22150,6 +22460,78 @@ components: example: "{\n \"type\": \"response.reasoning_summary_text.done\",\n \"item_id\": \"rs_6806bfca0b2481918a5748308061a2600d3ce51bdffd5476\",\n \"output_index\": 0,\n \"summary_index\": 0,\n \"text\": \"**Responding to a greeting**\\n\\nThe user just said, \\\"Hello!\\\" So, it seems I need to engage. I'll greet them back and offer help since they're looking to chat. I could say something like, \\\"Hello! How can I assist you today?\\\" That feels friendly and open. They didn't ask a specific question, so this approach will work well for starting a conversation. Let's see where it goes from there!\",\n \"sequence_number\": 1\n}\n" group: responses name: response.reasoning_summary_text.done + ResponseReasoningTextDeltaEvent: + required: + - type + - item_id + - output_index + - content_index + - delta + - sequence_number + type: object + properties: + content_index: + type: integer + description: "The index of the reasoning content part this delta is associated with.\n" + delta: + type: string + description: "The text delta that was added to the reasoning content.\n" + item_id: + type: string + description: "The ID of the item this reasoning text delta is associated with.\n" + output_index: + type: integer + description: "The index of the output item this reasoning text delta is associated with.\n" + sequence_number: + type: integer + description: "The sequence number of this event.\n" + type: + enum: + - response.reasoning_text.delta + type: string + description: "The type of the event. Always `response.reasoning_text.delta`.\n" + x-stainless-const: true + description: Emitted when a delta is added to a reasoning text. + x-oaiMeta: + example: "{\n \"type\": \"response.reasoning_text.delta\",\n \"item_id\": \"rs_123\",\n \"output_index\": 0,\n \"content_index\": 0,\n \"delta\": \"The\",\n \"sequence_number\": 1\n}\n" + group: responses + name: response.reasoning_text.delta + ResponseReasoningTextDoneEvent: + required: + - type + - item_id + - output_index + - content_index + - text + - sequence_number + type: object + properties: + content_index: + type: integer + description: "The index of the reasoning content part.\n" + item_id: + type: string + description: "The ID of the item this reasoning text is associated with.\n" + output_index: + type: integer + description: "The index of the output item this reasoning text is associated with.\n" + sequence_number: + type: integer + description: "The sequence number of this event.\n" + text: + type: string + description: "The full text of the completed reasoning content.\n" + type: + enum: + - response.reasoning_text.done + type: string + description: "The type of the event. Always `response.reasoning_text.done`.\n" + x-stainless-const: true + description: Emitted when a reasoning text is completed. + x-oaiMeta: + example: "{\n \"type\": \"response.reasoning_text.done\",\n \"item_id\": \"rs_123\",\n \"output_index\": 0,\n \"content_index\": 0,\n \"text\": \"The user is asking...\",\n \"sequence_number\": 4\n}\n" + group: responses + name: response.reasoning_text.done ResponseRefusalDeltaEvent: required: - type @@ -22252,6 +22634,8 @@ components: - $ref: '#/components/schemas/ResponseReasoningSummaryPartDoneEvent' - $ref: '#/components/schemas/ResponseReasoningSummaryTextDeltaEvent' - $ref: '#/components/schemas/ResponseReasoningSummaryTextDoneEvent' + - $ref: '#/components/schemas/ResponseReasoningTextDeltaEvent' + - $ref: '#/components/schemas/ResponseReasoningTextDoneEvent' - $ref: '#/components/schemas/ResponseRefusalDeltaEvent' - $ref: '#/components/schemas/ResponseRefusalDoneEvent' - $ref: '#/components/schemas/ResponseTextDeltaEvent' @@ -22273,8 +22657,6 @@ components: - $ref: '#/components/schemas/ResponseMCPListToolsInProgressEvent' - $ref: '#/components/schemas/ResponseOutputTextAnnotationAddedEvent' - $ref: '#/components/schemas/ResponseQueuedEvent' - - $ref: '#/components/schemas/ResponseReasoningSummaryDeltaEvent' - - $ref: '#/components/schemas/ResponseReasoningSummaryDoneEvent' discriminator: propertyName: type ResponseTextDeltaEvent: @@ -22380,7 +22762,7 @@ components: properties: cached_tokens: type: integer - description: "The number of tokens that were retrieved from the cache. \n[More on prompt caching](/docs/guides/prompt-caching).\n" + description: "The number of tokens that were retrieved from the cache. \n[More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching).\n" description: A detailed breakdown of the input tokens. output_tokens: type: integer @@ -22509,19 +22891,21 @@ components: properties: grader: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/GraderStringCheck' - $ref: '#/components/schemas/GraderTextSimilarity' - $ref: '#/components/schemas/GraderPython' - $ref: '#/components/schemas/GraderScoreModel' - $ref: '#/components/schemas/GraderMulti' description: The grader used for the fine-tuning job. + discriminator: + propertyName: type item: type: object - description: "The dataset item provided to the grader. This will be used to populate \nthe `item` namespace. See [the guide](/docs/guides/graders) for more details. \n" + description: "The dataset item provided to the grader. This will be used to populate \nthe `item` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details. \n" model_sample: type: string - description: "The model sample to be evaluated. This value will be used to populate \nthe `sample` namespace. See [the guide](/docs/guides/graders) for more details.\nThe `output_json` variable will be populated if the model sample is a \nvalid JSON string.\n \n" + description: "The model sample to be evaluated. This value will be used to populate \nthe `sample` namespace. See [the guide](https://platform.openai.com/docs/guides/graders) for more details.\nThe `output_json` variable will be populated if the model sample is a \nvalid JSON string.\n \n" RunGraderResponse: required: - reward @@ -22645,7 +23029,7 @@ components: properties: assistant_id: type: string - description: 'The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.' + description: 'The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for execution of this run.' cancelled_at: type: integer description: The Unix timestamp (in seconds) for when the run was cancelled. @@ -22681,7 +23065,7 @@ components: nullable: true instructions: type: string - description: 'The instructions that the [assistant](/docs/api-reference/assistants) used for this run.' + description: 'The instructions that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run.' last_error: required: - code @@ -22714,7 +23098,7 @@ components: $ref: '#/components/schemas/Metadata' model: type: string - description: 'The model that the [assistant](/docs/api-reference/assistants) used for this run.' + description: 'The model that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run.' object: enum: - thread.run @@ -22755,36 +23139,22 @@ components: description: The Unix timestamp (in seconds) for when the run was started. nullable: true status: - enum: - - queued - - in_progress - - requires_action - - cancelling - - cancelled - - failed - - completed - - incomplete - - expired - type: string - description: 'The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.' + $ref: '#/components/schemas/RunStatus' temperature: type: number description: 'The sampling temperature used for this run. If not set, defaults to 1.' nullable: true thread_id: type: string - description: 'The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.' + description: 'The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was executed on as a part of this run.' tool_choice: $ref: '#/components/schemas/AssistantsApiToolChoiceOption' tools: maxItems: 20 type: array items: - oneOf: - - $ref: '#/components/schemas/AssistantToolsCode' - - $ref: '#/components/schemas/AssistantToolsFileSearch' - - $ref: '#/components/schemas/AssistantToolsFunction' - description: 'The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.' + $ref: '#/components/schemas/AssistantTool' + description: 'The list of tools that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run.' top_p: type: number description: 'The nucleus sampling value used for this run. If not set, defaults to 1.' @@ -22793,11 +23163,24 @@ components: $ref: '#/components/schemas/TruncationObject' usage: $ref: '#/components/schemas/RunCompletionUsage' - description: 'Represents an execution run on a [thread](/docs/api-reference/threads).' + description: 'Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads).' x-oaiMeta: beta: true example: "{\n \"id\": \"run_abc123\",\n \"object\": \"thread.run\",\n \"created_at\": 1698107661,\n \"assistant_id\": \"asst_abc123\",\n \"thread_id\": \"thread_abc123\",\n \"status\": \"completed\",\n \"started_at\": 1699073476,\n \"expires_at\": null,\n \"cancelled_at\": null,\n \"failed_at\": null,\n \"completed_at\": 1699073498,\n \"last_error\": null,\n \"model\": \"gpt-4o\",\n \"instructions\": null,\n \"tools\": [{\"type\": \"file_search\"}, {\"type\": \"code_interpreter\"}],\n \"metadata\": {},\n \"incomplete_details\": null,\n \"usage\": {\n \"prompt_tokens\": 123,\n \"completion_tokens\": 456,\n \"total_tokens\": 579\n },\n \"temperature\": 1.0,\n \"top_p\": 1.0,\n \"max_prompt_tokens\": 1000,\n \"max_completion_tokens\": 1000,\n \"truncation_strategy\": {\n \"type\": \"auto\",\n \"last_messages\": null\n },\n \"response_format\": \"auto\",\n \"tool_choice\": \"auto\",\n \"parallel_tool_calls\": true\n}\n" name: The run object + RunStatus: + enum: + - queued + - in_progress + - requires_action + - cancelling + - cancelled + - failed + - completed + - incomplete + - expired + type: string + description: 'The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.' RunStepCompletionUsage: required: - prompt_tokens @@ -22825,15 +23208,7 @@ components: type: object properties: delta: - type: object - properties: - step_details: - type: object - oneOf: - - $ref: '#/components/schemas/RunStepDeltaStepDetailsMessageCreationObject' - - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsObject' - description: The details of the run step. - description: The delta containing the fields that have changed on the run step. + $ref: '#/components/schemas/RunStepDeltaObjectDelta' id: type: string description: 'The identifier of the run step, which can be referenced in API endpoints.' @@ -22848,6 +23223,18 @@ components: beta: true example: "{\n \"id\": \"step_123\",\n \"object\": \"thread.run.step.delta\",\n \"delta\": {\n \"step_details\": {\n \"type\": \"tool_calls\",\n \"tool_calls\": [\n {\n \"index\": 0,\n \"id\": \"call_123\",\n \"type\": \"code_interpreter\",\n \"code_interpreter\": { \"input\": \"\", \"outputs\": [] }\n }\n ]\n }\n }\n}\n" name: The run step delta object + RunStepDeltaObjectDelta: + type: object + properties: + step_details: + type: object + anyOf: + - $ref: '#/components/schemas/RunStepDeltaStepDetailsMessageCreationObject' + - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsObject' + description: The details of the run step. + discriminator: + propertyName: type + description: The delta containing the fields that have changed on the run step. RunStepDeltaStepDetailsMessageCreationObject: title: Message creation required: @@ -22867,6 +23254,13 @@ components: description: Always `message_creation`. x-stainless-const: true description: Details of the message creation by the run step. + RunStepDeltaStepDetailsToolCall: + anyOf: + - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeObject' + - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsFileSearchObject' + - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsFunctionObject' + discriminator: + propertyName: type RunStepDeltaStepDetailsToolCallsCodeObject: title: Code interpreter tool call required: @@ -22884,9 +23278,11 @@ components: type: array items: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject' - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeOutputImageObject' + discriminator: + propertyName: type description: 'The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.' description: The Code Interpreter tool call definition. id: @@ -22914,7 +23310,7 @@ components: properties: file_id: type: string - description: 'The [file](/docs/api-reference/files) ID of the image.' + description: 'The [file](https://platform.openai.com/docs/api-reference/files) ID of the image.' index: type: integer description: The index of the output in the outputs array. @@ -22986,7 +23382,7 @@ components: description: The name of the function. output: type: string - description: 'The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.' + description: 'The output of the function. This will be `null` if the outputs have not been [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) yet.' nullable: true description: The definition of the function that was called. id: @@ -23010,10 +23406,7 @@ components: tool_calls: type: array items: - oneOf: - - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeObject' - - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsFileSearchObject' - - $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCallsFunctionObject' + $ref: '#/components/schemas/RunStepDeltaStepDetailsToolCall' description: "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n" type: enum: @@ -23044,6 +23437,13 @@ components: description: Always `message_creation`. x-stainless-const: true description: Details of the message creation by the run step. + RunStepDetailsToolCall: + anyOf: + - $ref: '#/components/schemas/RunStepDetailsToolCallsCodeObject' + - $ref: '#/components/schemas/RunStepDetailsToolCallsFileSearchObject' + - $ref: '#/components/schemas/RunStepDetailsToolCallsFunctionObject' + discriminator: + propertyName: type RunStepDetailsToolCallsCodeObject: title: Code Interpreter tool call required: @@ -23065,9 +23465,11 @@ components: type: array items: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/RunStepDetailsToolCallsCodeOutputLogsObject' - $ref: '#/components/schemas/RunStepDetailsToolCallsCodeOutputImageObject' + discriminator: + propertyName: type description: 'The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.' description: The Code Interpreter tool call definition. id: @@ -23094,13 +23496,18 @@ components: properties: file_id: type: string - description: 'The [file](/docs/api-reference/files) ID of the image.' + description: 'The [file](https://platform.openai.com/docs/api-reference/files) ID of the image.' type: enum: - image type: string description: Always `image`. x-stainless-const: true + x-stainless-naming: + java: + type_name: ImageOutput + kotlin: + type_name: ImageOutput RunStepDetailsToolCallsCodeOutputLogsObject: title: Code Interpreter log output required: @@ -23118,6 +23525,11 @@ components: description: Always `logs`. x-stainless-const: true description: Text output from the Code Interpreter tool call as part of a run step. + x-stainless-naming: + java: + type_name: LogsOutput + kotlin: + type_name: LogsOutput RunStepDetailsToolCallsFileSearchObject: title: File search tool call required: @@ -23221,7 +23633,7 @@ components: description: The name of the function. output: type: string - description: 'The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.' + description: 'The output of the function. This will be `null` if the outputs have not been [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) yet.' nullable: true description: The definition of the function that was called. id: @@ -23243,10 +23655,7 @@ components: tool_calls: type: array items: - oneOf: - - $ref: '#/components/schemas/RunStepDetailsToolCallsCodeObject' - - $ref: '#/components/schemas/RunStepDetailsToolCallsFileSearchObject' - - $ref: '#/components/schemas/RunStepDetailsToolCallsFunctionObject' + $ref: '#/components/schemas/RunStepDetailsToolCall' description: "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n" type: enum: @@ -23276,7 +23685,7 @@ components: properties: assistant_id: type: string - description: 'The ID of the [assistant](/docs/api-reference/assistants) associated with the run step.' + description: 'The ID of the [assistant](https://platform.openai.com/docs/api-reference/assistants) associated with the run step.' cancelled_at: type: integer description: The Unix timestamp (in seconds) for when the run step was cancelled. @@ -23326,7 +23735,7 @@ components: x-stainless-const: true run_id: type: string - description: 'The ID of the [run](/docs/api-reference/runs) that this run step is a part of.' + description: 'The ID of the [run](https://platform.openai.com/docs/api-reference/runs) that this run step is a part of.' status: enum: - in_progress @@ -23338,13 +23747,15 @@ components: description: 'The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`.' step_details: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/RunStepDetailsMessageCreationObject' - $ref: '#/components/schemas/RunStepDetailsToolCallsObject' description: The details of the run step. + discriminator: + propertyName: type thread_id: type: string - description: 'The ID of the [thread](/docs/api-reference/threads) that was run.' + description: 'The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run.' type: enum: - message_creation @@ -23359,7 +23770,7 @@ components: example: "{\n \"id\": \"step_abc123\",\n \"object\": \"thread.run.step\",\n \"created_at\": 1699063291,\n \"run_id\": \"run_abc123\",\n \"assistant_id\": \"asst_abc123\",\n \"thread_id\": \"thread_abc123\",\n \"type\": \"message_creation\",\n \"status\": \"completed\",\n \"cancelled_at\": null,\n \"completed_at\": 1699063291,\n \"expired_at\": null,\n \"failed_at\": null,\n \"last_error\": null,\n \"step_details\": {\n \"type\": \"message_creation\",\n \"message_creation\": {\n \"message_id\": \"msg_abc123\"\n }\n },\n \"usage\": {\n \"prompt_tokens\": 123,\n \"completion_tokens\": 456,\n \"total_tokens\": 579\n }\n}\n" name: The run step object RunStepStreamEvent: - oneOf: + anyOf: - required: - event - data @@ -23372,7 +23783,7 @@ components: - thread.run.step.created type: string x-stainless-const: true - description: 'Occurs when a [run step](/docs/api-reference/run-steps/step-object) is created.' + description: 'Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) is created.' x-oaiMeta: dataDescription: '`data` is a [run step](/docs/api-reference/run-steps/step-object)' - required: @@ -23387,7 +23798,7 @@ components: - thread.run.step.in_progress type: string x-stainless-const: true - description: 'Occurs when a [run step](/docs/api-reference/run-steps/step-object) moves to an `in_progress` state.' + description: 'Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) moves to an `in_progress` state.' x-oaiMeta: dataDescription: '`data` is a [run step](/docs/api-reference/run-steps/step-object)' - required: @@ -23402,7 +23813,7 @@ components: - thread.run.step.delta type: string x-stainless-const: true - description: 'Occurs when parts of a [run step](/docs/api-reference/run-steps/step-object) are being streamed.' + description: 'Occurs when parts of a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) are being streamed.' x-oaiMeta: dataDescription: '`data` is a [run step delta](/docs/api-reference/assistants-streaming/run-step-delta-object)' - required: @@ -23417,7 +23828,7 @@ components: - thread.run.step.completed type: string x-stainless-const: true - description: 'Occurs when a [run step](/docs/api-reference/run-steps/step-object) is completed.' + description: 'Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) is completed.' x-oaiMeta: dataDescription: '`data` is a [run step](/docs/api-reference/run-steps/step-object)' - required: @@ -23432,7 +23843,7 @@ components: - thread.run.step.failed type: string x-stainless-const: true - description: 'Occurs when a [run step](/docs/api-reference/run-steps/step-object) fails.' + description: 'Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) fails.' x-oaiMeta: dataDescription: '`data` is a [run step](/docs/api-reference/run-steps/step-object)' - required: @@ -23447,7 +23858,7 @@ components: - thread.run.step.cancelled type: string x-stainless-const: true - description: 'Occurs when a [run step](/docs/api-reference/run-steps/step-object) is cancelled.' + description: 'Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) is cancelled.' x-oaiMeta: dataDescription: '`data` is a [run step](/docs/api-reference/run-steps/step-object)' - required: @@ -23462,11 +23873,13 @@ components: - thread.run.step.expired type: string x-stainless-const: true - description: 'Occurs when a [run step](/docs/api-reference/run-steps/step-object) expires.' + description: 'Occurs when a [run step](https://platform.openai.com/docs/api-reference/run-steps/step-object) expires.' x-oaiMeta: dataDescription: '`data` is a [run step](/docs/api-reference/run-steps/step-object)' + discriminator: + propertyName: event RunStreamEvent: - oneOf: + anyOf: - required: - event - data @@ -23479,7 +23892,7 @@ components: - thread.run.created type: string x-stainless-const: true - description: 'Occurs when a new [run](/docs/api-reference/runs/object) is created.' + description: 'Occurs when a new [run](https://platform.openai.com/docs/api-reference/runs/object) is created.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' - required: @@ -23494,7 +23907,7 @@ components: - thread.run.queued type: string x-stainless-const: true - description: 'Occurs when a [run](/docs/api-reference/runs/object) moves to a `queued` status.' + description: 'Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `queued` status.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' - required: @@ -23509,7 +23922,7 @@ components: - thread.run.in_progress type: string x-stainless-const: true - description: 'Occurs when a [run](/docs/api-reference/runs/object) moves to an `in_progress` status.' + description: 'Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to an `in_progress` status.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' - required: @@ -23524,7 +23937,7 @@ components: - thread.run.requires_action type: string x-stainless-const: true - description: 'Occurs when a [run](/docs/api-reference/runs/object) moves to a `requires_action` status.' + description: 'Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `requires_action` status.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' - required: @@ -23539,7 +23952,7 @@ components: - thread.run.completed type: string x-stainless-const: true - description: 'Occurs when a [run](/docs/api-reference/runs/object) is completed.' + description: 'Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) is completed.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' - required: @@ -23554,7 +23967,7 @@ components: - thread.run.incomplete type: string x-stainless-const: true - description: 'Occurs when a [run](/docs/api-reference/runs/object) ends with status `incomplete`.' + description: 'Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) ends with status `incomplete`.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' - required: @@ -23569,7 +23982,7 @@ components: - thread.run.failed type: string x-stainless-const: true - description: 'Occurs when a [run](/docs/api-reference/runs/object) fails.' + description: 'Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) fails.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' - required: @@ -23584,7 +23997,7 @@ components: - thread.run.cancelling type: string x-stainless-const: true - description: 'Occurs when a [run](/docs/api-reference/runs/object) moves to a `cancelling` status.' + description: 'Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `cancelling` status.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' - required: @@ -23599,7 +24012,7 @@ components: - thread.run.cancelled type: string x-stainless-const: true - description: 'Occurs when a [run](/docs/api-reference/runs/object) is cancelled.' + description: 'Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) is cancelled.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' - required: @@ -23614,9 +24027,11 @@ components: - thread.run.expired type: string x-stainless-const: true - description: 'Occurs when a [run](/docs/api-reference/runs/object) expires.' + description: 'Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) expires.' x-oaiMeta: dataDescription: '`data` is a [run](/docs/api-reference/runs/object)' + discriminator: + propertyName: event RunToolCallObject: required: - id @@ -23639,7 +24054,7 @@ components: description: The function definition. id: type: string - description: 'The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.' + description: 'The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) endpoint.' type: enum: - function @@ -23699,7 +24114,7 @@ components: - scale - priority type: string - description: "Specifies the processing type used for serving the request.\n - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n" + description: "Specifies the processing type used for serving the request.\n - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or 'priority', then the request will be processed with the corresponding service tier. [Contact sales](https://openai.com/contact-sales) to learn more about Priority processing.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n" default: auto nullable: true SpeechAudioDeltaEvent: @@ -23805,7 +24220,7 @@ components: x-stainless-const: true additionalProperties: false StopConfiguration: - oneOf: + anyOf: - type: string default: <|endoftext|> nullable: true @@ -23817,7 +24232,6 @@ components: type: string example: '["\n"]' description: "Not supported with latest reasoning models `o3` and `o4-mini`.\n\nUp to 4 sequences where the API will stop generating further tokens. The\nreturned text will not contain the stop sequence.\n" - default: nullable: true SubmitToolOutputsRunRequest: required: @@ -23841,12 +24255,44 @@ components: description: The ID of the tool call in the `required_action` object within the run object the output is being submitted for. description: A list of tools for which the outputs are being submitted. additionalProperties: false + SubmitToolOutputsRunRequestWithoutStream: + required: + - tool_outputs + type: object + properties: + tool_outputs: + type: array + items: + type: object + properties: + output: + type: string + description: The output of the tool call to be submitted to continue the run. + tool_call_id: + type: string + description: The ID of the tool call in the `required_action` object within the run object the output is being submitted for. + description: A list of tools for which the outputs are being submitted. + additionalProperties: false + TextAnnotation: + anyOf: + - $ref: '#/components/schemas/MessageContentTextAnnotationsFileCitationObject' + - $ref: '#/components/schemas/MessageContentTextAnnotationsFilePathObject' + discriminator: + propertyName: type + TextAnnotationDelta: + anyOf: + - $ref: '#/components/schemas/MessageDeltaContentTextAnnotationsFileCitationObject' + - $ref: '#/components/schemas/MessageDeltaContentTextAnnotationsFilePathObject' + discriminator: + propertyName: type TextResponseFormatConfiguration: - oneOf: + anyOf: - $ref: '#/components/schemas/ResponseFormatText' - $ref: '#/components/schemas/TextResponseFormatJsonSchema' - $ref: '#/components/schemas/ResponseFormatJsonObject' - description: "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs, \nwhich ensures the model will match your supplied JSON schema. Learn more in the \n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n" + description: "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs, \nwhich ensures the model will match your supplied JSON schema. Learn more in the \n[Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n" + discriminator: + propertyName: type TextResponseFormatJsonSchema: title: JSON schema required: @@ -23865,7 +24311,7 @@ components: $ref: '#/components/schemas/ResponseFormatJsonSchemaSchema' strict: type: boolean - description: "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n" + description: "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](https://platform.openai.com/docs/guides/structured-outputs).\n" default: false nullable: true type: @@ -23874,7 +24320,7 @@ components: type: string description: The type of response format being defined. Always `json_schema`. x-stainless-const: true - description: "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n" + description: "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).\n" ThreadObject: title: Thread required: @@ -23910,7 +24356,7 @@ components: type: array items: type: string - description: "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" + description: "A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n" file_search: type: object properties: @@ -23919,16 +24365,16 @@ components: type: array items: type: string - description: "The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.\n" + description: "The [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.\n" description: "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n" nullable: true - description: 'Represents a thread that contains [messages](/docs/api-reference/messages).' + description: 'Represents a thread that contains [messages](https://platform.openai.com/docs/api-reference/messages).' x-oaiMeta: beta: true example: "{\n \"id\": \"thread_abc123\",\n \"object\": \"thread\",\n \"created_at\": 1698107661,\n \"metadata\": {}\n}\n" name: The thread object ThreadStreamEvent: - oneOf: + anyOf: - required: - event - data @@ -23944,9 +24390,11 @@ components: - thread.created type: string x-stainless-const: true - description: 'Occurs when a new [thread](/docs/api-reference/threads/object) is created.' + description: 'Occurs when a new [thread](https://platform.openai.com/docs/api-reference/threads/object) is created.' x-oaiMeta: dataDescription: '`data` is a [thread](/docs/api-reference/threads/object)' + discriminator: + propertyName: event ToggleCertificatesRequest: required: - certificate_ids @@ -23960,7 +24408,7 @@ components: type: string example: cert_abc Tool: - oneOf: + anyOf: - $ref: '#/components/schemas/FunctionTool' - $ref: '#/components/schemas/FileSearchTool' - $ref: '#/components/schemas/WebSearchPreviewTool' @@ -24033,8 +24481,8 @@ components: - image_generation - code_interpreter type: string - description: "The type of hosted tool the model should to use. Learn more about\n[built-in tools](/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n- `code_interpreter`\n- `image_generation`\n" - description: "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).\n" + description: "The type of hosted tool the model should to use. Learn more about\n[built-in tools](https://platform.openai.com/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n- `code_interpreter`\n- `image_generation`\n" + description: "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](https://platform.openai.com/docs/guides/tools).\n" TopLogProb: title: Top log probability required: @@ -24077,14 +24525,14 @@ components: token: type: string description: "The token that was used to generate the log probability.\n" - description: "The log probabilities of the delta. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.\n" + description: "The log probabilities of the delta. Only included if you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.\n" type: enum: - transcript.text.delta type: string description: "The type of the event. Always `transcript.text.delta`.\n" x-stainless-const: true - description: 'Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.' + description: 'Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.' x-oaiMeta: example: "{\n \"type\": \"transcript.text.delta\",\n \"delta\": \" wonderful\"\n}\n" group: transcript @@ -24111,7 +24559,7 @@ components: token: type: string description: "The token that was used to generate the log probability.\n" - description: "The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.\n" + description: "The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.\n" text: type: string description: "The text that was transcribed.\n" @@ -24123,7 +24571,7 @@ components: x-stainless-const: true usage: $ref: '#/components/schemas/TranscriptTextUsageTokens' - description: 'Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.' + description: 'Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.' x-oaiMeta: example: "{\n \"type\": \"transcript.text.done\",\n \"text\": \"I see skies of blue and clouds of white, the bright blessed days, the dark sacred nights, and I think to myself, what a wonderful world.\",\n \"usage\": {\n \"type\": \"tokens\",\n \"input_tokens\": 14,\n \"input_token_details\": {\n \"text_tokens\": 10,\n \"audio_tokens\": 4\n },\n \"output_tokens\": 31,\n \"total_tokens\": 45\n }\n}\n" group: transcript @@ -24181,17 +24629,16 @@ components: x-stainless-const: true description: Usage statistics for models billed by token usage. TranscriptionChunkingStrategy: - type: object - oneOf: + anyOf: - enum: - auto type: string description: "Automatically set chunking parameters based on the audio. Must be set to `\"auto\"`.\n" - default: - - auto x-stainless-const: true - $ref: '#/components/schemas/VadConfig' - description: "Controls how the audio is cut into chunks. When set to `\"auto\"`, the\nserver first normalizes loudness and then uses voice activity detection (VAD) to\nchoose boundaries. `server_vad` object can be provided to tweak VAD detection\nparameters manually. If unset, the audio is transcribed as a single block. " + description: 'Controls how the audio is cut into chunks. When set to `"auto"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection parameters manually. If unset, the audio is transcribed as a single block. ' + nullable: true + x-oaiTypeLabel: string TranscriptionInclude: enum: - logprobs @@ -24334,6 +24781,7 @@ components: - id - purpose - status + - object type: object properties: bytes: @@ -24361,7 +24809,7 @@ components: x-stainless-const: true purpose: type: string - description: 'The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values.' + description: 'The intended purpose of the file. [Please refer here](https://platform.openai.com/docs/api-reference/files/object#files/object-purpose) for acceptable values.' status: enum: - pending @@ -24757,7 +25205,7 @@ components: result: type: array items: - oneOf: + anyOf: - $ref: '#/components/schemas/UsageCompletionsResult' - $ref: '#/components/schemas/UsageEmbeddingsResult' - $ref: '#/components/schemas/UsageModerationsResult' @@ -24767,6 +25215,8 @@ components: - $ref: '#/components/schemas/UsageVectorStoresResult' - $ref: '#/components/schemas/UsageCodeInterpreterSessionsResult' - $ref: '#/components/schemas/CostsResult' + discriminator: + propertyName: object start_time: type: integer UsageVectorStoresResult: @@ -24911,7 +25361,7 @@ components: properties: grader: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/GraderStringCheck' - $ref: '#/components/schemas/GraderTextSimilarity' - $ref: '#/components/schemas/GraderPython' @@ -24924,7 +25374,7 @@ components: properties: grader: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/GraderStringCheck' - $ref: '#/components/schemas/GraderTextSimilarity' - $ref: '#/components/schemas/GraderPython' @@ -24954,7 +25404,7 @@ components: maxProperties: 16 type: object additionalProperties: - oneOf: + anyOf: - maxLength: 512 type: string - type: number @@ -25019,7 +25469,7 @@ components: description: 'The status of the vector store files batch, which can be either `in_progress`, `completed`, `cancelled` or `failed`.' vector_store_id: type: string - description: 'The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.' + description: 'The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) that the [File](https://platform.openai.com/docs/api-reference/files) is attached to.' description: A batch of files attached to a vector store. x-oaiMeta: beta: true @@ -25074,11 +25524,7 @@ components: attributes: $ref: '#/components/schemas/VectorStoreFileAttributes' chunking_strategy: - type: object - oneOf: - - $ref: '#/components/schemas/StaticChunkingStrategyResponseParam' - - $ref: '#/components/schemas/OtherChunkingStrategyResponseParam' - description: The strategy used to chunk the file. + $ref: '#/components/schemas/ChunkingStrategyResponse' created_at: type: integer description: The Unix timestamp (in seconds) for when the vector store file was created. @@ -25122,7 +25568,7 @@ components: description: The total vector store usage in bytes. Note that this may be different from the original file size. vector_store_id: type: string - description: 'The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.' + description: 'The ID of the [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object) that the [File](https://platform.openai.com/docs/api-reference/files) is attached to.' description: A list of files attached to a vector store. x-oaiMeta: beta: true @@ -25213,7 +25659,7 @@ components: type: object properties: filters: - oneOf: + anyOf: - $ref: '#/components/schemas/ComparisonFilter' - $ref: '#/components/schemas/CompoundFilter' description: A filter to apply based on file attributes. @@ -25224,7 +25670,7 @@ components: description: The maximum number of results to return. This number should be between 1 and 50 inclusive. default: 10 query: - oneOf: + anyOf: - type: string - type: array items: @@ -25237,9 +25683,11 @@ components: properties: ranker: enum: + - none - auto - default-2024-11-15 type: string + description: 'Enable re-ranking; set to `none` to disable, which can help reduce latency.' default: auto score_threshold: maximum: 1 @@ -25484,11 +25932,13 @@ components: properties: action: type: object - oneOf: + anyOf: - $ref: '#/components/schemas/WebSearchActionSearch' - $ref: '#/components/schemas/WebSearchActionOpenPage' - $ref: '#/components/schemas/WebSearchActionFind' description: "An object describing the specific action taken in this web search call.\nIncludes details on how the model used the web (search, open_page, find).\n" + discriminator: + propertyName: type id: type: string description: "The unique ID of the web search tool call.\n" @@ -25506,7 +25956,7 @@ components: type: string description: "The type of the web search tool call. Always `web_search_call`.\n" x-stainless-const: true - description: "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n" + description: "The results of a web search tool call. See the \n[web search guide](https://platform.openai.com/docs/guides/tools-web-search) for more information.\n" WebhookBatchCancelled: title: batch.cancelled required: @@ -27453,7 +27903,7 @@ tags: description: List user actions and configuration changes within this organization. x-oaiMeta: groups: - - description: "OpenAI's most advanced interface for generating model responses. Supports\ntext and image inputs, and text outputs. Create stateful interactions\nwith the model, using the output of previous responses as input. Extend\nthe model's capabilities with built-in tools for file search, web search,\ncomputer use, and more. Allow the model access to external systems and data\nusing function calling.\n\nRelated guides:\n- [Quickstart](/docs/quickstart?api-mode=responses)\n- [Text inputs and outputs](/docs/guides/text?api-mode=responses)\n- [Image inputs](/docs/guides/images?api-mode=responses)\n- [Structured Outputs](/docs/guides/structured-outputs?api-mode=responses)\n- [Function calling](/docs/guides/function-calling?api-mode=responses)\n- [Conversation state](/docs/guides/conversation-state?api-mode=responses)\n- [Extend the models with tools](/docs/guides/tools?api-mode=responses)\n" + - description: "OpenAI's most advanced interface for generating model responses. Supports\ntext and image inputs, and text outputs. Create stateful interactions\nwith the model, using the output of previous responses as input. Extend\nthe model's capabilities with built-in tools for file search, web search,\ncomputer use, and more. Allow the model access to external systems and data\nusing function calling.\n\nRelated guides:\n- [Quickstart](https://platform.openai.com/docs/quickstart?api-mode=responses)\n- [Text inputs and outputs](https://platform.openai.com/docs/guides/text?api-mode=responses)\n- [Image inputs](https://platform.openai.com/docs/guides/images?api-mode=responses)\n- [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses)\n- [Function calling](https://platform.openai.com/docs/guides/function-calling?api-mode=responses)\n- [Conversation state](https://platform.openai.com/docs/guides/conversation-state?api-mode=responses)\n- [Extend the models with tools](https://platform.openai.com/docs/guides/tools?api-mode=responses)\n" id: responses navigationGroup: responses sections: @@ -27479,7 +27929,7 @@ x-oaiMeta: path: list type: object title: Responses - - description: "When you [create a Response](/docs/api-reference/responses/create) with\n`stream` set to `true`, the server will emit server-sent events to the\nclient as the Response is generated. This section contains the events that\nare emitted by the server.\n\n[Learn more about streaming responses](/docs/guides/streaming-responses?api-mode=responses).\n" + - description: "When you [create a Response](https://platform.openai.com/docs/api-reference/responses/create) with\n`stream` set to `true`, the server will emit server-sent events to the\nclient as the Response is generated. This section contains the events that\nare emitted by the server.\n\n[Learn more about streaming responses](https://platform.openai.com/docs/guides/streaming-responses?api-mode=responses).\n" id: responses-streaming navigationGroup: responses sections: @@ -27558,6 +28008,12 @@ x-oaiMeta: - key: ResponseReasoningSummaryTextDoneEvent path: type: object + - key: ResponseReasoningTextDeltaEvent + path: + type: object + - key: ResponseReasoningTextDoneEvent + path: + type: object - key: ResponseImageGenCallCompletedEvent path: type: object @@ -27615,17 +28071,11 @@ x-oaiMeta: - key: ResponseQueuedEvent path: type: object - - key: ResponseReasoningSummaryDeltaEvent - path: - type: object - - key: ResponseReasoningSummaryDoneEvent - path: - type: object - key: ResponseErrorEvent path: type: object title: Streaming - - description: "The Chat Completions API endpoint will generate a model response from a\nlist of messages comprising a conversation.\n\nRelated guides:\n- [Quickstart](/docs/quickstart?api-mode=chat)\n- [Text inputs and outputs](/docs/guides/text?api-mode=chat)\n- [Image inputs](/docs/guides/images?api-mode=chat)\n- [Audio inputs and outputs](/docs/guides/audio?api-mode=chat)\n- [Structured Outputs](/docs/guides/structured-outputs?api-mode=chat)\n- [Function calling](/docs/guides/function-calling?api-mode=chat)\n- [Conversation state](/docs/guides/conversation-state?api-mode=chat)\n\n**Starting a new project?** We recommend trying [Responses](/docs/api-reference/responses)\nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](/docs/guides/responses-vs-chat-completions?api-mode=responses).\n" + - description: "The Chat Completions API endpoint will generate a model response from a\nlist of messages comprising a conversation.\n\nRelated guides:\n- [Quickstart](https://platform.openai.com/docs/quickstart?api-mode=chat)\n- [Text inputs and outputs](https://platform.openai.com/docs/guides/text?api-mode=chat)\n- [Image inputs](https://platform.openai.com/docs/guides/images?api-mode=chat)\n- [Audio inputs and outputs](https://platform.openai.com/docs/guides/audio?api-mode=chat)\n- [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs?api-mode=chat)\n- [Function calling](https://platform.openai.com/docs/guides/function-calling?api-mode=chat)\n- [Conversation state](https://platform.openai.com/docs/guides/conversation-state?api-mode=chat)\n\n**Starting a new project?** We recommend trying [Responses](https://platform.openai.com/docs/api-reference/responses)\nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses).\n" id: chat navigationGroup: chat sections: @@ -27657,7 +28107,7 @@ x-oaiMeta: path: message-list type: object title: Chat Completions - - description: "Stream Chat Completions in real time. Receive chunks of completions\nreturned from the model using server-sent events.\n[Learn more](/docs/guides/streaming-responses?api-mode=chat).\n" + - description: "Stream Chat Completions in real time. Receive chunks of completions\nreturned from the model using server-sent events.\n[Learn more](https://platform.openai.com/docs/guides/streaming-responses?api-mode=chat).\n" id: chat-streaming navigationGroup: chat sections: @@ -27665,7 +28115,7 @@ x-oaiMeta: path: streaming type: object title: Streaming - - description: "Webhooks are HTTP requests sent by OpenAI to a URL you specify when certain\nevents happen during the course of API usage. \n\n[Learn more about webhooks](/docs/guides/webhooks).\n" + - description: "Webhooks are HTTP requests sent by OpenAI to a URL you specify when certain\nevents happen during the course of API usage. \n\n[Learn more about webhooks](https://platform.openai.com/docs/guides/webhooks).\n" id: webhook-events navigationGroup: webhooks sections: @@ -27713,7 +28163,7 @@ x-oaiMeta: type: object title: Webhook Events - beta: true - description: "Communicate with a GPT-4o class model in real time using WebRTC or\nWebSockets. Supports text and audio inputs and ouputs, along with audio\ntranscriptions.\n[Learn more about the Realtime API](/docs/guides/realtime).\n" + description: "Communicate with a GPT-4o class model in real time using WebRTC or\nWebSockets. Supports text and audio inputs and ouputs, along with audio\ntranscriptions.\n[Learn more about the Realtime API](https://platform.openai.com/docs/guides/realtime).\n" id: realtime navigationGroup: realtime title: Realtime @@ -27882,7 +28332,7 @@ x-oaiMeta: path: type: object title: Server events - - description: "Learn how to turn audio into text or text into audio.\n\nRelated guide: [Speech to text](/docs/guides/speech-to-text)\n" + - description: "Learn how to turn audio into text or text into audio.\n\nRelated guide: [Speech to text](https://platform.openai.com/docs/guides/speech-to-text)\n" id: audio navigationGroup: endpoints sections: @@ -27914,7 +28364,7 @@ x-oaiMeta: path: transcript-text-done-event type: object title: Audio - - description: "Given a prompt and/or an input image, the model will generate a new image.\nRelated guide: [Image generation](/docs/guides/images)\n" + - description: "Given a prompt and/or an input image, the model will generate a new image.\nRelated guide: [Image generation](https://platform.openai.com/docs/guides/images)\n" id: images navigationGroup: endpoints sections: @@ -27931,7 +28381,7 @@ x-oaiMeta: path: object type: object title: Images - - description: "Stream image generation and editing in real time with server-sent events.\n[Learn more about image streaming](/docs/guides/image-generation).\n" + - description: "Stream image generation and editing in real time with server-sent events.\n[Learn more about image streaming](https://platform.openai.com/docs/guides/image-generation).\n" id: images-streaming navigationGroup: endpoints sections: @@ -27948,7 +28398,7 @@ x-oaiMeta: path: type: object title: Image Streaming - - description: "Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.\nRelated guide: [Embeddings](/docs/guides/embeddings)\n" + - description: "Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.\nRelated guide: [Embeddings](https://platform.openai.com/docs/guides/embeddings)\n" id: embeddings navigationGroup: endpoints sections: @@ -27959,7 +28409,7 @@ x-oaiMeta: path: object type: object title: Embeddings - - description: "Create, manage, and run evals in the OpenAI platform.\nRelated guide: [Evals](/docs/guides/evals)\n" + - description: "Create, manage, and run evals in the OpenAI platform.\nRelated guide: [Evals](https://platform.openai.com/docs/guides/evals)\n" id: evals navigationGroup: endpoints sections: @@ -28009,7 +28459,7 @@ x-oaiMeta: path: run-output-item-object type: object title: Evals - - description: "Manage fine-tuning jobs to tailor a model to your specific training data.\nRelated guide: [Fine-tune models](/docs/guides/fine-tuning)\n" + - description: "Manage fine-tuning jobs to tailor a model to your specific training data.\nRelated guide: [Fine-tune models](https://platform.openai.com/docs/guides/fine-tuning)\n" id: fine-tuning navigationGroup: endpoints sections: @@ -28068,7 +28518,7 @@ x-oaiMeta: path: permission-object type: object title: Fine-tuning - - description: "Manage and run graders in the OpenAI platform.\nRelated guide: [Graders](/docs/guides/graders)\n" + - description: "Manage and run graders in the OpenAI platform.\nRelated guide: [Graders](https://platform.openai.com/docs/guides/graders)\n" id: graders navigationGroup: endpoints sections: @@ -28098,7 +28548,7 @@ x-oaiMeta: path: validate type: endpoint title: Graders - - description: "Create large batches of API requests for asynchronous processing. The Batch API returns completions within 24 hours for a 50% discount.\nRelated guide: [Batch](/docs/guides/batch)\n" + - description: "Create large batches of API requests for asynchronous processing. The Batch API returns completions within 24 hours for a 50% discount.\nRelated guide: [Batch](https://platform.openai.com/docs/guides/batch)\n" id: batch navigationGroup: endpoints sections: @@ -28124,7 +28574,7 @@ x-oaiMeta: path: request-output type: object title: Batch - - description: "Files are used to upload documents that can be used with features like [Assistants](/docs/api-reference/assistants), [Fine-tuning](/docs/api-reference/fine-tuning), and [Batch API](/docs/guides/batch).\n" + - description: "Files are used to upload documents that can be used with features like [Assistants](https://platform.openai.com/docs/api-reference/assistants), [Fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning), and [Batch API](https://platform.openai.com/docs/guides/batch).\n" id: files navigationGroup: endpoints sections: @@ -28170,7 +28620,7 @@ x-oaiMeta: path: part-object type: object title: Uploads - - description: "List and describe the various models available in the API. You can refer to the [Models](/docs/models) documentation to understand what models are available and the differences between them.\n" + - description: "List and describe the various models available in the API. You can refer to the [Models](https://platform.openai.com/docs/models) documentation to understand what models are available and the differences between them.\n" id: models navigationGroup: endpoints sections: @@ -28187,7 +28637,7 @@ x-oaiMeta: path: object type: object title: Models - - description: "Given text and/or image inputs, classifies if those inputs are potentially harmful across several categories.\nRelated guide: [Moderations](/docs/guides/moderation)\n" + - description: "Given text and/or image inputs, classifies if those inputs are potentially harmful across several categories.\nRelated guide: [Moderations](https://platform.openai.com/docs/guides/moderation)\n" id: moderations navigationGroup: endpoints sections: @@ -28198,7 +28648,7 @@ x-oaiMeta: path: object type: object title: Moderations - - description: "Vector stores power semantic search for the Retrieval API and the `file_search` tool in the Responses and Assistants APIs.\n\nRelated guide: [File Search](/docs/assistants/tools/file-search)\n" + - description: "Vector stores power semantic search for the Retrieval API and the `file_search` tool in the Responses and Assistants APIs.\n\nRelated guide: [File Search](https://platform.openai.com/docs/assistants/tools/file-search)\n" id: vector-stores navigationGroup: vector_stores sections: @@ -28224,7 +28674,7 @@ x-oaiMeta: path: object type: object title: Vector stores - - description: "Vector store files represent files inside a vector store.\n\nRelated guide: [File Search](/docs/assistants/tools/file-search)\n" + - description: "Vector store files represent files inside a vector store.\n\nRelated guide: [File Search](https://platform.openai.com/docs/assistants/tools/file-search)\n" id: vector-stores-files navigationGroup: vector_stores sections: @@ -28250,7 +28700,7 @@ x-oaiMeta: path: file-object type: object title: Vector store files - - description: "Vector store file batches represent operations to add multiple files to a vector store.\nRelated guide: [File Search](/docs/assistants/tools/file-search)\n" + - description: "Vector store file batches represent operations to add multiple files to a vector store.\nRelated guide: [File Search](https://platform.openai.com/docs/assistants/tools/file-search)\n" id: vector-stores-file-batches navigationGroup: vector_stores sections: @@ -28314,7 +28764,7 @@ x-oaiMeta: type: object title: Container Files - beta: true - description: "Build assistants that can call models and use tools to perform tasks.\n\n[Get started with the Assistants API](/docs/assistants)\n" + description: "Build assistants that can call models and use tools to perform tasks.\n\n[Get started with the Assistants API](https://platform.openai.com/docs/assistants)\n" id: assistants navigationGroup: assistants sections: @@ -28338,7 +28788,7 @@ x-oaiMeta: type: object title: Assistants - beta: true - description: "Create threads that assistants can interact with.\n\nRelated guide: [Assistants](/docs/assistants/overview)\n" + description: "Create threads that assistants can interact with.\n\nRelated guide: [Assistants](https://platform.openai.com/docs/assistants/overview)\n" id: threads navigationGroup: assistants sections: @@ -28359,7 +28809,7 @@ x-oaiMeta: type: object title: Threads - beta: true - description: "Create messages within threads\n\nRelated guide: [Assistants](/docs/assistants/overview)\n" + description: "Create messages within threads\n\nRelated guide: [Assistants](https://platform.openai.com/docs/assistants/overview)\n" id: messages navigationGroup: assistants sections: @@ -28383,7 +28833,7 @@ x-oaiMeta: type: object title: Messages - beta: true - description: "Represents an execution run on a thread.\n\nRelated guide: [Assistants](/docs/assistants/overview)\n" + description: "Represents an execution run on a thread.\n\nRelated guide: [Assistants](https://platform.openai.com/docs/assistants/overview)\n" id: runs navigationGroup: assistants sections: @@ -28413,7 +28863,7 @@ x-oaiMeta: type: object title: Runs - beta: true - description: "Represents the steps (model and tool calls) taken during the run.\n\nRelated guide: [Assistants](/docs/assistants/overview)\n" + description: "Represents the steps (model and tool calls) taken during the run.\n\nRelated guide: [Assistants](https://platform.openai.com/docs/assistants/overview)\n" id: run-steps navigationGroup: assistants sections: @@ -28428,7 +28878,7 @@ x-oaiMeta: type: object title: Run steps - beta: true - description: "Stream the result of executing a Run or resuming a Run after submitting tool outputs.\nYou can stream events from the [Create Thread and Run](/docs/api-reference/runs/createThreadAndRun),\n[Create Run](/docs/api-reference/runs/createRun), and [Submit Tool Outputs](/docs/api-reference/runs/submitToolOutputs)\nendpoints by passing `\"stream\": true`. The response will be a [Server-Sent events](https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events) stream.\nOur Node and Python SDKs provide helpful utilities to make streaming easy. Reference the\n[Assistants API quickstart](/docs/assistants/overview) to learn more.\n" + description: "Stream the result of executing a Run or resuming a Run after submitting tool outputs.\nYou can stream events from the [Create Thread and Run](https://platform.openai.com/docs/api-reference/runs/createThreadAndRun),\n[Create Run](https://platform.openai.com/docs/api-reference/runs/createRun), and [Submit Tool Outputs](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs)\nendpoints by passing `\"stream\": true`. The response will be a [Server-Sent events](https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events) stream.\nOur Node and Python SDKs provide helpful utilities to make streaming easy. Reference the\n[Assistants API quickstart](https://platform.openai.com/docs/assistants/overview) to learn more.\n" id: assistants-streaming navigationGroup: assistants sections: @@ -28442,7 +28892,7 @@ x-oaiMeta: path: events type: object title: Streaming - - description: "Programmatically manage your organization.\nThe Audit Logs endpoint provides a log of all actions taken in the organization for security and monitoring purposes.\nTo access these endpoints please generate an Admin API Key through the [API Platform Organization overview](/organization/admin-keys). Admin API keys cannot be used for non-administration endpoints.\nFor best practices on setting up your organization, please refer to this [guide](/docs/guides/production-best-practices#setting-up-your-organization)\n" + - description: "Programmatically manage your organization.\nThe Audit Logs endpoint provides a log of all actions taken in the organization for security and monitoring purposes.\nTo access these endpoints please generate an Admin API Key through the [API Platform Organization overview](/organization/admin-keys). Admin API keys cannot be used for non-administration endpoints.\nFor best practices on setting up your organization, please refer to this [guide](https://platform.openai.com/docs/guides/production-best-practices#setting-up-your-organization)\n" id: administration navigationGroup: administration title: Administration @@ -28614,7 +29064,7 @@ x-oaiMeta: path: object type: object title: Audit logs - - description: "The **Usage API** provides detailed insights into your activity across the OpenAI API. It also includes a separate [Costs endpoint](/docs/api-reference/usage/costs), which offers visibility into your spend, breaking down consumption by invoice line items and project IDs.\n\nWhile the Usage API delivers granular usage data, it may not always reconcile perfectly with the Costs due to minor differences in how usage and spend are recorded. For financial purposes, we recommend using the [Costs endpoint](/docs/api-reference/usage/costs) or the [Costs tab](/settings/organization/usage) in the Usage Dashboard, which will reconcile back to your billing invoice.\n" + - description: "The **Usage API** provides detailed insights into your activity across the OpenAI API. It also includes a separate [Costs endpoint](https://platform.openai.com/docs/api-reference/usage/costs), which offers visibility into your spend, breaking down consumption by invoice line items and project IDs.\n\nWhile the Usage API delivers granular usage data, it may not always reconcile perfectly with the Costs due to minor differences in how usage and spend are recorded. For financial purposes, we recommend using the [Costs endpoint](https://platform.openai.com/docs/api-reference/usage/costs) or the [Costs tab](/settings/organization/usage) in the Usage Dashboard, which will reconcile back to your billing invoice.\n" id: usage navigationGroup: administration sections: @@ -28712,7 +29162,7 @@ x-oaiMeta: path: object type: object title: Certificates - - description: "Given a prompt, the model will return one or more predicted completions along with the probabilities of alternative tokens at each position. Most developer should use our [Chat Completions API](/docs/guides/text-generation#text-generation-models) to leverage our best and newest models.\n" + - description: "Given a prompt, the model will return one or more predicted completions along with the probabilities of alternative tokens at each position. Most developer should use our [Chat Completions API](https://platform.openai.com/docs/guides/text-generation#text-generation-models) to leverage our best and newest models.\n" id: completions legacy: true navigationGroup: legacy