diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0Type.g.cs deleted file mode 100644 index a24ba652..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ApplyPatchCallItemOperationOneOf0TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type 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::OpenRouter.ApplyPatchCallItemOperationOneOf0TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ApplyPatchCallItemOperationOneOf0TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeNullable.g.cs deleted file mode 100644 index 90f74e8e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ApplyPatchCallItemOperationOneOf0TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type? 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::OpenRouter.ApplyPatchCallItemOperationOneOf0TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type? 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::OpenRouter.ApplyPatchCallItemOperationOneOf0TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1Type.g.cs deleted file mode 100644 index 5d9d7fbc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ApplyPatchCallItemOperationOneOf1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type 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::OpenRouter.ApplyPatchCallItemOperationOneOf1TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ApplyPatchCallItemOperationOneOf1TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeNullable.g.cs deleted file mode 100644 index 3605e3f1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ApplyPatchCallItemOperationOneOf1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type? 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::OpenRouter.ApplyPatchCallItemOperationOneOf1TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type? 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::OpenRouter.ApplyPatchCallItemOperationOneOf1TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2Type.g.cs deleted file mode 100644 index 8f59110e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ApplyPatchCallItemOperationOneOf2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type 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::OpenRouter.ApplyPatchCallItemOperationOneOf2TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ApplyPatchCallItemOperationOneOf2TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeNullable.g.cs deleted file mode 100644 index ee790f67..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ApplyPatchCallItemOperationOneOf2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type? 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::OpenRouter.ApplyPatchCallItemOperationOneOf2TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type? 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::OpenRouter.ApplyPatchCallItemOperationOneOf2TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus.g.cs deleted file mode 100644 index 99929a06..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus.g.cs +++ /dev/null @@ -1,162 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace OpenRouter.JsonConverters -{ - /// - public class ApplyPatchCallItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ApplyPatchCallItemStatus 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."); - - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - } - } - - var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemStatus0), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemStatus1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - - global::OpenRouter.ApplyPatchCallItemStatus0? applyPatchCallItemStatus0 = default; - global::OpenRouter.ApplyPatchCallItemStatus1? applyPatchCallItemStatus1 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemStatus0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemStatus0).Name}"); - applyPatchCallItemStatus0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 1) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemStatus1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemStatus1).Name}"); - applyPatchCallItemStatus1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (applyPatchCallItemStatus0 == null && applyPatchCallItemStatus1 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemStatus0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemStatus0).Name}"); - applyPatchCallItemStatus0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (applyPatchCallItemStatus0 == null && applyPatchCallItemStatus1 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemStatus1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemStatus1).Name}"); - applyPatchCallItemStatus1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::OpenRouter.ApplyPatchCallItemStatus( - applyPatchCallItemStatus0, - - applyPatchCallItemStatus1 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemStatus 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.IsApplyPatchCallItemStatus0) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemStatus0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemStatus0).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallItemStatus0!.Value, typeInfo); - } - else if (value.IsApplyPatchCallItemStatus1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemStatus1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemStatus1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallItemStatus1!.Value, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperation.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperation.g.cs similarity index 64% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperation.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperation.g.cs index b9e8260e..6f62cb5f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemOperation.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperation.g.cs @@ -4,10 +4,10 @@ namespace OpenRouter.JsonConverters { /// - public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class ApplyPatchCallOperationJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ApplyPatchCallItemOperation Read( + public override global::OpenRouter.ApplyPatchCallOperation Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -32,10 +32,10 @@ public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json if (__jsonProps.Contains("path")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; + if (__jsonProps.Contains("diff")) __score1++; if (__jsonProps.Contains("path")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; - if (__jsonProps.Contains("diff")) __score2++; if (__jsonProps.Contains("path")) __score2++; if (__jsonProps.Contains("type")) __score2++; var __bestScore = 0; @@ -44,18 +44,18 @@ public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::OpenRouter.ApplyPatchCallItemOperation0? applyPatchCallItemOperation0 = default; - global::OpenRouter.ApplyPatchCallItemOperation1? applyPatchCallItemOperation1 = default; - global::OpenRouter.ApplyPatchCallItemOperation2? applyPatchCallItemOperation2 = default; + global::OpenRouter.ApplyPatchCallOperation0? applyPatchCallOperation0 = default; + global::OpenRouter.ApplyPatchCallOperation1? applyPatchCallOperation1 = default; + global::OpenRouter.ApplyPatchCallOperation2? applyPatchCallOperation2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemOperation0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemOperation0).Name}"); - applyPatchCallItemOperation0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOperation0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOperation0).Name}"); + applyPatchCallOperation0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -68,9 +68,9 @@ public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemOperation1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemOperation1).Name}"); - applyPatchCallItemOperation1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOperation1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOperation1).Name}"); + applyPatchCallOperation1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,9 +83,9 @@ public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemOperation2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemOperation2).Name}"); - applyPatchCallItemOperation2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOperation2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOperation2).Name}"); + applyPatchCallOperation2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -96,14 +96,14 @@ public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json } } - if (applyPatchCallItemOperation0 == null && applyPatchCallItemOperation1 == null && applyPatchCallItemOperation2 == null) + if (applyPatchCallOperation0 == null && applyPatchCallOperation1 == null && applyPatchCallOperation2 == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemOperation0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemOperation0).Name}"); - applyPatchCallItemOperation0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOperation0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOperation0).Name}"); + applyPatchCallOperation0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -113,14 +113,14 @@ public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json } } - if (applyPatchCallItemOperation0 == null && applyPatchCallItemOperation1 == null && applyPatchCallItemOperation2 == null) + if (applyPatchCallOperation0 == null && applyPatchCallOperation1 == null && applyPatchCallOperation2 == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemOperation1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemOperation1).Name}"); - applyPatchCallItemOperation1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOperation1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOperation1).Name}"); + applyPatchCallOperation1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -130,14 +130,14 @@ public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json } } - if (applyPatchCallItemOperation0 == null && applyPatchCallItemOperation1 == null && applyPatchCallItemOperation2 == null) + if (applyPatchCallOperation0 == null && applyPatchCallOperation1 == null && applyPatchCallOperation2 == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemOperation2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemOperation2).Name}"); - applyPatchCallItemOperation2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOperation2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOperation2).Name}"); + applyPatchCallOperation2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -147,12 +147,12 @@ public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json } } - var __value = new global::OpenRouter.ApplyPatchCallItemOperation( - applyPatchCallItemOperation0, + var __value = new global::OpenRouter.ApplyPatchCallOperation( + applyPatchCallOperation0, - applyPatchCallItemOperation1, + applyPatchCallOperation1, - applyPatchCallItemOperation2 + applyPatchCallOperation2 ); return __value; @@ -161,29 +161,29 @@ public class ApplyPatchCallItemOperationJsonConverter : global::System.Text.Json /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemOperation value, + global::OpenRouter.ApplyPatchCallOperation 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.IsApplyPatchCallItemOperation0) + if (value.IsApplyPatchCallOperation0) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemOperation0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemOperation0).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallItemOperation0!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOperation0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOperation0).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOperation0!, typeInfo); } - else if (value.IsApplyPatchCallItemOperation1) + else if (value.IsApplyPatchCallOperation1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemOperation1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemOperation1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallItemOperation1!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOperation1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOperation1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOperation1!, typeInfo); } - else if (value.IsApplyPatchCallItemOperation2) + else if (value.IsApplyPatchCallOperation2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItemOperation2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItemOperation2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallItemOperation2!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOperation2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOperation2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOperation2!, typeInfo); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0Type.g.cs similarity index 73% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0Type.g.cs index ada57a17..1210c795 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ApplyPatchCallOutputItemStatus0JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ApplyPatchCallOperationOneOf0TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ApplyPatchCallOutputItemStatus0 Read( + public override global::OpenRouter.ApplyPatchCallOperationOneOf0Type 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 ApplyPatchCallOutputItemStatus0JsonConverter : global::Syste var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ApplyPatchCallOutputItemStatus0Extensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ApplyPatchCallOperationOneOf0TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ApplyPatchCallOutputItemStatus0JsonConverter : global::Syste case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallOutputItemStatus0)numValue; + return (global::OpenRouter.ApplyPatchCallOperationOneOf0Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ApplyPatchCallOutputItemStatus0); + return default(global::OpenRouter.ApplyPatchCallOperationOneOf0Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ApplyPatchCallOutputItemStatus0JsonConverter : global::Syste /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallOutputItemStatus0 value, + global::OpenRouter.ApplyPatchCallOperationOneOf0Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ApplyPatchCallOutputItemStatus0Extensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ApplyPatchCallOperationOneOf0TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeNullable.g.cs similarity index 74% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1Nullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeNullable.g.cs index b457f0a1..b3aaa991 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1Nullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ApplyPatchCallOutputItemStatus1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ApplyPatchCallOperationOneOf0TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ApplyPatchCallOutputItemStatus1? Read( + public override global::OpenRouter.ApplyPatchCallOperationOneOf0Type? 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 ApplyPatchCallOutputItemStatus1NullableJsonConverter : globa var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ApplyPatchCallOutputItemStatus1Extensions.ToEnum(stringValue); + return global::OpenRouter.ApplyPatchCallOperationOneOf0TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ApplyPatchCallOutputItemStatus1NullableJsonConverter : globa case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallOutputItemStatus1)numValue; + return (global::OpenRouter.ApplyPatchCallOperationOneOf0Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ApplyPatchCallOutputItemStatus1?); + return default(global::OpenRouter.ApplyPatchCallOperationOneOf0Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ApplyPatchCallOutputItemStatus1NullableJsonConverter : globa /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallOutputItemStatus1? value, + global::OpenRouter.ApplyPatchCallOperationOneOf0Type? 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::OpenRouter.ApplyPatchCallOutputItemStatus1Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ApplyPatchCallOperationOneOf0TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1Type.g.cs similarity index 73% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus0.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1Type.g.cs index 799b8a82..d231b42d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ApplyPatchCallItemStatus0JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ApplyPatchCallOperationOneOf1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ApplyPatchCallItemStatus0 Read( + public override global::OpenRouter.ApplyPatchCallOperationOneOf1Type 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 ApplyPatchCallItemStatus0JsonConverter : global::System.Text var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ApplyPatchCallItemStatus0Extensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ApplyPatchCallOperationOneOf1TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ApplyPatchCallItemStatus0JsonConverter : global::System.Text case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemStatus0)numValue; + return (global::OpenRouter.ApplyPatchCallOperationOneOf1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ApplyPatchCallItemStatus0); + return default(global::OpenRouter.ApplyPatchCallOperationOneOf1Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ApplyPatchCallItemStatus0JsonConverter : global::System.Text /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemStatus0 value, + global::OpenRouter.ApplyPatchCallOperationOneOf1Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ApplyPatchCallItemStatus0Extensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ApplyPatchCallOperationOneOf1TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus0Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeNullable.g.cs similarity index 74% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus0Nullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeNullable.g.cs index 037e63c1..e769589d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus0Nullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ApplyPatchCallItemStatus0NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ApplyPatchCallOperationOneOf1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ApplyPatchCallItemStatus0? Read( + public override global::OpenRouter.ApplyPatchCallOperationOneOf1Type? 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 ApplyPatchCallItemStatus0NullableJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ApplyPatchCallItemStatus0Extensions.ToEnum(stringValue); + return global::OpenRouter.ApplyPatchCallOperationOneOf1TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ApplyPatchCallItemStatus0NullableJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemStatus0)numValue; + return (global::OpenRouter.ApplyPatchCallOperationOneOf1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ApplyPatchCallItemStatus0?); + return default(global::OpenRouter.ApplyPatchCallOperationOneOf1Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ApplyPatchCallItemStatus0NullableJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemStatus0? value, + global::OpenRouter.ApplyPatchCallOperationOneOf1Type? 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::OpenRouter.ApplyPatchCallItemStatus0Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ApplyPatchCallOperationOneOf1TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2Type.g.cs similarity index 73% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2Type.g.cs index eaffe19a..faab061a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ApplyPatchCallOutputItemStatus1JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ApplyPatchCallOperationOneOf2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ApplyPatchCallOutputItemStatus1 Read( + public override global::OpenRouter.ApplyPatchCallOperationOneOf2Type 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 ApplyPatchCallOutputItemStatus1JsonConverter : global::Syste var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ApplyPatchCallOutputItemStatus1Extensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ApplyPatchCallOperationOneOf2TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ApplyPatchCallOutputItemStatus1JsonConverter : global::Syste case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallOutputItemStatus1)numValue; + return (global::OpenRouter.ApplyPatchCallOperationOneOf2Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ApplyPatchCallOutputItemStatus1); + return default(global::OpenRouter.ApplyPatchCallOperationOneOf2Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ApplyPatchCallOutputItemStatus1JsonConverter : global::Syste /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallOutputItemStatus1 value, + global::OpenRouter.ApplyPatchCallOperationOneOf2Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ApplyPatchCallOutputItemStatus1Extensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ApplyPatchCallOperationOneOf2TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeNullable.g.cs new file mode 100644 index 00000000..ea8e88ac --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ApplyPatchCallOperationOneOf2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ApplyPatchCallOperationOneOf2Type? 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::OpenRouter.ApplyPatchCallOperationOneOf2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ApplyPatchCallOperationOneOf2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ApplyPatchCallOperationOneOf2Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ApplyPatchCallOperationOneOf2Type? 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::OpenRouter.ApplyPatchCallOperationOneOf2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus.g.cs index 02801d6b..f893463c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus.g.cs @@ -1,10 +1,9 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete namespace OpenRouter.JsonConverters { /// - public class ApplyPatchCallOutputItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ApplyPatchCallOutputItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// public override global::OpenRouter.ApplyPatchCallOutputItemStatus Read( @@ -12,128 +11,32 @@ public class ApplyPatchCallOutputItemStatusJsonConverter : global::System.Text.J 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."); - - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - } - } - - var __score0 = 0; + switch (reader.TokenType) { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus0), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + case global::System.Text.Json.JsonTokenType.String: { - foreach (var __prop in __ti.Properties) + var stringValue = reader.GetString(); + if (stringValue != null) { - if (__jsonProps.Contains(__prop.Name)) __score0++; + return global::OpenRouter.ApplyPatchCallOutputItemStatusExtensions.ToEnum(stringValue) ?? default; } + + break; } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + case global::System.Text.Json.JsonTokenType.Number: { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } + var numValue = reader.GetInt32(); + return (global::OpenRouter.ApplyPatchCallOutputItemStatus)numValue; } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - - global::OpenRouter.ApplyPatchCallOutputItemStatus0? applyPatchCallOutputItemStatus0 = default; - global::OpenRouter.ApplyPatchCallOutputItemStatus1? applyPatchCallOutputItemStatus1 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus0).Name}"); - applyPatchCallOutputItemStatus0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 1) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus1).Name}"); - applyPatchCallOutputItemStatus1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (applyPatchCallOutputItemStatus0 == null && applyPatchCallOutputItemStatus1 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus0).Name}"); - applyPatchCallOutputItemStatus0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (applyPatchCallOutputItemStatus0 == null && applyPatchCallOutputItemStatus1 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus1).Name}"); - applyPatchCallOutputItemStatus1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) + case global::System.Text.Json.JsonTokenType.Null: { + return default(global::OpenRouter.ApplyPatchCallOutputItemStatus); } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); } - var __value = new global::OpenRouter.ApplyPatchCallOutputItemStatus( - applyPatchCallOutputItemStatus0, - - applyPatchCallOutputItemStatus1 - ); - - return __value; + return default; } /// @@ -142,21 +45,9 @@ public override void Write( global::OpenRouter.ApplyPatchCallOutputItemStatus 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."); + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - if (value.IsApplyPatchCallOutputItemStatus0) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus0).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutputItemStatus0!.Value, typeInfo); - } - else if (value.IsApplyPatchCallOutputItemStatus1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutputItemStatus1!.Value, typeInfo); - } + writer.WriteStringValue(global::OpenRouter.ApplyPatchCallOutputItemStatusExtensions.ToValueString(value)); } } -} \ No newline at end of file +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusNullable.g.cs similarity index 80% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0Nullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusNullable.g.cs index f816ba51..85596661 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0Nullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ApplyPatchCallOutputItemStatus0NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ApplyPatchCallOutputItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ApplyPatchCallOutputItemStatus0? Read( + public override global::OpenRouter.ApplyPatchCallOutputItemStatus? 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 ApplyPatchCallOutputItemStatus0NullableJsonConverter : globa var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ApplyPatchCallOutputItemStatus0Extensions.ToEnum(stringValue); + return global::OpenRouter.ApplyPatchCallOutputItemStatusExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ApplyPatchCallOutputItemStatus0NullableJsonConverter : globa case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallOutputItemStatus0)numValue; + return (global::OpenRouter.ApplyPatchCallOutputItemStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ApplyPatchCallOutputItemStatus0?); + return default(global::OpenRouter.ApplyPatchCallOutputItemStatus?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ApplyPatchCallOutputItemStatus0NullableJsonConverter : globa /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallOutputItemStatus0? value, + global::OpenRouter.ApplyPatchCallOutputItemStatus? 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::OpenRouter.ApplyPatchCallOutputItemStatus0Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ApplyPatchCallOutputItemStatusExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallStatus.g.cs similarity index 75% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus1.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallStatus.g.cs index 8e4b0b65..4ea77c60 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallStatus.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ApplyPatchCallItemStatus1JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ApplyPatchCallStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ApplyPatchCallItemStatus1 Read( + public override global::OpenRouter.ApplyPatchCallStatus 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 ApplyPatchCallItemStatus1JsonConverter : global::System.Text var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ApplyPatchCallItemStatus1Extensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ApplyPatchCallStatusExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ApplyPatchCallItemStatus1JsonConverter : global::System.Text case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemStatus1)numValue; + return (global::OpenRouter.ApplyPatchCallStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ApplyPatchCallItemStatus1); + return default(global::OpenRouter.ApplyPatchCallStatus); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ApplyPatchCallItemStatus1JsonConverter : global::System.Text /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemStatus1 value, + global::OpenRouter.ApplyPatchCallStatus value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ApplyPatchCallItemStatus1Extensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ApplyPatchCallStatusExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus1Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallStatusNullable.g.cs similarity index 76% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus1Nullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallStatusNullable.g.cs index 689e7fad..a8b76141 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallItemStatus1Nullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchCallStatusNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ApplyPatchCallItemStatus1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ApplyPatchCallStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ApplyPatchCallItemStatus1? Read( + public override global::OpenRouter.ApplyPatchCallStatus? 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 ApplyPatchCallItemStatus1NullableJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ApplyPatchCallItemStatus1Extensions.ToEnum(stringValue); + return global::OpenRouter.ApplyPatchCallStatusExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ApplyPatchCallItemStatus1NullableJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ApplyPatchCallItemStatus1)numValue; + return (global::OpenRouter.ApplyPatchCallStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ApplyPatchCallItemStatus1?); + return default(global::OpenRouter.ApplyPatchCallStatus?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ApplyPatchCallItemStatus1NullableJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ApplyPatchCallItemStatus1? value, + global::OpenRouter.ApplyPatchCallStatus? 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::OpenRouter.ApplyPatchCallItemStatus1Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ApplyPatchCallStatusExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterType.g.cs new file mode 100644 index 00000000..323c041f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ApplyPatchServerToolOpenRouterTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ApplyPatchServerToolOpenRouterType 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::OpenRouter.ApplyPatchServerToolOpenRouterTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ApplyPatchServerToolOpenRouterType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ApplyPatchServerToolOpenRouterType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ApplyPatchServerToolOpenRouterType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ApplyPatchServerToolOpenRouterTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullable.g.cs new file mode 100644 index 00000000..a610fa1e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ApplyPatchServerToolOpenRouterTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ApplyPatchServerToolOpenRouterType? 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::OpenRouter.ApplyPatchServerToolOpenRouterTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ApplyPatchServerToolOpenRouterType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ApplyPatchServerToolOpenRouterType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ApplyPatchServerToolOpenRouterType? 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::OpenRouter.ApplyPatchServerToolOpenRouterTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1Items.g.cs index 6dfde8e1..803cc2d5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1Items.g.cs @@ -75,6 +75,18 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria if (__jsonProps.Contains("id")) __score7++; if (__jsonProps.Contains("output")) __score7++; if (__jsonProps.Contains("type")) __score7++; + var __score8 = 0; + if (__jsonProps.Contains("call_id")) __score8++; + if (__jsonProps.Contains("id")) __score8++; + if (__jsonProps.Contains("operation")) __score8++; + if (__jsonProps.Contains("status")) __score8++; + if (__jsonProps.Contains("type")) __score8++; + var __score9 = 0; + if (__jsonProps.Contains("call_id")) __score9++; + if (__jsonProps.Contains("id")) __score9++; + if (__jsonProps.Contains("output")) __score9++; + if (__jsonProps.Contains("status")) __score9++; + if (__jsonProps.Contains("type")) __score9++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -85,6 +97,8 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } + if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } global::OpenRouter.BaseInputsOneOf1Items0? baseInputsOneOf1Items0 = default; global::OpenRouter.OpenAIResponseInputMessageItem? openAIResponseInputMessageItem = default; @@ -94,6 +108,8 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria global::OpenRouter.OutputMessage? outputMessage = default; global::OpenRouter.OpenAIResponseCustomToolCall? openAIResponseCustomToolCall = default; global::OpenRouter.OpenAIResponseCustomToolCallOutput? openAIResponseCustomToolCallOutput = default; + global::OpenRouter.ApplyPatchCallItem? applyPatchCallItem = default; + global::OpenRouter.ApplyPatchCallOutputItem? applyPatchCallOutputItem = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -216,9 +232,39 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria { } } + else if (__bestIndex == 8) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItem).Name}"); + applyPatchCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 9) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItem).Name}"); + applyPatchCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } } - if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null) + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) { try { @@ -235,7 +281,7 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria } } - if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null) + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) { try { @@ -252,7 +298,7 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria } } - if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null) + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) { try { @@ -269,7 +315,7 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria } } - if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null) + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) { try { @@ -286,7 +332,7 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria } } - if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null) + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) { try { @@ -303,7 +349,7 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria } } - if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null) + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) { try { @@ -320,7 +366,7 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria } } - if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null) + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) { try { @@ -337,7 +383,7 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria } } - if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null) + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) { try { @@ -354,6 +400,40 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria } } + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItem).Name}"); + applyPatchCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (baseInputsOneOf1Items0 == null && openAIResponseInputMessageItem == null && openAIResponseFunctionToolCallOutput == null && openAIResponseFunctionToolCall == null && outputItemImageGenerationCall == null && outputMessage == null && openAIResponseCustomToolCall == null && openAIResponseCustomToolCallOutput == null && applyPatchCallItem == null && applyPatchCallOutputItem == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItem).Name}"); + applyPatchCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + var __value = new global::OpenRouter.BaseInputsOneOf1Items( baseInputsOneOf1Items0, @@ -369,7 +449,11 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria openAIResponseCustomToolCall, - openAIResponseCustomToolCallOutput + openAIResponseCustomToolCallOutput, + + applyPatchCallItem, + + applyPatchCallOutputItem ); return __value; @@ -432,6 +516,18 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OpenAIResponseCustomToolCallOutput).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenAIResponseCustomToolCallOutput!, typeInfo); } + else if (value.IsApplyPatchCallItem) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallItem!, typeInfo); + } + else if (value.IsApplyPatchCallOutputItem) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutputItem!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs index 9a6e7c19..ad507819 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs @@ -68,185 +68,185 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa if (__jsonProps.Contains("status")) __score4++; if (__jsonProps.Contains("type")) __score4++; var __score5 = 0; - if (__jsonProps.Contains("content")) __score5++; + if (__jsonProps.Contains("call_id")) __score5++; + if (__jsonProps.Contains("id")) __score5++; + if (__jsonProps.Contains("operation")) __score5++; + if (__jsonProps.Contains("status")) __score5++; + if (__jsonProps.Contains("type")) __score5++; var __score6 = 0; - if (__jsonProps.Contains("content")) __score6++; - if (__jsonProps.Contains("format")) __score6++; - if (__jsonProps.Contains("signature")) __score6++; - if (__jsonProps.Contains("summary")) __score6++; + if (__jsonProps.Contains("call_id")) __score6++; + if (__jsonProps.Contains("id")) __score6++; + if (__jsonProps.Contains("output")) __score6++; + if (__jsonProps.Contains("status")) __score6++; + if (__jsonProps.Contains("type")) __score6++; var __score7 = 0; - if (__jsonProps.Contains("arguments")) __score7++; - if (__jsonProps.Contains("call_id")) __score7++; - if (__jsonProps.Contains("id")) __score7++; - if (__jsonProps.Contains("name")) __score7++; - if (__jsonProps.Contains("namespace")) __score7++; - if (__jsonProps.Contains("status")) __score7++; - if (__jsonProps.Contains("type")) __score7++; + if (__jsonProps.Contains("content")) __score7++; var __score8 = 0; - if (__jsonProps.Contains("call_id")) __score8++; - if (__jsonProps.Contains("id")) __score8++; - if (__jsonProps.Contains("input")) __score8++; - if (__jsonProps.Contains("name")) __score8++; - if (__jsonProps.Contains("namespace")) __score8++; + if (__jsonProps.Contains("content")) __score8++; + if (__jsonProps.Contains("format")) __score8++; + if (__jsonProps.Contains("signature")) __score8++; + if (__jsonProps.Contains("summary")) __score8++; var __score9 = 0; - if (__jsonProps.Contains("action")) __score9++; + if (__jsonProps.Contains("arguments")) __score9++; + if (__jsonProps.Contains("call_id")) __score9++; if (__jsonProps.Contains("id")) __score9++; + if (__jsonProps.Contains("name")) __score9++; + if (__jsonProps.Contains("namespace")) __score9++; if (__jsonProps.Contains("status")) __score9++; if (__jsonProps.Contains("type")) __score9++; var __score10 = 0; + if (__jsonProps.Contains("call_id")) __score10++; if (__jsonProps.Contains("id")) __score10++; - if (__jsonProps.Contains("queries")) __score10++; - if (__jsonProps.Contains("status")) __score10++; - if (__jsonProps.Contains("type")) __score10++; + if (__jsonProps.Contains("input")) __score10++; + if (__jsonProps.Contains("name")) __score10++; + if (__jsonProps.Contains("namespace")) __score10++; var __score11 = 0; + if (__jsonProps.Contains("action")) __score11++; if (__jsonProps.Contains("id")) __score11++; - if (__jsonProps.Contains("result")) __score11++; if (__jsonProps.Contains("status")) __score11++; if (__jsonProps.Contains("type")) __score11++; var __score12 = 0; - if (__jsonProps.Contains("code")) __score12++; - if (__jsonProps.Contains("container_id")) __score12++; if (__jsonProps.Contains("id")) __score12++; - if (__jsonProps.Contains("outputs")) __score12++; + if (__jsonProps.Contains("queries")) __score12++; if (__jsonProps.Contains("status")) __score12++; if (__jsonProps.Contains("type")) __score12++; var __score13 = 0; - if (__jsonProps.Contains("action")) __score13++; - if (__jsonProps.Contains("call_id")) __score13++; if (__jsonProps.Contains("id")) __score13++; - if (__jsonProps.Contains("pending_safety_checks")) __score13++; + if (__jsonProps.Contains("result")) __score13++; if (__jsonProps.Contains("status")) __score13++; + if (__jsonProps.Contains("type")) __score13++; var __score14 = 0; - if (__jsonProps.Contains("datetime")) __score14++; + if (__jsonProps.Contains("code")) __score14++; + if (__jsonProps.Contains("container_id")) __score14++; if (__jsonProps.Contains("id")) __score14++; + if (__jsonProps.Contains("outputs")) __score14++; if (__jsonProps.Contains("status")) __score14++; - if (__jsonProps.Contains("timezone")) __score14++; + if (__jsonProps.Contains("type")) __score14++; var __score15 = 0; if (__jsonProps.Contains("action")) __score15++; - if (__jsonProps.Contains("action.query")) __score15++; - if (__jsonProps.Contains("action.sources")) __score15++; - if (__jsonProps.Contains("action.type")) __score15++; + if (__jsonProps.Contains("call_id")) __score15++; if (__jsonProps.Contains("id")) __score15++; + if (__jsonProps.Contains("pending_safety_checks")) __score15++; if (__jsonProps.Contains("status")) __score15++; - if (__jsonProps.Contains("type")) __score15++; var __score16 = 0; - if (__jsonProps.Contains("code")) __score16++; - if (__jsonProps.Contains("exitCode")) __score16++; + if (__jsonProps.Contains("datetime")) __score16++; if (__jsonProps.Contains("id")) __score16++; - if (__jsonProps.Contains("language")) __score16++; if (__jsonProps.Contains("status")) __score16++; - if (__jsonProps.Contains("stderr")) __score16++; - if (__jsonProps.Contains("stdout")) __score16++; + if (__jsonProps.Contains("timezone")) __score16++; var __score17 = 0; + if (__jsonProps.Contains("action")) __score17++; + if (__jsonProps.Contains("action.query")) __score17++; + if (__jsonProps.Contains("action.sources")) __score17++; + if (__jsonProps.Contains("action.type")) __score17++; if (__jsonProps.Contains("id")) __score17++; - if (__jsonProps.Contains("queries")) __score17++; if (__jsonProps.Contains("status")) __score17++; + if (__jsonProps.Contains("type")) __score17++; var __score18 = 0; + if (__jsonProps.Contains("code")) __score18++; + if (__jsonProps.Contains("exitCode")) __score18++; if (__jsonProps.Contains("id")) __score18++; - if (__jsonProps.Contains("imageB64")) __score18++; - if (__jsonProps.Contains("imageUrl")) __score18++; - if (__jsonProps.Contains("result")) __score18++; - if (__jsonProps.Contains("revisedPrompt")) __score18++; + if (__jsonProps.Contains("language")) __score18++; if (__jsonProps.Contains("status")) __score18++; + if (__jsonProps.Contains("stderr")) __score18++; + if (__jsonProps.Contains("stdout")) __score18++; var __score19 = 0; - if (__jsonProps.Contains("action")) __score19++; if (__jsonProps.Contains("id")) __score19++; - if (__jsonProps.Contains("screenshotB64")) __score19++; + if (__jsonProps.Contains("queries")) __score19++; if (__jsonProps.Contains("status")) __score19++; var __score20 = 0; - if (__jsonProps.Contains("command")) __score20++; - if (__jsonProps.Contains("exitCode")) __score20++; if (__jsonProps.Contains("id")) __score20++; + if (__jsonProps.Contains("imageB64")) __score20++; + if (__jsonProps.Contains("imageUrl")) __score20++; + if (__jsonProps.Contains("result")) __score20++; + if (__jsonProps.Contains("revisedPrompt")) __score20++; if (__jsonProps.Contains("status")) __score20++; - if (__jsonProps.Contains("stderr")) __score20++; - if (__jsonProps.Contains("stdout")) __score20++; var __score21 = 0; - if (__jsonProps.Contains("command")) __score21++; - if (__jsonProps.Contains("filePath")) __score21++; + if (__jsonProps.Contains("action")) __score21++; if (__jsonProps.Contains("id")) __score21++; + if (__jsonProps.Contains("screenshotB64")) __score21++; if (__jsonProps.Contains("status")) __score21++; - if (__jsonProps.Contains("type")) __score21++; var __score22 = 0; - if (__jsonProps.Contains("filePath")) __score22++; + if (__jsonProps.Contains("command")) __score22++; + if (__jsonProps.Contains("exitCode")) __score22++; if (__jsonProps.Contains("id")) __score22++; - if (__jsonProps.Contains("patch")) __score22++; if (__jsonProps.Contains("status")) __score22++; + if (__jsonProps.Contains("stderr")) __score22++; + if (__jsonProps.Contains("stdout")) __score22++; var __score23 = 0; - if (__jsonProps.Contains("content")) __score23++; - if (__jsonProps.Contains("error")) __score23++; - if (__jsonProps.Contains("httpStatus")) __score23++; + if (__jsonProps.Contains("command")) __score23++; + if (__jsonProps.Contains("filePath")) __score23++; if (__jsonProps.Contains("id")) __score23++; if (__jsonProps.Contains("status")) __score23++; - if (__jsonProps.Contains("title")) __score23++; if (__jsonProps.Contains("type")) __score23++; - if (__jsonProps.Contains("url")) __score23++; var __score24 = 0; + if (__jsonProps.Contains("call_id")) __score24++; if (__jsonProps.Contains("id")) __score24++; - if (__jsonProps.Contains("query")) __score24++; + if (__jsonProps.Contains("operation")) __score24++; if (__jsonProps.Contains("status")) __score24++; - if (__jsonProps.Contains("type")) __score24++; var __score25 = 0; - if (__jsonProps.Contains("action")) __score25++; + if (__jsonProps.Contains("content")) __score25++; + if (__jsonProps.Contains("error")) __score25++; + if (__jsonProps.Contains("httpStatus")) __score25++; if (__jsonProps.Contains("id")) __score25++; - if (__jsonProps.Contains("key")) __score25++; if (__jsonProps.Contains("status")) __score25++; + if (__jsonProps.Contains("title")) __score25++; if (__jsonProps.Contains("type")) __score25++; - if (__jsonProps.Contains("value")) __score25++; + if (__jsonProps.Contains("url")) __score25++; var __score26 = 0; if (__jsonProps.Contains("id")) __score26++; - if (__jsonProps.Contains("serverLabel")) __score26++; + if (__jsonProps.Contains("query")) __score26++; if (__jsonProps.Contains("status")) __score26++; - if (__jsonProps.Contains("toolName")) __score26++; if (__jsonProps.Contains("type")) __score26++; var __score27 = 0; - if (__jsonProps.Contains("arguments")) __score27++; + if (__jsonProps.Contains("action")) __score27++; if (__jsonProps.Contains("id")) __score27++; - if (__jsonProps.Contains("query")) __score27++; + if (__jsonProps.Contains("key")) __score27++; if (__jsonProps.Contains("status")) __score27++; if (__jsonProps.Contains("type")) __score27++; + if (__jsonProps.Contains("value")) __score27++; var __score28 = 0; - if (__jsonProps.Contains("action")) __score28++; - if (__jsonProps.Contains("action.command")) __score28++; - if (__jsonProps.Contains("action.env")) __score28++; - if (__jsonProps.Contains("action.timeout_ms")) __score28++; - if (__jsonProps.Contains("action.type")) __score28++; - if (__jsonProps.Contains("action.user")) __score28++; - if (__jsonProps.Contains("action.working_directory")) __score28++; - if (__jsonProps.Contains("call_id")) __score28++; if (__jsonProps.Contains("id")) __score28++; + if (__jsonProps.Contains("serverLabel")) __score28++; if (__jsonProps.Contains("status")) __score28++; + if (__jsonProps.Contains("toolName")) __score28++; if (__jsonProps.Contains("type")) __score28++; var __score29 = 0; + if (__jsonProps.Contains("arguments")) __score29++; if (__jsonProps.Contains("id")) __score29++; - if (__jsonProps.Contains("output")) __score29++; + if (__jsonProps.Contains("query")) __score29++; if (__jsonProps.Contains("status")) __score29++; if (__jsonProps.Contains("type")) __score29++; var __score30 = 0; if (__jsonProps.Contains("action")) __score30++; - if (__jsonProps.Contains("action.commands")) __score30++; - if (__jsonProps.Contains("action.max_output_length")) __score30++; + if (__jsonProps.Contains("action.command")) __score30++; + if (__jsonProps.Contains("action.env")) __score30++; if (__jsonProps.Contains("action.timeout_ms")) __score30++; + if (__jsonProps.Contains("action.type")) __score30++; + if (__jsonProps.Contains("action.user")) __score30++; + if (__jsonProps.Contains("action.working_directory")) __score30++; if (__jsonProps.Contains("call_id")) __score30++; - if (__jsonProps.Contains("environment")) __score30++; if (__jsonProps.Contains("id")) __score30++; if (__jsonProps.Contains("status")) __score30++; if (__jsonProps.Contains("type")) __score30++; var __score31 = 0; - if (__jsonProps.Contains("call_id")) __score31++; if (__jsonProps.Contains("id")) __score31++; - if (__jsonProps.Contains("max_output_length")) __score31++; if (__jsonProps.Contains("output")) __score31++; if (__jsonProps.Contains("status")) __score31++; if (__jsonProps.Contains("type")) __score31++; var __score32 = 0; + if (__jsonProps.Contains("action")) __score32++; + if (__jsonProps.Contains("action.commands")) __score32++; + if (__jsonProps.Contains("action.max_output_length")) __score32++; + if (__jsonProps.Contains("action.timeout_ms")) __score32++; if (__jsonProps.Contains("call_id")) __score32++; + if (__jsonProps.Contains("environment")) __score32++; if (__jsonProps.Contains("id")) __score32++; - if (__jsonProps.Contains("operation")) __score32++; if (__jsonProps.Contains("status")) __score32++; if (__jsonProps.Contains("type")) __score32++; var __score33 = 0; if (__jsonProps.Contains("call_id")) __score33++; if (__jsonProps.Contains("id")) __score33++; + if (__jsonProps.Contains("max_output_length")) __score33++; if (__jsonProps.Contains("output")) __score33++; if (__jsonProps.Contains("status")) __score33++; if (__jsonProps.Contains("type")) __score33++; @@ -345,8 +345,10 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa global::OpenRouter.InputMessageItem? inputMessageItem = default; global::OpenRouter.FunctionCallItem? functionCallItem = default; global::OpenRouter.FunctionCallOutputItem? functionCallOutputItem = default; - global::OpenRouter.InputsOneOf1Items5? inputsOneOf1Items5 = default; - global::OpenRouter.InputsOneOf1Items6? inputsOneOf1Items6 = default; + global::OpenRouter.ApplyPatchCallItem? applyPatchCallItem = default; + global::OpenRouter.ApplyPatchCallOutputItem? applyPatchCallOutputItem = default; + global::OpenRouter.InputsOneOf1Items7? inputsOneOf1Items7 = default; + global::OpenRouter.InputsOneOf1Items8? inputsOneOf1Items8 = default; global::OpenRouter.OutputFunctionCallItem? outputFunctionCallItem = default; global::OpenRouter.OutputCustomToolCallItem? outputCustomToolCallItem = default; global::OpenRouter.OutputWebSearchCallItem? outputWebSearchCallItem = default; @@ -372,8 +374,6 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa global::OpenRouter.LocalShellCallOutputItem? localShellCallOutputItem = default; global::OpenRouter.ShellCallItem? shellCallItem = default; global::OpenRouter.ShellCallOutputItem? shellCallOutputItem = default; - global::OpenRouter.ApplyPatchCallItem? applyPatchCallItem = default; - global::OpenRouter.ApplyPatchCallOutputItem? applyPatchCallOutputItem = default; global::OpenRouter.McpListToolsItem? mcpListToolsItem = default; global::OpenRouter.McpApprovalRequestItem? mcpApprovalRequestItem = default; global::OpenRouter.McpApprovalResponseItem? mcpApprovalResponseItem = default; @@ -463,9 +463,9 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items5).Name}"); - inputsOneOf1Items5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItem).Name}"); + applyPatchCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -478,9 +478,9 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items6).Name}"); - inputsOneOf1Items6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItem).Name}"); + applyPatchCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -490,6 +490,36 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } else if (__bestIndex == 7) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items7).Name}"); + inputsOneOf1Items7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 8) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items8).Name}"); + inputsOneOf1Items8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 9) { try { @@ -504,7 +534,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 8) + else if (__bestIndex == 10) { try { @@ -519,7 +549,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 9) + else if (__bestIndex == 11) { try { @@ -534,7 +564,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 10) + else if (__bestIndex == 12) { try { @@ -549,7 +579,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 11) + else if (__bestIndex == 13) { try { @@ -564,7 +594,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 12) + else if (__bestIndex == 14) { try { @@ -579,7 +609,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 13) + else if (__bestIndex == 15) { try { @@ -594,7 +624,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 14) + else if (__bestIndex == 16) { try { @@ -609,7 +639,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 15) + else if (__bestIndex == 17) { try { @@ -624,7 +654,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 16) + else if (__bestIndex == 18) { try { @@ -639,7 +669,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 17) + else if (__bestIndex == 19) { try { @@ -654,7 +684,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 18) + else if (__bestIndex == 20) { try { @@ -669,7 +699,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 19) + else if (__bestIndex == 21) { try { @@ -684,7 +714,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 20) + else if (__bestIndex == 22) { try { @@ -699,7 +729,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 21) + else if (__bestIndex == 23) { try { @@ -714,7 +744,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 22) + else if (__bestIndex == 24) { try { @@ -729,7 +759,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 23) + else if (__bestIndex == 25) { try { @@ -744,7 +774,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 24) + else if (__bestIndex == 26) { try { @@ -759,7 +789,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 25) + else if (__bestIndex == 27) { try { @@ -774,7 +804,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 26) + else if (__bestIndex == 28) { try { @@ -789,7 +819,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 27) + else if (__bestIndex == 29) { try { @@ -804,7 +834,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 28) + else if (__bestIndex == 30) { try { @@ -819,7 +849,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 29) + else if (__bestIndex == 31) { try { @@ -834,7 +864,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 30) + else if (__bestIndex == 32) { try { @@ -849,7 +879,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 31) + else if (__bestIndex == 33) { try { @@ -864,36 +894,6 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 32) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItem).Name}"); - applyPatchCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 33) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItem).Name}"); - applyPatchCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } else if (__bestIndex == 34) { try @@ -1016,7 +1016,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1033,7 +1033,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1050,7 +1050,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1067,7 +1067,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1084,7 +1084,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1101,14 +1101,48 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItem).Name}"); + applyPatchCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItem).Name}"); + applyPatchCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items5).Name}"); - inputsOneOf1Items5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items7).Name}"); + inputsOneOf1Items7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1118,14 +1152,14 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items6).Name}"); - inputsOneOf1Items6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items8).Name}"); + inputsOneOf1Items8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1135,7 +1169,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1152,7 +1186,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1169,7 +1203,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1186,7 +1220,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1203,7 +1237,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1220,7 +1254,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1237,7 +1271,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1254,7 +1288,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1271,7 +1305,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1288,7 +1322,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1305,7 +1339,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1322,7 +1356,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1339,7 +1373,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1356,7 +1390,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1373,7 +1407,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1390,7 +1424,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1407,7 +1441,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1424,7 +1458,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1441,7 +1475,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1458,7 +1492,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1475,7 +1509,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1492,7 +1526,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1509,7 +1543,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1526,7 +1560,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1543,7 +1577,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1560,41 +1594,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItem).Name}"); - applyPatchCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItem).Name}"); - applyPatchCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1611,7 +1611,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1628,7 +1628,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1645,7 +1645,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1662,7 +1662,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1679,7 +1679,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1696,7 +1696,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1713,7 +1713,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && inputsOneOf1Items5 == null && inputsOneOf1Items6 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) { try { @@ -1741,9 +1741,13 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa functionCallOutputItem, - inputsOneOf1Items5, + applyPatchCallItem, + + applyPatchCallOutputItem, - inputsOneOf1Items6, + inputsOneOf1Items7, + + inputsOneOf1Items8, outputFunctionCallItem, @@ -1795,10 +1799,6 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa shellCallOutputItem, - applyPatchCallItem, - - applyPatchCallOutputItem, - mcpListToolsItem, mcpApprovalRequestItem, @@ -1858,17 +1858,29 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FunctionCallOutputItem).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutputItem!, typeInfo); } - else if (value.IsInputsOneOf1Items5) + else if (value.IsApplyPatchCallItem) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallItem!, typeInfo); + } + else if (value.IsApplyPatchCallOutputItem) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutputItem!, typeInfo); + } + else if (value.IsInputsOneOf1Items7) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1Items5!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items7).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1Items7!, typeInfo); } - else if (value.IsInputsOneOf1Items6) + else if (value.IsInputsOneOf1Items8) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1Items6!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputsOneOf1Items8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputsOneOf1Items8).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1Items8!, typeInfo); } else if (value.IsOutputFunctionCallItem) { @@ -2020,18 +2032,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ShellCallOutputItem).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutputItem!, typeInfo); } - else if (value.IsApplyPatchCallItem) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallItem!, typeInfo); - } - else if (value.IsApplyPatchCallOutputItem) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchCallOutputItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchCallOutputItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutputItem!, typeInfo); - } else if (value.IsMcpListToolsItem) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.McpListToolsItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5Content.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7Content.g.cs similarity index 80% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5Content.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7Content.g.cs index f35bcafb..95567796 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5Content.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7Content.g.cs @@ -4,10 +4,10 @@ namespace OpenRouter.JsonConverters { /// - public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class InputsOneOf1ItemsOneOf7ContentJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.InputsOneOf1ItemsOneOf5Content Read( + public override global::OpenRouter.InputsOneOf1ItemsOneOf7Content Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -29,7 +29,7 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J var __score0 = 0; { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) { foreach (var __prop in __ti.Properties) @@ -66,9 +66,9 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::System.Collections.Generic.IList? inputsOneOf1ItemsOneOf5Content0 = default; - string? inputsOneOf1ItemsOneOf5ContentVariant2 = default; - object? inputsOneOf1ItemsOneOf5ContentVariant3 = default; + global::System.Collections.Generic.IList? inputsOneOf1ItemsOneOf7Content0 = default; + string? inputsOneOf1ItemsOneOf7ContentVariant2 = default; + object? inputsOneOf1ItemsOneOf7ContentVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -76,9 +76,9 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - inputsOneOf1ItemsOneOf5Content0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + inputsOneOf1ItemsOneOf7Content0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +95,7 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - inputsOneOf1ItemsOneOf5ContentVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputsOneOf1ItemsOneOf7ContentVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -112,7 +112,7 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - inputsOneOf1ItemsOneOf5ContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputsOneOf1ItemsOneOf7ContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -123,14 +123,14 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J } } - if (inputsOneOf1ItemsOneOf5Content0 == null && inputsOneOf1ItemsOneOf5ContentVariant2 == null && inputsOneOf1ItemsOneOf5ContentVariant3 == null) + if (inputsOneOf1ItemsOneOf7Content0 == null && inputsOneOf1ItemsOneOf7ContentVariant2 == null && inputsOneOf1ItemsOneOf7ContentVariant3 == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - inputsOneOf1ItemsOneOf5Content0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + inputsOneOf1ItemsOneOf7Content0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -140,14 +140,14 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J } } - if (inputsOneOf1ItemsOneOf5Content0 == null && inputsOneOf1ItemsOneOf5ContentVariant2 == null && inputsOneOf1ItemsOneOf5ContentVariant3 == null) + if (inputsOneOf1ItemsOneOf7Content0 == null && inputsOneOf1ItemsOneOf7ContentVariant2 == null && inputsOneOf1ItemsOneOf7ContentVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - inputsOneOf1ItemsOneOf5ContentVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputsOneOf1ItemsOneOf7ContentVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -157,14 +157,14 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J } } - if (inputsOneOf1ItemsOneOf5Content0 == null && inputsOneOf1ItemsOneOf5ContentVariant2 == null && inputsOneOf1ItemsOneOf5ContentVariant3 == null) + if (inputsOneOf1ItemsOneOf7Content0 == null && inputsOneOf1ItemsOneOf7ContentVariant2 == null && inputsOneOf1ItemsOneOf7ContentVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - inputsOneOf1ItemsOneOf5ContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputsOneOf1ItemsOneOf7ContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -174,12 +174,12 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J } } - var __value = new global::OpenRouter.InputsOneOf1ItemsOneOf5Content( - inputsOneOf1ItemsOneOf5Content0, + var __value = new global::OpenRouter.InputsOneOf1ItemsOneOf7Content( + inputsOneOf1ItemsOneOf7Content0, - inputsOneOf1ItemsOneOf5ContentVariant2, + inputsOneOf1ItemsOneOf7ContentVariant2, - inputsOneOf1ItemsOneOf5ContentVariant3 + inputsOneOf1ItemsOneOf7ContentVariant3 ); return __value; @@ -188,29 +188,29 @@ public class InputsOneOf1ItemsOneOf5ContentJsonConverter : global::System.Text.J /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.InputsOneOf1ItemsOneOf5Content value, + global::OpenRouter.InputsOneOf1ItemsOneOf7Content 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.IsInputsOneOf1ItemsOneOf5Content0) + if (value.IsInputsOneOf1ItemsOneOf7Content0) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1ItemsOneOf5Content0!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1ItemsOneOf7Content0!, typeInfo); } - else if (value.IsInputsOneOf1ItemsOneOf5ContentVariant2) + else if (value.IsInputsOneOf1ItemsOneOf7ContentVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1ItemsOneOf5ContentVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1ItemsOneOf7ContentVariant2!, typeInfo); } - else if (value.IsInputsOneOf1ItemsOneOf5ContentVariant3) + else if (value.IsInputsOneOf1ItemsOneOf7ContentVariant3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1ItemsOneOf5ContentVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1ItemsOneOf7ContentVariant3!, typeInfo); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentOneOf0Items.g.cs similarity index 96% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentOneOf0Items.g.cs index 3d7bdcae..2fac78ff 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentOneOf0Items.g.cs @@ -4,10 +4,10 @@ namespace OpenRouter.JsonConverters { /// - public class InputsOneOf1ItemsOneOf5ContentOneOf0ItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class InputsOneOf1ItemsOneOf7ContentOneOf0ItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items Read( + public override global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -110,7 +110,7 @@ public class InputsOneOf1ItemsOneOf5ContentOneOf0ItemsJsonConverter : global::Sy } } - var __value = new global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items( + var __value = new global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items( responseOutputText, openAIResponsesRefusalContent @@ -122,7 +122,7 @@ public class InputsOneOf1ItemsOneOf5ContentOneOf0ItemsJsonConverter : global::Sy /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items value, + global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesToolChoice.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesToolChoice.g.cs index 7e0344f8..14ecd31a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesToolChoice.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesToolChoice.g.cs @@ -39,6 +39,10 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S if (__jsonProps.Contains("mode")) __score5++; if (__jsonProps.Contains("tools")) __score5++; if (__jsonProps.Contains("type")) __score5++; + var __score6 = 0; + if (__jsonProps.Contains("type")) __score6++; + var __score7 = 0; + if (__jsonProps.Contains("type")) __score7++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -47,6 +51,8 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } + if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } global::OpenRouter.OpenAiResponsesToolChoice0? openAiResponsesToolChoice0 = default; global::OpenRouter.OpenAiResponsesToolChoice1? openAiResponsesToolChoice1 = default; @@ -54,6 +60,8 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S global::OpenRouter.OpenAiResponsesToolChoice3? openAiResponsesToolChoice3 = default; global::OpenRouter.OpenAiResponsesToolChoice4? openAiResponsesToolChoice4 = default; global::OpenRouter.ToolChoiceAllowed? toolChoiceAllowed = default; + global::OpenRouter.OpenAiResponsesToolChoice6? openAiResponsesToolChoice6 = default; + global::OpenRouter.OpenAiResponsesToolChoice7? openAiResponsesToolChoice7 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -146,9 +154,39 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S { } } + else if (__bestIndex == 6) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OpenAiResponsesToolChoice6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OpenAiResponsesToolChoice6).Name}"); + openAiResponsesToolChoice6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 7) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OpenAiResponsesToolChoice7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OpenAiResponsesToolChoice7).Name}"); + openAiResponsesToolChoice7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } } - if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null) + if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null && openAiResponsesToolChoice6 == null && openAiResponsesToolChoice7 == null) { try { @@ -165,7 +203,7 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S } } - if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null) + if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null && openAiResponsesToolChoice6 == null && openAiResponsesToolChoice7 == null) { try { @@ -182,7 +220,7 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S } } - if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null) + if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null && openAiResponsesToolChoice6 == null && openAiResponsesToolChoice7 == null) { try { @@ -199,7 +237,7 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S } } - if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null) + if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null && openAiResponsesToolChoice6 == null && openAiResponsesToolChoice7 == null) { try { @@ -216,7 +254,7 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S } } - if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null) + if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null && openAiResponsesToolChoice6 == null && openAiResponsesToolChoice7 == null) { try { @@ -233,7 +271,7 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S } } - if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null) + if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null && openAiResponsesToolChoice6 == null && openAiResponsesToolChoice7 == null) { try { @@ -250,6 +288,40 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S } } + if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null && openAiResponsesToolChoice6 == null && openAiResponsesToolChoice7 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OpenAiResponsesToolChoice6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OpenAiResponsesToolChoice6).Name}"); + openAiResponsesToolChoice6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (openAiResponsesToolChoice0 == null && openAiResponsesToolChoice1 == null && openAiResponsesToolChoice2 == null && openAiResponsesToolChoice3 == null && openAiResponsesToolChoice4 == null && toolChoiceAllowed == null && openAiResponsesToolChoice6 == null && openAiResponsesToolChoice7 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OpenAiResponsesToolChoice7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OpenAiResponsesToolChoice7).Name}"); + openAiResponsesToolChoice7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + var __value = new global::OpenRouter.OpenAIResponsesToolChoice( openAiResponsesToolChoice0, @@ -261,7 +333,11 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S openAiResponsesToolChoice4, - toolChoiceAllowed + toolChoiceAllowed, + + openAiResponsesToolChoice6, + + openAiResponsesToolChoice7 ); return __value; @@ -312,6 +388,18 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ToolChoiceAllowed).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceAllowed!, typeInfo); } + else if (value.IsOpenAiResponsesToolChoice6) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OpenAiResponsesToolChoice6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OpenAiResponsesToolChoice6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenAiResponsesToolChoice6!, typeInfo); + } + else if (value.IsOpenAiResponsesToolChoice7) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OpenAiResponsesToolChoice7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OpenAiResponsesToolChoice7).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenAiResponsesToolChoice7!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6Type.g.cs new file mode 100644 index 00000000..1f846a79 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OpenAiResponsesToolChoiceOneOf6TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type 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::OpenRouter.OpenAiResponsesToolChoiceOneOf6TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OpenAiResponsesToolChoiceOneOf6TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullable.g.cs new file mode 100644 index 00000000..a96fa51e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type? 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::OpenRouter.OpenAiResponsesToolChoiceOneOf6TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type? 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::OpenRouter.OpenAiResponsesToolChoiceOneOf6TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7Type.g.cs new file mode 100644 index 00000000..bb71c69d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OpenAiResponsesToolChoiceOneOf7TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type 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::OpenRouter.OpenAiResponsesToolChoiceOneOf7TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OpenAiResponsesToolChoiceOneOf7TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullable.g.cs new file mode 100644 index 00000000..bc1c2c59 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type? 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::OpenRouter.OpenAiResponsesToolChoiceOneOf7TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type? 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::OpenRouter.OpenAiResponsesToolChoiceOneOf7TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs index 101b08fe..dd24c228 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs @@ -21,177 +21,186 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenRouter.OutputItemsVariant1? codeInterpreterCall = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.CodeInterpreterCall) + global::OpenRouter.OutputItemsVariant1? applyPatchCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.ApplyPatchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant1)}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant2? computerCall = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.ComputerCall) + global::OpenRouter.OutputItemsVariant2? codeInterpreterCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.CodeInterpreterCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant2)}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant3? customToolCall = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.CustomToolCall) + global::OpenRouter.OutputItemsVariant3? computerCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.ComputerCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant3)}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant4? fileSearchCall = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.FileSearchCall) + global::OpenRouter.OutputItemsVariant4? customToolCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.CustomToolCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant4)}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant5? functionCall = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.FunctionCall) + global::OpenRouter.OutputItemsVariant5? fileSearchCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.FileSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant5)}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant6? imageGenerationCall = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.ImageGenerationCall) + global::OpenRouter.OutputItemsVariant6? functionCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.FunctionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant6)}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant7? message = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Message) + global::OpenRouter.OutputItemsVariant7? imageGenerationCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.ImageGenerationCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant7)}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant8? openrouterApplyPatch = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_applyPatch) + global::OpenRouter.OutputItemsVariant8? message = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Message) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant8)}"); - openrouterApplyPatch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant9? openrouterBash = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_bash) + global::OpenRouter.OutputItemsVariant9? openrouterApplyPatch = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_applyPatch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant9)}"); - openrouterBash = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterApplyPatch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant10? openrouterBrowserUse = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_browserUse) + global::OpenRouter.OutputItemsVariant10? openrouterBash = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_bash) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant10)}"); - openrouterBrowserUse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterBash = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant11? openrouterCodeInterpreter = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_codeInterpreter) + global::OpenRouter.OutputItemsVariant11? openrouterBrowserUse = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_browserUse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant11)}"); - openrouterCodeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterBrowserUse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant12? openrouterDatetime = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_datetime) + global::OpenRouter.OutputItemsVariant12? openrouterCodeInterpreter = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_codeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant12)}"); - openrouterDatetime = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterCodeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant13? openrouterExperimentalSearchModels = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_experimentalSearchModels) + global::OpenRouter.OutputItemsVariant13? openrouterDatetime = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_datetime) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant13)}"); - openrouterExperimentalSearchModels = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterDatetime = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant14? openrouterFileSearch = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_fileSearch) + global::OpenRouter.OutputItemsVariant14? openrouterExperimentalSearchModels = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_experimentalSearchModels) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant14)}"); - openrouterFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterExperimentalSearchModels = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant15? openrouterFusion = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_fusion) + global::OpenRouter.OutputItemsVariant15? openrouterFileSearch = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_fileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant15)}"); - openrouterFusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant16? openrouterImageGeneration = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_imageGeneration) + global::OpenRouter.OutputItemsVariant16? openrouterFusion = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_fusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant16)}"); - openrouterImageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterFusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant17? openrouterMcp = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_mcp) + global::OpenRouter.OutputItemsVariant17? openrouterImageGeneration = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_imageGeneration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant17)}"); - openrouterMcp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterImageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant18? openrouterMemory = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_memory) + global::OpenRouter.OutputItemsVariant18? openrouterMcp = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_mcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant18)}"); - openrouterMemory = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterMcp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant19? openrouterTextEditor = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_textEditor) + global::OpenRouter.OutputItemsVariant19? openrouterMemory = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_memory) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant19)}"); - openrouterTextEditor = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterMemory = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant20? openrouterToolSearch = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_toolSearch) + global::OpenRouter.OutputItemsVariant20? openrouterTextEditor = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_textEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant20)}"); - openrouterToolSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterTextEditor = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant21? openrouterWebFetch = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_webFetch) + global::OpenRouter.OutputItemsVariant21? openrouterToolSearch = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_toolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant21)}"); - openrouterWebFetch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterToolSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant22? openrouterWebSearch = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_webSearch) + global::OpenRouter.OutputItemsVariant22? openrouterWebFetch = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_webFetch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant22)}"); - openrouterWebSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterWebFetch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant23? reasoning = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Reasoning) + global::OpenRouter.OutputItemsVariant23? openrouterWebSearch = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_webSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant23), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant23)}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterWebSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant24? webSearchCall = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.WebSearchCall) + global::OpenRouter.OutputItemsVariant24? reasoning = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Reasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant24), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant24)}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.OutputItemsVariant25? webSearchCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.WebSearchCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant25)}"); webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::OpenRouter.OutputItems( discriminator?.Type, + applyPatchCall, + codeInterpreterCall, computerCall, @@ -253,148 +262,154 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsCodeInterpreterCall) + if (value.IsApplyPatchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); } - else if (value.IsComputerCall) + else if (value.IsCodeInterpreterCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); } - else if (value.IsCustomToolCall) + else if (value.IsComputerCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); } - else if (value.IsFileSearchCall) + else if (value.IsCustomToolCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); } - else if (value.IsFunctionCall) + else if (value.IsFileSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); } - else if (value.IsImageGenerationCall) + else if (value.IsFunctionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); } - else if (value.IsMessage) + else if (value.IsImageGenerationCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); } - else if (value.IsOpenrouterApplyPatch) + else if (value.IsMessage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterApplyPatch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); } - else if (value.IsOpenrouterBash) + else if (value.IsOpenrouterApplyPatch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterBash!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterApplyPatch!, typeInfo); } - else if (value.IsOpenrouterBrowserUse) + else if (value.IsOpenrouterBash) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterBrowserUse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterBash!, typeInfo); } - else if (value.IsOpenrouterCodeInterpreter) + else if (value.IsOpenrouterBrowserUse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterCodeInterpreter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterBrowserUse!, typeInfo); } - else if (value.IsOpenrouterDatetime) + else if (value.IsOpenrouterCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterDatetime!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterCodeInterpreter!, typeInfo); } - else if (value.IsOpenrouterExperimentalSearchModels) + else if (value.IsOpenrouterDatetime) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterExperimentalSearchModels!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterDatetime!, typeInfo); } - else if (value.IsOpenrouterFileSearch) + else if (value.IsOpenrouterExperimentalSearchModels) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterFileSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterExperimentalSearchModels!, typeInfo); } - else if (value.IsOpenrouterFusion) + else if (value.IsOpenrouterFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant15).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterFusion!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterFileSearch!, typeInfo); } - else if (value.IsOpenrouterImageGeneration) + else if (value.IsOpenrouterFusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant16).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterImageGeneration!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterFusion!, typeInfo); } - else if (value.IsOpenrouterMcp) + else if (value.IsOpenrouterImageGeneration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterMcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterImageGeneration!, typeInfo); } - else if (value.IsOpenrouterMemory) + else if (value.IsOpenrouterMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant18).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterMemory!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterMcp!, typeInfo); } - else if (value.IsOpenrouterTextEditor) + else if (value.IsOpenrouterMemory) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant19).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterTextEditor!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterMemory!, typeInfo); } - else if (value.IsOpenrouterToolSearch) + else if (value.IsOpenrouterTextEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant20).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterToolSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterTextEditor!, typeInfo); } - else if (value.IsOpenrouterWebFetch) + else if (value.IsOpenrouterToolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant21).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterWebFetch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterToolSearch!, typeInfo); } - else if (value.IsOpenrouterWebSearch) + else if (value.IsOpenrouterWebFetch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant22).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterWebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterWebFetch!, typeInfo); } - else if (value.IsReasoning) + else if (value.IsOpenrouterWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant23), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant23).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterWebSearch!, typeInfo); } - else if (value.IsWebSearchCall) + else if (value.IsReasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant24), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant24).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + } + else if (value.IsWebSearchCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant25).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant14Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant13Type.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant14Type.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant13Type.g.cs index 665ef9c3..f84d548e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant14Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant13Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class OutputItemsVariant14TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class OutputItemsVariant13TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.OutputItemsVariant14Type Read( + public override global::OpenRouter.OutputItemsVariant13Type 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 OutputItemsVariant14TypeJsonConverter : global::System.Text. var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.OutputItemsVariant14TypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.OutputItemsVariant13TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class OutputItemsVariant14TypeJsonConverter : global::System.Text. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.OutputItemsVariant14Type)numValue; + return (global::OpenRouter.OutputItemsVariant13Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.OutputItemsVariant14Type); + return default(global::OpenRouter.OutputItemsVariant13Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class OutputItemsVariant14TypeJsonConverter : global::System.Text. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.OutputItemsVariant14Type value, + global::OpenRouter.OutputItemsVariant13Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.OutputItemsVariant14TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.OutputItemsVariant13TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant14TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant13TypeNullable.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant14TypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant13TypeNullable.g.cs index 4218a909..17ef38e3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant14TypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant13TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class OutputItemsVariant14TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class OutputItemsVariant13TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.OutputItemsVariant14Type? Read( + public override global::OpenRouter.OutputItemsVariant13Type? 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 OutputItemsVariant14TypeNullableJsonConverter : global::Syst var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.OutputItemsVariant14TypeExtensions.ToEnum(stringValue); + return global::OpenRouter.OutputItemsVariant13TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class OutputItemsVariant14TypeNullableJsonConverter : global::Syst case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.OutputItemsVariant14Type)numValue; + return (global::OpenRouter.OutputItemsVariant13Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.OutputItemsVariant14Type?); + return default(global::OpenRouter.OutputItemsVariant13Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class OutputItemsVariant14TypeNullableJsonConverter : global::Syst /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.OutputItemsVariant14Type? value, + global::OpenRouter.OutputItemsVariant13Type? 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::OpenRouter.OutputItemsVariant14TypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.OutputItemsVariant13TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant17Type.g.cs new file mode 100644 index 00000000..47dc4153 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant17Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputItemsVariant17TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputItemsVariant17Type 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::OpenRouter.OutputItemsVariant17TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputItemsVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputItemsVariant17Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputItemsVariant17Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputItemsVariant17TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant17TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant17TypeNullable.g.cs new file mode 100644 index 00000000..17c3c22c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant17TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputItemsVariant17TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputItemsVariant17Type? 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::OpenRouter.OutputItemsVariant17TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputItemsVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputItemsVariant17Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputItemsVariant17Type? 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::OpenRouter.OutputItemsVariant17TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant1Type.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant2Type.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant1Type.g.cs index e167c2f1..e713a2e7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant2Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant1Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class OutputItemsVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class OutputItemsVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.OutputItemsVariant2Type Read( + public override global::OpenRouter.OutputItemsVariant1Type 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 OutputItemsVariant2TypeJsonConverter : global::System.Text.J var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.OutputItemsVariant2TypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.OutputItemsVariant1TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class OutputItemsVariant2TypeJsonConverter : global::System.Text.J case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.OutputItemsVariant2Type)numValue; + return (global::OpenRouter.OutputItemsVariant1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.OutputItemsVariant2Type); + return default(global::OpenRouter.OutputItemsVariant1Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class OutputItemsVariant2TypeJsonConverter : global::System.Text.J /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.OutputItemsVariant2Type value, + global::OpenRouter.OutputItemsVariant1Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.OutputItemsVariant2TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.OutputItemsVariant1TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant8TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant1TypeNullable.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant8TypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant1TypeNullable.g.cs index 7ab1d07d..81ddcfef 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant8TypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant1TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class OutputItemsVariant8TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class OutputItemsVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.OutputItemsVariant8Type? Read( + public override global::OpenRouter.OutputItemsVariant1Type? 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 OutputItemsVariant8TypeNullableJsonConverter : global::Syste var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.OutputItemsVariant8TypeExtensions.ToEnum(stringValue); + return global::OpenRouter.OutputItemsVariant1TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class OutputItemsVariant8TypeNullableJsonConverter : global::Syste case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.OutputItemsVariant8Type)numValue; + return (global::OpenRouter.OutputItemsVariant1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.OutputItemsVariant8Type?); + return default(global::OpenRouter.OutputItemsVariant1Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class OutputItemsVariant8TypeNullableJsonConverter : global::Syste /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.OutputItemsVariant8Type? value, + global::OpenRouter.OutputItemsVariant1Type? 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::OpenRouter.OutputItemsVariant8TypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.OutputItemsVariant1TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant8Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant4Type.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant8Type.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant4Type.g.cs index b7639ed4..02bdb87e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant8Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant4Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class OutputItemsVariant8TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class OutputItemsVariant4TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.OutputItemsVariant8Type Read( + public override global::OpenRouter.OutputItemsVariant4Type 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 OutputItemsVariant8TypeJsonConverter : global::System.Text.J var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.OutputItemsVariant8TypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.OutputItemsVariant4TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class OutputItemsVariant8TypeJsonConverter : global::System.Text.J case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.OutputItemsVariant8Type)numValue; + return (global::OpenRouter.OutputItemsVariant4Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.OutputItemsVariant8Type); + return default(global::OpenRouter.OutputItemsVariant4Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class OutputItemsVariant8TypeJsonConverter : global::System.Text.J /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.OutputItemsVariant8Type value, + global::OpenRouter.OutputItemsVariant4Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.OutputItemsVariant8TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.OutputItemsVariant4TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant4TypeNullable.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant2TypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant4TypeNullable.g.cs index 50b9b001..028fdc00 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant2TypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant4TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class OutputItemsVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class OutputItemsVariant4TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.OutputItemsVariant2Type? Read( + public override global::OpenRouter.OutputItemsVariant4Type? 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 OutputItemsVariant2TypeNullableJsonConverter : global::Syste var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.OutputItemsVariant2TypeExtensions.ToEnum(stringValue); + return global::OpenRouter.OutputItemsVariant4TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class OutputItemsVariant2TypeNullableJsonConverter : global::Syste case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.OutputItemsVariant2Type)numValue; + return (global::OpenRouter.OutputItemsVariant4Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.OutputItemsVariant2Type?); + return default(global::OpenRouter.OutputItemsVariant4Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class OutputItemsVariant2TypeNullableJsonConverter : global::Syste /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.OutputItemsVariant2Type? value, + global::OpenRouter.OutputItemsVariant4Type? 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::OpenRouter.OutputItemsVariant2TypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.OutputItemsVariant4TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs index ceee723b..b999a110 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs @@ -183,6 +183,9 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__jsonProps.Contains("parameters.search_context_size")) __score19++; if (__jsonProps.Contains("parameters.user_location")) __score19++; if (__jsonProps.Contains("type")) __score19++; + var __score20 = 0; + if (__jsonProps.Contains("parameters")) __score20++; + if (__jsonProps.Contains("type")) __score20++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -205,6 +208,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__score17 > __bestScore) { __bestScore = __score17; __bestIndex = 17; } if (__score18 > __bestScore) { __bestScore = __score18; __bestIndex = 18; } if (__score19 > __bestScore) { __bestScore = __score19; __bestIndex = 19; } + if (__score20 > __bestScore) { __bestScore = __score20; __bestIndex = 20; } global::OpenRouter.ResponsesRequestToolsItems0? responsesRequestToolsItems0 = default; global::OpenRouter.PreviewWebSearchServerTool? previewWebSearchServerTool = default; @@ -226,6 +230,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool = default; global::OpenRouter.WebFetchServerTool? webFetchServerTool = default; global::OpenRouter.WebSearchServerToolOpenRouter? webSearchServerToolOpenRouter = default; + global::OpenRouter.ApplyPatchServerToolOpenRouter? applyPatchServerToolOpenRouter = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -528,9 +533,24 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } + else if (__bestIndex == 20) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter).Name}"); + applyPatchServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -547,7 +567,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -564,7 +584,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -581,7 +601,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -598,7 +618,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -615,7 +635,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -632,7 +652,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -649,7 +669,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -666,7 +686,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -683,7 +703,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -700,7 +720,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -717,7 +737,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -734,7 +754,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -751,7 +771,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -768,7 +788,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -785,7 +805,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -802,7 +822,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -819,7 +839,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -836,7 +856,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -853,7 +873,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) { try { @@ -870,6 +890,23 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter).Name}"); + applyPatchServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + var __value = new global::OpenRouter.ResponsesRequestToolsItems( responsesRequestToolsItems0, @@ -909,7 +946,9 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. webFetchServerTool, - webSearchServerToolOpenRouter + webSearchServerToolOpenRouter, + + applyPatchServerToolOpenRouter ); return __value; @@ -1044,6 +1083,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebSearchServerToolOpenRouter).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchServerToolOpenRouter!, typeInfo); } + else if (value.IsApplyPatchServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchServerToolOpenRouter!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index da8431ce..d100958d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -157,6 +157,34 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileCitationTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.FileCitationTypeNullableJsonConverter), @@ -309,42 +337,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ShellCallOutputItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpListToolsItemTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.McpListToolsItemTypeNullableJsonConverter), @@ -541,6 +533,14 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), @@ -725,6 +725,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), @@ -949,17 +953,17 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OutputReasoningItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant1TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant8TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant4TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant8TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant4TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant9TypeJsonConverter), @@ -977,9 +981,9 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OutputItemsVariant12TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant14TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant13TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant14TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant13TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant15TypeJsonConverter), @@ -989,6 +993,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OutputItemsVariant16TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), @@ -1981,11 +1989,13 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesAnnotationJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0ItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentOneOf0ItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatusJsonConverter), @@ -1993,12 +2003,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatusJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), @@ -2336,6 +2340,19 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutput), TypeInfoPropertyName = "FunctionCallOutputItemOutput2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemType), TypeInfoPropertyName = "FunctionCallOutputItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationOneOf0Type), TypeInfoPropertyName = "ApplyPatchCallOperationOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperation0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationOneOf1Type), TypeInfoPropertyName = "ApplyPatchCallOperationOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperation1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationOneOf2Type), TypeInfoPropertyName = "ApplyPatchCallOperationOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperation2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperation), TypeInfoPropertyName = "ApplyPatchCallOperation2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallStatus), TypeInfoPropertyName = "ApplyPatchCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemType), TypeInfoPropertyName = "ApplyPatchCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus), TypeInfoPropertyName = "ApplyPatchCallOutputItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemType), TypeInfoPropertyName = "ApplyPatchCallOutputItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileCitationType), TypeInfoPropertyName = "FileCitationType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileCitation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] @@ -2355,11 +2372,11 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesRefusalContentType), TypeInfoPropertyName = "OpenAiResponsesRefusalContentType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesRefusalContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items), TypeInfoPropertyName = "InputsOneOf1ItemsOneOf5ContentOneOf0Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1ItemsOneOf5Content), TypeInfoPropertyName = "InputsOneOf1ItemsOneOf5Content2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items), TypeInfoPropertyName = "InputsOneOf1ItemsOneOf7ContentOneOf0Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7Content), TypeInfoPropertyName = "InputsOneOf1ItemsOneOf7Content2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items8))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus0), TypeInfoPropertyName = "OutputFunctionCallItemStatus02")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus1), TypeInfoPropertyName = "OutputFunctionCallItemStatus12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus2), TypeInfoPropertyName = "OutputFunctionCallItemStatus22")] @@ -2440,23 +2457,6 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellCallOutputItemType), TypeInfoPropertyName = "ShellCallOutputItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellCallOutputItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type), TypeInfoPropertyName = "ApplyPatchCallItemOperationOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemOperation0))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type), TypeInfoPropertyName = "ApplyPatchCallItemOperationOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemOperation1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type), TypeInfoPropertyName = "ApplyPatchCallItemOperationOneOf2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemOperation2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemOperation), TypeInfoPropertyName = "ApplyPatchCallItemOperation2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemStatus0), TypeInfoPropertyName = "ApplyPatchCallItemStatus02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemStatus1), TypeInfoPropertyName = "ApplyPatchCallItemStatus12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemStatus), TypeInfoPropertyName = "ApplyPatchCallItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemType), TypeInfoPropertyName = "ApplyPatchCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus0), TypeInfoPropertyName = "ApplyPatchCallOutputItemStatus02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus1), TypeInfoPropertyName = "ApplyPatchCallOutputItemStatus12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus), TypeInfoPropertyName = "ApplyPatchCallOutputItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemType), TypeInfoPropertyName = "ApplyPatchCallOutputItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpListToolsItemToolsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpListToolsItemType), TypeInfoPropertyName = "McpListToolsItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpListToolsItem))] @@ -2573,6 +2573,10 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode), TypeInfoPropertyName = "ToolChoiceAllowedMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedType), TypeInfoPropertyName = "ToolChoiceAllowedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf6Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf7Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice7))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesToolChoice), TypeInfoPropertyName = "OpenAIResponsesToolChoice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItemsOneOf0Type), TypeInfoPropertyName = "ResponsesRequestToolsItemsOneOf0Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItems0))] @@ -2671,6 +2675,9 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolOpenRouterType), TypeInfoPropertyName = "WebSearchServerToolOpenRouterType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolOpenRouter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchServerToolConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchServerToolOpenRouterType), TypeInfoPropertyName = "ApplyPatchServerToolOpenRouterType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItems), TypeInfoPropertyName = "ResponsesRequestToolsItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TraceConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesTruncation), TypeInfoPropertyName = "OpenAIResponsesTruncation2")] @@ -2758,9 +2765,6 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponseCustomToolCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1Items), TypeInfoPropertyName = "OpenAiResponseCustomToolCallOutputOutputOneOf1Items2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type), TypeInfoPropertyName = "OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type), TypeInfoPropertyName = "OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2916,6 +2920,34 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileCitationTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.FileCitationTypeNullableJsonConverter), @@ -3068,42 +3100,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ShellCallOutputItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpListToolsItemTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.McpListToolsItemTypeNullableJsonConverter), @@ -3300,6 +3296,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), @@ -3484,6 +3488,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), @@ -3708,17 +3716,17 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputReasoningItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant1TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant8TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant4TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant8TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant4TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant9TypeJsonConverter), @@ -3736,9 +3744,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputItemsVariant12TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant14TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant13TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant14TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant13TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant15TypeJsonConverter), @@ -3748,6 +3756,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputItemsVariant16TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), @@ -4740,11 +4752,13 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesAnnotationJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0ItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentOneOf0ItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatusJsonConverter), @@ -4752,12 +4766,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatusJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), @@ -5020,6 +5028,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type), TypeInfoPropertyName = "OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type), TypeInfoPropertyName = "OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type), TypeInfoPropertyName = "OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminator))] @@ -5059,17 +5070,17 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputReasoningItemType), TypeInfoPropertyName = "OutputReasoningItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItems), TypeInfoPropertyName = "OutputItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant1Type), TypeInfoPropertyName = "OutputItemsVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant2Type), TypeInfoPropertyName = "OutputItemsVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant3Type), TypeInfoPropertyName = "OutputItemsVariant3Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant4Type), TypeInfoPropertyName = "OutputItemsVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant5))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant6))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant8Type), TypeInfoPropertyName = "OutputItemsVariant8Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant9))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant9Type), TypeInfoPropertyName = "OutputItemsVariant9Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant10))] @@ -5079,14 +5090,15 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant12))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant12Type), TypeInfoPropertyName = "OutputItemsVariant12Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant13Type), TypeInfoPropertyName = "OutputItemsVariant13Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant14))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant14Type), TypeInfoPropertyName = "OutputItemsVariant14Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant15))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant15Type), TypeInfoPropertyName = "OutputItemsVariant15Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant16))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant16Type), TypeInfoPropertyName = "OutputItemsVariant16Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant17))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant17Type), TypeInfoPropertyName = "OutputItemsVariant17Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant18))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant19))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant20))] @@ -5094,6 +5106,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant22))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant23))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant24))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant25))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsDiscriminatorType), TypeInfoPropertyName = "OutputItemsDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningConfig))] @@ -5515,11 +5528,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfAnthropicDocumentBlockParamCitationsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type), TypeInfoPropertyName = "MessagesMessageParamContentOneOf1ItemsOneOf3Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1Items3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type), TypeInfoPropertyName = "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSearchResultBlockParamCitations))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSearchResultBlockParamType), TypeInfoPropertyName = "AnthropicSearchResultBlockParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSearchResultBlockParam))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -5675,6 +5683,34 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileCitationTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.FileCitationTypeNullableJsonConverter), @@ -5827,42 +5863,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ShellCallOutputItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpListToolsItemTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.McpListToolsItemTypeNullableJsonConverter), @@ -6059,6 +6059,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), @@ -6243,6 +6251,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), @@ -6467,17 +6479,17 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputReasoningItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant1TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant8TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant4TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant8TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant4TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant9TypeJsonConverter), @@ -6495,9 +6507,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputItemsVariant12TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant14TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant13TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputItemsVariant14TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant13TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsVariant15TypeJsonConverter), @@ -6507,6 +6519,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputItemsVariant16TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), @@ -7499,11 +7515,13 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesAnnotationJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0ItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentOneOf0ItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatusJsonConverter), @@ -7511,12 +7529,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatusJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), @@ -7779,6 +7791,11 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type), TypeInfoPropertyName = "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSearchResultBlockParamCitations))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSearchResultBlockParamType), TypeInfoPropertyName = "AnthropicSearchResultBlockParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSearchResultBlockParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items), TypeInfoPropertyName = "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -8145,7 +8162,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -8366,6 +8383,20 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FunctionCallOutputItemTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FunctionCallOutputItemTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallStatusJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallStatusNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FileCitationTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FileCitationTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UrlCitationTypeJsonConverter()); @@ -8442,24 +8473,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ShellCallItemTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ShellCallOutputItemTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ShellCallOutputItemTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus0JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus0NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus1JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemStatus1NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus0NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatus1NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.McpListToolsItemTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.McpListToolsItemTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.McpApprovalRequestItemTypeJsonConverter()); @@ -8558,6 +8571,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter()); @@ -8650,6 +8667,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchUserLocationServerToolTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeJsonConverter()); @@ -8762,12 +8781,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OutputReasoningItemStatus2NullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputReasoningItemTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputReasoningItemTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant2TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant1TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant3TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant3TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant8TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant8TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant4TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant4TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant9TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant9TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant10TypeJsonConverter()); @@ -8776,12 +8795,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant11TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant12TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant12TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant14TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant14TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant13TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant13TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant15TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant15TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant16TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant16TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant17TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant17TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ServiceTier2JsonConverter()); @@ -9278,15 +9299,13 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.InputMessageItemRoleJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOperationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAIResponsesAnnotationJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0ItemsJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentOneOf0ItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputFunctionCallItemStatusJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallItemStatusJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.InputsOneOf1ItemsJsonConverter()); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index 9b9babf2..346f2a2d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -324,951 +324,951 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.FileCitationType? Type74 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationOneOf0Type? Type74 { get; set; } /// /// /// - public global::OpenRouter.FileCitation? Type75 { get; set; } + public global::OpenRouter.ApplyPatchCallOperation0? Type75 { get; set; } /// /// /// - public int? Type76 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationOneOf1Type? Type76 { get; set; } /// /// /// - public global::OpenRouter.UrlCitationType? Type77 { get; set; } + public global::OpenRouter.ApplyPatchCallOperation1? Type77 { get; set; } /// /// /// - public global::OpenRouter.URLCitation? Type78 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationOneOf2Type? Type78 { get; set; } /// /// /// - public global::OpenRouter.FilePathType? Type79 { get; set; } + public global::OpenRouter.ApplyPatchCallOperation2? Type79 { get; set; } /// /// /// - public global::OpenRouter.FilePath? Type80 { get; set; } + public global::OpenRouter.ApplyPatchCallOperation? Type80 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesAnnotation? Type81 { get; set; } + public global::OpenRouter.ApplyPatchCallStatus? Type81 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprobsItemsTopLogprobsItems? Type82 { get; set; } + public global::OpenRouter.ApplyPatchCallItemType? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::OpenRouter.ApplyPatchCallItem? Type83 { get; set; } /// /// /// - public long? Type84 { get; set; } + public global::OpenRouter.ApplyPatchCallOutputItemStatus? Type84 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprobsItems? Type85 { get; set; } + public global::OpenRouter.ApplyPatchCallOutputItemType? Type85 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type86 { get; set; } + public global::OpenRouter.ApplyPatchCallOutputItem? Type86 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextType? Type87 { get; set; } + public global::OpenRouter.FileCitationType? Type87 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputText? Type88 { get; set; } + public global::OpenRouter.FileCitation? Type88 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type89 { get; set; } + public int? Type89 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type90 { get; set; } + public global::OpenRouter.UrlCitationType? Type90 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesRefusalContentType? Type91 { get; set; } + public global::OpenRouter.URLCitation? Type91 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesRefusalContent? Type92 { get; set; } + public global::OpenRouter.FilePathType? Type92 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items? Type93 { get; set; } + public global::OpenRouter.FilePath? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type94 { get; set; } + public global::OpenRouter.OpenAIResponsesAnnotation? Type94 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1ItemsOneOf5Content? Type95 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprobsItemsTopLogprobsItems? Type95 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items5? Type96 { get; set; } + public global::System.Collections.Generic.IList? Type96 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items6? Type97 { get; set; } + public long? Type97 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus0? Type98 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprobsItems? Type98 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus1? Type99 { get; set; } + public global::System.Collections.Generic.IList? Type99 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus2? Type100 { get; set; } + public global::OpenRouter.ResponseOutputTextType? Type100 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus? Type101 { get; set; } + public global::OpenRouter.ResponseOutputText? Type101 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemType? Type102 { get; set; } + public global::System.Collections.Generic.IList? Type102 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItem? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::OpenRouter.OutputCustomToolCallItem? Type104 { get; set; } + public global::OpenRouter.OpenAiResponsesRefusalContentType? Type104 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSourceType? Type105 { get; set; } + public global::OpenRouter.OpenAIResponsesRefusalContent? Type105 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSource? Type106 { get; set; } + public global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items? Type106 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemActionOneOf0Type? Type107 { get; set; } + public global::System.Collections.Generic.IList? Type107 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction0? Type108 { get; set; } + public global::OpenRouter.InputsOneOf1ItemsOneOf7Content? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::OpenRouter.InputsOneOf1Items7? Type109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type110 { get; set; } + public global::OpenRouter.InputsOneOf1Items8? Type110 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemActionOneOf1Type? Type111 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus0? Type111 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction1? Type112 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus1? Type112 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemActionOneOf2Type? Type113 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus2? Type113 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction2? Type114 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus? Type114 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction? Type115 { get; set; } + public global::OpenRouter.OutputFunctionCallItemType? Type115 { get; set; } /// /// /// - public global::OpenRouter.WebSearchStatus? Type116 { get; set; } + public global::OpenRouter.OutputFunctionCallItem? Type116 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemType? Type117 { get; set; } + public global::OpenRouter.OutputCustomToolCallItem? Type117 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItem? Type118 { get; set; } + public global::OpenRouter.WebSearchSourceType? Type118 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchCallItemType? Type119 { get; set; } + public global::OpenRouter.WebSearchSource? Type119 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchCallItem? Type120 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemActionOneOf0Type? Type120 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationStatus? Type121 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction0? Type121 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationCallItemType? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationCallItem? Type123 { get; set; } + public global::System.Collections.Generic.IList? Type123 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf0Type? Type124 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemActionOneOf1Type? Type124 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems0? Type125 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction1? Type125 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf1Type? Type126 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemActionOneOf2Type? Type126 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems1? Type127 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction2? Type127 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems? Type128 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction? Type128 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemType? Type129 { get; set; } + public global::OpenRouter.WebSearchStatus? Type129 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItem? Type130 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemType? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::OpenRouter.OutputWebSearchCallItem? Type131 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallPendingSafetyChecksItems? Type132 { get; set; } + public global::OpenRouter.OutputFileSearchCallItemType? Type132 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus? Type133 { get; set; } + public global::OpenRouter.OutputFileSearchCallItem? Type133 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItem? Type134 { get; set; } + public global::OpenRouter.ImageGenerationStatus? Type134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type135 { get; set; } + public global::OpenRouter.OutputImageGenerationCallItemType? Type135 { get; set; } /// /// /// - public global::OpenRouter.OutputDatetimeItem? Type136 { get; set; } + public global::OpenRouter.OutputImageGenerationCallItem? Type136 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItemsType? Type137 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf0Type? Type137 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItems? Type138 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems0? Type138 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionType? Type139 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf1Type? Type139 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemAction? Type140 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems1? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type141 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems? Type141 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemType? Type142 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemType? Type142 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItem? Type143 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItem? Type143 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterServerToolItem? Type144 { get; set; } + public global::System.Collections.Generic.IList? Type144 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchServerToolItem? Type145 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallPendingSafetyChecksItems? Type145 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationServerToolItem? Type146 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus? Type146 { get; set; } /// /// /// - public global::OpenRouter.OutputBrowserUseServerToolItem? Type147 { get; set; } + public global::OpenRouter.OutputComputerCallItem? Type147 { get; set; } /// /// /// - public global::OpenRouter.OutputBashServerToolItem? Type148 { get; set; } + public global::System.Collections.Generic.IList? Type148 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type149 { get; set; } + public global::OpenRouter.OutputDatetimeItem? Type149 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemType? Type150 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItemsType? Type150 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItem? Type151 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItems? Type151 { get; set; } /// /// /// - public global::OpenRouter.OutputApplyPatchServerToolItem? Type152 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionType? Type152 { get; set; } /// /// /// - public global::OpenRouter.OutputWebFetchServerToolItemType? Type153 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemAction? Type153 { get; set; } /// /// /// - public global::OpenRouter.OutputWebFetchServerToolItem? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItemType? Type155 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemType? Type155 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItem? Type156 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItem? Type156 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemAction? Type157 { get; set; } + public global::OpenRouter.OutputCodeInterpreterServerToolItem? Type157 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemType? Type158 { get; set; } + public global::OpenRouter.OutputFileSearchServerToolItem? Type158 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItem? Type159 { get; set; } + public global::OpenRouter.OutputImageGenerationServerToolItem? Type159 { get; set; } /// /// /// - public global::OpenRouter.OutputMcpServerToolItemType? Type160 { get; set; } + public global::OpenRouter.OutputBrowserUseServerToolItem? Type160 { get; set; } /// /// /// - public global::OpenRouter.OutputMcpServerToolItem? Type161 { get; set; } + public global::OpenRouter.OutputBashServerToolItem? Type161 { get; set; } /// /// /// - public global::OpenRouter.OutputSearchModelsServerToolItemType? Type162 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type162 { get; set; } /// /// /// - public global::OpenRouter.OutputSearchModelsServerToolItem? Type163 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemType? Type163 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemActionType? Type164 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItem? Type164 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemAction? Type165 { get; set; } + public global::OpenRouter.OutputApplyPatchServerToolItem? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type166 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItemType? Type166 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemType? Type167 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItem? Type167 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItem? Type168 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItemType? Type168 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallOutputItemType? Type169 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItem? Type169 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallOutputItem? Type170 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemAction? Type170 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItemAction? Type171 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemType? Type171 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItemType? Type172 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItem? Type172 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItem? Type173 { get; set; } + public global::OpenRouter.OutputMcpServerToolItemType? Type173 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItemOutputItems? Type174 { get; set; } + public global::OpenRouter.OutputMcpServerToolItem? Type174 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItemType? Type175 { get; set; } + public global::OpenRouter.OutputSearchModelsServerToolItemType? Type175 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItem? Type176 { get; set; } + public global::OpenRouter.OutputSearchModelsServerToolItem? Type176 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type177 { get; set; } + public global::OpenRouter.LocalShellCallItemActionType? Type177 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type? Type178 { get; set; } + public global::OpenRouter.LocalShellCallItemAction? Type178 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemOperation0? Type179 { get; set; } + public global::System.Collections.Generic.Dictionary? Type179 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type? Type180 { get; set; } + public global::OpenRouter.LocalShellCallItemType? Type180 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemOperation1? Type181 { get; set; } + public global::OpenRouter.LocalShellCallItem? Type181 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type? Type182 { get; set; } + public global::OpenRouter.LocalShellCallOutputItemType? Type182 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemOperation2? Type183 { get; set; } + public global::OpenRouter.LocalShellCallOutputItem? Type183 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemOperation? Type184 { get; set; } + public global::OpenRouter.ShellCallItemAction? Type184 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemStatus0? Type185 { get; set; } + public global::OpenRouter.ShellCallItemType? Type185 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemStatus1? Type186 { get; set; } + public global::OpenRouter.ShellCallItem? Type186 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemStatus? Type187 { get; set; } + public global::OpenRouter.ShellCallOutputItemOutputItems? Type187 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemType? Type188 { get; set; } + public global::OpenRouter.ShellCallOutputItemType? Type188 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItem? Type189 { get; set; } + public global::OpenRouter.ShellCallOutputItem? Type189 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItemStatus0? Type190 { get; set; } + public global::System.Collections.Generic.IList? Type190 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItemStatus1? Type191 { get; set; } + public global::OpenRouter.McpListToolsItemToolsItems? Type191 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItemStatus? Type192 { get; set; } + public global::OpenRouter.McpListToolsItemType? Type192 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItemType? Type193 { get; set; } + public global::OpenRouter.McpListToolsItem? Type193 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItem? Type194 { get; set; } + public global::System.Collections.Generic.IList? Type194 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItemToolsItems? Type195 { get; set; } + public global::OpenRouter.McpApprovalRequestItemType? Type195 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItemType? Type196 { get; set; } + public global::OpenRouter.McpApprovalRequestItem? Type196 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItem? Type197 { get; set; } + public global::OpenRouter.McpApprovalResponseItemType? Type197 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type198 { get; set; } + public global::OpenRouter.McpApprovalResponseItem? Type198 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalRequestItemType? Type199 { get; set; } + public bool? Type199 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalRequestItem? Type200 { get; set; } + public global::OpenRouter.McpCallItemType? Type200 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalResponseItemType? Type201 { get; set; } + public global::OpenRouter.McpCallItem? Type201 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalResponseItem? Type202 { get; set; } + public global::OpenRouter.CustomToolCallItemType? Type202 { get; set; } /// /// /// - public bool? Type203 { get; set; } + public global::OpenRouter.CustomToolCallItem? Type203 { get; set; } /// /// /// - public global::OpenRouter.McpCallItemType? Type204 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1Items? Type204 { get; set; } /// /// /// - public global::OpenRouter.McpCallItem? Type205 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1? Type205 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallItemType? Type206 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1Type? Type206 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallItem? Type207 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2? Type207 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1Items? Type208 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2Type? Type208 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1? Type209 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3? Type209 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1Type? Type210 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type? Type210 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2? Type211 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminator? Type211 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2Type? Type212 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type212 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3? Type213 { get; set; } + public global::System.Collections.Generic.IList? Type213 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type? Type214 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutput? Type214 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminator? Type215 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemType? Type215 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type216 { get; set; } + public global::OpenRouter.CustomToolCallOutputItem? Type216 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type217 { get; set; } + public global::OpenRouter.CompactionItemType? Type217 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutput? Type218 { get; set; } + public global::OpenRouter.CompactionItem? Type218 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemType? Type219 { get; set; } + public global::OpenRouter.ItemReferenceItemType? Type219 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItem? Type220 { get; set; } + public global::OpenRouter.ItemReferenceItem? Type220 { get; set; } /// /// /// - public global::OpenRouter.CompactionItemType? Type221 { get; set; } + public global::OpenRouter.InputsOneOf1Items? Type221 { get; set; } /// /// /// - public global::OpenRouter.CompactionItem? Type222 { get; set; } + public global::System.Collections.Generic.IList? Type222 { get; set; } /// /// /// - public global::OpenRouter.ItemReferenceItemType? Type223 { get; set; } + public global::OpenRouter.Inputs? Type223 { get; set; } /// /// /// - public global::OpenRouter.ItemReferenceItem? Type224 { get; set; } + public global::OpenRouter.OutputModalityEnum? Type224 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items? Type225 { get; set; } + public global::OpenRouter.ContextCompressionEngine? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::OpenRouter.PdfParserEngine0? Type226 { get; set; } /// /// /// - public global::OpenRouter.Inputs? Type227 { get; set; } + public global::OpenRouter.PdfParserEngine1? Type227 { get; set; } /// /// /// - public global::OpenRouter.OutputModalityEnum? Type228 { get; set; } + public global::OpenRouter.PDFParserEngine? Type228 { get; set; } /// /// /// - public global::OpenRouter.ContextCompressionEngine? Type229 { get; set; } + public global::OpenRouter.PDFParserOptions? Type229 { get; set; } /// /// /// - public global::OpenRouter.PdfParserEngine0? Type230 { get; set; } + public global::OpenRouter.WebSearchEngine? Type230 { get; set; } /// /// /// - public global::OpenRouter.PdfParserEngine1? Type231 { get; set; } + public global::OpenRouter.WebSearchPluginId? Type231 { get; set; } /// /// /// - public global::OpenRouter.PDFParserEngine? Type232 { get; set; } + public global::OpenRouter.WebSearchPluginUserLocationType? Type232 { get; set; } /// /// /// - public global::OpenRouter.PDFParserOptions? Type233 { get; set; } + public global::OpenRouter.WebSearchPluginUserLocation? Type233 { get; set; } /// /// /// - public global::OpenRouter.WebSearchEngine? Type234 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItems? Type234 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginId? Type235 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? Type235 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginUserLocationType? Type236 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id? Type236 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginUserLocation? Type237 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? Type237 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItems? Type238 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id? Type238 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? Type239 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? Type239 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id? Type240 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id? Type240 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? Type241 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? Type241 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id? Type242 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id? Type242 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? Type243 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Type243 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id? Type244 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id? Type244 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? Type245 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? Type245 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id? Type246 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id? Type246 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Type247 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? Type247 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id? Type248 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id? Type248 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? Type249 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? Type249 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id? Type250 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminator? Type250 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? Type251 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId? Type251 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id? Type252 { get; set; } + public global::OpenRouter.InputImage? Type252 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? Type253 { get; set; } + public global::OpenRouter.StoredPromptTemplateVariables? Type253 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminator? Type254 { get; set; } + public global::OpenRouter.StoredPromptTemplate? Type254 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId? Type255 { get; set; } + public global::OpenRouter.ProviderPreferencesDataCollection? Type255 { get; set; } /// /// /// - public global::OpenRouter.InputImage? Type256 { get; set; } + public global::OpenRouter.ProviderName? Type256 { get; set; } /// /// /// - public global::OpenRouter.StoredPromptTemplateVariables? Type257 { get; set; } + public global::OpenRouter.ProviderPreferencesIgnoreItems? Type257 { get; set; } /// /// /// - public global::OpenRouter.StoredPromptTemplate? Type258 { get; set; } + public global::OpenRouter.ProviderPreferencesMaxPrice? Type258 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesDataCollection? Type259 { get; set; } + public global::OpenRouter.ProviderPreferencesOnlyItems? Type259 { get; set; } /// /// /// - public global::OpenRouter.ProviderName? Type260 { get; set; } + public global::OpenRouter.ProviderPreferencesOrderItems? Type260 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesIgnoreItems? Type261 { get; set; } + public global::OpenRouter.PercentileLatencyCutoffs? Type261 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesMaxPrice? Type262 { get; set; } + public global::OpenRouter.PreferredMaxLatency? Type262 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesOnlyItems? Type263 { get; set; } + public global::OpenRouter.PercentileThroughputCutoffs? Type263 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesOrderItems? Type264 { get; set; } + public global::OpenRouter.PreferredMinThroughput? Type264 { get; set; } /// /// /// - public global::OpenRouter.PercentileLatencyCutoffs? Type265 { get; set; } + public global::OpenRouter.Quantization? Type265 { get; set; } /// /// /// - public global::OpenRouter.PreferredMaxLatency? Type266 { get; set; } + public global::OpenRouter.ProviderSort? Type266 { get; set; } /// /// /// - public global::OpenRouter.PercentileThroughputCutoffs? Type267 { get; set; } + public global::OpenRouter.ProviderSortConfigBy? Type267 { get; set; } /// /// /// - public global::OpenRouter.PreferredMinThroughput? Type268 { get; set; } + public global::OpenRouter.ProviderSortConfigPartition? Type268 { get; set; } /// /// /// - public global::OpenRouter.Quantization? Type269 { get; set; } + public global::OpenRouter.ProviderSortConfig? Type269 { get; set; } /// /// /// - public global::OpenRouter.ProviderSort? Type270 { get; set; } + public global::OpenRouter.OneOf? Type270 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigBy? Type271 { get; set; } + public global::OpenRouter.OneOf? Type271 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigPartition? Type272 { get; set; } + public global::OpenRouter.ProviderPreferencesSort? Type272 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfig? Type273 { get; set; } + public global::OpenRouter.ProviderPreferences? Type273 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type274 { get; set; } + public global::OpenRouter.OneOf? Type274 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type275 { get; set; } + public global::System.Collections.Generic.IList? Type275 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesSort? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferences? Type277 { get; set; } + public global::System.Collections.Generic.IList? Type277 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type278 { get; set; } + public global::System.Collections.Generic.IList? Type278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type279 { get; set; } + public global::OpenRouter.ReasoningEffort? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::OpenRouter.ReasoningSummaryVerbosity? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::OpenRouter.ReasoningConfig? Type281 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type282 { get; set; } + public global::OpenRouter.ResponsesRequestServiceTier? Type282 { get; set; } /// /// /// - public global::OpenRouter.ReasoningEffort? Type283 { get; set; } + public global::OpenRouter.FormatTextConfigType? Type283 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryVerbosity? Type284 { get; set; } + public global::OpenRouter.FormatTextConfig? Type284 { get; set; } /// /// /// - public global::OpenRouter.ReasoningConfig? Type285 { get; set; } + public global::OpenRouter.FormatJsonObjectConfigType? Type285 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestServiceTier? Type286 { get; set; } + public global::OpenRouter.FormatJsonObjectConfig? Type286 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfigType? Type287 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfigType? Type287 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfig? Type288 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfig? Type288 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfigType? Type289 { get; set; } + public global::OpenRouter.Formats? Type289 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfig? Type290 { get; set; } + public global::OpenRouter.TextExtendedConfigVerbosity? Type290 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfigType? Type291 { get; set; } + public global::OpenRouter.TextExtendedConfig? Type291 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfig? Type292 { get; set; } + public global::OpenRouter.OneOf? Type292 { get; set; } /// /// /// - public global::OpenRouter.Formats? Type293 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice0? Type293 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfigVerbosity? Type294 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice1? Type294 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfig? Type295 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice2? Type295 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type296 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type? Type296 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice0? Type297 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice3? Type297 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice1? Type298 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0? Type298 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice2? Type299 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1? Type299 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type? Type300 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type? Type300 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice3? Type301 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice4? Type301 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0? Type302 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode0? Type302 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1? Type303 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode1? Type303 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type? Type304 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode? Type304 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice4? Type305 { get; set; } + public global::OpenRouter.ToolChoiceAllowedType? Type305 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode0? Type306 { get; set; } + public global::OpenRouter.ToolChoiceAllowed? Type306 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode1? Type307 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type? Type307 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode? Type308 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice6? Type308 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedType? Type309 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type? Type309 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowed? Type310 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice7? Type310 { get; set; } /// /// /// @@ -1664,3787 +1664,3807 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.ResponsesRequestToolsItems? Type409 { get; set; } + public global::OpenRouter.ApplyPatchServerToolConfig? Type409 { get; set; } /// /// /// - public global::OpenRouter.TraceConfig? Type410 { get; set; } + public global::OpenRouter.ApplyPatchServerToolOpenRouterType? Type410 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesTruncation? Type411 { get; set; } + public global::OpenRouter.ApplyPatchServerToolOpenRouter? Type411 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequest? Type412 { get; set; } + public global::OpenRouter.ResponsesRequestToolsItems? Type412 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type413 { get; set; } + public global::OpenRouter.TraceConfig? Type413 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type414 { get; set; } + public global::OpenRouter.OpenAIResponsesTruncation? Type414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type415 { get; set; } + public global::OpenRouter.ResponsesRequest? Type415 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type416 { get; set; } + public global::System.Collections.Generic.IList? Type416 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type417 { get; set; } + public global::System.Collections.Generic.IList? Type417 { get; set; } /// /// /// - public global::OpenRouter.ResponsesErrorFieldCode? Type418 { get; set; } + public global::System.Collections.Generic.IList? Type418 { get; set; } /// /// /// - public global::OpenRouter.ResponsesErrorField? Type419 { get; set; } + public global::OpenRouter.OneOf? Type419 { get; set; } /// /// /// - public global::OpenRouter.IncompleteDetailsReason? Type420 { get; set; } + public global::System.Collections.Generic.IList? Type420 { get; set; } /// /// /// - public global::OpenRouter.IncompleteDetails? Type421 { get; set; } + public global::OpenRouter.ResponsesErrorFieldCode? Type421 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items? Type422 { get; set; } + public global::OpenRouter.ResponsesErrorField? Type422 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1? Type423 { get; set; } + public global::OpenRouter.IncompleteDetailsReason? Type423 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1Type? Type424 { get; set; } + public global::OpenRouter.IncompleteDetails? Type424 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2? Type425 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items? Type425 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2Type? Type426 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1? Type426 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3? Type427 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1Type? Type427 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3Type? Type428 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2? Type428 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4? Type429 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2Type? Type429 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4Type? Type430 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3? Type430 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminator? Type431 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3Type? Type431 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorType? Type432 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4? Type432 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type433 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4Type? Type433 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Content? Type434 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminator? Type434 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? Type435 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorType? Type435 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? Type436 { get; set; } + public global::System.Collections.Generic.IList? Type436 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? Type437 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Content? Type437 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role0? Type438 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? Type438 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role1? Type439 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? Type439 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role2? Type440 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? Type440 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role3? Type441 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role0? Type441 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role? Type442 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role1? Type442 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type? Type443 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role2? Type443 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1Items0? Type444 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role3? Type444 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItems? Type445 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role? Type445 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1? Type446 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type? Type446 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1Type? Type447 { get; set; } + public global::OpenRouter.BaseInputsOneOf1Items0? Type447 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2? Type448 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItems? Type448 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2Type? Type449 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1? Type449 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3? Type450 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1Type? Type450 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3Type? Type451 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2? Type451 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4? Type452 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2Type? Type452 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4Type? Type453 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3? Type453 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminator? Type454 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3Type? Type454 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorType? Type455 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4? Type455 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole0? Type456 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4Type? Type456 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole1? Type457 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminator? Type457 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole2? Type458 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorType? Type458 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole? Type459 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole0? Type459 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemType? Type460 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole1? Type460 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItem? Type461 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole2? Type461 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type462 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole? Type462 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items? Type463 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemType? Type463 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1? Type464 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItem? Type464 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1Type? Type465 { get; set; } + public global::System.Collections.Generic.IList? Type465 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2? Type466 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items? Type466 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2Type? Type467 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1? Type467 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3? Type468 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1Type? Type468 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3Type? Type469 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2? Type469 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminator? Type470 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2Type? Type470 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type471 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3? Type471 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type472 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3Type? Type472 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutput? Type473 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminator? Type473 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputType? Type474 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type474 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCallOutput? Type475 { get; set; } + public global::System.Collections.Generic.IList? Type475 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallType? Type476 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutput? Type476 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCall? Type477 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputType? Type477 { get; set; } /// /// /// - public global::OpenRouter.OutputItemImageGenerationCallType? Type478 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCallOutput? Type478 { get; set; } /// /// /// - public global::OpenRouter.OutputItemImageGenerationCall? Type479 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallType? Type479 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageContentItems? Type480 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCall? Type480 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase0? Type481 { get; set; } + public global::OpenRouter.OutputItemImageGenerationCallType? Type481 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase1? Type482 { get; set; } + public global::OpenRouter.OutputItemImageGenerationCall? Type482 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase? Type483 { get; set; } + public global::OpenRouter.OutputMessageContentItems? Type483 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageRole? Type484 { get; set; } + public global::OpenRouter.OutputMessagePhase0? Type484 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus0? Type485 { get; set; } + public global::OpenRouter.OutputMessagePhase1? Type485 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus1? Type486 { get; set; } + public global::OpenRouter.OutputMessagePhase? Type486 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus2? Type487 { get; set; } + public global::OpenRouter.OutputMessageRole? Type487 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus? Type488 { get; set; } + public global::OpenRouter.OutputMessageStatus0? Type488 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageType? Type489 { get; set; } + public global::OpenRouter.OutputMessageStatus1? Type489 { get; set; } /// /// /// - public global::OpenRouter.OutputMessage? Type490 { get; set; } + public global::OpenRouter.OutputMessageStatus2? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::OpenRouter.OutputMessageStatus? Type491 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallType? Type492 { get; set; } + public global::OpenRouter.OutputMessageType? Type492 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCall? Type493 { get; set; } + public global::OpenRouter.OutputMessage? Type493 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1Items? Type494 { get; set; } + public global::System.Collections.Generic.IList? Type494 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1? Type495 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallType? Type495 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type? Type496 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCall? Type496 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2? Type497 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1Items? Type497 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type? Type498 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1? Type498 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3? Type499 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type? Type499 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type? Type500 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2? Type500 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminator? Type501 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type? Type501 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type502 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3? Type502 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type503 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type? Type503 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutput? Type504 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminator? Type504 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputType? Type505 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type505 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCallOutput? Type506 { get; set; } + public global::System.Collections.Generic.IList? Type506 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1Items? Type507 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutput? Type507 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type508 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputType? Type508 { get; set; } /// /// /// - public global::OpenRouter.BaseInputs? Type509 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCallOutput? Type509 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultObject? Type510 { get; set; } + public global::OpenRouter.BaseInputsOneOf1Items? Type510 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemContentItems? Type511 { get; set; } + public global::System.Collections.Generic.IList? Type511 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemPhase0? Type512 { get; set; } + public global::OpenRouter.BaseInputs? Type512 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemPhase1? Type513 { get; set; } + public global::OpenRouter.OpenResponsesResultObject? Type513 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemPhase? Type514 { get; set; } + public global::OpenRouter.OutputMessageItemContentItems? Type514 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemRole? Type515 { get; set; } + public global::OpenRouter.OutputMessageItemPhase0? Type515 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus0? Type516 { get; set; } + public global::OpenRouter.OutputMessageItemPhase1? Type516 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus1? Type517 { get; set; } + public global::OpenRouter.OutputMessageItemPhase? Type517 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus2? Type518 { get; set; } + public global::OpenRouter.OutputMessageItemRole? Type518 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus? Type519 { get; set; } + public global::OpenRouter.OutputMessageItemStatus0? Type519 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemType? Type520 { get; set; } + public global::OpenRouter.OutputMessageItemStatus1? Type520 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysisContradictionsItemsStancesItems? Type521 { get; set; } + public global::OpenRouter.OutputMessageItemStatus2? Type521 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysisContradictionsItems? Type522 { get; set; } + public global::OpenRouter.OutputMessageItemStatus? Type522 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type523 { get; set; } + public global::OpenRouter.OutputMessageItemType? Type523 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysisPartialCoverageItems? Type524 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysisContradictionsItemsStancesItems? Type524 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysisUniqueInsightsItems? Type525 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysisContradictionsItems? Type525 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysis? Type526 { get; set; } + public global::System.Collections.Generic.IList? Type526 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type527 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysisPartialCoverageItems? Type527 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type528 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysisUniqueInsightsItems? Type528 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type529 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysis? Type529 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionResponsesItems? Type530 { get; set; } + public global::System.Collections.Generic.IList? Type530 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus0? Type531 { get; set; } + public global::System.Collections.Generic.IList? Type531 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus1? Type532 { get; set; } + public global::System.Collections.Generic.IList? Type532 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus2? Type533 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionResponsesItems? Type533 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus? Type534 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus0? Type534 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemType? Type535 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus1? Type535 { get; set; } /// /// /// - public global::OpenRouter.OutputItems? Type536 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus2? Type536 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant1? Type537 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus? Type537 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant2? Type538 { get; set; } + public global::OpenRouter.OutputReasoningItemType? Type538 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant2Type? Type539 { get; set; } + public global::OpenRouter.OutputItems? Type539 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant3? Type540 { get; set; } + public global::OpenRouter.OutputItemsVariant1? Type540 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant3Type? Type541 { get; set; } + public global::OpenRouter.OutputItemsVariant1Type? Type541 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant4? Type542 { get; set; } + public global::OpenRouter.OutputItemsVariant2? Type542 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant5? Type543 { get; set; } + public global::OpenRouter.OutputItemsVariant3? Type543 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant6? Type544 { get; set; } + public global::OpenRouter.OutputItemsVariant3Type? Type544 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant7? Type545 { get; set; } + public global::OpenRouter.OutputItemsVariant4? Type545 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type546 { get; set; } + public global::OpenRouter.OutputItemsVariant4Type? Type546 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant8? Type547 { get; set; } + public global::OpenRouter.OutputItemsVariant5? Type547 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant8Type? Type548 { get; set; } + public global::OpenRouter.OutputItemsVariant6? Type548 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant9? Type549 { get; set; } + public global::OpenRouter.OutputItemsVariant7? Type549 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant9Type? Type550 { get; set; } + public global::OpenRouter.OutputItemsVariant8? Type550 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant10? Type551 { get; set; } + public global::System.Collections.Generic.IList? Type551 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant10Type? Type552 { get; set; } + public global::OpenRouter.OutputItemsVariant9? Type552 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant11? Type553 { get; set; } + public global::OpenRouter.OutputItemsVariant9Type? Type553 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant11Type? Type554 { get; set; } + public global::OpenRouter.OutputItemsVariant10? Type554 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant12? Type555 { get; set; } + public global::OpenRouter.OutputItemsVariant10Type? Type555 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant12Type? Type556 { get; set; } + public global::OpenRouter.OutputItemsVariant11? Type556 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant13? Type557 { get; set; } + public global::OpenRouter.OutputItemsVariant11Type? Type557 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant14? Type558 { get; set; } + public global::OpenRouter.OutputItemsVariant12? Type558 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant14Type? Type559 { get; set; } + public global::OpenRouter.OutputItemsVariant12Type? Type559 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant15? Type560 { get; set; } + public global::OpenRouter.OutputItemsVariant13? Type560 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant15Type? Type561 { get; set; } + public global::OpenRouter.OutputItemsVariant13Type? Type561 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type562 { get; set; } + public global::OpenRouter.OutputItemsVariant14? Type562 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant16? Type563 { get; set; } + public global::OpenRouter.OutputItemsVariant15? Type563 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant16Type? Type564 { get; set; } + public global::OpenRouter.OutputItemsVariant15Type? Type564 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant17? Type565 { get; set; } + public global::OpenRouter.OutputItemsVariant16? Type565 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant18? Type566 { get; set; } + public global::OpenRouter.OutputItemsVariant16Type? Type566 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant19? Type567 { get; set; } + public global::System.Collections.Generic.IList? Type567 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant20? Type568 { get; set; } + public global::OpenRouter.OutputItemsVariant17? Type568 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant21? Type569 { get; set; } + public global::OpenRouter.OutputItemsVariant17Type? Type569 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant22? Type570 { get; set; } + public global::OpenRouter.OutputItemsVariant18? Type570 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant23? Type571 { get; set; } + public global::OpenRouter.OutputItemsVariant19? Type571 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant24? Type572 { get; set; } + public global::OpenRouter.OutputItemsVariant20? Type572 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminator? Type573 { get; set; } + public global::OpenRouter.OutputItemsVariant21? Type573 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorType? Type574 { get; set; } + public global::OpenRouter.OutputItemsVariant22? Type574 { get; set; } /// /// /// - public global::OpenRouter.BaseReasoningConfig? Type575 { get; set; } + public global::OpenRouter.OutputItemsVariant23? Type575 { get; set; } /// /// /// - public global::OpenRouter.ServiceTier2? Type576 { get; set; } + public global::OpenRouter.OutputItemsVariant24? Type576 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesResponseStatus? Type577 { get; set; } + public global::OpenRouter.OutputItemsVariant25? Type577 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultToolsItemsOneOf0Type? Type578 { get; set; } + public global::OpenRouter.OutputItemsDiscriminator? Type578 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultToolsItems0? Type579 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorType? Type579 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultToolsItems? Type580 { get; set; } + public global::OpenRouter.BaseReasoningConfig? Type580 { get; set; } /// /// /// - public global::OpenRouter.Truncation? Type581 { get; set; } + public global::OpenRouter.ServiceTier2? Type581 { get; set; } /// /// /// - public global::OpenRouter.UsageInputTokensDetails? Type582 { get; set; } + public global::OpenRouter.OpenAIResponsesResponseStatus? Type582 { get; set; } /// /// /// - public global::OpenRouter.UsageOutputTokensDetails? Type583 { get; set; } + public global::OpenRouter.OpenResponsesResultToolsItemsOneOf0Type? Type583 { get; set; } /// /// /// - public global::OpenRouter.UsageCostDetails? Type584 { get; set; } + public global::OpenRouter.OpenResponsesResultToolsItems0? Type584 { get; set; } /// /// /// - public global::OpenRouter.Usage? Type585 { get; set; } + public global::OpenRouter.OpenResponsesResultToolsItems? Type585 { get; set; } /// /// /// - public global::OpenRouter.RouterAttempt? Type586 { get; set; } + public global::OpenRouter.Truncation? Type586 { get; set; } /// /// /// - public global::OpenRouter.EndpointInfo? Type587 { get; set; } + public global::OpenRouter.UsageInputTokensDetails? Type587 { get; set; } /// /// /// - public global::OpenRouter.EndpointsMetadata? Type588 { get; set; } + public global::OpenRouter.UsageOutputTokensDetails? Type588 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type589 { get; set; } + public global::OpenRouter.UsageCostDetails? Type589 { get; set; } /// /// /// - public global::OpenRouter.RouterParams? Type590 { get; set; } + public global::OpenRouter.Usage? Type590 { get; set; } /// /// /// - public global::OpenRouter.PipelineStageType? Type591 { get; set; } + public global::OpenRouter.RouterAttempt? Type591 { get; set; } /// /// /// - public global::OpenRouter.PipelineStage? Type592 { get; set; } + public global::OpenRouter.EndpointInfo? Type592 { get; set; } /// /// /// - public global::OpenRouter.RoutingStrategy? Type593 { get; set; } + public global::OpenRouter.EndpointsMetadata? Type593 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterMetadata? Type594 { get; set; } + public global::System.Collections.Generic.IList? Type594 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type595 { get; set; } + public global::OpenRouter.RouterParams? Type595 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type596 { get; set; } + public global::OpenRouter.PipelineStageType? Type596 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResult? Type597 { get; set; } + public global::OpenRouter.PipelineStage? Type597 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type598 { get; set; } + public global::OpenRouter.RoutingStrategy? Type598 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type599 { get; set; } + public global::OpenRouter.OpenRouterMetadata? Type599 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type600 { get; set; } + public global::System.Collections.Generic.IList? Type600 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponseErrorData? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponse? Type602 { get; set; } + public global::OpenRouter.OpenResponsesResult? Type602 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponseErrorData? Type603 { get; set; } + public global::System.Collections.Generic.IList? Type603 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponse? Type604 { get; set; } + public global::OpenRouter.OneOf? Type604 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponseErrorData? Type605 { get; set; } + public global::System.Collections.Generic.IList? Type605 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponse? Type606 { get; set; } + public global::OpenRouter.BadRequestResponseErrorData? Type606 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponseErrorData? Type607 { get; set; } + public global::OpenRouter.BadRequestResponse? Type607 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponse? Type608 { get; set; } + public global::OpenRouter.UnauthorizedResponseErrorData? Type608 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponseErrorData? Type609 { get; set; } + public global::OpenRouter.UnauthorizedResponse? Type609 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponse? Type610 { get; set; } + public global::OpenRouter.PaymentRequiredResponseErrorData? Type610 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponseErrorData? Type611 { get; set; } + public global::OpenRouter.PaymentRequiredResponse? Type611 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponse? Type612 { get; set; } + public global::OpenRouter.ForbiddenResponseErrorData? Type612 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponseErrorData? Type613 { get; set; } + public global::OpenRouter.ForbiddenResponse? Type613 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponse? Type614 { get; set; } + public global::OpenRouter.NotFoundResponseErrorData? Type614 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponseErrorData? Type615 { get; set; } + public global::OpenRouter.NotFoundResponse? Type615 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponse? Type616 { get; set; } + public global::OpenRouter.RequestTimeoutResponseErrorData? Type616 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponseErrorData? Type617 { get; set; } + public global::OpenRouter.RequestTimeoutResponse? Type617 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponse? Type618 { get; set; } + public global::OpenRouter.PayloadTooLargeResponseErrorData? Type618 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponseErrorData? Type619 { get; set; } + public global::OpenRouter.PayloadTooLargeResponse? Type619 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponse? Type620 { get; set; } + public global::OpenRouter.UnprocessableEntityResponseErrorData? Type620 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponseErrorData? Type621 { get; set; } + public global::OpenRouter.UnprocessableEntityResponse? Type621 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponse? Type622 { get; set; } + public global::OpenRouter.TooManyRequestsResponseErrorData? Type622 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponseErrorData? Type623 { get; set; } + public global::OpenRouter.TooManyRequestsResponse? Type623 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponse? Type624 { get; set; } + public global::OpenRouter.InternalServerResponseErrorData? Type624 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type625 { get; set; } + public global::OpenRouter.InternalServerResponse? Type625 { get; set; } /// /// /// - public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type626 { get; set; } + public global::OpenRouter.BadGatewayResponseErrorData? Type626 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type627 { get; set; } + public global::OpenRouter.BadGatewayResponse? Type627 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type628 { get; set; } + public global::OpenRouter.ServiceUnavailableResponseErrorData? Type628 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type629 { get; set; } + public global::OpenRouter.ServiceUnavailableResponse? Type629 { get; set; } /// /// /// - public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type630 { get; set; } + public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type630 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponseErrorData? Type631 { get; set; } + public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type631 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponse? Type632 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type632 { get; set; } /// /// /// - public global::OpenRouter.ProviderOptions? Type633 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type633 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequestProvider? Type634 { get; set; } + public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type634 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequestResponseFormat? Type635 { get; set; } + public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type635 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequest? Type636 { get; set; } + public global::OpenRouter.ConflictResponseErrorData? Type636 { get; set; } /// /// /// - public global::OpenRouter.STTInputAudio? Type637 { get; set; } + public global::OpenRouter.ConflictResponse? Type637 { get; set; } /// /// /// - public global::OpenRouter.SttRequestProvider? Type638 { get; set; } + public global::OpenRouter.ProviderOptions? Type638 { get; set; } /// /// /// - public global::OpenRouter.STTRequest? Type639 { get; set; } + public global::OpenRouter.SpeechRequestProvider? Type639 { get; set; } /// /// /// - public global::OpenRouter.STTUsage? Type640 { get; set; } + public global::OpenRouter.SpeechRequestResponseFormat? Type640 { get; set; } /// /// /// - public global::OpenRouter.STTResponse? Type641 { get; set; } + public global::OpenRouter.SpeechRequest? Type641 { get; set; } /// /// /// - public global::OpenRouter.ActivityItem? Type642 { get; set; } + public global::OpenRouter.STTInputAudio? Type642 { get; set; } /// /// /// - public global::OpenRouter.ActivityResponse? Type643 { get; set; } + public global::OpenRouter.SttRequestProvider? Type643 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type644 { get; set; } + public global::OpenRouter.STTRequest? Type644 { get; set; } /// /// /// - public global::OpenRouter.ChatDebugOptions? Type645 { get; set; } + public global::OpenRouter.STTUsage? Type645 { get; set; } /// /// /// - public global::OpenRouter.ChatAudioOutput? Type646 { get; set; } + public global::OpenRouter.STTResponse? Type646 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type647 { get; set; } + public global::OpenRouter.ActivityItem? Type647 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type648 { get; set; } + public global::OpenRouter.ActivityResponse? Type648 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type649 { get; set; } + public global::System.Collections.Generic.IList? Type649 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type650 { get; set; } + public global::OpenRouter.ChatDebugOptions? Type650 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoType? Type651 { get; set; } + public global::OpenRouter.ChatAudioOutput? Type651 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoInput? Type652 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type652 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControlType? Type653 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type653 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControl? Type654 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type654 { get; set; } /// /// /// - public global::OpenRouter.ChatContentTextType? Type655 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type655 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoType? Type656 { get; set; } + public global::OpenRouter.LegacyChatContentVideoType? Type656 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItems? Type657 { get; set; } + public global::OpenRouter.ChatContentVideoInput? Type657 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1? Type658 { get; set; } + public global::OpenRouter.ChatContentCacheControlType? Type658 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1Type? Type659 { get; set; } + public global::OpenRouter.ChatContentCacheControl? Type659 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2? Type660 { get; set; } + public global::OpenRouter.ChatContentTextType? Type660 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2Type? Type661 { get; set; } + public global::OpenRouter.ChatContentVideoType? Type661 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3? Type662 { get; set; } + public global::OpenRouter.ChatContentItems? Type662 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3Type? Type663 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1? Type663 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant4? Type664 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1Type? Type664 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant5? Type665 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2? Type665 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant6? Type666 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2Type? Type666 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminator? Type667 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3? Type667 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorType? Type668 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3Type? Type668 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type669 { get; set; } + public global::OpenRouter.ChatContentItemsVariant4? Type669 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type670 { get; set; } + public global::OpenRouter.ChatContentItemsVariant5? Type670 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type671 { get; set; } + public global::OpenRouter.ChatContentItemsVariant6? Type671 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItems? Type672 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminator? Type672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type673 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorType? Type673 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnion? Type674 { get; set; } + public global::System.Collections.Generic.IList? Type674 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1? Type675 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type675 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type676 { get; set; } + public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type676 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2? Type677 { get; set; } + public global::OpenRouter.ChatAssistantImagesItems? Type677 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type678 { get; set; } + public global::System.Collections.Generic.IList? Type678 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3? Type679 { get; set; } + public global::OpenRouter.ReasoningDetailUnion? Type679 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type680 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1? Type680 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type681 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type681 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type682 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2? Type682 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type683 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type683 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallFunction? Type684 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3? Type684 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallType? Type685 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type685 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCall? Type686 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type686 { get; set; } /// /// /// - public global::OpenRouter.ChatContentText? Type687 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type688 { get; set; } + public global::System.Collections.Generic.IList? Type688 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type689 { get; set; } + public global::OpenRouter.ChatToolCallFunction? Type689 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageContent? Type690 { get; set; } + public global::OpenRouter.ChatToolCallType? Type690 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageRole? Type691 { get; set; } + public global::OpenRouter.ChatToolCall? Type691 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageContent? Type692 { get; set; } + public global::OpenRouter.ChatContentText? Type692 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageRole? Type693 { get; set; } + public global::System.Collections.Generic.IList? Type693 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageContent? Type694 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type694 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageRole? Type695 { get; set; } + public global::OpenRouter.ChatSystemMessageContent? Type695 { get; set; } /// /// /// - public global::OpenRouter.ChatMessages? Type696 { get; set; } + public global::OpenRouter.ChatSystemMessageRole? Type696 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1? Type697 { get; set; } + public global::OpenRouter.ChatToolMessageContent? Type697 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1Role? Type698 { get; set; } + public global::OpenRouter.ChatToolMessageRole? Type698 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type699 { get; set; } + public global::OpenRouter.ChatUserMessageContent? Type699 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2? Type700 { get; set; } + public global::OpenRouter.ChatUserMessageRole? Type700 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2Role? Type701 { get; set; } + public global::OpenRouter.ChatMessages? Type701 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant3? Type702 { get; set; } + public global::OpenRouter.ChatMessagesVariant1? Type702 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant4? Type703 { get; set; } + public global::OpenRouter.ChatMessagesVariant1Role? Type703 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant5? Type704 { get; set; } + public global::System.Collections.Generic.IList? Type704 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminator? Type705 { get; set; } + public global::OpenRouter.ChatMessagesVariant2? Type705 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorRole? Type706 { get; set; } + public global::OpenRouter.ChatMessagesVariant2Role? Type706 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestModalitiesItems? Type707 { get; set; } + public global::OpenRouter.ChatMessagesVariant3? Type707 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItems? Type708 { get; set; } + public global::OpenRouter.ChatMessagesVariant4? Type708 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type709 { get; set; } + public global::OpenRouter.ChatMessagesVariant5? Type709 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type710 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminator? Type710 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type711 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorRole? Type711 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type712 { get; set; } + public global::OpenRouter.ChatRequestModalitiesItems? Type712 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type713 { get; set; } + public global::OpenRouter.ChatRequestPluginsItems? Type713 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type714 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type714 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type715 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type715 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type716 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type716 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type717 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type717 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type718 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type718 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type719 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type719 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type720 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type720 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type721 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type721 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type722 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type722 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type723 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type723 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type724 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type724 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type725 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type725 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoningEffort? Type726 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type726 { get; set; } /// /// /// - public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type727 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type727 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoning? Type728 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type728 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type729 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type729 { get; set; } /// /// /// - public global::OpenRouter.ChatJsonSchemaConfig? Type730 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type730 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormat? Type731 { get; set; } + public global::OpenRouter.ChatRequestReasoningEffort? Type731 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1? Type732 { get; set; } + public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type732 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type733 { get; set; } + public global::OpenRouter.ChatRequestReasoning? Type733 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant2? Type734 { get; set; } + public global::OpenRouter.OneOf? Type734 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3? Type735 { get; set; } + public global::OpenRouter.ChatJsonSchemaConfig? Type735 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type736 { get; set; } + public global::OpenRouter.ChatRequestResponseFormat? Type736 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4? Type737 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1? Type737 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type738 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type738 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5? Type739 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant2? Type739 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type740 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3? Type740 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type741 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type741 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type742 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4? Type742 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestServiceTier? Type743 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type743 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestStop? Type744 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5? Type744 { get; set; } /// /// /// - public global::OpenRouter.ChatStreamOptions? Type745 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type745 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice0? Type746 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type746 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice1? Type747 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type747 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice2? Type748 { get; set; } + public global::OpenRouter.ChatRequestServiceTier? Type748 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceFunction? Type749 { get; set; } + public global::OpenRouter.ChatRequestStop? Type749 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceType? Type750 { get; set; } + public global::OpenRouter.ChatStreamOptions? Type750 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoice? Type751 { get; set; } + public global::OpenRouter.ChatToolChoice0? Type751 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice? Type752 { get; set; } + public global::OpenRouter.ChatToolChoice1? Type752 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Function? Type753 { get; set; } + public global::OpenRouter.ChatToolChoice2? Type753 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Type? Type754 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceFunction? Type754 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool0? Type755 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceType? Type755 { get; set; } /// /// /// - public global::OpenRouter.WebSearchConfig? Type756 { get; set; } + public global::OpenRouter.ChatNamedToolChoice? Type756 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerToolType? Type757 { get; set; } + public global::OpenRouter.ChatToolChoice? Type757 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerTool? Type758 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Function? Type758 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthandType? Type759 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Type? Type759 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthand? Type760 { get; set; } + public global::OpenRouter.ChatFunctionTool0? Type760 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool? Type761 { get; set; } + public global::OpenRouter.WebSearchConfig? Type761 { get; set; } /// /// /// - public global::OpenRouter.ChatRequest? Type762 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerToolType? Type762 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type763 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerTool? Type763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type764 { get; set; } + public global::OpenRouter.ChatWebSearchShorthandType? Type764 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type765 { get; set; } + public global::OpenRouter.ChatWebSearchShorthand? Type765 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type766 { get; set; } + public global::OpenRouter.ChatFunctionTool? Type766 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type767 { get; set; } + public global::OpenRouter.ChatRequest? Type767 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type768 { get; set; } + public global::System.Collections.Generic.Dictionary? Type768 { get; set; } /// /// /// - public global::OpenRouter.ChatFinishReasonEnum? Type769 { get; set; } + public global::System.Collections.Generic.IList? Type769 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type770 { get; set; } + public global::System.Collections.Generic.IList? Type770 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprob? Type771 { get; set; } + public global::System.Collections.Generic.IList? Type771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type772 { get; set; } + public global::OpenRouter.OneOf? Type772 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobs? Type773 { get; set; } + public global::System.Collections.Generic.IList? Type773 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type774 { get; set; } + public global::OpenRouter.ChatFinishReasonEnum? Type774 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessage? Type775 { get; set; } + public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type775 { get; set; } /// /// /// - public global::OpenRouter.ChatChoice? Type776 { get; set; } + public global::OpenRouter.ChatTokenLogprob? Type776 { get; set; } /// /// /// - public global::OpenRouter.ChatResultObject? Type777 { get; set; } + public global::System.Collections.Generic.IList? Type777 { get; set; } /// /// /// - public global::OpenRouter.ChatUsageCompletionTokensDetails? Type778 { get; set; } + public global::OpenRouter.ChatTokenLogprobs? Type778 { get; set; } /// /// /// - public global::OpenRouter.CostDetails? Type779 { get; set; } + public global::System.Collections.Generic.IList? Type779 { get; set; } /// /// /// - public global::OpenRouter.ChatUsagePromptTokensDetails? Type780 { get; set; } + public global::OpenRouter.ChatAssistantMessage? Type780 { get; set; } /// /// /// - public global::OpenRouter.ChatUsage? Type781 { get; set; } + public global::OpenRouter.ChatChoice? Type781 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type782 { get; set; } + public global::OpenRouter.ChatResultObject? Type782 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type783 { get; set; } + public global::OpenRouter.ChatUsageCompletionTokensDetails? Type783 { get; set; } /// /// /// - public global::OpenRouter.ChatResult? Type784 { get; set; } + public global::OpenRouter.CostDetails? Type784 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type785 { get; set; } + public global::OpenRouter.ChatUsagePromptTokensDetails? Type785 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type786 { get; set; } + public global::OpenRouter.ChatUsage? Type786 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type787 { get; set; } + public global::OpenRouter.OneOf? Type787 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetCreditsResponse200? Type788 { get; set; } + public global::OpenRouter.OneOf? Type788 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type789 { get; set; } + public global::OpenRouter.ChatResult? Type789 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type790 { get; set; } + public global::System.Collections.Generic.IList? Type790 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type791 { get; set; } + public global::System.DateTimeOffset? Type791 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type792 { get; set; } + public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type792 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type793 { get; set; } + public global::OpenRouter.CreditsGetCreditsResponse200? Type793 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type794 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type794 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type795 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type795 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type796 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type796 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type797 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type797 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type798 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type798 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type799 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type799 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type800 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type800 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type801 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type801 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type802 { get; set; } + public global::System.Collections.Generic.IList? Type802 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type803 { get; set; } + public global::System.Collections.Generic.IList? Type803 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type804 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type804 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type805 { get; set; } + public global::System.Collections.Generic.IList? Type805 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type806 { get; set; } + public global::System.Collections.Generic.IList>? Type806 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type807 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type807 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type808 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type808 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type809 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type809 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type810 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type810 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type811 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type811 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type812 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type812 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type813 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type813 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type814 { get; set; } + public global::OpenRouter.OneOf? Type814 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type815 { get; set; } + public global::System.Collections.Generic.IList? Type815 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type816 { get; set; } + public global::System.Collections.Generic.IList? Type816 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type817 { get; set; } + public global::System.Collections.Generic.IList? Type817 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type818 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type818 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type819 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type819 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type820 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type820 { get; set; } /// /// /// - public global::OpenRouter.InputModality? Type821 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type821 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitectureInstructType? Type822 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type822 { get; set; } /// /// /// - public global::OpenRouter.OutputModality? Type823 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type823 { get; set; } /// /// /// - public global::OpenRouter.ModelGroup? Type824 { get; set; } + public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type824 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitecture? Type825 { get; set; } + public global::System.Collections.Generic.IList? Type825 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type826 { get; set; } + public global::OpenRouter.InputModality? Type826 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type827 { get; set; } + public global::OpenRouter.ModelArchitectureInstructType? Type827 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type828 { get; set; } + public global::OpenRouter.OutputModality? Type828 { get; set; } /// /// /// - public global::OpenRouter.DefaultParameters? Type829 { get; set; } + public global::OpenRouter.ModelGroup? Type829 { get; set; } /// /// /// - public global::OpenRouter.ModelLinks? Type830 { get; set; } + public global::OpenRouter.ModelArchitecture? Type830 { get; set; } /// /// /// - public global::OpenRouter.PerRequestLimits? Type831 { get; set; } + public global::System.Collections.Generic.IList? Type831 { get; set; } /// /// /// - public global::OpenRouter.PublicPricing? Type832 { get; set; } + public global::OpenRouter.OneOf? Type832 { get; set; } /// /// /// - public global::OpenRouter.Parameter? Type833 { get; set; } + public global::System.Collections.Generic.IList? Type833 { get; set; } /// /// /// - public global::OpenRouter.TopProviderInfo? Type834 { get; set; } + public global::OpenRouter.DefaultParameters? Type834 { get; set; } /// /// /// - public global::OpenRouter.Model? Type835 { get; set; } + public global::OpenRouter.ModelLinks? Type835 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type836 { get; set; } + public global::OpenRouter.PerRequestLimits? Type836 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type837 { get; set; } + public global::OpenRouter.PublicPricing? Type837 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponse? Type838 { get; set; } + public global::OpenRouter.Parameter? Type838 { get; set; } /// /// /// - public global::OpenRouter.PercentileStats? Type839 { get; set; } + public global::OpenRouter.TopProviderInfo? Type839 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricing? Type840 { get; set; } + public global::OpenRouter.Model? Type840 { get; set; } /// /// /// - public global::OpenRouter.EndpointStatus? Type841 { get; set; } + public global::System.Collections.Generic.IList? Type841 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointThroughputLast30M? Type842 { get; set; } + public global::System.Collections.Generic.IList? Type842 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpoint? Type843 { get; set; } + public global::OpenRouter.ModelsListResponse? Type843 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type844 { get; set; } + public global::OpenRouter.PercentileStats? Type844 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type845 { get; set; } + public global::OpenRouter.PublicEndpointPricing? Type845 { get; set; } /// /// /// - public global::OpenRouter.InstructType2? Type846 { get; set; } + public global::OpenRouter.EndpointStatus? Type846 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitecture? Type847 { get; set; } + public global::OpenRouter.PublicEndpointThroughputLast30M? Type847 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type848 { get; set; } + public global::OpenRouter.PublicEndpoint? Type848 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse? Type849 { get; set; } + public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type849 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsResponse200? Type850 { get; set; } + public global::System.Collections.Generic.IList? Type850 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataApiType? Type851 { get; set; } + public global::OpenRouter.InstructType2? Type851 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseProviderName? Type852 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitecture? Type852 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponse? Type853 { get; set; } + public global::OpenRouter.OneOf? Type853 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseData? Type854 { get; set; } + public global::OpenRouter.ListEndpointsResponse? Type854 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type855 { get; set; } + public global::OpenRouter.EndpointsListEndpointsResponse200? Type855 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type856 { get; set; } + public global::OpenRouter.GenerationResponseDataApiType? Type856 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponse? Type857 { get; set; } + public global::OpenRouter.ProviderResponseProviderName? Type857 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput0? Type858 { get; set; } + public global::OpenRouter.ProviderResponse? Type858 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput1? Type859 { get; set; } + public global::OpenRouter.GenerationResponseData? Type859 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput? Type860 { get; set; } + public global::OpenRouter.OneOf? Type860 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataOutput? Type861 { get; set; } + public global::System.Collections.Generic.IList? Type861 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentData? Type862 { get; set; } + public global::OpenRouter.GenerationResponse? Type862 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentResponse? Type863 { get; set; } + public global::OpenRouter.GenerationContentDataInput0? Type863 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinAction? Type864 { get; set; } + public global::OpenRouter.GenerationContentDataInput1? Type864 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinSlug? Type865 { get; set; } + public global::OpenRouter.GenerationContentDataInput? Type865 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinEntry? Type866 { get; set; } + public global::OpenRouter.GenerationContentDataOutput? Type866 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterAction? Type867 { get; set; } + public global::OpenRouter.GenerationContentData? Type867 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterEntry? Type868 { get; set; } + public global::OpenRouter.GenerationContentResponse? Type868 { get; set; } /// /// /// - public global::OpenRouter.GuardrailInterval? Type869 { get; set; } + public global::OpenRouter.ContentFilterBuiltinAction? Type869 { get; set; } /// /// /// - public global::OpenRouter.Guardrail? Type870 { get; set; } + public global::OpenRouter.ContentFilterBuiltinSlug? Type870 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type871 { get; set; } + public global::OpenRouter.ContentFilterBuiltinEntry? Type871 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type872 { get; set; } + public global::OpenRouter.ContentFilterAction? Type872 { get; set; } /// /// /// - public global::System.Guid? Type873 { get; set; } + public global::OpenRouter.ContentFilterEntry? Type873 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type874 { get; set; } + public global::OpenRouter.GuardrailInterval? Type874 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type875 { get; set; } + public global::OpenRouter.Guardrail? Type875 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailRequest? Type876 { get; set; } + public global::System.Collections.Generic.IList? Type876 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponseData? Type877 { get; set; } + public global::System.Collections.Generic.IList? Type877 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponse? Type878 { get; set; } + public global::System.Guid? Type878 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponseData? Type879 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type879 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type880 { get; set; } + public global::System.Collections.Generic.IList? Type880 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type881 { get; set; } + public global::OpenRouter.CreateGuardrailRequest? Type881 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type882 { get; set; } + public global::OpenRouter.CreateGuardrailResponseData? Type882 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponseData? Type883 { get; set; } + public global::OpenRouter.CreateGuardrailResponse? Type883 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type884 { get; set; } + public global::OpenRouter.GetGuardrailResponseData? Type884 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type885 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type885 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type886 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type886 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type887 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type887 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysRequest? Type888 { get; set; } + public global::OpenRouter.UpdateGuardrailResponseData? Type888 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysResponse? Type889 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type889 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysRequest? Type890 { get; set; } + public global::OpenRouter.KeyAssignment? Type890 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysResponse? Type891 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type891 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type892 { get; set; } + public global::System.Collections.Generic.IList? Type892 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type893 { get; set; } + public global::OpenRouter.BulkAssignKeysRequest? Type893 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type894 { get; set; } + public global::OpenRouter.BulkAssignKeysResponse? Type894 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersRequest? Type895 { get; set; } + public global::OpenRouter.BulkUnassignKeysRequest? Type895 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersResponse? Type896 { get; set; } + public global::OpenRouter.BulkUnassignKeysResponse? Type896 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersRequest? Type897 { get; set; } + public global::OpenRouter.MemberAssignment? Type897 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersResponse? Type898 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type898 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type899 { get; set; } + public global::System.Collections.Generic.IList? Type899 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type900 { get; set; } + public global::OpenRouter.BulkAssignMembersRequest? Type900 { get; set; } /// /// /// - public global::System.DateTime? Type901 { get; set; } + public global::OpenRouter.BulkAssignMembersResponse? Type901 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type902 { get; set; } + public global::OpenRouter.BulkUnassignMembersRequest? Type902 { get; set; } /// /// /// - public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type903 { get; set; } + public global::OpenRouter.BulkUnassignMembersResponse? Type903 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysListResponse200? Type904 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type904 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type905 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type905 { get; set; } /// /// /// - public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type906 { get; set; } + public global::System.DateTime? Type906 { get; set; } /// /// /// - public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type907 { get; set; } + public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type907 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysCreateKeysResponse201? Type908 { get; set; } + public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type908 { get; set; } /// /// /// - public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type909 { get; set; } + public global::OpenRouter.ApiKeysListResponse200? Type909 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetKeyResponse200? Type910 { get; set; } + public global::System.Collections.Generic.IList? Type910 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type911 { get; set; } + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type911 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type912 { get; set; } + public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type912 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type913 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysResponse201? Type913 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type914 { get; set; } + public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type914 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type915 { get; set; } + public global::OpenRouter.ApiKeysGetKeyResponse200? Type915 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type916 { get; set; } + public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type916 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type917 { get; set; } + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type917 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeepType? Type918 { get; set; } + public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type918 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeep? Type919 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type919 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type920 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type920 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type921 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type921 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type922 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type922 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type923 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeepType? Type923 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type924 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeep? Type924 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type925 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type925 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type926 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type926 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type927 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type927 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type928 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type928 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurnsType? Type929 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type929 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurns? Type930 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type930 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type931 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type931 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type932 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type932 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type933 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type933 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type934 { get; set; } + public global::OpenRouter.AnthropicThinkingTurnsType? Type934 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type935 { get; set; } + public global::OpenRouter.AnthropicThinkingTurns? Type935 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type936 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type936 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type937 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type937 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type938 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type938 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type939 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type939 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type940 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type940 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type941 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type941 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type942 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type942 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type943 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type943 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type944 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type944 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type945 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type945 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type946 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type946 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type947 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type947 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type948 { get; set; } + public global::System.Collections.Generic.IList? Type948 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type949 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type949 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type950 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type950 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type951 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type951 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type952 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type952 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type953 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type953 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type954 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type954 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type955 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type955 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type956 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type956 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamType? Type957 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type957 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParam? Type958 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type958 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type959 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type959 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageMimeType? Type960 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type960 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSourceType? Type961 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type961 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSource? Type962 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamType? Type962 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type963 { get; set; } + public global::OpenRouter.AnthropicTextBlockParam? Type963 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type964 { get; set; } + public global::System.Collections.Generic.IList? Type964 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type965 { get; set; } + public global::OpenRouter.AnthropicImageMimeType? Type965 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type966 { get; set; } + public global::OpenRouter.AnthropicUrlImageSourceType? Type966 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type967 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSource? Type967 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamType? Type968 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type968 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParam? Type969 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type969 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type970 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type970 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type971 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type971 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceType? Type972 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type972 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSource? Type973 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamType? Type973 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type974 { get; set; } + public global::OpenRouter.AnthropicImageBlockParam? Type974 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceType? Type975 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type975 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSource? Type976 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type976 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type977 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceType? Type977 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type978 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSource? Type978 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type979 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type979 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type980 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceType? Type980 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type981 { get; set; } + public global::OpenRouter.AnthropicPlainTextSource? Type981 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type982 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type982 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type983 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type983 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type984 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type984 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type985 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type985 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSourceType? Type986 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type986 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSource? Type987 { get; set; } + public global::System.Collections.Generic.IList? Type987 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource? Type988 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type988 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamType? Type989 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type989 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParam? Type990 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type990 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type991 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSourceType? Type991 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type992 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSource? Type992 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type993 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource? Type993 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type994 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamType? Type994 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type995 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParam? Type995 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type996 { get; set; } + public global::OpenRouter.OneOf? Type996 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamType? Type997 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type997 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParam? Type998 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type998 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type999 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type999 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1000 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1000 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1001 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1001 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1002 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1002 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1003 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParam? Type1003 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1004 { get; set; } + public global::System.Collections.Generic.IList? Type1004 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1005 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1005 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1006 { get; set; } + public global::System.Collections.Generic.IList? Type1006 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1007 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1007 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1008 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1008 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1009 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1009 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1010 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1010 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1011 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1011 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1012 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1012 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1013 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1013 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1014 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1014 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1015 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1015 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1016 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1016 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1017 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1017 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1018 { get; set; } + public global::System.Collections.Generic.IList? Type1018 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1019 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1019 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1020 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1020 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1021 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1021 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1022 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1022 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1023 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1023 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1024 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1024 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1025 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1025 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContent? Type1026 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1026 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type1027 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1027 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type1028 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1028 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type1029 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1029 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type1030 { get; set; } + public global::System.Collections.Generic.IList? Type1030 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type1031 { get; set; } + public global::OpenRouter.MessagesMessageParamContent? Type1031 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type1032 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type1032 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1033 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type1033 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1034 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type1034 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type1035 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type1035 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1036 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type1036 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1037 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type1037 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1038 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1038 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItems? Type1039 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1039 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1040 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type1040 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1041 { get; set; } + public global::OpenRouter.OneOf? Type1041 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1042 { get; set; } + public global::OpenRouter.OneOf? Type1042 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1043 { get; set; } + public global::OpenRouter.OneOf? Type1043 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1044 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItems? Type1044 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1045 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1045 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1046 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1046 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1047 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1047 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1048 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1048 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1049 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1049 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1050 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1050 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1051 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1051 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1052 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1052 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1053 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1053 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1054 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1054 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1055 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1055 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1056 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1056 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type1057 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1057 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSystem? Type1058 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1058 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingDisplay? Type1059 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1059 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1060 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1060 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type1061 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1061 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1062 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type1062 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type1063 { get; set; } + public global::OpenRouter.MessagesRequestSystem? Type1063 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1064 { get; set; } + public global::OpenRouter.AnthropicThinkingDisplay? Type1064 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type1065 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1065 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type1066 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type1066 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1067 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1067 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type1068 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type1068 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1069 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1069 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type1070 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type1070 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1071 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type1071 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type1072 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1072 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1073 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type1073 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type1074 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1074 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type1075 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type1075 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1076 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1076 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1077 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type1077 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type1078 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1078 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1079 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type1079 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1080 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type1080 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type1081 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1081 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1082 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1082 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1083 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type1083 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type1084 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1084 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1085 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1085 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1086 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type1086 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1087 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1087 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1088 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1088 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type1089 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type1089 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAllowedCallersItems? Type1090 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1090 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1091 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1091 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1092 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1092 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1093 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1093 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type1094 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type1094 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1095 { get; set; } + public global::OpenRouter.AnthropicAllowedCallersItems? Type1095 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1096 { get; set; } + public global::System.Collections.Generic.IList? Type1096 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1097 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1097 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1098 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1098 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems5? Type1099 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type1099 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems11? Type1100 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1100 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type1101 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1101 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type1102 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1102 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1103 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1104 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems5? Type1104 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1105 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems11? Type1105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1106 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type1106 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type1107 { get; set; } + public global::OpenRouter.MessagesRequest? Type1107 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1108 { get; set; } + public global::OpenRouter.OneOf? Type1108 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1109 { get; set; } + public global::System.Collections.Generic.IList? Type1109 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1110 { get; set; } + public global::System.Collections.Generic.IList? Type1110 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1111 { get; set; } + public global::System.Collections.Generic.IList? Type1111 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1112 { get; set; } + public global::OpenRouter.AnthropicContainer? Type1112 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1113 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1113 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1114 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1115 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1115 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1116 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1116 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1117 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1117 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1118 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1118 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1119 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1119 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type1120 { get; set; } + public global::System.Collections.Generic.IList? Type1120 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type1121 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1121 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type1122 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1122 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1123 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1123 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1124 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1124 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type1125 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type1125 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1126 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type1126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1127 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type1127 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1128 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1128 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1129 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1129 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1130 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type1130 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1131 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1131 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCaller? Type1132 { get; set; } + public global::System.Collections.Generic.IList? Type1132 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1133 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1133 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1134 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1134 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1135 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1135 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1136 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1136 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1137 { get; set; } + public global::OpenRouter.ORAnthropicNullableCaller? Type1137 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1138 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1138 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1139 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1139 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1140 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1140 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1141 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1141 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type1142 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1142 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1? Type1143 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1143 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1144 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1144 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2? Type1145 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1145 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1146 { get; set; } + public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1146 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3? Type1147 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type1147 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1148 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1? Type1148 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4? Type1149 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1149 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1150 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2? Type1150 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5? Type1151 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1151 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1152 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3? Type1152 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1153 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1153 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1154 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4? Type1154 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1155 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1155 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1156 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5? Type1156 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1157 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1157 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1158 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1158 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1159 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1159 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1160 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1160 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1161 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1161 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1162 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1162 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1163 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1163 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1164 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1164 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1165 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1165 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1166 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1166 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1167 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1167 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1168 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1168 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type1169 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1169 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type1170 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1170 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type1171 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1171 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type1172 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1172 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1173 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1173 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1174 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type1174 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1175 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type1175 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1176 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type1176 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1177 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type1177 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type1178 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1178 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1? Type1179 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1179 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1Type? Type1180 { get; set; } + public global::System.Collections.Generic.IList? Type1180 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2? Type1181 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1181 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2Type? Type1182 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1182 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3? Type1183 { get; set; } + public global::OpenRouter.AnthropicCaller? Type1183 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3Type? Type1184 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1? Type1184 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminator? Type1185 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1Type? Type1185 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1186 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2? Type1186 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type1187 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2Type? Type1187 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type1188 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3? Type1188 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type1189 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3Type? Type1189 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type1190 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminator? Type1190 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1191 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1191 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1192 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type1192 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type1193 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type1193 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1194 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type1194 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1195 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type1195 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1196 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1196 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1197 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1197 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1198 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type1198 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type1199 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1199 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type1200 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1201 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1201 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1202 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1202 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1203 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1203 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type1204 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type1204 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1205 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type1205 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type1206 { get; set; } + public global::System.Collections.Generic.IList? Type1206 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1207 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1207 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1208 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1208 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1209 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type1209 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1210 { get; set; } + public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1210 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1211 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type1211 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1212 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1212 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1213 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1213 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1214 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1214 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1215 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1215 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1216 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1216 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1217 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1217 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1218 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1218 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1219 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1219 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1220 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1220 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1221 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1222 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1222 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1223 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1223 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1224 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1224 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1225 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1225 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1226 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1226 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1227 { get; set; } + public global::System.Collections.Generic.IList? Type1227 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1228 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1228 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1229 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1229 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1230 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1230 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1231 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1231 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1232 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1232 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1233 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1233 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1234 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1234 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1235 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1235 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1236 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1236 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultRole? Type1237 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1237 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1238 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1238 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1239 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1239 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetails? Type1240 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1240 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1241 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1241 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type1242 { get; set; } + public global::OpenRouter.MessagesResultRole? Type1242 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultType? Type1243 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1243 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type1244 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1244 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type1245 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetails? Type1245 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type1246 { get; set; } + public global::OpenRouter.OneOf? Type1246 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type1247 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type1247 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type1248 { get; set; } + public global::OpenRouter.MessagesResultType? Type1248 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type1249 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type1249 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type1250 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type1250 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type1251 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type1251 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type1252 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type1252 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type1253 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type1253 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type1254 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type1254 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type1255 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type1255 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type1256 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type1256 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1257 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type1257 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1258 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type1258 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagement? Type1259 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type1259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1260 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type1260 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type1261 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type1261 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1262 { get; set; } + public global::System.Collections.Generic.IList? Type1262 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1263 { get; set; } + public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1263 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type1264 { get; set; } + public global::OpenRouter.MessagesResultContextManagement? Type1264 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type1265 { get; set; } + public global::System.Collections.Generic.IList? Type1265 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type1266 { get; set; } + public global::OpenRouter.MessagesResult? Type1266 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type1267 { get; set; } + public global::System.Collections.Generic.IList? Type1267 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type1268 { get; set; } + public global::OpenRouter.OneOf? Type1268 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type1269 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type1269 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1270 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type1270 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1271 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type1271 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1272 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type1272 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1273 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type1273 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1274 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type1274 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1275 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1275 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1276 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1276 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1277 { get; set; } + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1277 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1278 { get; set; } + public global::System.Collections.Generic.IList? Type1278 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type1279 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1280 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1280 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1281 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1281 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1282 { get; set; } + public global::System.Collections.Generic.IList? Type1282 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1283 { get; set; } + public global::OpenRouter.OneOf? Type1283 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1284 { get; set; } + public global::OpenRouter.ProvidersListProvidersResponse200? Type1284 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1285 { get; set; } + public global::System.Collections.Generic.IList? Type1285 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1286 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1286 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1287 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1287 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1288 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1288 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1289 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1290 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1290 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1291 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1291 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1292 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1292 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1293 { get; set; } + public global::OpenRouter.OneOf? Type1293 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1294 { get; set; } + public global::System.Collections.Generic.IList? Type1294 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type1295 { get; set; } + public global::System.Collections.Generic.IList? Type1295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1296 { get; set; } + public global::System.Collections.Generic.IList? Type1296 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1297 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1297 { get; set; } /// /// /// - public global::OpenRouter.FrameImageImageUrl? Type1298 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1298 { get; set; } /// /// /// - public global::OpenRouter.FrameImageType? Type1299 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1299 { get; set; } /// /// /// - public global::OpenRouter.FrameImageFrameType? Type1300 { get; set; } + public global::OpenRouter.RerankCreateRerankResponse200? Type1300 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1301 { get; set; } + public global::System.Collections.Generic.IList? Type1301 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageImageUrl? Type1302 { get; set; } + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1302 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageType? Type1303 { get; set; } + public global::OpenRouter.FrameImageImageUrl? Type1303 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImage? Type1304 { get; set; } + public global::OpenRouter.FrameImageType? Type1304 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1305 { get; set; } + public global::OpenRouter.FrameImageFrameType? Type1305 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type1306 { get; set; } + public global::OpenRouter.FrameImage? Type1306 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type1307 { get; set; } + public global::OpenRouter.ContentPartImageImageUrl? Type1307 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type1308 { get; set; } + public global::OpenRouter.ContentPartImageType? Type1308 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1309 { get; set; } + public global::OpenRouter.ContentPartImage? Type1309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1310 { get; set; } + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1310 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type1311 { get; set; } + public global::OpenRouter.VideoGenerationRequestProvider? Type1311 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type1312 { get; set; } + public global::OpenRouter.VideoGenerationRequestResolution? Type1312 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type1313 { get; set; } + public global::OpenRouter.VideoGenerationRequest? Type1313 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1314 { get; set; } + public global::System.Collections.Generic.IList? Type1314 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1315 { get; set; } + public global::System.Collections.Generic.IList? Type1315 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1316 { get; set; } + public global::OpenRouter.VideoGenerationResponseStatus? Type1316 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type1317 { get; set; } + public global::OpenRouter.VideoGenerationUsage? Type1317 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type1318 { get; set; } + public global::OpenRouter.VideoGenerationResponse? Type1318 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1319 { get; set; } + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1319 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1320 { get; set; } + public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1320 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1321 { get; set; } + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1321 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1322 { get; set; } + public global::OpenRouter.VideoModelSupportedSizesItems? Type1322 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1323 { get; set; } + public global::OpenRouter.VideoModel? Type1323 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type1324 { get; set; } + public global::System.Collections.Generic.IList? Type1324 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1325 { get; set; } + public global::System.Collections.Generic.IList? Type1325 { get; set; } /// /// /// - public global::OpenRouter.Workspace? Type1326 { get; set; } + public global::System.Collections.Generic.IList? Type1326 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspacesResponse? Type1327 { get; set; } + public global::System.Collections.Generic.IList? Type1327 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1328 { get; set; } + public global::System.Collections.Generic.IList? Type1328 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceRequest? Type1329 { get; set; } + public global::OpenRouter.VideoModelsListResponse? Type1329 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponseData? Type1330 { get; set; } + public global::System.Collections.Generic.IList? Type1330 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponse? Type1331 { get; set; } + public global::OpenRouter.Workspace? Type1331 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponseData? Type1332 { get; set; } + public global::OpenRouter.ListWorkspacesResponse? Type1332 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponse? Type1333 { get; set; } + public global::System.Collections.Generic.IList? Type1333 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceResponse? Type1334 { get; set; } + public global::OpenRouter.CreateWorkspaceRequest? Type1334 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceRequest? Type1335 { get; set; } + public global::OpenRouter.CreateWorkspaceResponseData? Type1335 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponseData? Type1336 { get; set; } + public global::OpenRouter.CreateWorkspaceResponse? Type1336 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponse? Type1337 { get; set; } + public global::OpenRouter.GetWorkspaceResponseData? Type1337 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1338 { get; set; } + public global::OpenRouter.GetWorkspaceResponse? Type1338 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMemberRole? Type1339 { get; set; } + public global::OpenRouter.DeleteWorkspaceResponse? Type1339 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMember? Type1340 { get; set; } + public global::OpenRouter.UpdateWorkspaceRequest? Type1340 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1341 { get; set; } + public global::OpenRouter.UpdateWorkspaceResponseData? Type1341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1342 { get; set; } + public global::OpenRouter.UpdateWorkspaceResponse? Type1342 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1343 { get; set; } + public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1343 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1344 { get; set; } + public global::OpenRouter.WorkspaceMemberRole? Type1344 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1345 { get; set; } + public global::OpenRouter.WorkspaceMember? Type1345 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1346 { get; set; } + public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1346 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1347 { get; set; } + public global::System.Collections.Generic.IList? Type1347 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1348 { get; set; } + public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1348 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1349 { get; set; } + public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1349 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1350 { get; set; } + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1350 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1351 { get; set; } + public global::OpenRouter.OneOf? Type1351 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1352 { get; set; } + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1352 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1353 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequest? Type1353 { get; set; } /// /// /// - public byte[]? Type1354 { get; set; } + public global::OpenRouter.CreateKeysRequest? Type1354 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1355 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysRequest? Type1356 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1357 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1358 { get; set; } + /// + /// + /// + public byte[]? Type1359 { get; set; } /// /// @@ -5489,7 +5509,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItem.g.cs index a8001cd4..d3caa1f8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItem.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItem.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// A file create/update/delete via diff patch + /// A tool call emitted by the model requesting a V4A patch operation. The client applies the patch and echoes an `apply_patch_call_output` on the next turn. /// public sealed partial class ApplyPatchCallItem { @@ -22,20 +22,20 @@ public sealed partial class ApplyPatchCallItem public string? Id { get; set; } /// - /// + /// The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. /// [global::System.Text.Json.Serialization.JsonPropertyName("operation")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ApplyPatchCallItemOperation Operation { get; set; } + public required global::OpenRouter.ApplyPatchCallOperation Operation { get; set; } /// - /// + /// Lifecycle state of an `apply_patch_call` output item. /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ApplyPatchCallItemStatus Status { get; set; } + public required global::OpenRouter.ApplyPatchCallStatus Status { get; set; } /// /// @@ -54,8 +54,12 @@ public sealed partial class ApplyPatchCallItem /// Initializes a new instance of the class. /// /// - /// - /// + /// + /// The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. + /// + /// + /// Lifecycle state of an `apply_patch_call` output item. + /// /// /// #if NET7_0_OR_GREATER @@ -63,8 +67,8 @@ public sealed partial class ApplyPatchCallItem #endif public ApplyPatchCallItem( string callId, - global::OpenRouter.ApplyPatchCallItemOperation operation, - global::OpenRouter.ApplyPatchCallItemStatus status, + global::OpenRouter.ApplyPatchCallOperation operation, + global::OpenRouter.ApplyPatchCallStatus status, string? id, global::OpenRouter.ApplyPatchCallItemType type) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation.g.cs deleted file mode 100644 index 28d85783..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation.g.cs +++ /dev/null @@ -1,378 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct ApplyPatchCallItemOperation : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ApplyPatchCallItemOperation0? ApplyPatchCallItemOperation0 { get; init; } -#else - public global::OpenRouter.ApplyPatchCallItemOperation0? ApplyPatchCallItemOperation0 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallItemOperation0))] -#endif - public bool IsApplyPatchCallItemOperation0 => ApplyPatchCallItemOperation0 != null; - - /// - /// - /// - public bool TryPickApplyPatchCallItemOperation0( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ApplyPatchCallItemOperation0? value) - { - value = ApplyPatchCallItemOperation0; - return IsApplyPatchCallItemOperation0; - } - - /// - /// - /// - public global::OpenRouter.ApplyPatchCallItemOperation0 PickApplyPatchCallItemOperation0() => IsApplyPatchCallItemOperation0 - ? ApplyPatchCallItemOperation0! - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallItemOperation0' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ApplyPatchCallItemOperation1? ApplyPatchCallItemOperation1 { get; init; } -#else - public global::OpenRouter.ApplyPatchCallItemOperation1? ApplyPatchCallItemOperation1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallItemOperation1))] -#endif - public bool IsApplyPatchCallItemOperation1 => ApplyPatchCallItemOperation1 != null; - - /// - /// - /// - public bool TryPickApplyPatchCallItemOperation1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ApplyPatchCallItemOperation1? value) - { - value = ApplyPatchCallItemOperation1; - return IsApplyPatchCallItemOperation1; - } - - /// - /// - /// - public global::OpenRouter.ApplyPatchCallItemOperation1 PickApplyPatchCallItemOperation1() => IsApplyPatchCallItemOperation1 - ? ApplyPatchCallItemOperation1! - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallItemOperation1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ApplyPatchCallItemOperation2? ApplyPatchCallItemOperation2 { get; init; } -#else - public global::OpenRouter.ApplyPatchCallItemOperation2? ApplyPatchCallItemOperation2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallItemOperation2))] -#endif - public bool IsApplyPatchCallItemOperation2 => ApplyPatchCallItemOperation2 != null; - - /// - /// - /// - public bool TryPickApplyPatchCallItemOperation2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ApplyPatchCallItemOperation2? value) - { - value = ApplyPatchCallItemOperation2; - return IsApplyPatchCallItemOperation2; - } - - /// - /// - /// - public global::OpenRouter.ApplyPatchCallItemOperation2 PickApplyPatchCallItemOperation2() => IsApplyPatchCallItemOperation2 - ? ApplyPatchCallItemOperation2! - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallItemOperation2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ApplyPatchCallItemOperation(global::OpenRouter.ApplyPatchCallItemOperation0 value) => new ApplyPatchCallItemOperation((global::OpenRouter.ApplyPatchCallItemOperation0?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ApplyPatchCallItemOperation0?(ApplyPatchCallItemOperation @this) => @this.ApplyPatchCallItemOperation0; - - /// - /// - /// - public ApplyPatchCallItemOperation(global::OpenRouter.ApplyPatchCallItemOperation0? value) - { - ApplyPatchCallItemOperation0 = value; - } - - /// - /// - /// - public static ApplyPatchCallItemOperation FromApplyPatchCallItemOperation0(global::OpenRouter.ApplyPatchCallItemOperation0? value) => new ApplyPatchCallItemOperation(value); - - /// - /// - /// - public static implicit operator ApplyPatchCallItemOperation(global::OpenRouter.ApplyPatchCallItemOperation1 value) => new ApplyPatchCallItemOperation((global::OpenRouter.ApplyPatchCallItemOperation1?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ApplyPatchCallItemOperation1?(ApplyPatchCallItemOperation @this) => @this.ApplyPatchCallItemOperation1; - - /// - /// - /// - public ApplyPatchCallItemOperation(global::OpenRouter.ApplyPatchCallItemOperation1? value) - { - ApplyPatchCallItemOperation1 = value; - } - - /// - /// - /// - public static ApplyPatchCallItemOperation FromApplyPatchCallItemOperation1(global::OpenRouter.ApplyPatchCallItemOperation1? value) => new ApplyPatchCallItemOperation(value); - - /// - /// - /// - public static implicit operator ApplyPatchCallItemOperation(global::OpenRouter.ApplyPatchCallItemOperation2 value) => new ApplyPatchCallItemOperation((global::OpenRouter.ApplyPatchCallItemOperation2?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ApplyPatchCallItemOperation2?(ApplyPatchCallItemOperation @this) => @this.ApplyPatchCallItemOperation2; - - /// - /// - /// - public ApplyPatchCallItemOperation(global::OpenRouter.ApplyPatchCallItemOperation2? value) - { - ApplyPatchCallItemOperation2 = value; - } - - /// - /// - /// - public static ApplyPatchCallItemOperation FromApplyPatchCallItemOperation2(global::OpenRouter.ApplyPatchCallItemOperation2? value) => new ApplyPatchCallItemOperation(value); - - /// - /// - /// - public ApplyPatchCallItemOperation( - global::OpenRouter.ApplyPatchCallItemOperation0? applyPatchCallItemOperation0, - global::OpenRouter.ApplyPatchCallItemOperation1? applyPatchCallItemOperation1, - global::OpenRouter.ApplyPatchCallItemOperation2? applyPatchCallItemOperation2 - ) - { - ApplyPatchCallItemOperation0 = applyPatchCallItemOperation0; - ApplyPatchCallItemOperation1 = applyPatchCallItemOperation1; - ApplyPatchCallItemOperation2 = applyPatchCallItemOperation2; - } - - /// - /// - /// - public object? Object => - ApplyPatchCallItemOperation2 as object ?? - ApplyPatchCallItemOperation1 as object ?? - ApplyPatchCallItemOperation0 as object - ; - - /// - /// - /// - public override string? ToString() => - ApplyPatchCallItemOperation0?.ToString() ?? - ApplyPatchCallItemOperation1?.ToString() ?? - ApplyPatchCallItemOperation2?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsApplyPatchCallItemOperation0 && !IsApplyPatchCallItemOperation1 && !IsApplyPatchCallItemOperation2 || !IsApplyPatchCallItemOperation0 && IsApplyPatchCallItemOperation1 && !IsApplyPatchCallItemOperation2 || !IsApplyPatchCallItemOperation0 && !IsApplyPatchCallItemOperation1 && IsApplyPatchCallItemOperation2; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? applyPatchCallItemOperation0 = null, - global::System.Func? applyPatchCallItemOperation1 = null, - global::System.Func? applyPatchCallItemOperation2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApplyPatchCallItemOperation0 && applyPatchCallItemOperation0 != null) - { - return applyPatchCallItemOperation0(ApplyPatchCallItemOperation0!); - } - else if (IsApplyPatchCallItemOperation1 && applyPatchCallItemOperation1 != null) - { - return applyPatchCallItemOperation1(ApplyPatchCallItemOperation1!); - } - else if (IsApplyPatchCallItemOperation2 && applyPatchCallItemOperation2 != null) - { - return applyPatchCallItemOperation2(ApplyPatchCallItemOperation2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? applyPatchCallItemOperation0 = null, - - global::System.Action? applyPatchCallItemOperation1 = null, - - global::System.Action? applyPatchCallItemOperation2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApplyPatchCallItemOperation0) - { - applyPatchCallItemOperation0?.Invoke(ApplyPatchCallItemOperation0!); - } - else if (IsApplyPatchCallItemOperation1) - { - applyPatchCallItemOperation1?.Invoke(ApplyPatchCallItemOperation1!); - } - else if (IsApplyPatchCallItemOperation2) - { - applyPatchCallItemOperation2?.Invoke(ApplyPatchCallItemOperation2!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? applyPatchCallItemOperation0 = null, - global::System.Action? applyPatchCallItemOperation1 = null, - global::System.Action? applyPatchCallItemOperation2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApplyPatchCallItemOperation0) - { - applyPatchCallItemOperation0?.Invoke(ApplyPatchCallItemOperation0!); - } - else if (IsApplyPatchCallItemOperation1) - { - applyPatchCallItemOperation1?.Invoke(ApplyPatchCallItemOperation1!); - } - else if (IsApplyPatchCallItemOperation2) - { - applyPatchCallItemOperation2?.Invoke(ApplyPatchCallItemOperation2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - ApplyPatchCallItemOperation0, - typeof(global::OpenRouter.ApplyPatchCallItemOperation0), - ApplyPatchCallItemOperation1, - typeof(global::OpenRouter.ApplyPatchCallItemOperation1), - ApplyPatchCallItemOperation2, - typeof(global::OpenRouter.ApplyPatchCallItemOperation2), - }; - 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(ApplyPatchCallItemOperation other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallItemOperation0, other.ApplyPatchCallItemOperation0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallItemOperation1, other.ApplyPatchCallItemOperation1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallItemOperation2, other.ApplyPatchCallItemOperation2) - ; - } - - /// - /// - /// - public static bool operator ==(ApplyPatchCallItemOperation obj1, ApplyPatchCallItemOperation obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ApplyPatchCallItemOperation obj1, ApplyPatchCallItemOperation obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ApplyPatchCallItemOperation o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation1.Json.g.cs deleted file mode 100644 index 167105c0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation1.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ApplyPatchCallItemOperation1 - { - /// - /// 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::OpenRouter.ApplyPatchCallItemOperation1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ApplyPatchCallItemOperation1), - jsonSerializerContext) as global::OpenRouter.ApplyPatchCallItemOperation1; - } - - /// - /// 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::OpenRouter.ApplyPatchCallItemOperation1? 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::OpenRouter.ApplyPatchCallItemOperation1), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallItemOperation1; - } - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus.g.cs deleted file mode 100644 index 1ac3c5f3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct ApplyPatchCallItemStatus : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ApplyPatchCallItemStatus0? ApplyPatchCallItemStatus0 { get; init; } -#else - public global::OpenRouter.ApplyPatchCallItemStatus0? ApplyPatchCallItemStatus0 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallItemStatus0))] -#endif - public bool IsApplyPatchCallItemStatus0 => ApplyPatchCallItemStatus0 != null; - - /// - /// - /// - public bool TryPickApplyPatchCallItemStatus0( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ApplyPatchCallItemStatus0? value) - { - value = ApplyPatchCallItemStatus0; - return IsApplyPatchCallItemStatus0; - } - - /// - /// - /// - public global::OpenRouter.ApplyPatchCallItemStatus0 PickApplyPatchCallItemStatus0() => IsApplyPatchCallItemStatus0 - ? ApplyPatchCallItemStatus0!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallItemStatus0' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ApplyPatchCallItemStatus1? ApplyPatchCallItemStatus1 { get; init; } -#else - public global::OpenRouter.ApplyPatchCallItemStatus1? ApplyPatchCallItemStatus1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallItemStatus1))] -#endif - public bool IsApplyPatchCallItemStatus1 => ApplyPatchCallItemStatus1 != null; - - /// - /// - /// - public bool TryPickApplyPatchCallItemStatus1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ApplyPatchCallItemStatus1? value) - { - value = ApplyPatchCallItemStatus1; - return IsApplyPatchCallItemStatus1; - } - - /// - /// - /// - public global::OpenRouter.ApplyPatchCallItemStatus1 PickApplyPatchCallItemStatus1() => IsApplyPatchCallItemStatus1 - ? ApplyPatchCallItemStatus1!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallItemStatus1' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ApplyPatchCallItemStatus(global::OpenRouter.ApplyPatchCallItemStatus0 value) => new ApplyPatchCallItemStatus((global::OpenRouter.ApplyPatchCallItemStatus0?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ApplyPatchCallItemStatus0?(ApplyPatchCallItemStatus @this) => @this.ApplyPatchCallItemStatus0; - - /// - /// - /// - public ApplyPatchCallItemStatus(global::OpenRouter.ApplyPatchCallItemStatus0? value) - { - ApplyPatchCallItemStatus0 = value; - } - - /// - /// - /// - public static ApplyPatchCallItemStatus FromApplyPatchCallItemStatus0(global::OpenRouter.ApplyPatchCallItemStatus0? value) => new ApplyPatchCallItemStatus(value); - - /// - /// - /// - public static implicit operator ApplyPatchCallItemStatus(global::OpenRouter.ApplyPatchCallItemStatus1 value) => new ApplyPatchCallItemStatus((global::OpenRouter.ApplyPatchCallItemStatus1?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ApplyPatchCallItemStatus1?(ApplyPatchCallItemStatus @this) => @this.ApplyPatchCallItemStatus1; - - /// - /// - /// - public ApplyPatchCallItemStatus(global::OpenRouter.ApplyPatchCallItemStatus1? value) - { - ApplyPatchCallItemStatus1 = value; - } - - /// - /// - /// - public static ApplyPatchCallItemStatus FromApplyPatchCallItemStatus1(global::OpenRouter.ApplyPatchCallItemStatus1? value) => new ApplyPatchCallItemStatus(value); - - /// - /// - /// - public ApplyPatchCallItemStatus( - global::OpenRouter.ApplyPatchCallItemStatus0? applyPatchCallItemStatus0, - global::OpenRouter.ApplyPatchCallItemStatus1? applyPatchCallItemStatus1 - ) - { - ApplyPatchCallItemStatus0 = applyPatchCallItemStatus0; - ApplyPatchCallItemStatus1 = applyPatchCallItemStatus1; - } - - /// - /// - /// - public object? Object => - ApplyPatchCallItemStatus1 as object ?? - ApplyPatchCallItemStatus0 as object - ; - - /// - /// - /// - public override string? ToString() => - ApplyPatchCallItemStatus0?.ToValueString() ?? - ApplyPatchCallItemStatus1?.ToValueString() - ; - - /// - /// - /// - public bool Validate() - { - return IsApplyPatchCallItemStatus0 && !IsApplyPatchCallItemStatus1 || !IsApplyPatchCallItemStatus0 && IsApplyPatchCallItemStatus1; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? applyPatchCallItemStatus0 = null, - global::System.Func? applyPatchCallItemStatus1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApplyPatchCallItemStatus0 && applyPatchCallItemStatus0 != null) - { - return applyPatchCallItemStatus0(ApplyPatchCallItemStatus0!); - } - else if (IsApplyPatchCallItemStatus1 && applyPatchCallItemStatus1 != null) - { - return applyPatchCallItemStatus1(ApplyPatchCallItemStatus1!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? applyPatchCallItemStatus0 = null, - - global::System.Action? applyPatchCallItemStatus1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApplyPatchCallItemStatus0) - { - applyPatchCallItemStatus0?.Invoke(ApplyPatchCallItemStatus0!); - } - else if (IsApplyPatchCallItemStatus1) - { - applyPatchCallItemStatus1?.Invoke(ApplyPatchCallItemStatus1!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? applyPatchCallItemStatus0 = null, - global::System.Action? applyPatchCallItemStatus1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApplyPatchCallItemStatus0) - { - applyPatchCallItemStatus0?.Invoke(ApplyPatchCallItemStatus0!); - } - else if (IsApplyPatchCallItemStatus1) - { - applyPatchCallItemStatus1?.Invoke(ApplyPatchCallItemStatus1!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - ApplyPatchCallItemStatus0, - typeof(global::OpenRouter.ApplyPatchCallItemStatus0), - ApplyPatchCallItemStatus1, - typeof(global::OpenRouter.ApplyPatchCallItemStatus1), - }; - 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(ApplyPatchCallItemStatus other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallItemStatus0, other.ApplyPatchCallItemStatus0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallItemStatus1, other.ApplyPatchCallItemStatus1) - ; - } - - /// - /// - /// - public static bool operator ==(ApplyPatchCallItemStatus obj1, ApplyPatchCallItemStatus obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ApplyPatchCallItemStatus obj1, ApplyPatchCallItemStatus obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ApplyPatchCallItemStatus o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation.Json.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation.Json.g.cs index 3f063d70..9b668385 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public readonly partial struct ApplyPatchCallItemOperation + public readonly partial struct ApplyPatchCallOperation { /// /// 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::OpenRouter.ApplyPatchCallItemOperation? FromJson( + public static global::OpenRouter.ApplyPatchCallOperation? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ApplyPatchCallItemOperation), - jsonSerializerContext) as global::OpenRouter.ApplyPatchCallItemOperation?; + typeof(global::OpenRouter.ApplyPatchCallOperation), + jsonSerializerContext) as global::OpenRouter.ApplyPatchCallOperation?; } /// @@ -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::OpenRouter.ApplyPatchCallItemOperation? FromJson( + public static global::OpenRouter.ApplyPatchCallOperation? 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::OpenRouter.ApplyPatchCallItemOperation), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallItemOperation?; + typeof(global::OpenRouter.ApplyPatchCallOperation), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallOperation?; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation.g.cs new file mode 100644 index 00000000..e1e9dafd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation.g.cs @@ -0,0 +1,378 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. + /// + public readonly partial struct ApplyPatchCallOperation : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchCallOperation0? ApplyPatchCallOperation0 { get; init; } +#else + public global::OpenRouter.ApplyPatchCallOperation0? ApplyPatchCallOperation0 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallOperation0))] +#endif + public bool IsApplyPatchCallOperation0 => ApplyPatchCallOperation0 != null; + + /// + /// + /// + public bool TryPickApplyPatchCallOperation0( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchCallOperation0? value) + { + value = ApplyPatchCallOperation0; + return IsApplyPatchCallOperation0; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchCallOperation0 PickApplyPatchCallOperation0() => IsApplyPatchCallOperation0 + ? ApplyPatchCallOperation0! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOperation0' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchCallOperation1? ApplyPatchCallOperation1 { get; init; } +#else + public global::OpenRouter.ApplyPatchCallOperation1? ApplyPatchCallOperation1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallOperation1))] +#endif + public bool IsApplyPatchCallOperation1 => ApplyPatchCallOperation1 != null; + + /// + /// + /// + public bool TryPickApplyPatchCallOperation1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchCallOperation1? value) + { + value = ApplyPatchCallOperation1; + return IsApplyPatchCallOperation1; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchCallOperation1 PickApplyPatchCallOperation1() => IsApplyPatchCallOperation1 + ? ApplyPatchCallOperation1! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOperation1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchCallOperation2? ApplyPatchCallOperation2 { get; init; } +#else + public global::OpenRouter.ApplyPatchCallOperation2? ApplyPatchCallOperation2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallOperation2))] +#endif + public bool IsApplyPatchCallOperation2 => ApplyPatchCallOperation2 != null; + + /// + /// + /// + public bool TryPickApplyPatchCallOperation2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchCallOperation2? value) + { + value = ApplyPatchCallOperation2; + return IsApplyPatchCallOperation2; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchCallOperation2 PickApplyPatchCallOperation2() => IsApplyPatchCallOperation2 + ? ApplyPatchCallOperation2! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOperation2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ApplyPatchCallOperation(global::OpenRouter.ApplyPatchCallOperation0 value) => new ApplyPatchCallOperation((global::OpenRouter.ApplyPatchCallOperation0?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ApplyPatchCallOperation0?(ApplyPatchCallOperation @this) => @this.ApplyPatchCallOperation0; + + /// + /// + /// + public ApplyPatchCallOperation(global::OpenRouter.ApplyPatchCallOperation0? value) + { + ApplyPatchCallOperation0 = value; + } + + /// + /// + /// + public static ApplyPatchCallOperation FromApplyPatchCallOperation0(global::OpenRouter.ApplyPatchCallOperation0? value) => new ApplyPatchCallOperation(value); + + /// + /// + /// + public static implicit operator ApplyPatchCallOperation(global::OpenRouter.ApplyPatchCallOperation1 value) => new ApplyPatchCallOperation((global::OpenRouter.ApplyPatchCallOperation1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ApplyPatchCallOperation1?(ApplyPatchCallOperation @this) => @this.ApplyPatchCallOperation1; + + /// + /// + /// + public ApplyPatchCallOperation(global::OpenRouter.ApplyPatchCallOperation1? value) + { + ApplyPatchCallOperation1 = value; + } + + /// + /// + /// + public static ApplyPatchCallOperation FromApplyPatchCallOperation1(global::OpenRouter.ApplyPatchCallOperation1? value) => new ApplyPatchCallOperation(value); + + /// + /// + /// + public static implicit operator ApplyPatchCallOperation(global::OpenRouter.ApplyPatchCallOperation2 value) => new ApplyPatchCallOperation((global::OpenRouter.ApplyPatchCallOperation2?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ApplyPatchCallOperation2?(ApplyPatchCallOperation @this) => @this.ApplyPatchCallOperation2; + + /// + /// + /// + public ApplyPatchCallOperation(global::OpenRouter.ApplyPatchCallOperation2? value) + { + ApplyPatchCallOperation2 = value; + } + + /// + /// + /// + public static ApplyPatchCallOperation FromApplyPatchCallOperation2(global::OpenRouter.ApplyPatchCallOperation2? value) => new ApplyPatchCallOperation(value); + + /// + /// + /// + public ApplyPatchCallOperation( + global::OpenRouter.ApplyPatchCallOperation0? applyPatchCallOperation0, + global::OpenRouter.ApplyPatchCallOperation1? applyPatchCallOperation1, + global::OpenRouter.ApplyPatchCallOperation2? applyPatchCallOperation2 + ) + { + ApplyPatchCallOperation0 = applyPatchCallOperation0; + ApplyPatchCallOperation1 = applyPatchCallOperation1; + ApplyPatchCallOperation2 = applyPatchCallOperation2; + } + + /// + /// + /// + public object? Object => + ApplyPatchCallOperation2 as object ?? + ApplyPatchCallOperation1 as object ?? + ApplyPatchCallOperation0 as object + ; + + /// + /// + /// + public override string? ToString() => + ApplyPatchCallOperation0?.ToString() ?? + ApplyPatchCallOperation1?.ToString() ?? + ApplyPatchCallOperation2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsApplyPatchCallOperation0 && !IsApplyPatchCallOperation1 && !IsApplyPatchCallOperation2 || !IsApplyPatchCallOperation0 && IsApplyPatchCallOperation1 && !IsApplyPatchCallOperation2 || !IsApplyPatchCallOperation0 && !IsApplyPatchCallOperation1 && IsApplyPatchCallOperation2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? applyPatchCallOperation0 = null, + global::System.Func? applyPatchCallOperation1 = null, + global::System.Func? applyPatchCallOperation2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsApplyPatchCallOperation0 && applyPatchCallOperation0 != null) + { + return applyPatchCallOperation0(ApplyPatchCallOperation0!); + } + else if (IsApplyPatchCallOperation1 && applyPatchCallOperation1 != null) + { + return applyPatchCallOperation1(ApplyPatchCallOperation1!); + } + else if (IsApplyPatchCallOperation2 && applyPatchCallOperation2 != null) + { + return applyPatchCallOperation2(ApplyPatchCallOperation2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? applyPatchCallOperation0 = null, + + global::System.Action? applyPatchCallOperation1 = null, + + global::System.Action? applyPatchCallOperation2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsApplyPatchCallOperation0) + { + applyPatchCallOperation0?.Invoke(ApplyPatchCallOperation0!); + } + else if (IsApplyPatchCallOperation1) + { + applyPatchCallOperation1?.Invoke(ApplyPatchCallOperation1!); + } + else if (IsApplyPatchCallOperation2) + { + applyPatchCallOperation2?.Invoke(ApplyPatchCallOperation2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? applyPatchCallOperation0 = null, + global::System.Action? applyPatchCallOperation1 = null, + global::System.Action? applyPatchCallOperation2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsApplyPatchCallOperation0) + { + applyPatchCallOperation0?.Invoke(ApplyPatchCallOperation0!); + } + else if (IsApplyPatchCallOperation1) + { + applyPatchCallOperation1?.Invoke(ApplyPatchCallOperation1!); + } + else if (IsApplyPatchCallOperation2) + { + applyPatchCallOperation2?.Invoke(ApplyPatchCallOperation2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ApplyPatchCallOperation0, + typeof(global::OpenRouter.ApplyPatchCallOperation0), + ApplyPatchCallOperation1, + typeof(global::OpenRouter.ApplyPatchCallOperation1), + ApplyPatchCallOperation2, + typeof(global::OpenRouter.ApplyPatchCallOperation2), + }; + 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(ApplyPatchCallOperation other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallOperation0, other.ApplyPatchCallOperation0) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallOperation1, other.ApplyPatchCallOperation1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallOperation2, other.ApplyPatchCallOperation2) + ; + } + + /// + /// + /// + public static bool operator ==(ApplyPatchCallOperation obj1, ApplyPatchCallOperation obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ApplyPatchCallOperation obj1, ApplyPatchCallOperation obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ApplyPatchCallOperation o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation0.Json.g.cs similarity index 87% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation0.Json.g.cs index ba393661..776da6b4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation0.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public readonly partial struct ApplyPatchCallItemStatus + public sealed partial class ApplyPatchCallOperation0 { /// /// 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::OpenRouter.ApplyPatchCallItemStatus? FromJson( + public static global::OpenRouter.ApplyPatchCallOperation0? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ApplyPatchCallItemStatus), - jsonSerializerContext) as global::OpenRouter.ApplyPatchCallItemStatus?; + typeof(global::OpenRouter.ApplyPatchCallOperation0), + jsonSerializerContext) as global::OpenRouter.ApplyPatchCallOperation0; } /// @@ -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::OpenRouter.ApplyPatchCallItemStatus? FromJson( + public static global::OpenRouter.ApplyPatchCallOperation0? 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::OpenRouter.ApplyPatchCallItemStatus), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallItemStatus?; + typeof(global::OpenRouter.ApplyPatchCallOperation0), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallOperation0; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation0.g.cs similarity index 80% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation2.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation0.g.cs index 69609547..fdf9431b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation0.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ApplyPatchCallItemOperation2 + public sealed partial class ApplyPatchCallOperation0 { /// /// @@ -26,8 +26,8 @@ public sealed partial class ApplyPatchCallItemOperation2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf2TypeJsonConverter))] - public global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeJsonConverter))] + public global::OpenRouter.ApplyPatchCallOperationOneOf0Type Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -36,7 +36,7 @@ public sealed partial class ApplyPatchCallItemOperation2 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. /// /// /// @@ -44,10 +44,10 @@ public sealed partial class ApplyPatchCallItemOperation2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ApplyPatchCallItemOperation2( + public ApplyPatchCallOperation0( string diff, string path, - global::OpenRouter.ApplyPatchCallItemOperationOneOf2Type type) + global::OpenRouter.ApplyPatchCallOperationOneOf0Type type) { this.Diff = diff ?? throw new global::System.ArgumentNullException(nameof(diff)); this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); @@ -55,9 +55,9 @@ public ApplyPatchCallItemOperation2( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ApplyPatchCallItemOperation2() + public ApplyPatchCallOperation0() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation1.Json.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation2.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation1.Json.g.cs index 6137af01..317e116e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation2.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation1.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ApplyPatchCallItemOperation2 + public sealed partial class ApplyPatchCallOperation1 { /// /// 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::OpenRouter.ApplyPatchCallItemOperation2? FromJson( + public static global::OpenRouter.ApplyPatchCallOperation1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ApplyPatchCallItemOperation2), - jsonSerializerContext) as global::OpenRouter.ApplyPatchCallItemOperation2; + typeof(global::OpenRouter.ApplyPatchCallOperation1), + jsonSerializerContext) as global::OpenRouter.ApplyPatchCallOperation1; } /// @@ -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::OpenRouter.ApplyPatchCallItemOperation2? FromJson( + public static global::OpenRouter.ApplyPatchCallOperation1? 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::OpenRouter.ApplyPatchCallItemOperation2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallItemOperation2; + typeof(global::OpenRouter.ApplyPatchCallOperation1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallOperation1; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation1.g.cs similarity index 80% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation0.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation1.g.cs index 4a101bbc..c14eb3a5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation1.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ApplyPatchCallItemOperation0 + public sealed partial class ApplyPatchCallOperation1 { /// /// @@ -26,8 +26,8 @@ public sealed partial class ApplyPatchCallItemOperation0 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf0TypeJsonConverter))] - public global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeJsonConverter))] + public global::OpenRouter.ApplyPatchCallOperationOneOf1Type Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -36,7 +36,7 @@ public sealed partial class ApplyPatchCallItemOperation0 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. /// /// /// @@ -44,10 +44,10 @@ public sealed partial class ApplyPatchCallItemOperation0 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ApplyPatchCallItemOperation0( + public ApplyPatchCallOperation1( string diff, string path, - global::OpenRouter.ApplyPatchCallItemOperationOneOf0Type type) + global::OpenRouter.ApplyPatchCallOperationOneOf1Type type) { this.Diff = diff ?? throw new global::System.ArgumentNullException(nameof(diff)); this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); @@ -55,9 +55,9 @@ public ApplyPatchCallItemOperation0( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ApplyPatchCallItemOperation0() + public ApplyPatchCallOperation1() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation0.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation2.Json.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation0.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation2.Json.g.cs index f3cb2c8a..b634fa1d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation0.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation2.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ApplyPatchCallItemOperation0 + public sealed partial class ApplyPatchCallOperation2 { /// /// 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::OpenRouter.ApplyPatchCallItemOperation0? FromJson( + public static global::OpenRouter.ApplyPatchCallOperation2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ApplyPatchCallItemOperation0), - jsonSerializerContext) as global::OpenRouter.ApplyPatchCallItemOperation0; + typeof(global::OpenRouter.ApplyPatchCallOperation2), + jsonSerializerContext) as global::OpenRouter.ApplyPatchCallOperation2; } /// @@ -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::OpenRouter.ApplyPatchCallItemOperation0? FromJson( + public static global::OpenRouter.ApplyPatchCallOperation2? 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::OpenRouter.ApplyPatchCallItemOperation0), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallItemOperation0; + typeof(global::OpenRouter.ApplyPatchCallOperation2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallOperation2; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation2.g.cs similarity index 75% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation1.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation2.g.cs index c60a9d49..0bce552d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperation1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperation2.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ApplyPatchCallItemOperation1 + public sealed partial class ApplyPatchCallOperation2 { /// /// @@ -19,8 +19,8 @@ public sealed partial class ApplyPatchCallItemOperation1 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemOperationOneOf1TypeJsonConverter))] - public global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeJsonConverter))] + public global::OpenRouter.ApplyPatchCallOperationOneOf2Type Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ApplyPatchCallItemOperation1 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. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ApplyPatchCallItemOperation1( + public ApplyPatchCallOperation2( string path, - global::OpenRouter.ApplyPatchCallItemOperationOneOf1Type type) + global::OpenRouter.ApplyPatchCallOperationOneOf2Type type) { this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ApplyPatchCallItemOperation1() + public ApplyPatchCallOperation2() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperationOneOf0Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperationOneOf0Type.g.cs similarity index 62% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperationOneOf0Type.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperationOneOf0Type.g.cs index a623b007..aefcd88d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperationOneOf0Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperationOneOf0Type.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public enum ApplyPatchCallItemOperationOneOf0Type + public enum ApplyPatchCallOperationOneOf0Type { /// /// @@ -17,27 +17,27 @@ public enum ApplyPatchCallItemOperationOneOf0Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ApplyPatchCallItemOperationOneOf0TypeExtensions + public static class ApplyPatchCallOperationOneOf0TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ApplyPatchCallItemOperationOneOf0Type value) + public static string ToValueString(this ApplyPatchCallOperationOneOf0Type value) { return value switch { - ApplyPatchCallItemOperationOneOf0Type.CreateFile => "create_file", + ApplyPatchCallOperationOneOf0Type.CreateFile => "create_file", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ApplyPatchCallItemOperationOneOf0Type? ToEnum(string value) + public static ApplyPatchCallOperationOneOf0Type? ToEnum(string value) { return value switch { - "create_file" => ApplyPatchCallItemOperationOneOf0Type.CreateFile, + "create_file" => ApplyPatchCallOperationOneOf0Type.CreateFile, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperationOneOf2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperationOneOf1Type.g.cs similarity index 62% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperationOneOf2Type.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperationOneOf1Type.g.cs index f2786f8f..2185a70a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperationOneOf2Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperationOneOf1Type.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public enum ApplyPatchCallItemOperationOneOf2Type + public enum ApplyPatchCallOperationOneOf1Type { /// /// @@ -17,27 +17,27 @@ public enum ApplyPatchCallItemOperationOneOf2Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ApplyPatchCallItemOperationOneOf2TypeExtensions + public static class ApplyPatchCallOperationOneOf1TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ApplyPatchCallItemOperationOneOf2Type value) + public static string ToValueString(this ApplyPatchCallOperationOneOf1Type value) { return value switch { - ApplyPatchCallItemOperationOneOf2Type.UpdateFile => "update_file", + ApplyPatchCallOperationOneOf1Type.UpdateFile => "update_file", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ApplyPatchCallItemOperationOneOf2Type? ToEnum(string value) + public static ApplyPatchCallOperationOneOf1Type? ToEnum(string value) { return value switch { - "update_file" => ApplyPatchCallItemOperationOneOf2Type.UpdateFile, + "update_file" => ApplyPatchCallOperationOneOf1Type.UpdateFile, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperationOneOf1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperationOneOf2Type.g.cs similarity index 62% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperationOneOf1Type.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperationOneOf2Type.g.cs index 1b76aba2..b969fcf8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemOperationOneOf1Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOperationOneOf2Type.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public enum ApplyPatchCallItemOperationOneOf1Type + public enum ApplyPatchCallOperationOneOf2Type { /// /// @@ -17,27 +17,27 @@ public enum ApplyPatchCallItemOperationOneOf1Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ApplyPatchCallItemOperationOneOf1TypeExtensions + public static class ApplyPatchCallOperationOneOf2TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ApplyPatchCallItemOperationOneOf1Type value) + public static string ToValueString(this ApplyPatchCallOperationOneOf2Type value) { return value switch { - ApplyPatchCallItemOperationOneOf1Type.DeleteFile => "delete_file", + ApplyPatchCallOperationOneOf2Type.DeleteFile => "delete_file", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ApplyPatchCallItemOperationOneOf1Type? ToEnum(string value) + public static ApplyPatchCallOperationOneOf2Type? ToEnum(string value) { return value switch { - "delete_file" => ApplyPatchCallItemOperationOneOf1Type.DeleteFile, + "delete_file" => ApplyPatchCallOperationOneOf2Type.DeleteFile, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItem.g.cs index 6db7b93a..88f12220 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItem.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItem.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// Output from an apply patch operation + /// The client's echo of an `apply_patch_call` after applying the patch. `output` is an optional human-readable log; `status` is `completed` when the patch was applied successfully, `failed` otherwise. /// public sealed partial class ApplyPatchCallOutputItem { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus.g.cs index ee309f90..3b845007 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus.g.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -7,289 +6,46 @@ namespace OpenRouter /// /// /// - public readonly partial struct ApplyPatchCallOutputItemStatus : global::System.IEquatable + public enum ApplyPatchCallOutputItemStatus { /// /// /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ApplyPatchCallOutputItemStatus0? ApplyPatchCallOutputItemStatus0 { get; init; } -#else - public global::OpenRouter.ApplyPatchCallOutputItemStatus0? ApplyPatchCallOutputItemStatus0 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallOutputItemStatus0))] -#endif - public bool IsApplyPatchCallOutputItemStatus0 => ApplyPatchCallOutputItemStatus0 != null; - - /// - /// - /// - public bool TryPickApplyPatchCallOutputItemStatus0( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ApplyPatchCallOutputItemStatus0? value) - { - value = ApplyPatchCallOutputItemStatus0; - return IsApplyPatchCallOutputItemStatus0; - } - - /// - /// - /// - public global::OpenRouter.ApplyPatchCallOutputItemStatus0 PickApplyPatchCallOutputItemStatus0() => IsApplyPatchCallOutputItemStatus0 - ? ApplyPatchCallOutputItemStatus0!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutputItemStatus0' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ApplyPatchCallOutputItemStatus1? ApplyPatchCallOutputItemStatus1 { get; init; } -#else - public global::OpenRouter.ApplyPatchCallOutputItemStatus1? ApplyPatchCallOutputItemStatus1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallOutputItemStatus1))] -#endif - public bool IsApplyPatchCallOutputItemStatus1 => ApplyPatchCallOutputItemStatus1 != null; - - /// - /// - /// - public bool TryPickApplyPatchCallOutputItemStatus1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ApplyPatchCallOutputItemStatus1? value) - { - value = ApplyPatchCallOutputItemStatus1; - return IsApplyPatchCallOutputItemStatus1; - } - - /// - /// - /// - public global::OpenRouter.ApplyPatchCallOutputItemStatus1 PickApplyPatchCallOutputItemStatus1() => IsApplyPatchCallOutputItemStatus1 - ? ApplyPatchCallOutputItemStatus1!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutputItemStatus1' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ApplyPatchCallOutputItemStatus(global::OpenRouter.ApplyPatchCallOutputItemStatus0 value) => new ApplyPatchCallOutputItemStatus((global::OpenRouter.ApplyPatchCallOutputItemStatus0?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ApplyPatchCallOutputItemStatus0?(ApplyPatchCallOutputItemStatus @this) => @this.ApplyPatchCallOutputItemStatus0; - - /// - /// - /// - public ApplyPatchCallOutputItemStatus(global::OpenRouter.ApplyPatchCallOutputItemStatus0? value) - { - ApplyPatchCallOutputItemStatus0 = value; - } - - /// - /// - /// - public static ApplyPatchCallOutputItemStatus FromApplyPatchCallOutputItemStatus0(global::OpenRouter.ApplyPatchCallOutputItemStatus0? value) => new ApplyPatchCallOutputItemStatus(value); - - /// - /// - /// - public static implicit operator ApplyPatchCallOutputItemStatus(global::OpenRouter.ApplyPatchCallOutputItemStatus1 value) => new ApplyPatchCallOutputItemStatus((global::OpenRouter.ApplyPatchCallOutputItemStatus1?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ApplyPatchCallOutputItemStatus1?(ApplyPatchCallOutputItemStatus @this) => @this.ApplyPatchCallOutputItemStatus1; - - /// - /// - /// - public ApplyPatchCallOutputItemStatus(global::OpenRouter.ApplyPatchCallOutputItemStatus1? value) - { - ApplyPatchCallOutputItemStatus1 = value; - } - - /// - /// - /// - public static ApplyPatchCallOutputItemStatus FromApplyPatchCallOutputItemStatus1(global::OpenRouter.ApplyPatchCallOutputItemStatus1? value) => new ApplyPatchCallOutputItemStatus(value); - - /// - /// - /// - public ApplyPatchCallOutputItemStatus( - global::OpenRouter.ApplyPatchCallOutputItemStatus0? applyPatchCallOutputItemStatus0, - global::OpenRouter.ApplyPatchCallOutputItemStatus1? applyPatchCallOutputItemStatus1 - ) - { - ApplyPatchCallOutputItemStatus0 = applyPatchCallOutputItemStatus0; - ApplyPatchCallOutputItemStatus1 = applyPatchCallOutputItemStatus1; - } - - /// - /// - /// - public object? Object => - ApplyPatchCallOutputItemStatus1 as object ?? - ApplyPatchCallOutputItemStatus0 as object - ; - - /// - /// - /// - public override string? ToString() => - ApplyPatchCallOutputItemStatus0?.ToValueString() ?? - ApplyPatchCallOutputItemStatus1?.ToValueString() - ; - - /// - /// - /// - public bool Validate() - { - return IsApplyPatchCallOutputItemStatus0 && !IsApplyPatchCallOutputItemStatus1 || !IsApplyPatchCallOutputItemStatus0 && IsApplyPatchCallOutputItemStatus1; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? applyPatchCallOutputItemStatus0 = null, - global::System.Func? applyPatchCallOutputItemStatus1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApplyPatchCallOutputItemStatus0 && applyPatchCallOutputItemStatus0 != null) - { - return applyPatchCallOutputItemStatus0(ApplyPatchCallOutputItemStatus0!); - } - else if (IsApplyPatchCallOutputItemStatus1 && applyPatchCallOutputItemStatus1 != null) - { - return applyPatchCallOutputItemStatus1(ApplyPatchCallOutputItemStatus1!); - } - - return default(TResult); - } - + Completed, /// /// /// - public void Match( - global::System.Action? applyPatchCallOutputItemStatus0 = null, - - global::System.Action? applyPatchCallOutputItemStatus1 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApplyPatchCallOutputItemStatus0) - { - applyPatchCallOutputItemStatus0?.Invoke(ApplyPatchCallOutputItemStatus0!); - } - else if (IsApplyPatchCallOutputItemStatus1) - { - applyPatchCallOutputItemStatus1?.Invoke(ApplyPatchCallOutputItemStatus1!); - } - } + Failed, + } + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApplyPatchCallOutputItemStatusExtensions + { /// - /// + /// Converts an enum to a string. /// - public void Switch( - global::System.Action? applyPatchCallOutputItemStatus0 = null, - global::System.Action? applyPatchCallOutputItemStatus1 = null, - bool validate = true) + public static string ToValueString(this ApplyPatchCallOutputItemStatus value) { - if (validate) + return value switch { - Validate(); - } - - if (IsApplyPatchCallOutputItemStatus0) - { - applyPatchCallOutputItemStatus0?.Invoke(ApplyPatchCallOutputItemStatus0!); - } - else if (IsApplyPatchCallOutputItemStatus1) - { - applyPatchCallOutputItemStatus1?.Invoke(ApplyPatchCallOutputItemStatus1!); - } + ApplyPatchCallOutputItemStatus.Completed => "completed", + ApplyPatchCallOutputItemStatus.Failed => "failed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; } - /// - /// + /// Converts an string to a enum. /// - public override int GetHashCode() + public static ApplyPatchCallOutputItemStatus? ToEnum(string value) { - var fields = new object?[] + return value switch { - ApplyPatchCallOutputItemStatus0, - typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus0), - ApplyPatchCallOutputItemStatus1, - typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus1), + "completed" => ApplyPatchCallOutputItemStatus.Completed, + "failed" => ApplyPatchCallOutputItemStatus.Failed, + _ => null, }; - 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(ApplyPatchCallOutputItemStatus other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallOutputItemStatus0, other.ApplyPatchCallOutputItemStatus0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallOutputItemStatus1, other.ApplyPatchCallOutputItemStatus1) - ; - } - - /// - /// - /// - public static bool operator ==(ApplyPatchCallOutputItemStatus obj1, ApplyPatchCallOutputItemStatus obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ApplyPatchCallOutputItemStatus obj1, ApplyPatchCallOutputItemStatus obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ApplyPatchCallOutputItemStatus o && Equals(o); } } -} +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus1.g.cs deleted file mode 100644 index 900cddee..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus1.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum ApplyPatchCallOutputItemStatus1 - { - /// - /// - /// - Failed, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ApplyPatchCallOutputItemStatus1Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ApplyPatchCallOutputItemStatus1 value) - { - return value switch - { - ApplyPatchCallOutputItemStatus1.Failed => "failed", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ApplyPatchCallOutputItemStatus1? ToEnum(string value) - { - return value switch - { - "failed" => ApplyPatchCallOutputItemStatus1.Failed, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallStatus.g.cs similarity index 54% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus0.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallStatus.g.cs index c171690a..68150511 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallStatus.g.cs @@ -4,40 +4,46 @@ namespace OpenRouter { /// - /// + /// Lifecycle state of an `apply_patch_call` output item. /// - public enum ApplyPatchCallOutputItemStatus0 + public enum ApplyPatchCallStatus { /// /// /// Completed, + /// + /// + /// + InProgress, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ApplyPatchCallOutputItemStatus0Extensions + public static class ApplyPatchCallStatusExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ApplyPatchCallOutputItemStatus0 value) + public static string ToValueString(this ApplyPatchCallStatus value) { return value switch { - ApplyPatchCallOutputItemStatus0.Completed => "completed", + ApplyPatchCallStatus.Completed => "completed", + ApplyPatchCallStatus.InProgress => "in_progress", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ApplyPatchCallOutputItemStatus0? ToEnum(string value) + public static ApplyPatchCallStatus? ToEnum(string value) { return value switch { - "completed" => ApplyPatchCallOutputItemStatus0.Completed, + "completed" => ApplyPatchCallStatus.Completed, + "in_progress" => ApplyPatchCallStatus.InProgress, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolConfig.Json.g.cs new file mode 100644 index 00000000..5aaa324a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ApplyPatchServerToolConfig + { + /// + /// 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::OpenRouter.ApplyPatchServerToolConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ApplyPatchServerToolConfig), + jsonSerializerContext) as global::OpenRouter.ApplyPatchServerToolConfig; + } + + /// + /// 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::OpenRouter.ApplyPatchServerToolConfig? 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::OpenRouter.ApplyPatchServerToolConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchServerToolConfig; + } + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolConfig.g.cs new file mode 100644 index 00000000..fce53c0d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Configuration for the openrouter:apply_patch server tool + /// + public sealed partial class ApplyPatchServerToolConfig + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolOpenRouter.Json.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolOpenRouter.Json.g.cs index 3e19c37d..19dcc420 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallOutputItemStatus.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolOpenRouter.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public readonly partial struct ApplyPatchCallOutputItemStatus + public sealed partial class ApplyPatchServerToolOpenRouter { /// /// 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::OpenRouter.ApplyPatchCallOutputItemStatus? FromJson( + public static global::OpenRouter.ApplyPatchServerToolOpenRouter? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus), - jsonSerializerContext) as global::OpenRouter.ApplyPatchCallOutputItemStatus?; + typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), + jsonSerializerContext) as global::OpenRouter.ApplyPatchServerToolOpenRouter; } /// @@ -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::OpenRouter.ApplyPatchCallOutputItemStatus? FromJson( + public static global::OpenRouter.ApplyPatchServerToolOpenRouter? 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::OpenRouter.ApplyPatchCallOutputItemStatus), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchCallOutputItemStatus?; + typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApplyPatchServerToolOpenRouter; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolOpenRouter.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolOpenRouter.g.cs new file mode 100644 index 00000000..098c85a2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolOpenRouter.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// OpenRouter built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API. + /// + public sealed partial class ApplyPatchServerToolOpenRouter + { + /// + /// Configuration for the openrouter:apply_patch server tool + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public global::OpenRouter.ApplyPatchServerToolConfig? Parameters { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeJsonConverter))] + public global::OpenRouter.ApplyPatchServerToolOpenRouterType 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. + /// + /// + /// Configuration for the openrouter:apply_patch server tool + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApplyPatchServerToolOpenRouter( + global::OpenRouter.ApplyPatchServerToolConfig? parameters, + global::OpenRouter.ApplyPatchServerToolOpenRouterType type) + { + this.Parameters = parameters; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ApplyPatchServerToolOpenRouter() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolOpenRouterType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolOpenRouterType.g.cs new file mode 100644 index 00000000..582817e2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchServerToolOpenRouterType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ApplyPatchServerToolOpenRouterType + { + /// + /// + /// + Openrouter_applyPatch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApplyPatchServerToolOpenRouterTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApplyPatchServerToolOpenRouterType value) + { + return value switch + { + ApplyPatchServerToolOpenRouterType.Openrouter_applyPatch => "openrouter:apply_patch", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApplyPatchServerToolOpenRouterType? ToEnum(string value) + { + return value switch + { + "openrouter:apply_patch" => ApplyPatchServerToolOpenRouterType.Openrouter_applyPatch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1Items.g.cs index c8af9848..b5390e50 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1Items.g.cs @@ -304,6 +304,80 @@ public bool TryPickOpenAIResponseCustomToolCallOutput( public global::OpenRouter.OpenAIResponseCustomToolCallOutput PickOpenAIResponseCustomToolCallOutput() => IsOpenAIResponseCustomToolCallOutput ? OpenAIResponseCustomToolCallOutput! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenAIResponseCustomToolCallOutput' but the value was {ToString()}."); + + /// + /// A tool call emitted by the model requesting a V4A patch operation. The client applies the patch and echoes an `apply_patch_call_output` on the next turn. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchCallItem? ApplyPatchCallItem { get; init; } +#else + public global::OpenRouter.ApplyPatchCallItem? ApplyPatchCallItem { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallItem))] +#endif + public bool IsApplyPatchCallItem => ApplyPatchCallItem != null; + + /// + /// + /// + public bool TryPickApplyPatchCallItem( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchCallItem? value) + { + value = ApplyPatchCallItem; + return IsApplyPatchCallItem; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchCallItem PickApplyPatchCallItem() => IsApplyPatchCallItem + ? ApplyPatchCallItem! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallItem' but the value was {ToString()}."); + + /// + /// The client's echo of an `apply_patch_call` after applying the patch. `output` is an optional human-readable log; `status` is `completed` when the patch was applied successfully, `failed` otherwise. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchCallOutputItem? ApplyPatchCallOutputItem { get; init; } +#else + public global::OpenRouter.ApplyPatchCallOutputItem? ApplyPatchCallOutputItem { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallOutputItem))] +#endif + public bool IsApplyPatchCallOutputItem => ApplyPatchCallOutputItem != null; + + /// + /// + /// + public bool TryPickApplyPatchCallOutputItem( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchCallOutputItem? value) + { + value = ApplyPatchCallOutputItem; + return IsApplyPatchCallOutputItem; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchCallOutputItem PickApplyPatchCallOutputItem() => IsApplyPatchCallOutputItem + ? ApplyPatchCallOutputItem! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutputItem' but the value was {ToString()}."); /// /// /// @@ -488,6 +562,52 @@ public BaseInputsOneOf1Items(global::OpenRouter.OpenAIResponseCustomToolCallOutp /// public static BaseInputsOneOf1Items FromOpenAIResponseCustomToolCallOutput(global::OpenRouter.OpenAIResponseCustomToolCallOutput? value) => new BaseInputsOneOf1Items(value); + /// + /// + /// + public static implicit operator BaseInputsOneOf1Items(global::OpenRouter.ApplyPatchCallItem value) => new BaseInputsOneOf1Items((global::OpenRouter.ApplyPatchCallItem?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ApplyPatchCallItem?(BaseInputsOneOf1Items @this) => @this.ApplyPatchCallItem; + + /// + /// + /// + public BaseInputsOneOf1Items(global::OpenRouter.ApplyPatchCallItem? value) + { + ApplyPatchCallItem = value; + } + + /// + /// + /// + public static BaseInputsOneOf1Items FromApplyPatchCallItem(global::OpenRouter.ApplyPatchCallItem? value) => new BaseInputsOneOf1Items(value); + + /// + /// + /// + public static implicit operator BaseInputsOneOf1Items(global::OpenRouter.ApplyPatchCallOutputItem value) => new BaseInputsOneOf1Items((global::OpenRouter.ApplyPatchCallOutputItem?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ApplyPatchCallOutputItem?(BaseInputsOneOf1Items @this) => @this.ApplyPatchCallOutputItem; + + /// + /// + /// + public BaseInputsOneOf1Items(global::OpenRouter.ApplyPatchCallOutputItem? value) + { + ApplyPatchCallOutputItem = value; + } + + /// + /// + /// + public static BaseInputsOneOf1Items FromApplyPatchCallOutputItem(global::OpenRouter.ApplyPatchCallOutputItem? value) => new BaseInputsOneOf1Items(value); + /// /// /// @@ -499,7 +619,9 @@ public BaseInputsOneOf1Items( global::OpenRouter.OutputItemImageGenerationCall? outputItemImageGenerationCall, global::OpenRouter.OutputMessage? outputMessage, global::OpenRouter.OpenAIResponseCustomToolCall? openAIResponseCustomToolCall, - global::OpenRouter.OpenAIResponseCustomToolCallOutput? openAIResponseCustomToolCallOutput + global::OpenRouter.OpenAIResponseCustomToolCallOutput? openAIResponseCustomToolCallOutput, + global::OpenRouter.ApplyPatchCallItem? applyPatchCallItem, + global::OpenRouter.ApplyPatchCallOutputItem? applyPatchCallOutputItem ) { BaseInputsOneOf1Items0 = baseInputsOneOf1Items0; @@ -510,12 +632,16 @@ public BaseInputsOneOf1Items( OutputMessage = outputMessage; OpenAIResponseCustomToolCall = openAIResponseCustomToolCall; OpenAIResponseCustomToolCallOutput = openAIResponseCustomToolCallOutput; + ApplyPatchCallItem = applyPatchCallItem; + ApplyPatchCallOutputItem = applyPatchCallOutputItem; } /// /// /// public object? Object => + ApplyPatchCallOutputItem as object ?? + ApplyPatchCallItem as object ?? OpenAIResponseCustomToolCallOutput as object ?? OpenAIResponseCustomToolCall as object ?? OutputMessage as object ?? @@ -537,7 +663,9 @@ BaseInputsOneOf1Items0 as object OutputItemImageGenerationCall?.ToString() ?? OutputMessage?.ToString() ?? OpenAIResponseCustomToolCall?.ToString() ?? - OpenAIResponseCustomToolCallOutput?.ToString() + OpenAIResponseCustomToolCallOutput?.ToString() ?? + ApplyPatchCallItem?.ToString() ?? + ApplyPatchCallOutputItem?.ToString() ; /// @@ -545,7 +673,7 @@ BaseInputsOneOf1Items0 as object /// public bool Validate() { - return IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput || !IsBaseInputsOneOf1Items0 && IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && IsOpenAIResponseCustomToolCallOutput; + return IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem || !IsBaseInputsOneOf1Items0 && IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && IsOpenAIResponseCustomToolCallOutput && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput && IsApplyPatchCallItem && !IsApplyPatchCallOutputItem || !IsBaseInputsOneOf1Items0 && !IsOpenAIResponseInputMessageItem && !IsOpenAIResponseFunctionToolCallOutput && !IsOpenAIResponseFunctionToolCall && !IsOutputItemImageGenerationCall && !IsOutputMessage && !IsOpenAIResponseCustomToolCall && !IsOpenAIResponseCustomToolCallOutput && !IsApplyPatchCallItem && IsApplyPatchCallOutputItem; } /// @@ -560,6 +688,8 @@ public bool Validate() global::System.Func? outputMessage = null, global::System.Func? openAIResponseCustomToolCall = null, global::System.Func? openAIResponseCustomToolCallOutput = null, + global::System.Func? applyPatchCallItem = null, + global::System.Func? applyPatchCallOutputItem = null, bool validate = true) { if (validate) @@ -599,6 +729,14 @@ public bool Validate() { return openAIResponseCustomToolCallOutput(OpenAIResponseCustomToolCallOutput!); } + else if (IsApplyPatchCallItem && applyPatchCallItem != null) + { + return applyPatchCallItem(ApplyPatchCallItem!); + } + else if (IsApplyPatchCallOutputItem && applyPatchCallOutputItem != null) + { + return applyPatchCallOutputItem(ApplyPatchCallOutputItem!); + } return default(TResult); } @@ -622,6 +760,10 @@ public void Match( global::System.Action? openAIResponseCustomToolCall = null, global::System.Action? openAIResponseCustomToolCallOutput = null, + + global::System.Action? applyPatchCallItem = null, + + global::System.Action? applyPatchCallOutputItem = null, bool validate = true) { if (validate) @@ -661,6 +803,14 @@ public void Match( { openAIResponseCustomToolCallOutput?.Invoke(OpenAIResponseCustomToolCallOutput!); } + else if (IsApplyPatchCallItem) + { + applyPatchCallItem?.Invoke(ApplyPatchCallItem!); + } + else if (IsApplyPatchCallOutputItem) + { + applyPatchCallOutputItem?.Invoke(ApplyPatchCallOutputItem!); + } } /// @@ -675,6 +825,8 @@ public void Switch( global::System.Action? outputMessage = null, global::System.Action? openAIResponseCustomToolCall = null, global::System.Action? openAIResponseCustomToolCallOutput = null, + global::System.Action? applyPatchCallItem = null, + global::System.Action? applyPatchCallOutputItem = null, bool validate = true) { if (validate) @@ -714,6 +866,14 @@ public void Switch( { openAIResponseCustomToolCallOutput?.Invoke(OpenAIResponseCustomToolCallOutput!); } + else if (IsApplyPatchCallItem) + { + applyPatchCallItem?.Invoke(ApplyPatchCallItem!); + } + else if (IsApplyPatchCallOutputItem) + { + applyPatchCallOutputItem?.Invoke(ApplyPatchCallOutputItem!); + } } /// @@ -739,6 +899,10 @@ public override int GetHashCode() typeof(global::OpenRouter.OpenAIResponseCustomToolCall), OpenAIResponseCustomToolCallOutput, typeof(global::OpenRouter.OpenAIResponseCustomToolCallOutput), + ApplyPatchCallItem, + typeof(global::OpenRouter.ApplyPatchCallItem), + ApplyPatchCallOutputItem, + typeof(global::OpenRouter.ApplyPatchCallOutputItem), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -762,7 +926,9 @@ public bool Equals(BaseInputsOneOf1Items other) global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputItemImageGenerationCall, other.OutputItemImageGenerationCall) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputMessage, other.OutputMessage) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenAIResponseCustomToolCall, other.OpenAIResponseCustomToolCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenAIResponseCustomToolCallOutput, other.OpenAIResponseCustomToolCallOutput) + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenAIResponseCustomToolCallOutput, other.OpenAIResponseCustomToolCallOutput) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallItem, other.ApplyPatchCallItem) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallOutputItem, other.ApplyPatchCallOutputItem) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items.g.cs index 05e0d764..2bf50487 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items.g.cs @@ -194,79 +194,153 @@ public bool TryPickFunctionCallOutputItem( ? FunctionCallOutputItem! : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutputItem' but the value was {ToString()}."); + /// + /// A tool call emitted by the model requesting a V4A patch operation. The client applies the patch and echoes an `apply_patch_call_output` on the next turn. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchCallItem? ApplyPatchCallItem { get; init; } +#else + public global::OpenRouter.ApplyPatchCallItem? ApplyPatchCallItem { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallItem))] +#endif + public bool IsApplyPatchCallItem => ApplyPatchCallItem != null; + + /// + /// + /// + public bool TryPickApplyPatchCallItem( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchCallItem? value) + { + value = ApplyPatchCallItem; + return IsApplyPatchCallItem; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchCallItem PickApplyPatchCallItem() => IsApplyPatchCallItem + ? ApplyPatchCallItem! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallItem' but the value was {ToString()}."); + + /// + /// The client's echo of an `apply_patch_call` after applying the patch. `output` is an optional human-readable log; `status` is `completed` when the patch was applied successfully, `failed` otherwise. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchCallOutputItem? ApplyPatchCallOutputItem { get; init; } +#else + public global::OpenRouter.ApplyPatchCallOutputItem? ApplyPatchCallOutputItem { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallOutputItem))] +#endif + public bool IsApplyPatchCallOutputItem => ApplyPatchCallOutputItem != null; + + /// + /// + /// + public bool TryPickApplyPatchCallOutputItem( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchCallOutputItem? value) + { + value = ApplyPatchCallOutputItem; + return IsApplyPatchCallOutputItem; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchCallOutputItem PickApplyPatchCallOutputItem() => IsApplyPatchCallOutputItem + ? ApplyPatchCallOutputItem! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutputItem' but the value was {ToString()}."); + /// /// An output message item /// #if NET6_0_OR_GREATER - public global::OpenRouter.InputsOneOf1Items5? InputsOneOf1Items5 { get; init; } + public global::OpenRouter.InputsOneOf1Items7? InputsOneOf1Items7 { get; init; } #else - public global::OpenRouter.InputsOneOf1Items5? InputsOneOf1Items5 { get; } + public global::OpenRouter.InputsOneOf1Items7? InputsOneOf1Items7 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1Items5))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1Items7))] #endif - public bool IsInputsOneOf1Items5 => InputsOneOf1Items5 != null; + public bool IsInputsOneOf1Items7 => InputsOneOf1Items7 != null; /// /// /// - public bool TryPickInputsOneOf1Items5( + public bool TryPickInputsOneOf1Items7( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.InputsOneOf1Items5? value) + out global::OpenRouter.InputsOneOf1Items7? value) { - value = InputsOneOf1Items5; - return IsInputsOneOf1Items5; + value = InputsOneOf1Items7; + return IsInputsOneOf1Items7; } /// /// /// - public global::OpenRouter.InputsOneOf1Items5 PickInputsOneOf1Items5() => IsInputsOneOf1Items5 - ? InputsOneOf1Items5! - : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1Items5' but the value was {ToString()}."); + public global::OpenRouter.InputsOneOf1Items7 PickInputsOneOf1Items7() => IsInputsOneOf1Items7 + ? InputsOneOf1Items7! + : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1Items7' but the value was {ToString()}."); /// /// An output item containing reasoning /// #if NET6_0_OR_GREATER - public global::OpenRouter.InputsOneOf1Items6? InputsOneOf1Items6 { get; init; } + public global::OpenRouter.InputsOneOf1Items8? InputsOneOf1Items8 { get; init; } #else - public global::OpenRouter.InputsOneOf1Items6? InputsOneOf1Items6 { get; } + public global::OpenRouter.InputsOneOf1Items8? InputsOneOf1Items8 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1Items6))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1Items8))] #endif - public bool IsInputsOneOf1Items6 => InputsOneOf1Items6 != null; + public bool IsInputsOneOf1Items8 => InputsOneOf1Items8 != null; /// /// /// - public bool TryPickInputsOneOf1Items6( + public bool TryPickInputsOneOf1Items8( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.InputsOneOf1Items6? value) + out global::OpenRouter.InputsOneOf1Items8? value) { - value = InputsOneOf1Items6; - return IsInputsOneOf1Items6; + value = InputsOneOf1Items8; + return IsInputsOneOf1Items8; } /// /// /// - public global::OpenRouter.InputsOneOf1Items6 PickInputsOneOf1Items6() => IsInputsOneOf1Items6 - ? InputsOneOf1Items6! - : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1Items6' but the value was {ToString()}."); + public global::OpenRouter.InputsOneOf1Items8 PickInputsOneOf1Items8() => IsInputsOneOf1Items8 + ? InputsOneOf1Items8! + : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1Items8' but the value was {ToString()}."); /// /// @@ -824,7 +898,7 @@ public bool TryPickOutputTextEditorServerToolItem( : throw new global::System.InvalidOperationException($"Expected union variant 'OutputTextEditorServerToolItem' but the value was {ToString()}."); /// - /// An openrouter:apply_patch server tool output item + /// An openrouter:apply_patch server tool output item. The turn halts when validation succeeds so the client can apply the patch and echo an `apply_patch_call_output` on the next turn. /// #if NET6_0_OR_GREATER public global::OpenRouter.OutputApplyPatchServerToolItem? OutputApplyPatchServerToolItem { get; init; } @@ -1193,80 +1267,6 @@ public bool TryPickShellCallOutputItem( ? ShellCallOutputItem! : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutputItem' but the value was {ToString()}."); - /// - /// A file create/update/delete via diff patch - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ApplyPatchCallItem? ApplyPatchCallItem { get; init; } -#else - public global::OpenRouter.ApplyPatchCallItem? ApplyPatchCallItem { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallItem))] -#endif - public bool IsApplyPatchCallItem => ApplyPatchCallItem != null; - - /// - /// - /// - public bool TryPickApplyPatchCallItem( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ApplyPatchCallItem? value) - { - value = ApplyPatchCallItem; - return IsApplyPatchCallItem; - } - - /// - /// - /// - public global::OpenRouter.ApplyPatchCallItem PickApplyPatchCallItem() => IsApplyPatchCallItem - ? ApplyPatchCallItem! - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallItem' but the value was {ToString()}."); - - /// - /// Output from an apply patch operation - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ApplyPatchCallOutputItem? ApplyPatchCallOutputItem { get; init; } -#else - public global::OpenRouter.ApplyPatchCallOutputItem? ApplyPatchCallOutputItem { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCallOutputItem))] -#endif - public bool IsApplyPatchCallOutputItem => ApplyPatchCallOutputItem != null; - - /// - /// - /// - public bool TryPickApplyPatchCallOutputItem( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ApplyPatchCallOutputItem? value) - { - value = ApplyPatchCallOutputItem; - return IsApplyPatchCallOutputItem; - } - - /// - /// - /// - public global::OpenRouter.ApplyPatchCallOutputItem PickApplyPatchCallOutputItem() => IsApplyPatchCallOutputItem - ? ApplyPatchCallOutputItem! - : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutputItem' but the value was {ToString()}."); - /// /// List of available MCP tools from a server /// @@ -1680,48 +1680,94 @@ public InputsOneOf1Items(global::OpenRouter.FunctionCallOutputItem? value) /// /// /// - public static implicit operator InputsOneOf1Items(global::OpenRouter.InputsOneOf1Items5 value) => new InputsOneOf1Items((global::OpenRouter.InputsOneOf1Items5?)value); + public static implicit operator InputsOneOf1Items(global::OpenRouter.ApplyPatchCallItem value) => new InputsOneOf1Items((global::OpenRouter.ApplyPatchCallItem?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ApplyPatchCallItem?(InputsOneOf1Items @this) => @this.ApplyPatchCallItem; + + /// + /// + /// + public InputsOneOf1Items(global::OpenRouter.ApplyPatchCallItem? value) + { + ApplyPatchCallItem = value; + } + + /// + /// + /// + public static InputsOneOf1Items FromApplyPatchCallItem(global::OpenRouter.ApplyPatchCallItem? value) => new InputsOneOf1Items(value); + + /// + /// + /// + public static implicit operator InputsOneOf1Items(global::OpenRouter.ApplyPatchCallOutputItem value) => new InputsOneOf1Items((global::OpenRouter.ApplyPatchCallOutputItem?)value); /// /// /// - public static implicit operator global::OpenRouter.InputsOneOf1Items5?(InputsOneOf1Items @this) => @this.InputsOneOf1Items5; + public static implicit operator global::OpenRouter.ApplyPatchCallOutputItem?(InputsOneOf1Items @this) => @this.ApplyPatchCallOutputItem; /// /// /// - public InputsOneOf1Items(global::OpenRouter.InputsOneOf1Items5? value) + public InputsOneOf1Items(global::OpenRouter.ApplyPatchCallOutputItem? value) { - InputsOneOf1Items5 = value; + ApplyPatchCallOutputItem = value; } /// /// /// - public static InputsOneOf1Items FromInputsOneOf1Items5(global::OpenRouter.InputsOneOf1Items5? value) => new InputsOneOf1Items(value); + public static InputsOneOf1Items FromApplyPatchCallOutputItem(global::OpenRouter.ApplyPatchCallOutputItem? value) => new InputsOneOf1Items(value); /// /// /// - public static implicit operator InputsOneOf1Items(global::OpenRouter.InputsOneOf1Items6 value) => new InputsOneOf1Items((global::OpenRouter.InputsOneOf1Items6?)value); + public static implicit operator InputsOneOf1Items(global::OpenRouter.InputsOneOf1Items7 value) => new InputsOneOf1Items((global::OpenRouter.InputsOneOf1Items7?)value); /// /// /// - public static implicit operator global::OpenRouter.InputsOneOf1Items6?(InputsOneOf1Items @this) => @this.InputsOneOf1Items6; + public static implicit operator global::OpenRouter.InputsOneOf1Items7?(InputsOneOf1Items @this) => @this.InputsOneOf1Items7; /// /// /// - public InputsOneOf1Items(global::OpenRouter.InputsOneOf1Items6? value) + public InputsOneOf1Items(global::OpenRouter.InputsOneOf1Items7? value) { - InputsOneOf1Items6 = value; + InputsOneOf1Items7 = value; } /// /// /// - public static InputsOneOf1Items FromInputsOneOf1Items6(global::OpenRouter.InputsOneOf1Items6? value) => new InputsOneOf1Items(value); + public static InputsOneOf1Items FromInputsOneOf1Items7(global::OpenRouter.InputsOneOf1Items7? value) => new InputsOneOf1Items(value); + + /// + /// + /// + public static implicit operator InputsOneOf1Items(global::OpenRouter.InputsOneOf1Items8 value) => new InputsOneOf1Items((global::OpenRouter.InputsOneOf1Items8?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.InputsOneOf1Items8?(InputsOneOf1Items @this) => @this.InputsOneOf1Items8; + + /// + /// + /// + public InputsOneOf1Items(global::OpenRouter.InputsOneOf1Items8? value) + { + InputsOneOf1Items8 = value; + } + + /// + /// + /// + public static InputsOneOf1Items FromInputsOneOf1Items8(global::OpenRouter.InputsOneOf1Items8? value) => new InputsOneOf1Items(value); /// /// @@ -2298,52 +2344,6 @@ public InputsOneOf1Items(global::OpenRouter.ShellCallOutputItem? value) /// public static InputsOneOf1Items FromShellCallOutputItem(global::OpenRouter.ShellCallOutputItem? value) => new InputsOneOf1Items(value); - /// - /// - /// - public static implicit operator InputsOneOf1Items(global::OpenRouter.ApplyPatchCallItem value) => new InputsOneOf1Items((global::OpenRouter.ApplyPatchCallItem?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ApplyPatchCallItem?(InputsOneOf1Items @this) => @this.ApplyPatchCallItem; - - /// - /// - /// - public InputsOneOf1Items(global::OpenRouter.ApplyPatchCallItem? value) - { - ApplyPatchCallItem = value; - } - - /// - /// - /// - public static InputsOneOf1Items FromApplyPatchCallItem(global::OpenRouter.ApplyPatchCallItem? value) => new InputsOneOf1Items(value); - - /// - /// - /// - public static implicit operator InputsOneOf1Items(global::OpenRouter.ApplyPatchCallOutputItem value) => new InputsOneOf1Items((global::OpenRouter.ApplyPatchCallOutputItem?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ApplyPatchCallOutputItem?(InputsOneOf1Items @this) => @this.ApplyPatchCallOutputItem; - - /// - /// - /// - public InputsOneOf1Items(global::OpenRouter.ApplyPatchCallOutputItem? value) - { - ApplyPatchCallOutputItem = value; - } - - /// - /// - /// - public static InputsOneOf1Items FromApplyPatchCallOutputItem(global::OpenRouter.ApplyPatchCallOutputItem? value) => new InputsOneOf1Items(value); - /// /// /// @@ -2537,8 +2537,10 @@ public InputsOneOf1Items( global::OpenRouter.InputMessageItem? inputMessageItem, global::OpenRouter.FunctionCallItem? functionCallItem, global::OpenRouter.FunctionCallOutputItem? functionCallOutputItem, - global::OpenRouter.InputsOneOf1Items5? inputsOneOf1Items5, - global::OpenRouter.InputsOneOf1Items6? inputsOneOf1Items6, + global::OpenRouter.ApplyPatchCallItem? applyPatchCallItem, + global::OpenRouter.ApplyPatchCallOutputItem? applyPatchCallOutputItem, + global::OpenRouter.InputsOneOf1Items7? inputsOneOf1Items7, + global::OpenRouter.InputsOneOf1Items8? inputsOneOf1Items8, global::OpenRouter.OutputFunctionCallItem? outputFunctionCallItem, global::OpenRouter.OutputCustomToolCallItem? outputCustomToolCallItem, global::OpenRouter.OutputWebSearchCallItem? outputWebSearchCallItem, @@ -2564,8 +2566,6 @@ public InputsOneOf1Items( global::OpenRouter.LocalShellCallOutputItem? localShellCallOutputItem, global::OpenRouter.ShellCallItem? shellCallItem, global::OpenRouter.ShellCallOutputItem? shellCallOutputItem, - global::OpenRouter.ApplyPatchCallItem? applyPatchCallItem, - global::OpenRouter.ApplyPatchCallOutputItem? applyPatchCallOutputItem, global::OpenRouter.McpListToolsItem? mcpListToolsItem, global::OpenRouter.McpApprovalRequestItem? mcpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem? mcpApprovalResponseItem, @@ -2581,8 +2581,10 @@ public InputsOneOf1Items( InputMessageItem = inputMessageItem; FunctionCallItem = functionCallItem; FunctionCallOutputItem = functionCallOutputItem; - InputsOneOf1Items5 = inputsOneOf1Items5; - InputsOneOf1Items6 = inputsOneOf1Items6; + ApplyPatchCallItem = applyPatchCallItem; + ApplyPatchCallOutputItem = applyPatchCallOutputItem; + InputsOneOf1Items7 = inputsOneOf1Items7; + InputsOneOf1Items8 = inputsOneOf1Items8; OutputFunctionCallItem = outputFunctionCallItem; OutputCustomToolCallItem = outputCustomToolCallItem; OutputWebSearchCallItem = outputWebSearchCallItem; @@ -2608,8 +2610,6 @@ public InputsOneOf1Items( LocalShellCallOutputItem = localShellCallOutputItem; ShellCallItem = shellCallItem; ShellCallOutputItem = shellCallOutputItem; - ApplyPatchCallItem = applyPatchCallItem; - ApplyPatchCallOutputItem = applyPatchCallOutputItem; McpListToolsItem = mcpListToolsItem; McpApprovalRequestItem = mcpApprovalRequestItem; McpApprovalResponseItem = mcpApprovalResponseItem; @@ -2632,8 +2632,6 @@ McpCallItem as object ?? McpApprovalResponseItem as object ?? McpApprovalRequestItem as object ?? McpListToolsItem as object ?? - ApplyPatchCallOutputItem as object ?? - ApplyPatchCallItem as object ?? ShellCallOutputItem as object ?? ShellCallItem as object ?? LocalShellCallOutputItem as object ?? @@ -2659,8 +2657,10 @@ OutputFileSearchCallItem as object ?? OutputWebSearchCallItem as object ?? OutputCustomToolCallItem as object ?? OutputFunctionCallItem as object ?? - InputsOneOf1Items6 as object ?? - InputsOneOf1Items5 as object ?? + InputsOneOf1Items8 as object ?? + InputsOneOf1Items7 as object ?? + ApplyPatchCallOutputItem as object ?? + ApplyPatchCallItem as object ?? FunctionCallOutputItem as object ?? FunctionCallItem as object ?? InputMessageItem as object ?? @@ -2677,8 +2677,10 @@ ReasoningItem as object InputMessageItem?.ToString() ?? FunctionCallItem?.ToString() ?? FunctionCallOutputItem?.ToString() ?? - InputsOneOf1Items5?.ToString() ?? - InputsOneOf1Items6?.ToString() ?? + ApplyPatchCallItem?.ToString() ?? + ApplyPatchCallOutputItem?.ToString() ?? + InputsOneOf1Items7?.ToString() ?? + InputsOneOf1Items8?.ToString() ?? OutputFunctionCallItem?.ToString() ?? OutputCustomToolCallItem?.ToString() ?? OutputWebSearchCallItem?.ToString() ?? @@ -2704,8 +2706,6 @@ ReasoningItem as object LocalShellCallOutputItem?.ToString() ?? ShellCallItem?.ToString() ?? ShellCallOutputItem?.ToString() ?? - ApplyPatchCallItem?.ToString() ?? - ApplyPatchCallOutputItem?.ToString() ?? McpListToolsItem?.ToString() ?? McpApprovalRequestItem?.ToString() ?? McpApprovalResponseItem?.ToString() ?? @@ -2721,7 +2721,7 @@ ReasoningItem as object /// public bool Validate() { - return IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsInputsOneOf1Items5 && !IsInputsOneOf1Items6 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && IsItemReferenceItem; + return IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && IsItemReferenceItem; } /// @@ -2733,8 +2733,10 @@ public bool Validate() global::System.Func? inputMessageItem = null, global::System.Func? functionCallItem = null, global::System.Func? functionCallOutputItem = null, - global::System.Func? inputsOneOf1Items5 = null, - global::System.Func? inputsOneOf1Items6 = null, + global::System.Func? applyPatchCallItem = null, + global::System.Func? applyPatchCallOutputItem = null, + global::System.Func? inputsOneOf1Items7 = null, + global::System.Func? inputsOneOf1Items8 = null, global::System.Func? outputFunctionCallItem = null, global::System.Func? outputCustomToolCallItem = null, global::System.Func? outputWebSearchCallItem = null, @@ -2760,8 +2762,6 @@ public bool Validate() global::System.Func? localShellCallOutputItem = null, global::System.Func? shellCallItem = null, global::System.Func? shellCallOutputItem = null, - global::System.Func? applyPatchCallItem = null, - global::System.Func? applyPatchCallOutputItem = null, global::System.Func? mcpListToolsItem = null, global::System.Func? mcpApprovalRequestItem = null, global::System.Func? mcpApprovalResponseItem = null, @@ -2797,13 +2797,21 @@ public bool Validate() { return functionCallOutputItem(FunctionCallOutputItem!); } - else if (IsInputsOneOf1Items5 && inputsOneOf1Items5 != null) + else if (IsApplyPatchCallItem && applyPatchCallItem != null) { - return inputsOneOf1Items5(InputsOneOf1Items5!); + return applyPatchCallItem(ApplyPatchCallItem!); + } + else if (IsApplyPatchCallOutputItem && applyPatchCallOutputItem != null) + { + return applyPatchCallOutputItem(ApplyPatchCallOutputItem!); } - else if (IsInputsOneOf1Items6 && inputsOneOf1Items6 != null) + else if (IsInputsOneOf1Items7 && inputsOneOf1Items7 != null) { - return inputsOneOf1Items6(InputsOneOf1Items6!); + return inputsOneOf1Items7(InputsOneOf1Items7!); + } + else if (IsInputsOneOf1Items8 && inputsOneOf1Items8 != null) + { + return inputsOneOf1Items8(InputsOneOf1Items8!); } else if (IsOutputFunctionCallItem && outputFunctionCallItem != null) { @@ -2905,14 +2913,6 @@ public bool Validate() { return shellCallOutputItem(ShellCallOutputItem!); } - else if (IsApplyPatchCallItem && applyPatchCallItem != null) - { - return applyPatchCallItem(ApplyPatchCallItem!); - } - else if (IsApplyPatchCallOutputItem && applyPatchCallOutputItem != null) - { - return applyPatchCallOutputItem(ApplyPatchCallOutputItem!); - } else if (IsMcpListToolsItem && mcpListToolsItem != null) { return mcpListToolsItem(McpListToolsItem!); @@ -2963,9 +2963,13 @@ public void Match( global::System.Action? functionCallOutputItem = null, - global::System.Action? inputsOneOf1Items5 = null, + global::System.Action? applyPatchCallItem = null, + + global::System.Action? applyPatchCallOutputItem = null, - global::System.Action? inputsOneOf1Items6 = null, + global::System.Action? inputsOneOf1Items7 = null, + + global::System.Action? inputsOneOf1Items8 = null, global::System.Action? outputFunctionCallItem = null, @@ -3017,10 +3021,6 @@ public void Match( global::System.Action? shellCallOutputItem = null, - global::System.Action? applyPatchCallItem = null, - - global::System.Action? applyPatchCallOutputItem = null, - global::System.Action? mcpListToolsItem = null, global::System.Action? mcpApprovalRequestItem = null, @@ -3063,13 +3063,21 @@ public void Match( { functionCallOutputItem?.Invoke(FunctionCallOutputItem!); } - else if (IsInputsOneOf1Items5) + else if (IsApplyPatchCallItem) + { + applyPatchCallItem?.Invoke(ApplyPatchCallItem!); + } + else if (IsApplyPatchCallOutputItem) + { + applyPatchCallOutputItem?.Invoke(ApplyPatchCallOutputItem!); + } + else if (IsInputsOneOf1Items7) { - inputsOneOf1Items5?.Invoke(InputsOneOf1Items5!); + inputsOneOf1Items7?.Invoke(InputsOneOf1Items7!); } - else if (IsInputsOneOf1Items6) + else if (IsInputsOneOf1Items8) { - inputsOneOf1Items6?.Invoke(InputsOneOf1Items6!); + inputsOneOf1Items8?.Invoke(InputsOneOf1Items8!); } else if (IsOutputFunctionCallItem) { @@ -3171,14 +3179,6 @@ public void Match( { shellCallOutputItem?.Invoke(ShellCallOutputItem!); } - else if (IsApplyPatchCallItem) - { - applyPatchCallItem?.Invoke(ApplyPatchCallItem!); - } - else if (IsApplyPatchCallOutputItem) - { - applyPatchCallOutputItem?.Invoke(ApplyPatchCallOutputItem!); - } else if (IsMcpListToolsItem) { mcpListToolsItem?.Invoke(McpListToolsItem!); @@ -3222,8 +3222,10 @@ public void Switch( global::System.Action? inputMessageItem = null, global::System.Action? functionCallItem = null, global::System.Action? functionCallOutputItem = null, - global::System.Action? inputsOneOf1Items5 = null, - global::System.Action? inputsOneOf1Items6 = null, + global::System.Action? applyPatchCallItem = null, + global::System.Action? applyPatchCallOutputItem = null, + global::System.Action? inputsOneOf1Items7 = null, + global::System.Action? inputsOneOf1Items8 = null, global::System.Action? outputFunctionCallItem = null, global::System.Action? outputCustomToolCallItem = null, global::System.Action? outputWebSearchCallItem = null, @@ -3249,8 +3251,6 @@ public void Switch( global::System.Action? localShellCallOutputItem = null, global::System.Action? shellCallItem = null, global::System.Action? shellCallOutputItem = null, - global::System.Action? applyPatchCallItem = null, - global::System.Action? applyPatchCallOutputItem = null, global::System.Action? mcpListToolsItem = null, global::System.Action? mcpApprovalRequestItem = null, global::System.Action? mcpApprovalResponseItem = null, @@ -3286,13 +3286,21 @@ public void Switch( { functionCallOutputItem?.Invoke(FunctionCallOutputItem!); } - else if (IsInputsOneOf1Items5) + else if (IsApplyPatchCallItem) + { + applyPatchCallItem?.Invoke(ApplyPatchCallItem!); + } + else if (IsApplyPatchCallOutputItem) + { + applyPatchCallOutputItem?.Invoke(ApplyPatchCallOutputItem!); + } + else if (IsInputsOneOf1Items7) { - inputsOneOf1Items5?.Invoke(InputsOneOf1Items5!); + inputsOneOf1Items7?.Invoke(InputsOneOf1Items7!); } - else if (IsInputsOneOf1Items6) + else if (IsInputsOneOf1Items8) { - inputsOneOf1Items6?.Invoke(InputsOneOf1Items6!); + inputsOneOf1Items8?.Invoke(InputsOneOf1Items8!); } else if (IsOutputFunctionCallItem) { @@ -3394,14 +3402,6 @@ public void Switch( { shellCallOutputItem?.Invoke(ShellCallOutputItem!); } - else if (IsApplyPatchCallItem) - { - applyPatchCallItem?.Invoke(ApplyPatchCallItem!); - } - else if (IsApplyPatchCallOutputItem) - { - applyPatchCallOutputItem?.Invoke(ApplyPatchCallOutputItem!); - } else if (IsMcpListToolsItem) { mcpListToolsItem?.Invoke(McpListToolsItem!); @@ -3453,10 +3453,14 @@ public override int GetHashCode() typeof(global::OpenRouter.FunctionCallItem), FunctionCallOutputItem, typeof(global::OpenRouter.FunctionCallOutputItem), - InputsOneOf1Items5, - typeof(global::OpenRouter.InputsOneOf1Items5), - InputsOneOf1Items6, - typeof(global::OpenRouter.InputsOneOf1Items6), + ApplyPatchCallItem, + typeof(global::OpenRouter.ApplyPatchCallItem), + ApplyPatchCallOutputItem, + typeof(global::OpenRouter.ApplyPatchCallOutputItem), + InputsOneOf1Items7, + typeof(global::OpenRouter.InputsOneOf1Items7), + InputsOneOf1Items8, + typeof(global::OpenRouter.InputsOneOf1Items8), OutputFunctionCallItem, typeof(global::OpenRouter.OutputFunctionCallItem), OutputCustomToolCallItem, @@ -3507,10 +3511,6 @@ public override int GetHashCode() typeof(global::OpenRouter.ShellCallItem), ShellCallOutputItem, typeof(global::OpenRouter.ShellCallOutputItem), - ApplyPatchCallItem, - typeof(global::OpenRouter.ApplyPatchCallItem), - ApplyPatchCallOutputItem, - typeof(global::OpenRouter.ApplyPatchCallOutputItem), McpListToolsItem, typeof(global::OpenRouter.McpListToolsItem), McpApprovalRequestItem, @@ -3548,8 +3548,10 @@ public bool Equals(InputsOneOf1Items other) global::System.Collections.Generic.EqualityComparer.Default.Equals(InputMessageItem, other.InputMessageItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionCallItem, other.FunctionCallItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionCallOutputItem, other.FunctionCallOutputItem) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1Items5, other.InputsOneOf1Items5) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1Items6, other.InputsOneOf1Items6) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallItem, other.ApplyPatchCallItem) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallOutputItem, other.ApplyPatchCallOutputItem) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1Items7, other.InputsOneOf1Items7) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1Items8, other.InputsOneOf1Items8) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputFunctionCallItem, other.OutputFunctionCallItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputCustomToolCallItem, other.OutputCustomToolCallItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputWebSearchCallItem, other.OutputWebSearchCallItem) && @@ -3575,8 +3577,6 @@ public bool Equals(InputsOneOf1Items other) global::System.Collections.Generic.EqualityComparer.Default.Equals(LocalShellCallOutputItem, other.LocalShellCallOutputItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellCallItem, other.ShellCallItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellCallOutputItem, other.ShellCallOutputItem) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallItem, other.ApplyPatchCallItem) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCallOutputItem, other.ApplyPatchCallOutputItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(McpListToolsItem, other.McpListToolsItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(McpApprovalRequestItem, other.McpApprovalRequestItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(McpApprovalResponseItem, other.McpApprovalResponseItem) && diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items5.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.Json.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items5.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.Json.g.cs index 6c80c7d2..e28e06e8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items5.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class InputsOneOf1Items5 + public sealed partial class InputsOneOf1Items7 { /// /// 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::OpenRouter.InputsOneOf1Items5? FromJson( + public static global::OpenRouter.InputsOneOf1Items7? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.InputsOneOf1Items5), - jsonSerializerContext) as global::OpenRouter.InputsOneOf1Items5; + typeof(global::OpenRouter.InputsOneOf1Items7), + jsonSerializerContext) as global::OpenRouter.InputsOneOf1Items7; } /// @@ -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::OpenRouter.InputsOneOf1Items5? FromJson( + public static global::OpenRouter.InputsOneOf1Items7? 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::OpenRouter.InputsOneOf1Items5), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1Items5; + typeof(global::OpenRouter.InputsOneOf1Items7), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1Items7; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.g.cs similarity index 76% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items5.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.g.cs index 2da85fb2..c5449423 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items5.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.g.cs @@ -6,14 +6,14 @@ namespace OpenRouter /// /// An output message item /// - public sealed partial class InputsOneOf1Items5 + public sealed partial class InputsOneOf1Items7 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentJsonConverter))] - public global::OpenRouter.InputsOneOf1ItemsOneOf5Content? Content { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentJsonConverter))] + public global::OpenRouter.InputsOneOf1ItemsOneOf7Content? Content { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +22,22 @@ public sealed partial class InputsOneOf1Items5 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. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public InputsOneOf1Items5( - global::OpenRouter.InputsOneOf1ItemsOneOf5Content? content) + public InputsOneOf1Items7( + global::OpenRouter.InputsOneOf1ItemsOneOf7Content? content) { this.Content = content; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public InputsOneOf1Items5() + public InputsOneOf1Items7() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items6.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items8.Json.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items6.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items8.Json.g.cs index 8b775c36..fa85b0d1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items6.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items8.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class InputsOneOf1Items6 + public sealed partial class InputsOneOf1Items8 { /// /// 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::OpenRouter.InputsOneOf1Items6? FromJson( + public static global::OpenRouter.InputsOneOf1Items8? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.InputsOneOf1Items6), - jsonSerializerContext) as global::OpenRouter.InputsOneOf1Items6; + typeof(global::OpenRouter.InputsOneOf1Items8), + jsonSerializerContext) as global::OpenRouter.InputsOneOf1Items8; } /// @@ -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::OpenRouter.InputsOneOf1Items6? FromJson( + public static global::OpenRouter.InputsOneOf1Items8? 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::OpenRouter.InputsOneOf1Items6), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1Items6; + typeof(global::OpenRouter.InputsOneOf1Items8), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1Items8; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items8.g.cs similarity index 94% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items6.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items8.g.cs index 8c705379..81e8a40f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items6.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items8.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// An output item containing reasoning /// - public sealed partial class InputsOneOf1Items6 + public sealed partial class InputsOneOf1Items8 { /// /// @@ -40,7 +40,7 @@ public sealed partial class InputsOneOf1Items6 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. /// /// /// @@ -51,7 +51,7 @@ public sealed partial class InputsOneOf1Items6 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public InputsOneOf1Items6( + public InputsOneOf1Items8( global::System.Collections.Generic.IList? content, global::OpenRouter.ReasoningFormat? format, string? signature, @@ -64,9 +64,9 @@ public InputsOneOf1Items6( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public InputsOneOf1Items6() + public InputsOneOf1Items8() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5Content.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5Content.g.cs deleted file mode 100644 index 1f2f403d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5Content.g.cs +++ /dev/null @@ -1,332 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct InputsOneOf1ItemsOneOf5Content : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public global::System.Collections.Generic.IList? InputsOneOf1ItemsOneOf5Content0 { get; init; } -#else - public global::System.Collections.Generic.IList? InputsOneOf1ItemsOneOf5Content0 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1ItemsOneOf5Content0))] -#endif - public bool IsInputsOneOf1ItemsOneOf5Content0 => InputsOneOf1ItemsOneOf5Content0 != null; - - /// - /// - /// - public bool TryPickInputsOneOf1ItemsOneOf5Content0( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::System.Collections.Generic.IList? value) - { - value = InputsOneOf1ItemsOneOf5Content0; - return IsInputsOneOf1ItemsOneOf5Content0; - } - - /// - /// - /// - public global::System.Collections.Generic.IList PickInputsOneOf1ItemsOneOf5Content0() => IsInputsOneOf1ItemsOneOf5Content0 - ? InputsOneOf1ItemsOneOf5Content0! - : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1ItemsOneOf5Content0' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public string? InputsOneOf1ItemsOneOf5ContentVariant2 { get; init; } -#else - public string? InputsOneOf1ItemsOneOf5ContentVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1ItemsOneOf5ContentVariant2))] -#endif - public bool IsInputsOneOf1ItemsOneOf5ContentVariant2 => InputsOneOf1ItemsOneOf5ContentVariant2 != null; - - /// - /// - /// - public bool TryPickInputsOneOf1ItemsOneOf5ContentVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out string? value) - { - value = InputsOneOf1ItemsOneOf5ContentVariant2; - return IsInputsOneOf1ItemsOneOf5ContentVariant2; - } - - /// - /// - /// - public string PickInputsOneOf1ItemsOneOf5ContentVariant2() => IsInputsOneOf1ItemsOneOf5ContentVariant2 - ? InputsOneOf1ItemsOneOf5ContentVariant2! - : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1ItemsOneOf5ContentVariant2' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? InputsOneOf1ItemsOneOf5ContentVariant3 { get; init; } -#else - public object? InputsOneOf1ItemsOneOf5ContentVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1ItemsOneOf5ContentVariant3))] -#endif - public bool IsInputsOneOf1ItemsOneOf5ContentVariant3 => InputsOneOf1ItemsOneOf5ContentVariant3 != null; - - /// - /// - /// - public bool TryPickInputsOneOf1ItemsOneOf5ContentVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = InputsOneOf1ItemsOneOf5ContentVariant3; - return IsInputsOneOf1ItemsOneOf5ContentVariant3; - } - - /// - /// - /// - public object PickInputsOneOf1ItemsOneOf5ContentVariant3() => IsInputsOneOf1ItemsOneOf5ContentVariant3 - ? InputsOneOf1ItemsOneOf5ContentVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1ItemsOneOf5ContentVariant3' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator InputsOneOf1ItemsOneOf5Content(string value) => new InputsOneOf1ItemsOneOf5Content((string?)value); - - /// - /// - /// - public static implicit operator string?(InputsOneOf1ItemsOneOf5Content @this) => @this.InputsOneOf1ItemsOneOf5ContentVariant2; - - /// - /// - /// - public InputsOneOf1ItemsOneOf5Content(string? value) - { - InputsOneOf1ItemsOneOf5ContentVariant2 = value; - } - - /// - /// - /// - public static InputsOneOf1ItemsOneOf5Content FromInputsOneOf1ItemsOneOf5ContentVariant2(string? value) => new InputsOneOf1ItemsOneOf5Content(value); - - /// - /// - /// - public InputsOneOf1ItemsOneOf5Content( - global::System.Collections.Generic.IList? inputsOneOf1ItemsOneOf5Content0, - string? inputsOneOf1ItemsOneOf5ContentVariant2, - object? inputsOneOf1ItemsOneOf5ContentVariant3 - ) - { - InputsOneOf1ItemsOneOf5Content0 = inputsOneOf1ItemsOneOf5Content0; - InputsOneOf1ItemsOneOf5ContentVariant2 = inputsOneOf1ItemsOneOf5ContentVariant2; - InputsOneOf1ItemsOneOf5ContentVariant3 = inputsOneOf1ItemsOneOf5ContentVariant3; - } - - /// - /// - /// - public object? Object => - InputsOneOf1ItemsOneOf5ContentVariant3 as object ?? - InputsOneOf1ItemsOneOf5ContentVariant2 as object ?? - InputsOneOf1ItemsOneOf5Content0 as object - ; - - /// - /// - /// - public override string? ToString() => - InputsOneOf1ItemsOneOf5Content0?.ToString() ?? - InputsOneOf1ItemsOneOf5ContentVariant2?.ToString() ?? - InputsOneOf1ItemsOneOf5ContentVariant3?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsInputsOneOf1ItemsOneOf5Content0 && !IsInputsOneOf1ItemsOneOf5ContentVariant2 && !IsInputsOneOf1ItemsOneOf5ContentVariant3 || !IsInputsOneOf1ItemsOneOf5Content0 && IsInputsOneOf1ItemsOneOf5ContentVariant2 && !IsInputsOneOf1ItemsOneOf5ContentVariant3 || !IsInputsOneOf1ItemsOneOf5Content0 && !IsInputsOneOf1ItemsOneOf5ContentVariant2 && IsInputsOneOf1ItemsOneOf5ContentVariant3; - } - - /// - /// - /// - public TResult? Match( - global::System.Func, TResult>? inputsOneOf1ItemsOneOf5Content0 = null, - global::System.Func? inputsOneOf1ItemsOneOf5ContentVariant2 = null, - global::System.Func? inputsOneOf1ItemsOneOf5ContentVariant3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsInputsOneOf1ItemsOneOf5Content0 && inputsOneOf1ItemsOneOf5Content0 != null) - { - return inputsOneOf1ItemsOneOf5Content0(InputsOneOf1ItemsOneOf5Content0!); - } - else if (IsInputsOneOf1ItemsOneOf5ContentVariant2 && inputsOneOf1ItemsOneOf5ContentVariant2 != null) - { - return inputsOneOf1ItemsOneOf5ContentVariant2(InputsOneOf1ItemsOneOf5ContentVariant2!); - } - else if (IsInputsOneOf1ItemsOneOf5ContentVariant3 && inputsOneOf1ItemsOneOf5ContentVariant3 != null) - { - return inputsOneOf1ItemsOneOf5ContentVariant3(InputsOneOf1ItemsOneOf5ContentVariant3!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action>? inputsOneOf1ItemsOneOf5Content0 = null, - - global::System.Action? inputsOneOf1ItemsOneOf5ContentVariant2 = null, - - global::System.Action? inputsOneOf1ItemsOneOf5ContentVariant3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsInputsOneOf1ItemsOneOf5Content0) - { - inputsOneOf1ItemsOneOf5Content0?.Invoke(InputsOneOf1ItemsOneOf5Content0!); - } - else if (IsInputsOneOf1ItemsOneOf5ContentVariant2) - { - inputsOneOf1ItemsOneOf5ContentVariant2?.Invoke(InputsOneOf1ItemsOneOf5ContentVariant2!); - } - else if (IsInputsOneOf1ItemsOneOf5ContentVariant3) - { - inputsOneOf1ItemsOneOf5ContentVariant3?.Invoke(InputsOneOf1ItemsOneOf5ContentVariant3!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action>? inputsOneOf1ItemsOneOf5Content0 = null, - global::System.Action? inputsOneOf1ItemsOneOf5ContentVariant2 = null, - global::System.Action? inputsOneOf1ItemsOneOf5ContentVariant3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsInputsOneOf1ItemsOneOf5Content0) - { - inputsOneOf1ItemsOneOf5Content0?.Invoke(InputsOneOf1ItemsOneOf5Content0!); - } - else if (IsInputsOneOf1ItemsOneOf5ContentVariant2) - { - inputsOneOf1ItemsOneOf5ContentVariant2?.Invoke(InputsOneOf1ItemsOneOf5ContentVariant2!); - } - else if (IsInputsOneOf1ItemsOneOf5ContentVariant3) - { - inputsOneOf1ItemsOneOf5ContentVariant3?.Invoke(InputsOneOf1ItemsOneOf5ContentVariant3!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - InputsOneOf1ItemsOneOf5Content0, - typeof(global::System.Collections.Generic.IList), - InputsOneOf1ItemsOneOf5ContentVariant2, - typeof(string), - InputsOneOf1ItemsOneOf5ContentVariant3, - typeof(object), - }; - 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(InputsOneOf1ItemsOneOf5Content other) - { - return - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(InputsOneOf1ItemsOneOf5Content0, other.InputsOneOf1ItemsOneOf5Content0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1ItemsOneOf5ContentVariant2, other.InputsOneOf1ItemsOneOf5ContentVariant2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1ItemsOneOf5ContentVariant3, other.InputsOneOf1ItemsOneOf5ContentVariant3) - ; - } - - /// - /// - /// - public static bool operator ==(InputsOneOf1ItemsOneOf5Content obj1, InputsOneOf1ItemsOneOf5Content obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(InputsOneOf1ItemsOneOf5Content obj1, InputsOneOf1ItemsOneOf5Content obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is InputsOneOf1ItemsOneOf5Content o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5Content.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.Json.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5Content.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.Json.g.cs index 20a1d54b..55234f0c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5Content.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public readonly partial struct InputsOneOf1ItemsOneOf5Content + public readonly partial struct InputsOneOf1ItemsOneOf7Content { /// /// 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::OpenRouter.InputsOneOf1ItemsOneOf5Content? FromJson( + public static global::OpenRouter.InputsOneOf1ItemsOneOf7Content? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.InputsOneOf1ItemsOneOf5Content), - jsonSerializerContext) as global::OpenRouter.InputsOneOf1ItemsOneOf5Content?; + typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7Content), + jsonSerializerContext) as global::OpenRouter.InputsOneOf1ItemsOneOf7Content?; } /// @@ -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::OpenRouter.InputsOneOf1ItemsOneOf5Content? FromJson( + public static global::OpenRouter.InputsOneOf1ItemsOneOf7Content? 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::OpenRouter.InputsOneOf1ItemsOneOf5Content), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1ItemsOneOf5Content?; + typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7Content), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1ItemsOneOf7Content?; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.g.cs new file mode 100644 index 00000000..b1c9eea4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.g.cs @@ -0,0 +1,332 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct InputsOneOf1ItemsOneOf7Content : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::System.Collections.Generic.IList? InputsOneOf1ItemsOneOf7Content0 { get; init; } +#else + public global::System.Collections.Generic.IList? InputsOneOf1ItemsOneOf7Content0 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1ItemsOneOf7Content0))] +#endif + public bool IsInputsOneOf1ItemsOneOf7Content0 => InputsOneOf1ItemsOneOf7Content0 != null; + + /// + /// + /// + public bool TryPickInputsOneOf1ItemsOneOf7Content0( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::System.Collections.Generic.IList? value) + { + value = InputsOneOf1ItemsOneOf7Content0; + return IsInputsOneOf1ItemsOneOf7Content0; + } + + /// + /// + /// + public global::System.Collections.Generic.IList PickInputsOneOf1ItemsOneOf7Content0() => IsInputsOneOf1ItemsOneOf7Content0 + ? InputsOneOf1ItemsOneOf7Content0! + : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1ItemsOneOf7Content0' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public string? InputsOneOf1ItemsOneOf7ContentVariant2 { get; init; } +#else + public string? InputsOneOf1ItemsOneOf7ContentVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1ItemsOneOf7ContentVariant2))] +#endif + public bool IsInputsOneOf1ItemsOneOf7ContentVariant2 => InputsOneOf1ItemsOneOf7ContentVariant2 != null; + + /// + /// + /// + public bool TryPickInputsOneOf1ItemsOneOf7ContentVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = InputsOneOf1ItemsOneOf7ContentVariant2; + return IsInputsOneOf1ItemsOneOf7ContentVariant2; + } + + /// + /// + /// + public string PickInputsOneOf1ItemsOneOf7ContentVariant2() => IsInputsOneOf1ItemsOneOf7ContentVariant2 + ? InputsOneOf1ItemsOneOf7ContentVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1ItemsOneOf7ContentVariant2' but the value was {ToString()}."); + + /// + /// Any type + /// +#if NET6_0_OR_GREATER + public object? InputsOneOf1ItemsOneOf7ContentVariant3 { get; init; } +#else + public object? InputsOneOf1ItemsOneOf7ContentVariant3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1ItemsOneOf7ContentVariant3))] +#endif + public bool IsInputsOneOf1ItemsOneOf7ContentVariant3 => InputsOneOf1ItemsOneOf7ContentVariant3 != null; + + /// + /// + /// + public bool TryPickInputsOneOf1ItemsOneOf7ContentVariant3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out object? value) + { + value = InputsOneOf1ItemsOneOf7ContentVariant3; + return IsInputsOneOf1ItemsOneOf7ContentVariant3; + } + + /// + /// + /// + public object PickInputsOneOf1ItemsOneOf7ContentVariant3() => IsInputsOneOf1ItemsOneOf7ContentVariant3 + ? InputsOneOf1ItemsOneOf7ContentVariant3! + : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1ItemsOneOf7ContentVariant3' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator InputsOneOf1ItemsOneOf7Content(string value) => new InputsOneOf1ItemsOneOf7Content((string?)value); + + /// + /// + /// + public static implicit operator string?(InputsOneOf1ItemsOneOf7Content @this) => @this.InputsOneOf1ItemsOneOf7ContentVariant2; + + /// + /// + /// + public InputsOneOf1ItemsOneOf7Content(string? value) + { + InputsOneOf1ItemsOneOf7ContentVariant2 = value; + } + + /// + /// + /// + public static InputsOneOf1ItemsOneOf7Content FromInputsOneOf1ItemsOneOf7ContentVariant2(string? value) => new InputsOneOf1ItemsOneOf7Content(value); + + /// + /// + /// + public InputsOneOf1ItemsOneOf7Content( + global::System.Collections.Generic.IList? inputsOneOf1ItemsOneOf7Content0, + string? inputsOneOf1ItemsOneOf7ContentVariant2, + object? inputsOneOf1ItemsOneOf7ContentVariant3 + ) + { + InputsOneOf1ItemsOneOf7Content0 = inputsOneOf1ItemsOneOf7Content0; + InputsOneOf1ItemsOneOf7ContentVariant2 = inputsOneOf1ItemsOneOf7ContentVariant2; + InputsOneOf1ItemsOneOf7ContentVariant3 = inputsOneOf1ItemsOneOf7ContentVariant3; + } + + /// + /// + /// + public object? Object => + InputsOneOf1ItemsOneOf7ContentVariant3 as object ?? + InputsOneOf1ItemsOneOf7ContentVariant2 as object ?? + InputsOneOf1ItemsOneOf7Content0 as object + ; + + /// + /// + /// + public override string? ToString() => + InputsOneOf1ItemsOneOf7Content0?.ToString() ?? + InputsOneOf1ItemsOneOf7ContentVariant2?.ToString() ?? + InputsOneOf1ItemsOneOf7ContentVariant3?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsInputsOneOf1ItemsOneOf7Content0 && !IsInputsOneOf1ItemsOneOf7ContentVariant2 && !IsInputsOneOf1ItemsOneOf7ContentVariant3 || !IsInputsOneOf1ItemsOneOf7Content0 && IsInputsOneOf1ItemsOneOf7ContentVariant2 && !IsInputsOneOf1ItemsOneOf7ContentVariant3 || !IsInputsOneOf1ItemsOneOf7Content0 && !IsInputsOneOf1ItemsOneOf7ContentVariant2 && IsInputsOneOf1ItemsOneOf7ContentVariant3; + } + + /// + /// + /// + public TResult? Match( + global::System.Func, TResult>? inputsOneOf1ItemsOneOf7Content0 = null, + global::System.Func? inputsOneOf1ItemsOneOf7ContentVariant2 = null, + global::System.Func? inputsOneOf1ItemsOneOf7ContentVariant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsInputsOneOf1ItemsOneOf7Content0 && inputsOneOf1ItemsOneOf7Content0 != null) + { + return inputsOneOf1ItemsOneOf7Content0(InputsOneOf1ItemsOneOf7Content0!); + } + else if (IsInputsOneOf1ItemsOneOf7ContentVariant2 && inputsOneOf1ItemsOneOf7ContentVariant2 != null) + { + return inputsOneOf1ItemsOneOf7ContentVariant2(InputsOneOf1ItemsOneOf7ContentVariant2!); + } + else if (IsInputsOneOf1ItemsOneOf7ContentVariant3 && inputsOneOf1ItemsOneOf7ContentVariant3 != null) + { + return inputsOneOf1ItemsOneOf7ContentVariant3(InputsOneOf1ItemsOneOf7ContentVariant3!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action>? inputsOneOf1ItemsOneOf7Content0 = null, + + global::System.Action? inputsOneOf1ItemsOneOf7ContentVariant2 = null, + + global::System.Action? inputsOneOf1ItemsOneOf7ContentVariant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsInputsOneOf1ItemsOneOf7Content0) + { + inputsOneOf1ItemsOneOf7Content0?.Invoke(InputsOneOf1ItemsOneOf7Content0!); + } + else if (IsInputsOneOf1ItemsOneOf7ContentVariant2) + { + inputsOneOf1ItemsOneOf7ContentVariant2?.Invoke(InputsOneOf1ItemsOneOf7ContentVariant2!); + } + else if (IsInputsOneOf1ItemsOneOf7ContentVariant3) + { + inputsOneOf1ItemsOneOf7ContentVariant3?.Invoke(InputsOneOf1ItemsOneOf7ContentVariant3!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action>? inputsOneOf1ItemsOneOf7Content0 = null, + global::System.Action? inputsOneOf1ItemsOneOf7ContentVariant2 = null, + global::System.Action? inputsOneOf1ItemsOneOf7ContentVariant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsInputsOneOf1ItemsOneOf7Content0) + { + inputsOneOf1ItemsOneOf7Content0?.Invoke(InputsOneOf1ItemsOneOf7Content0!); + } + else if (IsInputsOneOf1ItemsOneOf7ContentVariant2) + { + inputsOneOf1ItemsOneOf7ContentVariant2?.Invoke(InputsOneOf1ItemsOneOf7ContentVariant2!); + } + else if (IsInputsOneOf1ItemsOneOf7ContentVariant3) + { + inputsOneOf1ItemsOneOf7ContentVariant3?.Invoke(InputsOneOf1ItemsOneOf7ContentVariant3!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + InputsOneOf1ItemsOneOf7Content0, + typeof(global::System.Collections.Generic.IList), + InputsOneOf1ItemsOneOf7ContentVariant2, + typeof(string), + InputsOneOf1ItemsOneOf7ContentVariant3, + typeof(object), + }; + 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(InputsOneOf1ItemsOneOf7Content other) + { + return + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(InputsOneOf1ItemsOneOf7Content0, other.InputsOneOf1ItemsOneOf7Content0) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1ItemsOneOf7ContentVariant2, other.InputsOneOf1ItemsOneOf7ContentVariant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1ItemsOneOf7ContentVariant3, other.InputsOneOf1ItemsOneOf7ContentVariant3) + ; + } + + /// + /// + /// + public static bool operator ==(InputsOneOf1ItemsOneOf7Content obj1, InputsOneOf1ItemsOneOf7Content obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(InputsOneOf1ItemsOneOf7Content obj1, InputsOneOf1ItemsOneOf7Content obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is InputsOneOf1ItemsOneOf7Content o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentOneOf0Items.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentOneOf0Items.Json.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentOneOf0Items.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentOneOf0Items.Json.g.cs index c06bb626..45cbe36b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentOneOf0Items.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentOneOf0Items.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public readonly partial struct InputsOneOf1ItemsOneOf5ContentOneOf0Items + public readonly partial struct InputsOneOf1ItemsOneOf7ContentOneOf0Items { /// /// 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::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items? FromJson( + public static global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items), - jsonSerializerContext) as global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items?; + typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items), + jsonSerializerContext) as global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items?; } /// @@ -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::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items? FromJson( + public static global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items? 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::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items?; + typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items?; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentOneOf0Items.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentOneOf0Items.g.cs index 820c699f..f462a0af 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentOneOf0Items.g.cs @@ -7,7 +7,7 @@ namespace OpenRouter /// /// /// - public readonly partial struct InputsOneOf1ItemsOneOf5ContentOneOf0Items : global::System.IEquatable + public readonly partial struct InputsOneOf1ItemsOneOf7ContentOneOf0Items : global::System.IEquatable { /// /// @@ -85,17 +85,17 @@ public bool TryPickOpenAIResponsesRefusalContent( /// /// /// - public static implicit operator InputsOneOf1ItemsOneOf5ContentOneOf0Items(global::OpenRouter.ResponseOutputText value) => new InputsOneOf1ItemsOneOf5ContentOneOf0Items((global::OpenRouter.ResponseOutputText?)value); + public static implicit operator InputsOneOf1ItemsOneOf7ContentOneOf0Items(global::OpenRouter.ResponseOutputText value) => new InputsOneOf1ItemsOneOf7ContentOneOf0Items((global::OpenRouter.ResponseOutputText?)value); /// /// /// - public static implicit operator global::OpenRouter.ResponseOutputText?(InputsOneOf1ItemsOneOf5ContentOneOf0Items @this) => @this.ResponseOutputText; + public static implicit operator global::OpenRouter.ResponseOutputText?(InputsOneOf1ItemsOneOf7ContentOneOf0Items @this) => @this.ResponseOutputText; /// /// /// - public InputsOneOf1ItemsOneOf5ContentOneOf0Items(global::OpenRouter.ResponseOutputText? value) + public InputsOneOf1ItemsOneOf7ContentOneOf0Items(global::OpenRouter.ResponseOutputText? value) { ResponseOutputText = value; } @@ -103,22 +103,22 @@ public InputsOneOf1ItemsOneOf5ContentOneOf0Items(global::OpenRouter.ResponseOutp /// /// /// - public static InputsOneOf1ItemsOneOf5ContentOneOf0Items FromResponseOutputText(global::OpenRouter.ResponseOutputText? value) => new InputsOneOf1ItemsOneOf5ContentOneOf0Items(value); + public static InputsOneOf1ItemsOneOf7ContentOneOf0Items FromResponseOutputText(global::OpenRouter.ResponseOutputText? value) => new InputsOneOf1ItemsOneOf7ContentOneOf0Items(value); /// /// /// - public static implicit operator InputsOneOf1ItemsOneOf5ContentOneOf0Items(global::OpenRouter.OpenAIResponsesRefusalContent value) => new InputsOneOf1ItemsOneOf5ContentOneOf0Items((global::OpenRouter.OpenAIResponsesRefusalContent?)value); + public static implicit operator InputsOneOf1ItemsOneOf7ContentOneOf0Items(global::OpenRouter.OpenAIResponsesRefusalContent value) => new InputsOneOf1ItemsOneOf7ContentOneOf0Items((global::OpenRouter.OpenAIResponsesRefusalContent?)value); /// /// /// - public static implicit operator global::OpenRouter.OpenAIResponsesRefusalContent?(InputsOneOf1ItemsOneOf5ContentOneOf0Items @this) => @this.OpenAIResponsesRefusalContent; + public static implicit operator global::OpenRouter.OpenAIResponsesRefusalContent?(InputsOneOf1ItemsOneOf7ContentOneOf0Items @this) => @this.OpenAIResponsesRefusalContent; /// /// /// - public InputsOneOf1ItemsOneOf5ContentOneOf0Items(global::OpenRouter.OpenAIResponsesRefusalContent? value) + public InputsOneOf1ItemsOneOf7ContentOneOf0Items(global::OpenRouter.OpenAIResponsesRefusalContent? value) { OpenAIResponsesRefusalContent = value; } @@ -126,12 +126,12 @@ public InputsOneOf1ItemsOneOf5ContentOneOf0Items(global::OpenRouter.OpenAIRespon /// /// /// - public static InputsOneOf1ItemsOneOf5ContentOneOf0Items FromOpenAIResponsesRefusalContent(global::OpenRouter.OpenAIResponsesRefusalContent? value) => new InputsOneOf1ItemsOneOf5ContentOneOf0Items(value); + public static InputsOneOf1ItemsOneOf7ContentOneOf0Items FromOpenAIResponsesRefusalContent(global::OpenRouter.OpenAIResponsesRefusalContent? value) => new InputsOneOf1ItemsOneOf7ContentOneOf0Items(value); /// /// /// - public InputsOneOf1ItemsOneOf5ContentOneOf0Items( + public InputsOneOf1ItemsOneOf7ContentOneOf0Items( global::OpenRouter.ResponseOutputText? responseOutputText, global::OpenRouter.OpenAIResponsesRefusalContent? openAIResponsesRefusalContent ) @@ -260,7 +260,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(InputsOneOf1ItemsOneOf5ContentOneOf0Items other) + public bool Equals(InputsOneOf1ItemsOneOf7ContentOneOf0Items other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseOutputText, other.ResponseOutputText) && @@ -271,15 +271,15 @@ public bool Equals(InputsOneOf1ItemsOneOf5ContentOneOf0Items other) /// /// /// - public static bool operator ==(InputsOneOf1ItemsOneOf5ContentOneOf0Items obj1, InputsOneOf1ItemsOneOf5ContentOneOf0Items obj2) + public static bool operator ==(InputsOneOf1ItemsOneOf7ContentOneOf0Items obj1, InputsOneOf1ItemsOneOf7ContentOneOf0Items 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 !=(InputsOneOf1ItemsOneOf5ContentOneOf0Items obj1, InputsOneOf1ItemsOneOf5ContentOneOf0Items obj2) + public static bool operator !=(InputsOneOf1ItemsOneOf7ContentOneOf0Items obj1, InputsOneOf1ItemsOneOf7ContentOneOf0Items obj2) { return !(obj1 == obj2); } @@ -289,7 +289,7 @@ public bool Equals(InputsOneOf1ItemsOneOf5ContentOneOf0Items other) /// public override bool Equals(object? obj) { - return obj is InputsOneOf1ItemsOneOf5ContentOneOf0Items o && Equals(o); + return obj is InputsOneOf1ItemsOneOf7ContentOneOf0Items o && Equals(o); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.Json.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentVariant3.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.Json.g.cs index 130c6640..ee16c97c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentVariant3.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class InputsOneOf1ItemsOneOf5ContentVariant3 + public sealed partial class InputsOneOf1ItemsOneOf7ContentVariant3 { /// /// 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::OpenRouter.InputsOneOf1ItemsOneOf5ContentVariant3? FromJson( + public static global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.InputsOneOf1ItemsOneOf5ContentVariant3), - jsonSerializerContext) as global::OpenRouter.InputsOneOf1ItemsOneOf5ContentVariant3; + typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3), + jsonSerializerContext) as global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3; } /// @@ -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::OpenRouter.InputsOneOf1ItemsOneOf5ContentVariant3? FromJson( + public static global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3? 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::OpenRouter.InputsOneOf1ItemsOneOf5ContentVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1ItemsOneOf5ContentVariant3; + typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentVariant3.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.g.cs index 283580ca..c416ca36 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf5ContentVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Any type /// - public sealed partial class InputsOneOf1ItemsOneOf5ContentVariant3 + public sealed partial class InputsOneOf1ItemsOneOf7ContentVariant3 { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAIResponsesToolChoice.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAIResponsesToolChoice.g.cs index 0415116b..a000f5a8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAIResponsesToolChoice.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAIResponsesToolChoice.g.cs @@ -230,6 +230,80 @@ public bool TryPickToolChoiceAllowed( public global::OpenRouter.ToolChoiceAllowed PickToolChoiceAllowed() => IsToolChoiceAllowed ? ToolChoiceAllowed! : throw new global::System.InvalidOperationException($"Expected union variant 'ToolChoiceAllowed' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OpenAiResponsesToolChoice6? OpenAiResponsesToolChoice6 { get; init; } +#else + public global::OpenRouter.OpenAiResponsesToolChoice6? OpenAiResponsesToolChoice6 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenAiResponsesToolChoice6))] +#endif + public bool IsOpenAiResponsesToolChoice6 => OpenAiResponsesToolChoice6 != null; + + /// + /// + /// + public bool TryPickOpenAiResponsesToolChoice6( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.OpenAiResponsesToolChoice6? value) + { + value = OpenAiResponsesToolChoice6; + return IsOpenAiResponsesToolChoice6; + } + + /// + /// + /// + public global::OpenRouter.OpenAiResponsesToolChoice6 PickOpenAiResponsesToolChoice6() => IsOpenAiResponsesToolChoice6 + ? OpenAiResponsesToolChoice6! + : throw new global::System.InvalidOperationException($"Expected union variant 'OpenAiResponsesToolChoice6' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OpenAiResponsesToolChoice7? OpenAiResponsesToolChoice7 { get; init; } +#else + public global::OpenRouter.OpenAiResponsesToolChoice7? OpenAiResponsesToolChoice7 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenAiResponsesToolChoice7))] +#endif + public bool IsOpenAiResponsesToolChoice7 => OpenAiResponsesToolChoice7 != null; + + /// + /// + /// + public bool TryPickOpenAiResponsesToolChoice7( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.OpenAiResponsesToolChoice7? value) + { + value = OpenAiResponsesToolChoice7; + return IsOpenAiResponsesToolChoice7; + } + + /// + /// + /// + public global::OpenRouter.OpenAiResponsesToolChoice7 PickOpenAiResponsesToolChoice7() => IsOpenAiResponsesToolChoice7 + ? OpenAiResponsesToolChoice7! + : throw new global::System.InvalidOperationException($"Expected union variant 'OpenAiResponsesToolChoice7' but the value was {ToString()}."); /// /// /// @@ -368,6 +442,52 @@ public OpenAIResponsesToolChoice(global::OpenRouter.ToolChoiceAllowed? value) /// public static OpenAIResponsesToolChoice FromToolChoiceAllowed(global::OpenRouter.ToolChoiceAllowed? value) => new OpenAIResponsesToolChoice(value); + /// + /// + /// + public static implicit operator OpenAIResponsesToolChoice(global::OpenRouter.OpenAiResponsesToolChoice6 value) => new OpenAIResponsesToolChoice((global::OpenRouter.OpenAiResponsesToolChoice6?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OpenAiResponsesToolChoice6?(OpenAIResponsesToolChoice @this) => @this.OpenAiResponsesToolChoice6; + + /// + /// + /// + public OpenAIResponsesToolChoice(global::OpenRouter.OpenAiResponsesToolChoice6? value) + { + OpenAiResponsesToolChoice6 = value; + } + + /// + /// + /// + public static OpenAIResponsesToolChoice FromOpenAiResponsesToolChoice6(global::OpenRouter.OpenAiResponsesToolChoice6? value) => new OpenAIResponsesToolChoice(value); + + /// + /// + /// + public static implicit operator OpenAIResponsesToolChoice(global::OpenRouter.OpenAiResponsesToolChoice7 value) => new OpenAIResponsesToolChoice((global::OpenRouter.OpenAiResponsesToolChoice7?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OpenAiResponsesToolChoice7?(OpenAIResponsesToolChoice @this) => @this.OpenAiResponsesToolChoice7; + + /// + /// + /// + public OpenAIResponsesToolChoice(global::OpenRouter.OpenAiResponsesToolChoice7? value) + { + OpenAiResponsesToolChoice7 = value; + } + + /// + /// + /// + public static OpenAIResponsesToolChoice FromOpenAiResponsesToolChoice7(global::OpenRouter.OpenAiResponsesToolChoice7? value) => new OpenAIResponsesToolChoice(value); + /// /// /// @@ -377,7 +497,9 @@ public OpenAIResponsesToolChoice( global::OpenRouter.OpenAiResponsesToolChoice2? openAiResponsesToolChoice2, global::OpenRouter.OpenAiResponsesToolChoice3? openAiResponsesToolChoice3, global::OpenRouter.OpenAiResponsesToolChoice4? openAiResponsesToolChoice4, - global::OpenRouter.ToolChoiceAllowed? toolChoiceAllowed + global::OpenRouter.ToolChoiceAllowed? toolChoiceAllowed, + global::OpenRouter.OpenAiResponsesToolChoice6? openAiResponsesToolChoice6, + global::OpenRouter.OpenAiResponsesToolChoice7? openAiResponsesToolChoice7 ) { OpenAiResponsesToolChoice0 = openAiResponsesToolChoice0; @@ -386,12 +508,16 @@ public OpenAIResponsesToolChoice( OpenAiResponsesToolChoice3 = openAiResponsesToolChoice3; OpenAiResponsesToolChoice4 = openAiResponsesToolChoice4; ToolChoiceAllowed = toolChoiceAllowed; + OpenAiResponsesToolChoice6 = openAiResponsesToolChoice6; + OpenAiResponsesToolChoice7 = openAiResponsesToolChoice7; } /// /// /// public object? Object => + OpenAiResponsesToolChoice7 as object ?? + OpenAiResponsesToolChoice6 as object ?? ToolChoiceAllowed as object ?? OpenAiResponsesToolChoice4 as object ?? OpenAiResponsesToolChoice3 as object ?? @@ -409,7 +535,9 @@ OpenAiResponsesToolChoice0 as object OpenAiResponsesToolChoice2?.ToValueString() ?? OpenAiResponsesToolChoice3?.ToString() ?? OpenAiResponsesToolChoice4?.ToString() ?? - ToolChoiceAllowed?.ToString() + ToolChoiceAllowed?.ToString() ?? + OpenAiResponsesToolChoice6?.ToString() ?? + OpenAiResponsesToolChoice7?.ToString() ; /// @@ -417,7 +545,7 @@ OpenAiResponsesToolChoice0 as object /// public bool Validate() { - return IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed || !IsOpenAiResponsesToolChoice0 && IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && IsToolChoiceAllowed; + return IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed && !IsOpenAiResponsesToolChoice6 && !IsOpenAiResponsesToolChoice7 || !IsOpenAiResponsesToolChoice0 && IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed && !IsOpenAiResponsesToolChoice6 && !IsOpenAiResponsesToolChoice7 || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed && !IsOpenAiResponsesToolChoice6 && !IsOpenAiResponsesToolChoice7 || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed && !IsOpenAiResponsesToolChoice6 && !IsOpenAiResponsesToolChoice7 || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed && !IsOpenAiResponsesToolChoice6 && !IsOpenAiResponsesToolChoice7 || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && IsToolChoiceAllowed && !IsOpenAiResponsesToolChoice6 && !IsOpenAiResponsesToolChoice7 || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed && IsOpenAiResponsesToolChoice6 && !IsOpenAiResponsesToolChoice7 || !IsOpenAiResponsesToolChoice0 && !IsOpenAiResponsesToolChoice1 && !IsOpenAiResponsesToolChoice2 && !IsOpenAiResponsesToolChoice3 && !IsOpenAiResponsesToolChoice4 && !IsToolChoiceAllowed && !IsOpenAiResponsesToolChoice6 && IsOpenAiResponsesToolChoice7; } /// @@ -430,6 +558,8 @@ public bool Validate() global::System.Func? openAiResponsesToolChoice3 = null, global::System.Func? openAiResponsesToolChoice4 = null, global::System.Func? toolChoiceAllowed = null, + global::System.Func? openAiResponsesToolChoice6 = null, + global::System.Func? openAiResponsesToolChoice7 = null, bool validate = true) { if (validate) @@ -461,6 +591,14 @@ public bool Validate() { return toolChoiceAllowed(ToolChoiceAllowed!); } + else if (IsOpenAiResponsesToolChoice6 && openAiResponsesToolChoice6 != null) + { + return openAiResponsesToolChoice6(OpenAiResponsesToolChoice6!); + } + else if (IsOpenAiResponsesToolChoice7 && openAiResponsesToolChoice7 != null) + { + return openAiResponsesToolChoice7(OpenAiResponsesToolChoice7!); + } return default(TResult); } @@ -480,6 +618,10 @@ public void Match( global::System.Action? openAiResponsesToolChoice4 = null, global::System.Action? toolChoiceAllowed = null, + + global::System.Action? openAiResponsesToolChoice6 = null, + + global::System.Action? openAiResponsesToolChoice7 = null, bool validate = true) { if (validate) @@ -511,6 +653,14 @@ public void Match( { toolChoiceAllowed?.Invoke(ToolChoiceAllowed!); } + else if (IsOpenAiResponsesToolChoice6) + { + openAiResponsesToolChoice6?.Invoke(OpenAiResponsesToolChoice6!); + } + else if (IsOpenAiResponsesToolChoice7) + { + openAiResponsesToolChoice7?.Invoke(OpenAiResponsesToolChoice7!); + } } /// @@ -523,6 +673,8 @@ public void Switch( global::System.Action? openAiResponsesToolChoice3 = null, global::System.Action? openAiResponsesToolChoice4 = null, global::System.Action? toolChoiceAllowed = null, + global::System.Action? openAiResponsesToolChoice6 = null, + global::System.Action? openAiResponsesToolChoice7 = null, bool validate = true) { if (validate) @@ -554,6 +706,14 @@ public void Switch( { toolChoiceAllowed?.Invoke(ToolChoiceAllowed!); } + else if (IsOpenAiResponsesToolChoice6) + { + openAiResponsesToolChoice6?.Invoke(OpenAiResponsesToolChoice6!); + } + else if (IsOpenAiResponsesToolChoice7) + { + openAiResponsesToolChoice7?.Invoke(OpenAiResponsesToolChoice7!); + } } /// @@ -575,6 +735,10 @@ public override int GetHashCode() typeof(global::OpenRouter.OpenAiResponsesToolChoice4), ToolChoiceAllowed, typeof(global::OpenRouter.ToolChoiceAllowed), + OpenAiResponsesToolChoice6, + typeof(global::OpenRouter.OpenAiResponsesToolChoice6), + OpenAiResponsesToolChoice7, + typeof(global::OpenRouter.OpenAiResponsesToolChoice7), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -596,7 +760,9 @@ public bool Equals(OpenAIResponsesToolChoice other) global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenAiResponsesToolChoice2, other.OpenAiResponsesToolChoice2) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenAiResponsesToolChoice3, other.OpenAiResponsesToolChoice3) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenAiResponsesToolChoice4, other.OpenAiResponsesToolChoice4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolChoiceAllowed, other.ToolChoiceAllowed) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolChoiceAllowed, other.ToolChoiceAllowed) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenAiResponsesToolChoice6, other.OpenAiResponsesToolChoice6) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenAiResponsesToolChoice7, other.OpenAiResponsesToolChoice7) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice6.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice6.Json.g.cs new file mode 100644 index 00000000..02d4d874 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice6.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OpenAiResponsesToolChoice6 + { + /// + /// 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::OpenRouter.OpenAiResponsesToolChoice6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OpenAiResponsesToolChoice6), + jsonSerializerContext) as global::OpenRouter.OpenAiResponsesToolChoice6; + } + + /// + /// 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::OpenRouter.OpenAiResponsesToolChoice6? 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::OpenRouter.OpenAiResponsesToolChoice6), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OpenAiResponsesToolChoice6; + } + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice6.g.cs new file mode 100644 index 00000000..9786e3e0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice6.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class OpenAiResponsesToolChoice6 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter))] + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type 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 OpenAiResponsesToolChoice6( + global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public OpenAiResponsesToolChoice6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice7.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice7.Json.g.cs new file mode 100644 index 00000000..2106b13b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice7.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OpenAiResponsesToolChoice7 + { + /// + /// 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::OpenRouter.OpenAiResponsesToolChoice7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OpenAiResponsesToolChoice7), + jsonSerializerContext) as global::OpenRouter.OpenAiResponsesToolChoice7; + } + + /// + /// 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::OpenRouter.OpenAiResponsesToolChoice7? 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::OpenRouter.OpenAiResponsesToolChoice7), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OpenAiResponsesToolChoice7; + } + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice7.g.cs new file mode 100644 index 00000000..984b4e96 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoice7.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class OpenAiResponsesToolChoice7 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter))] + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type 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 OpenAiResponsesToolChoice7( + global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public OpenAiResponsesToolChoice7() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoiceOneOf6Type.g.cs similarity index 61% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus0.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoiceOneOf6Type.g.cs index 6853033f..4a6ad0b0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoiceOneOf6Type.g.cs @@ -6,38 +6,38 @@ namespace OpenRouter /// /// /// - public enum ApplyPatchCallItemStatus0 + public enum OpenAiResponsesToolChoiceOneOf6Type { /// /// /// - InProgress, + ApplyPatch, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ApplyPatchCallItemStatus0Extensions + public static class OpenAiResponsesToolChoiceOneOf6TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ApplyPatchCallItemStatus0 value) + public static string ToValueString(this OpenAiResponsesToolChoiceOneOf6Type value) { return value switch { - ApplyPatchCallItemStatus0.InProgress => "in_progress", + OpenAiResponsesToolChoiceOneOf6Type.ApplyPatch => "apply_patch", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ApplyPatchCallItemStatus0? ToEnum(string value) + public static OpenAiResponsesToolChoiceOneOf6Type? ToEnum(string value) { return value switch { - "in_progress" => ApplyPatchCallItemStatus0.InProgress, + "apply_patch" => OpenAiResponsesToolChoiceOneOf6Type.ApplyPatch, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoiceOneOf7Type.g.cs similarity index 62% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus1.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoiceOneOf7Type.g.cs index aa2be491..0ff450ee 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApplyPatchCallItemStatus1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesToolChoiceOneOf7Type.g.cs @@ -6,38 +6,38 @@ namespace OpenRouter /// /// /// - public enum ApplyPatchCallItemStatus1 + public enum OpenAiResponsesToolChoiceOneOf7Type { /// /// /// - Completed, + Shell, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ApplyPatchCallItemStatus1Extensions + public static class OpenAiResponsesToolChoiceOneOf7TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ApplyPatchCallItemStatus1 value) + public static string ToValueString(this OpenAiResponsesToolChoiceOneOf7Type value) { return value switch { - ApplyPatchCallItemStatus1.Completed => "completed", + OpenAiResponsesToolChoiceOneOf7Type.Shell => "shell", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ApplyPatchCallItemStatus1? ToEnum(string value) + public static OpenAiResponsesToolChoiceOneOf7Type? ToEnum(string value) { return value switch { - "completed" => ApplyPatchCallItemStatus1.Completed, + "shell" => OpenAiResponsesToolChoiceOneOf7Type.Shell, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputApplyPatchServerToolItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputApplyPatchServerToolItem.g.cs index 3f735761..fb181c94 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputApplyPatchServerToolItem.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputApplyPatchServerToolItem.g.cs @@ -4,15 +4,15 @@ namespace OpenRouter { /// - /// An openrouter:apply_patch server tool output item + /// An openrouter:apply_patch server tool output item. The turn halts when validation succeeds so the client can apply the patch and echo an `apply_patch_call_output` on the next turn. /// public sealed partial class OutputApplyPatchServerToolItem { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("filePath")] - public string? FilePath { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] + public string? CallId { get; set; } /// /// @@ -21,10 +21,11 @@ public sealed partial class OutputApplyPatchServerToolItem public string? Id { get; set; } /// - /// + /// The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. /// - [global::System.Text.Json.Serialization.JsonPropertyName("patch")] - public string? Patch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationJsonConverter))] + public global::OpenRouter.ApplyPatchCallOperation? Operation { get; set; } /// /// @@ -44,21 +45,23 @@ public sealed partial class OutputApplyPatchServerToolItem /// Initializes a new instance of the class. /// /// - /// + /// /// - /// + /// + /// The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputApplyPatchServerToolItem( global::OpenRouter.ToolCallStatus status, - string? filePath, + string? callId, string? id, - string? patch) + global::OpenRouter.ApplyPatchCallOperation? operation) { - this.FilePath = filePath; + this.CallId = callId; this.Id = id; - this.Patch = patch; + this.Operation = operation; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs index cfc99679..82fb330f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs @@ -14,13 +14,50 @@ namespace OpenRouter /// public global::OpenRouter.OutputItemsDiscriminatorType? Type { get; } + /// + /// A native `apply_patch_call` output item matching OpenAI's Responses API shape. Emitted when the client requested the `apply_patch` shorthand. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant1? ApplyPatchCall { get; init; } +#else + public global::OpenRouter.OutputItemsVariant1? ApplyPatchCall { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchCall))] +#endif + public bool IsApplyPatchCall => ApplyPatchCall != null; + + /// + /// + /// + public bool TryPickApplyPatchCall( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.OutputItemsVariant1? value) + { + value = ApplyPatchCall; + return IsApplyPatchCall; + } + + /// + /// + /// + public global::OpenRouter.OutputItemsVariant1 PickApplyPatchCall() => IsApplyPatchCall + ? ApplyPatchCall! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); + /// /// A code interpreter execution call with outputs /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant1? CodeInterpreterCall { get; init; } + public global::OpenRouter.OutputItemsVariant2? CodeInterpreterCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant1? CodeInterpreterCall { get; } + public global::OpenRouter.OutputItemsVariant2? CodeInterpreterCall { get; } #endif /// @@ -38,7 +75,7 @@ public bool TryPickCodeInterpreterCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant1? value) + out global::OpenRouter.OutputItemsVariant2? value) { value = CodeInterpreterCall; return IsCodeInterpreterCall; @@ -47,7 +84,7 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::OpenRouter.OutputItemsVariant1 PickCodeInterpreterCall() => IsCodeInterpreterCall + public global::OpenRouter.OutputItemsVariant2 PickCodeInterpreterCall() => IsCodeInterpreterCall ? CodeInterpreterCall! : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); @@ -55,9 +92,9 @@ public bool TryPickCodeInterpreterCall( /// computer_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant2? ComputerCall { get; init; } + public global::OpenRouter.OutputItemsVariant3? ComputerCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant2? ComputerCall { get; } + public global::OpenRouter.OutputItemsVariant3? ComputerCall { get; } #endif /// @@ -75,7 +112,7 @@ public bool TryPickComputerCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant2? value) + out global::OpenRouter.OutputItemsVariant3? value) { value = ComputerCall; return IsComputerCall; @@ -84,7 +121,7 @@ public bool TryPickComputerCall( /// /// /// - public global::OpenRouter.OutputItemsVariant2 PickComputerCall() => IsComputerCall + public global::OpenRouter.OutputItemsVariant3 PickComputerCall() => IsComputerCall ? ComputerCall! : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); @@ -92,9 +129,9 @@ public bool TryPickComputerCall( /// A call to a custom (freeform-grammar) tool created by the model — distinct from `function_call`. Used for tools like Codex CLI's `apply_patch` whose payload is opaque text rather than JSON arguments. /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant3? CustomToolCall { get; init; } + public global::OpenRouter.OutputItemsVariant4? CustomToolCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant3? CustomToolCall { get; } + public global::OpenRouter.OutputItemsVariant4? CustomToolCall { get; } #endif /// @@ -112,7 +149,7 @@ public bool TryPickCustomToolCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant3? value) + out global::OpenRouter.OutputItemsVariant4? value) { value = CustomToolCall; return IsCustomToolCall; @@ -121,7 +158,7 @@ public bool TryPickCustomToolCall( /// /// /// - public global::OpenRouter.OutputItemsVariant3 PickCustomToolCall() => IsCustomToolCall + public global::OpenRouter.OutputItemsVariant4 PickCustomToolCall() => IsCustomToolCall ? CustomToolCall! : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); @@ -129,9 +166,9 @@ public bool TryPickCustomToolCall( /// file_search_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant4? FileSearchCall { get; init; } + public global::OpenRouter.OutputItemsVariant5? FileSearchCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant4? FileSearchCall { get; } + public global::OpenRouter.OutputItemsVariant5? FileSearchCall { get; } #endif /// @@ -149,7 +186,7 @@ public bool TryPickFileSearchCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant4? value) + out global::OpenRouter.OutputItemsVariant5? value) { value = FileSearchCall; return IsFileSearchCall; @@ -158,7 +195,7 @@ public bool TryPickFileSearchCall( /// /// /// - public global::OpenRouter.OutputItemsVariant4 PickFileSearchCall() => IsFileSearchCall + public global::OpenRouter.OutputItemsVariant5 PickFileSearchCall() => IsFileSearchCall ? FileSearchCall! : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); @@ -166,9 +203,9 @@ public bool TryPickFileSearchCall( /// function_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant5? FunctionCall { get; init; } + public global::OpenRouter.OutputItemsVariant6? FunctionCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant5? FunctionCall { get; } + public global::OpenRouter.OutputItemsVariant6? FunctionCall { get; } #endif /// @@ -186,7 +223,7 @@ public bool TryPickFunctionCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant5? value) + out global::OpenRouter.OutputItemsVariant6? value) { value = FunctionCall; return IsFunctionCall; @@ -195,7 +232,7 @@ public bool TryPickFunctionCall( /// /// /// - public global::OpenRouter.OutputItemsVariant5 PickFunctionCall() => IsFunctionCall + public global::OpenRouter.OutputItemsVariant6 PickFunctionCall() => IsFunctionCall ? FunctionCall! : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); @@ -203,9 +240,9 @@ public bool TryPickFunctionCall( /// image_generation_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant6? ImageGenerationCall { get; init; } + public global::OpenRouter.OutputItemsVariant7? ImageGenerationCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant6? ImageGenerationCall { get; } + public global::OpenRouter.OutputItemsVariant7? ImageGenerationCall { get; } #endif /// @@ -223,7 +260,7 @@ public bool TryPickImageGenerationCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant6? value) + out global::OpenRouter.OutputItemsVariant7? value) { value = ImageGenerationCall; return IsImageGenerationCall; @@ -232,7 +269,7 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::OpenRouter.OutputItemsVariant6 PickImageGenerationCall() => IsImageGenerationCall + public global::OpenRouter.OutputItemsVariant7 PickImageGenerationCall() => IsImageGenerationCall ? ImageGenerationCall! : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); @@ -240,9 +277,9 @@ public bool TryPickImageGenerationCall( /// An output message item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant7? Message { get; init; } + public global::OpenRouter.OutputItemsVariant8? Message { get; init; } #else - public global::OpenRouter.OutputItemsVariant7? Message { get; } + public global::OpenRouter.OutputItemsVariant8? Message { get; } #endif /// @@ -260,7 +297,7 @@ public bool TryPickMessage( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant7? value) + out global::OpenRouter.OutputItemsVariant8? value) { value = Message; return IsMessage; @@ -269,17 +306,17 @@ public bool TryPickMessage( /// /// /// - public global::OpenRouter.OutputItemsVariant7 PickMessage() => IsMessage + public global::OpenRouter.OutputItemsVariant8 PickMessage() => IsMessage ? Message! : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// - /// An openrouter:apply_patch server tool output item + /// An openrouter:apply_patch server tool output item. The turn halts when validation succeeds so the client can apply the patch and echo an `apply_patch_call_output` on the next turn. /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant8? OpenrouterApplyPatch { get; init; } + public global::OpenRouter.OutputItemsVariant9? OpenrouterApplyPatch { get; init; } #else - public global::OpenRouter.OutputItemsVariant8? OpenrouterApplyPatch { get; } + public global::OpenRouter.OutputItemsVariant9? OpenrouterApplyPatch { get; } #endif /// @@ -297,7 +334,7 @@ public bool TryPickOpenrouterApplyPatch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant8? value) + out global::OpenRouter.OutputItemsVariant9? value) { value = OpenrouterApplyPatch; return IsOpenrouterApplyPatch; @@ -306,7 +343,7 @@ public bool TryPickOpenrouterApplyPatch( /// /// /// - public global::OpenRouter.OutputItemsVariant8 PickOpenrouterApplyPatch() => IsOpenrouterApplyPatch + public global::OpenRouter.OutputItemsVariant9 PickOpenrouterApplyPatch() => IsOpenrouterApplyPatch ? OpenrouterApplyPatch! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterApplyPatch' but the value was {ToString()}."); @@ -314,9 +351,9 @@ public bool TryPickOpenrouterApplyPatch( /// An openrouter:bash server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant9? OpenrouterBash { get; init; } + public global::OpenRouter.OutputItemsVariant10? OpenrouterBash { get; init; } #else - public global::OpenRouter.OutputItemsVariant9? OpenrouterBash { get; } + public global::OpenRouter.OutputItemsVariant10? OpenrouterBash { get; } #endif /// @@ -334,7 +371,7 @@ public bool TryPickOpenrouterBash( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant9? value) + out global::OpenRouter.OutputItemsVariant10? value) { value = OpenrouterBash; return IsOpenrouterBash; @@ -343,7 +380,7 @@ public bool TryPickOpenrouterBash( /// /// /// - public global::OpenRouter.OutputItemsVariant9 PickOpenrouterBash() => IsOpenrouterBash + public global::OpenRouter.OutputItemsVariant10 PickOpenrouterBash() => IsOpenrouterBash ? OpenrouterBash! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterBash' but the value was {ToString()}."); @@ -351,9 +388,9 @@ public bool TryPickOpenrouterBash( /// An openrouter:browser_use server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant10? OpenrouterBrowserUse { get; init; } + public global::OpenRouter.OutputItemsVariant11? OpenrouterBrowserUse { get; init; } #else - public global::OpenRouter.OutputItemsVariant10? OpenrouterBrowserUse { get; } + public global::OpenRouter.OutputItemsVariant11? OpenrouterBrowserUse { get; } #endif /// @@ -371,7 +408,7 @@ public bool TryPickOpenrouterBrowserUse( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant10? value) + out global::OpenRouter.OutputItemsVariant11? value) { value = OpenrouterBrowserUse; return IsOpenrouterBrowserUse; @@ -380,7 +417,7 @@ public bool TryPickOpenrouterBrowserUse( /// /// /// - public global::OpenRouter.OutputItemsVariant10 PickOpenrouterBrowserUse() => IsOpenrouterBrowserUse + public global::OpenRouter.OutputItemsVariant11 PickOpenrouterBrowserUse() => IsOpenrouterBrowserUse ? OpenrouterBrowserUse! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterBrowserUse' but the value was {ToString()}."); @@ -388,9 +425,9 @@ public bool TryPickOpenrouterBrowserUse( /// An openrouter:code_interpreter server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant11? OpenrouterCodeInterpreter { get; init; } + public global::OpenRouter.OutputItemsVariant12? OpenrouterCodeInterpreter { get; init; } #else - public global::OpenRouter.OutputItemsVariant11? OpenrouterCodeInterpreter { get; } + public global::OpenRouter.OutputItemsVariant12? OpenrouterCodeInterpreter { get; } #endif /// @@ -408,7 +445,7 @@ public bool TryPickOpenrouterCodeInterpreter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant11? value) + out global::OpenRouter.OutputItemsVariant12? value) { value = OpenrouterCodeInterpreter; return IsOpenrouterCodeInterpreter; @@ -417,7 +454,7 @@ public bool TryPickOpenrouterCodeInterpreter( /// /// /// - public global::OpenRouter.OutputItemsVariant11 PickOpenrouterCodeInterpreter() => IsOpenrouterCodeInterpreter + public global::OpenRouter.OutputItemsVariant12 PickOpenrouterCodeInterpreter() => IsOpenrouterCodeInterpreter ? OpenrouterCodeInterpreter! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterCodeInterpreter' but the value was {ToString()}."); @@ -425,9 +462,9 @@ public bool TryPickOpenrouterCodeInterpreter( /// An openrouter:datetime server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant12? OpenrouterDatetime { get; init; } + public global::OpenRouter.OutputItemsVariant13? OpenrouterDatetime { get; init; } #else - public global::OpenRouter.OutputItemsVariant12? OpenrouterDatetime { get; } + public global::OpenRouter.OutputItemsVariant13? OpenrouterDatetime { get; } #endif /// @@ -445,7 +482,7 @@ public bool TryPickOpenrouterDatetime( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant12? value) + out global::OpenRouter.OutputItemsVariant13? value) { value = OpenrouterDatetime; return IsOpenrouterDatetime; @@ -454,7 +491,7 @@ public bool TryPickOpenrouterDatetime( /// /// /// - public global::OpenRouter.OutputItemsVariant12 PickOpenrouterDatetime() => IsOpenrouterDatetime + public global::OpenRouter.OutputItemsVariant13 PickOpenrouterDatetime() => IsOpenrouterDatetime ? OpenrouterDatetime! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterDatetime' but the value was {ToString()}."); @@ -462,9 +499,9 @@ public bool TryPickOpenrouterDatetime( /// An openrouter:experimental__search_models server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant13? OpenrouterExperimentalSearchModels { get; init; } + public global::OpenRouter.OutputItemsVariant14? OpenrouterExperimentalSearchModels { get; init; } #else - public global::OpenRouter.OutputItemsVariant13? OpenrouterExperimentalSearchModels { get; } + public global::OpenRouter.OutputItemsVariant14? OpenrouterExperimentalSearchModels { get; } #endif /// @@ -482,7 +519,7 @@ public bool TryPickOpenrouterExperimentalSearchModels( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant13? value) + out global::OpenRouter.OutputItemsVariant14? value) { value = OpenrouterExperimentalSearchModels; return IsOpenrouterExperimentalSearchModels; @@ -491,7 +528,7 @@ public bool TryPickOpenrouterExperimentalSearchModels( /// /// /// - public global::OpenRouter.OutputItemsVariant13 PickOpenrouterExperimentalSearchModels() => IsOpenrouterExperimentalSearchModels + public global::OpenRouter.OutputItemsVariant14 PickOpenrouterExperimentalSearchModels() => IsOpenrouterExperimentalSearchModels ? OpenrouterExperimentalSearchModels! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterExperimentalSearchModels' but the value was {ToString()}."); @@ -499,9 +536,9 @@ public bool TryPickOpenrouterExperimentalSearchModels( /// An openrouter:file_search server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant14? OpenrouterFileSearch { get; init; } + public global::OpenRouter.OutputItemsVariant15? OpenrouterFileSearch { get; init; } #else - public global::OpenRouter.OutputItemsVariant14? OpenrouterFileSearch { get; } + public global::OpenRouter.OutputItemsVariant15? OpenrouterFileSearch { get; } #endif /// @@ -519,7 +556,7 @@ public bool TryPickOpenrouterFileSearch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant14? value) + out global::OpenRouter.OutputItemsVariant15? value) { value = OpenrouterFileSearch; return IsOpenrouterFileSearch; @@ -528,7 +565,7 @@ public bool TryPickOpenrouterFileSearch( /// /// /// - public global::OpenRouter.OutputItemsVariant14 PickOpenrouterFileSearch() => IsOpenrouterFileSearch + public global::OpenRouter.OutputItemsVariant15 PickOpenrouterFileSearch() => IsOpenrouterFileSearch ? OpenrouterFileSearch! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterFileSearch' but the value was {ToString()}."); @@ -536,9 +573,9 @@ public bool TryPickOpenrouterFileSearch( /// An openrouter:fusion server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant15? OpenrouterFusion { get; init; } + public global::OpenRouter.OutputItemsVariant16? OpenrouterFusion { get; init; } #else - public global::OpenRouter.OutputItemsVariant15? OpenrouterFusion { get; } + public global::OpenRouter.OutputItemsVariant16? OpenrouterFusion { get; } #endif /// @@ -556,7 +593,7 @@ public bool TryPickOpenrouterFusion( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant15? value) + out global::OpenRouter.OutputItemsVariant16? value) { value = OpenrouterFusion; return IsOpenrouterFusion; @@ -565,7 +602,7 @@ public bool TryPickOpenrouterFusion( /// /// /// - public global::OpenRouter.OutputItemsVariant15 PickOpenrouterFusion() => IsOpenrouterFusion + public global::OpenRouter.OutputItemsVariant16 PickOpenrouterFusion() => IsOpenrouterFusion ? OpenrouterFusion! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterFusion' but the value was {ToString()}."); @@ -573,9 +610,9 @@ public bool TryPickOpenrouterFusion( /// An openrouter:image_generation server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant16? OpenrouterImageGeneration { get; init; } + public global::OpenRouter.OutputItemsVariant17? OpenrouterImageGeneration { get; init; } #else - public global::OpenRouter.OutputItemsVariant16? OpenrouterImageGeneration { get; } + public global::OpenRouter.OutputItemsVariant17? OpenrouterImageGeneration { get; } #endif /// @@ -593,7 +630,7 @@ public bool TryPickOpenrouterImageGeneration( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant16? value) + out global::OpenRouter.OutputItemsVariant17? value) { value = OpenrouterImageGeneration; return IsOpenrouterImageGeneration; @@ -602,7 +639,7 @@ public bool TryPickOpenrouterImageGeneration( /// /// /// - public global::OpenRouter.OutputItemsVariant16 PickOpenrouterImageGeneration() => IsOpenrouterImageGeneration + public global::OpenRouter.OutputItemsVariant17 PickOpenrouterImageGeneration() => IsOpenrouterImageGeneration ? OpenrouterImageGeneration! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterImageGeneration' but the value was {ToString()}."); @@ -610,9 +647,9 @@ public bool TryPickOpenrouterImageGeneration( /// An openrouter:mcp server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant17? OpenrouterMcp { get; init; } + public global::OpenRouter.OutputItemsVariant18? OpenrouterMcp { get; init; } #else - public global::OpenRouter.OutputItemsVariant17? OpenrouterMcp { get; } + public global::OpenRouter.OutputItemsVariant18? OpenrouterMcp { get; } #endif /// @@ -630,7 +667,7 @@ public bool TryPickOpenrouterMcp( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant17? value) + out global::OpenRouter.OutputItemsVariant18? value) { value = OpenrouterMcp; return IsOpenrouterMcp; @@ -639,7 +676,7 @@ public bool TryPickOpenrouterMcp( /// /// /// - public global::OpenRouter.OutputItemsVariant17 PickOpenrouterMcp() => IsOpenrouterMcp + public global::OpenRouter.OutputItemsVariant18 PickOpenrouterMcp() => IsOpenrouterMcp ? OpenrouterMcp! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterMcp' but the value was {ToString()}."); @@ -647,9 +684,9 @@ public bool TryPickOpenrouterMcp( /// An openrouter:memory server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant18? OpenrouterMemory { get; init; } + public global::OpenRouter.OutputItemsVariant19? OpenrouterMemory { get; init; } #else - public global::OpenRouter.OutputItemsVariant18? OpenrouterMemory { get; } + public global::OpenRouter.OutputItemsVariant19? OpenrouterMemory { get; } #endif /// @@ -667,7 +704,7 @@ public bool TryPickOpenrouterMemory( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant18? value) + out global::OpenRouter.OutputItemsVariant19? value) { value = OpenrouterMemory; return IsOpenrouterMemory; @@ -676,7 +713,7 @@ public bool TryPickOpenrouterMemory( /// /// /// - public global::OpenRouter.OutputItemsVariant18 PickOpenrouterMemory() => IsOpenrouterMemory + public global::OpenRouter.OutputItemsVariant19 PickOpenrouterMemory() => IsOpenrouterMemory ? OpenrouterMemory! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterMemory' but the value was {ToString()}."); @@ -684,9 +721,9 @@ public bool TryPickOpenrouterMemory( /// An openrouter:text_editor server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant19? OpenrouterTextEditor { get; init; } + public global::OpenRouter.OutputItemsVariant20? OpenrouterTextEditor { get; init; } #else - public global::OpenRouter.OutputItemsVariant19? OpenrouterTextEditor { get; } + public global::OpenRouter.OutputItemsVariant20? OpenrouterTextEditor { get; } #endif /// @@ -704,7 +741,7 @@ public bool TryPickOpenrouterTextEditor( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant19? value) + out global::OpenRouter.OutputItemsVariant20? value) { value = OpenrouterTextEditor; return IsOpenrouterTextEditor; @@ -713,7 +750,7 @@ public bool TryPickOpenrouterTextEditor( /// /// /// - public global::OpenRouter.OutputItemsVariant19 PickOpenrouterTextEditor() => IsOpenrouterTextEditor + public global::OpenRouter.OutputItemsVariant20 PickOpenrouterTextEditor() => IsOpenrouterTextEditor ? OpenrouterTextEditor! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterTextEditor' but the value was {ToString()}."); @@ -721,9 +758,9 @@ public bool TryPickOpenrouterTextEditor( /// An openrouter:tool_search server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant20? OpenrouterToolSearch { get; init; } + public global::OpenRouter.OutputItemsVariant21? OpenrouterToolSearch { get; init; } #else - public global::OpenRouter.OutputItemsVariant20? OpenrouterToolSearch { get; } + public global::OpenRouter.OutputItemsVariant21? OpenrouterToolSearch { get; } #endif /// @@ -741,7 +778,7 @@ public bool TryPickOpenrouterToolSearch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant20? value) + out global::OpenRouter.OutputItemsVariant21? value) { value = OpenrouterToolSearch; return IsOpenrouterToolSearch; @@ -750,7 +787,7 @@ public bool TryPickOpenrouterToolSearch( /// /// /// - public global::OpenRouter.OutputItemsVariant20 PickOpenrouterToolSearch() => IsOpenrouterToolSearch + public global::OpenRouter.OutputItemsVariant21 PickOpenrouterToolSearch() => IsOpenrouterToolSearch ? OpenrouterToolSearch! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterToolSearch' but the value was {ToString()}."); @@ -758,9 +795,9 @@ public bool TryPickOpenrouterToolSearch( /// An openrouter:web_fetch server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant21? OpenrouterWebFetch { get; init; } + public global::OpenRouter.OutputItemsVariant22? OpenrouterWebFetch { get; init; } #else - public global::OpenRouter.OutputItemsVariant21? OpenrouterWebFetch { get; } + public global::OpenRouter.OutputItemsVariant22? OpenrouterWebFetch { get; } #endif /// @@ -778,7 +815,7 @@ public bool TryPickOpenrouterWebFetch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant21? value) + out global::OpenRouter.OutputItemsVariant22? value) { value = OpenrouterWebFetch; return IsOpenrouterWebFetch; @@ -787,7 +824,7 @@ public bool TryPickOpenrouterWebFetch( /// /// /// - public global::OpenRouter.OutputItemsVariant21 PickOpenrouterWebFetch() => IsOpenrouterWebFetch + public global::OpenRouter.OutputItemsVariant22 PickOpenrouterWebFetch() => IsOpenrouterWebFetch ? OpenrouterWebFetch! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterWebFetch' but the value was {ToString()}."); @@ -795,9 +832,9 @@ public bool TryPickOpenrouterWebFetch( /// An openrouter:web_search server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant22? OpenrouterWebSearch { get; init; } + public global::OpenRouter.OutputItemsVariant23? OpenrouterWebSearch { get; init; } #else - public global::OpenRouter.OutputItemsVariant22? OpenrouterWebSearch { get; } + public global::OpenRouter.OutputItemsVariant23? OpenrouterWebSearch { get; } #endif /// @@ -815,7 +852,7 @@ public bool TryPickOpenrouterWebSearch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant22? value) + out global::OpenRouter.OutputItemsVariant23? value) { value = OpenrouterWebSearch; return IsOpenrouterWebSearch; @@ -824,7 +861,7 @@ public bool TryPickOpenrouterWebSearch( /// /// /// - public global::OpenRouter.OutputItemsVariant22 PickOpenrouterWebSearch() => IsOpenrouterWebSearch + public global::OpenRouter.OutputItemsVariant23 PickOpenrouterWebSearch() => IsOpenrouterWebSearch ? OpenrouterWebSearch! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterWebSearch' but the value was {ToString()}."); @@ -832,9 +869,9 @@ public bool TryPickOpenrouterWebSearch( /// An output item containing reasoning /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant23? Reasoning { get; init; } + public global::OpenRouter.OutputItemsVariant24? Reasoning { get; init; } #else - public global::OpenRouter.OutputItemsVariant23? Reasoning { get; } + public global::OpenRouter.OutputItemsVariant24? Reasoning { get; } #endif /// @@ -852,7 +889,7 @@ public bool TryPickReasoning( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant23? value) + out global::OpenRouter.OutputItemsVariant24? value) { value = Reasoning; return IsReasoning; @@ -861,7 +898,7 @@ public bool TryPickReasoning( /// /// /// - public global::OpenRouter.OutputItemsVariant23 PickReasoning() => IsReasoning + public global::OpenRouter.OutputItemsVariant24 PickReasoning() => IsReasoning ? Reasoning! : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); @@ -869,9 +906,9 @@ public bool TryPickReasoning( /// web_search_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant24? WebSearchCall { get; init; } + public global::OpenRouter.OutputItemsVariant25? WebSearchCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant24? WebSearchCall { get; } + public global::OpenRouter.OutputItemsVariant25? WebSearchCall { get; } #endif /// @@ -889,7 +926,7 @@ public bool TryPickWebSearchCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant24? value) + out global::OpenRouter.OutputItemsVariant25? value) { value = WebSearchCall; return IsWebSearchCall; @@ -898,7 +935,7 @@ public bool TryPickWebSearchCall( /// /// /// - public global::OpenRouter.OutputItemsVariant24 PickWebSearchCall() => IsWebSearchCall + public global::OpenRouter.OutputItemsVariant25 PickWebSearchCall() => IsWebSearchCall ? WebSearchCall! : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -909,20 +946,20 @@ public bool TryPickWebSearchCall( /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant1?(OutputItems @this) => @this.CodeInterpreterCall; + public static implicit operator global::OpenRouter.OutputItemsVariant1?(OutputItems @this) => @this.ApplyPatchCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant1? value) { - CodeInterpreterCall = value; + ApplyPatchCall = value; } /// /// /// - public static OutputItems FromCodeInterpreterCall(global::OpenRouter.OutputItemsVariant1? value) => new OutputItems(value); + public static OutputItems FromApplyPatchCall(global::OpenRouter.OutputItemsVariant1? value) => new OutputItems(value); /// /// @@ -932,20 +969,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant1? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant2?(OutputItems @this) => @this.ComputerCall; + public static implicit operator global::OpenRouter.OutputItemsVariant2?(OutputItems @this) => @this.CodeInterpreterCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant2? value) { - ComputerCall = value; + CodeInterpreterCall = value; } /// /// /// - public static OutputItems FromComputerCall(global::OpenRouter.OutputItemsVariant2? value) => new OutputItems(value); + public static OutputItems FromCodeInterpreterCall(global::OpenRouter.OutputItemsVariant2? value) => new OutputItems(value); /// /// @@ -955,20 +992,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant2? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant3?(OutputItems @this) => @this.CustomToolCall; + public static implicit operator global::OpenRouter.OutputItemsVariant3?(OutputItems @this) => @this.ComputerCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant3? value) { - CustomToolCall = value; + ComputerCall = value; } /// /// /// - public static OutputItems FromCustomToolCall(global::OpenRouter.OutputItemsVariant3? value) => new OutputItems(value); + public static OutputItems FromComputerCall(global::OpenRouter.OutputItemsVariant3? value) => new OutputItems(value); /// /// @@ -978,20 +1015,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant3? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant4?(OutputItems @this) => @this.FileSearchCall; + public static implicit operator global::OpenRouter.OutputItemsVariant4?(OutputItems @this) => @this.CustomToolCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant4? value) { - FileSearchCall = value; + CustomToolCall = value; } /// /// /// - public static OutputItems FromFileSearchCall(global::OpenRouter.OutputItemsVariant4? value) => new OutputItems(value); + public static OutputItems FromCustomToolCall(global::OpenRouter.OutputItemsVariant4? value) => new OutputItems(value); /// /// @@ -1001,20 +1038,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant4? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant5?(OutputItems @this) => @this.FunctionCall; + public static implicit operator global::OpenRouter.OutputItemsVariant5?(OutputItems @this) => @this.FileSearchCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant5? value) { - FunctionCall = value; + FileSearchCall = value; } /// /// /// - public static OutputItems FromFunctionCall(global::OpenRouter.OutputItemsVariant5? value) => new OutputItems(value); + public static OutputItems FromFileSearchCall(global::OpenRouter.OutputItemsVariant5? value) => new OutputItems(value); /// /// @@ -1024,20 +1061,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant5? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant6?(OutputItems @this) => @this.ImageGenerationCall; + public static implicit operator global::OpenRouter.OutputItemsVariant6?(OutputItems @this) => @this.FunctionCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant6? value) { - ImageGenerationCall = value; + FunctionCall = value; } /// /// /// - public static OutputItems FromImageGenerationCall(global::OpenRouter.OutputItemsVariant6? value) => new OutputItems(value); + public static OutputItems FromFunctionCall(global::OpenRouter.OutputItemsVariant6? value) => new OutputItems(value); /// /// @@ -1047,20 +1084,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant6? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant7?(OutputItems @this) => @this.Message; + public static implicit operator global::OpenRouter.OutputItemsVariant7?(OutputItems @this) => @this.ImageGenerationCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant7? value) { - Message = value; + ImageGenerationCall = value; } /// /// /// - public static OutputItems FromMessage(global::OpenRouter.OutputItemsVariant7? value) => new OutputItems(value); + public static OutputItems FromImageGenerationCall(global::OpenRouter.OutputItemsVariant7? value) => new OutputItems(value); /// /// @@ -1070,20 +1107,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant7? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant8?(OutputItems @this) => @this.OpenrouterApplyPatch; + public static implicit operator global::OpenRouter.OutputItemsVariant8?(OutputItems @this) => @this.Message; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant8? value) { - OpenrouterApplyPatch = value; + Message = value; } /// /// /// - public static OutputItems FromOpenrouterApplyPatch(global::OpenRouter.OutputItemsVariant8? value) => new OutputItems(value); + public static OutputItems FromMessage(global::OpenRouter.OutputItemsVariant8? value) => new OutputItems(value); /// /// @@ -1093,20 +1130,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant8? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant9?(OutputItems @this) => @this.OpenrouterBash; + public static implicit operator global::OpenRouter.OutputItemsVariant9?(OutputItems @this) => @this.OpenrouterApplyPatch; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant9? value) { - OpenrouterBash = value; + OpenrouterApplyPatch = value; } /// /// /// - public static OutputItems FromOpenrouterBash(global::OpenRouter.OutputItemsVariant9? value) => new OutputItems(value); + public static OutputItems FromOpenrouterApplyPatch(global::OpenRouter.OutputItemsVariant9? value) => new OutputItems(value); /// /// @@ -1116,20 +1153,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant9? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant10?(OutputItems @this) => @this.OpenrouterBrowserUse; + public static implicit operator global::OpenRouter.OutputItemsVariant10?(OutputItems @this) => @this.OpenrouterBash; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant10? value) { - OpenrouterBrowserUse = value; + OpenrouterBash = value; } /// /// /// - public static OutputItems FromOpenrouterBrowserUse(global::OpenRouter.OutputItemsVariant10? value) => new OutputItems(value); + public static OutputItems FromOpenrouterBash(global::OpenRouter.OutputItemsVariant10? value) => new OutputItems(value); /// /// @@ -1139,20 +1176,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant10? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant11?(OutputItems @this) => @this.OpenrouterCodeInterpreter; + public static implicit operator global::OpenRouter.OutputItemsVariant11?(OutputItems @this) => @this.OpenrouterBrowserUse; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant11? value) { - OpenrouterCodeInterpreter = value; + OpenrouterBrowserUse = value; } /// /// /// - public static OutputItems FromOpenrouterCodeInterpreter(global::OpenRouter.OutputItemsVariant11? value) => new OutputItems(value); + public static OutputItems FromOpenrouterBrowserUse(global::OpenRouter.OutputItemsVariant11? value) => new OutputItems(value); /// /// @@ -1162,20 +1199,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant11? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant12?(OutputItems @this) => @this.OpenrouterDatetime; + public static implicit operator global::OpenRouter.OutputItemsVariant12?(OutputItems @this) => @this.OpenrouterCodeInterpreter; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant12? value) { - OpenrouterDatetime = value; + OpenrouterCodeInterpreter = value; } /// /// /// - public static OutputItems FromOpenrouterDatetime(global::OpenRouter.OutputItemsVariant12? value) => new OutputItems(value); + public static OutputItems FromOpenrouterCodeInterpreter(global::OpenRouter.OutputItemsVariant12? value) => new OutputItems(value); /// /// @@ -1185,20 +1222,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant12? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant13?(OutputItems @this) => @this.OpenrouterExperimentalSearchModels; + public static implicit operator global::OpenRouter.OutputItemsVariant13?(OutputItems @this) => @this.OpenrouterDatetime; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant13? value) { - OpenrouterExperimentalSearchModels = value; + OpenrouterDatetime = value; } /// /// /// - public static OutputItems FromOpenrouterExperimentalSearchModels(global::OpenRouter.OutputItemsVariant13? value) => new OutputItems(value); + public static OutputItems FromOpenrouterDatetime(global::OpenRouter.OutputItemsVariant13? value) => new OutputItems(value); /// /// @@ -1208,20 +1245,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant13? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant14?(OutputItems @this) => @this.OpenrouterFileSearch; + public static implicit operator global::OpenRouter.OutputItemsVariant14?(OutputItems @this) => @this.OpenrouterExperimentalSearchModels; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant14? value) { - OpenrouterFileSearch = value; + OpenrouterExperimentalSearchModels = value; } /// /// /// - public static OutputItems FromOpenrouterFileSearch(global::OpenRouter.OutputItemsVariant14? value) => new OutputItems(value); + public static OutputItems FromOpenrouterExperimentalSearchModels(global::OpenRouter.OutputItemsVariant14? value) => new OutputItems(value); /// /// @@ -1231,20 +1268,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant14? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant15?(OutputItems @this) => @this.OpenrouterFusion; + public static implicit operator global::OpenRouter.OutputItemsVariant15?(OutputItems @this) => @this.OpenrouterFileSearch; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant15? value) { - OpenrouterFusion = value; + OpenrouterFileSearch = value; } /// /// /// - public static OutputItems FromOpenrouterFusion(global::OpenRouter.OutputItemsVariant15? value) => new OutputItems(value); + public static OutputItems FromOpenrouterFileSearch(global::OpenRouter.OutputItemsVariant15? value) => new OutputItems(value); /// /// @@ -1254,20 +1291,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant15? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant16?(OutputItems @this) => @this.OpenrouterImageGeneration; + public static implicit operator global::OpenRouter.OutputItemsVariant16?(OutputItems @this) => @this.OpenrouterFusion; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant16? value) { - OpenrouterImageGeneration = value; + OpenrouterFusion = value; } /// /// /// - public static OutputItems FromOpenrouterImageGeneration(global::OpenRouter.OutputItemsVariant16? value) => new OutputItems(value); + public static OutputItems FromOpenrouterFusion(global::OpenRouter.OutputItemsVariant16? value) => new OutputItems(value); /// /// @@ -1277,20 +1314,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant16? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant17?(OutputItems @this) => @this.OpenrouterMcp; + public static implicit operator global::OpenRouter.OutputItemsVariant17?(OutputItems @this) => @this.OpenrouterImageGeneration; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant17? value) { - OpenrouterMcp = value; + OpenrouterImageGeneration = value; } /// /// /// - public static OutputItems FromOpenrouterMcp(global::OpenRouter.OutputItemsVariant17? value) => new OutputItems(value); + public static OutputItems FromOpenrouterImageGeneration(global::OpenRouter.OutputItemsVariant17? value) => new OutputItems(value); /// /// @@ -1300,20 +1337,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant17? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant18?(OutputItems @this) => @this.OpenrouterMemory; + public static implicit operator global::OpenRouter.OutputItemsVariant18?(OutputItems @this) => @this.OpenrouterMcp; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant18? value) { - OpenrouterMemory = value; + OpenrouterMcp = value; } /// /// /// - public static OutputItems FromOpenrouterMemory(global::OpenRouter.OutputItemsVariant18? value) => new OutputItems(value); + public static OutputItems FromOpenrouterMcp(global::OpenRouter.OutputItemsVariant18? value) => new OutputItems(value); /// /// @@ -1323,20 +1360,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant18? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant19?(OutputItems @this) => @this.OpenrouterTextEditor; + public static implicit operator global::OpenRouter.OutputItemsVariant19?(OutputItems @this) => @this.OpenrouterMemory; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant19? value) { - OpenrouterTextEditor = value; + OpenrouterMemory = value; } /// /// /// - public static OutputItems FromOpenrouterTextEditor(global::OpenRouter.OutputItemsVariant19? value) => new OutputItems(value); + public static OutputItems FromOpenrouterMemory(global::OpenRouter.OutputItemsVariant19? value) => new OutputItems(value); /// /// @@ -1346,20 +1383,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant19? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant20?(OutputItems @this) => @this.OpenrouterToolSearch; + public static implicit operator global::OpenRouter.OutputItemsVariant20?(OutputItems @this) => @this.OpenrouterTextEditor; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant20? value) { - OpenrouterToolSearch = value; + OpenrouterTextEditor = value; } /// /// /// - public static OutputItems FromOpenrouterToolSearch(global::OpenRouter.OutputItemsVariant20? value) => new OutputItems(value); + public static OutputItems FromOpenrouterTextEditor(global::OpenRouter.OutputItemsVariant20? value) => new OutputItems(value); /// /// @@ -1369,20 +1406,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant20? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant21?(OutputItems @this) => @this.OpenrouterWebFetch; + public static implicit operator global::OpenRouter.OutputItemsVariant21?(OutputItems @this) => @this.OpenrouterToolSearch; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant21? value) { - OpenrouterWebFetch = value; + OpenrouterToolSearch = value; } /// /// /// - public static OutputItems FromOpenrouterWebFetch(global::OpenRouter.OutputItemsVariant21? value) => new OutputItems(value); + public static OutputItems FromOpenrouterToolSearch(global::OpenRouter.OutputItemsVariant21? value) => new OutputItems(value); /// /// @@ -1392,20 +1429,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant21? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant22?(OutputItems @this) => @this.OpenrouterWebSearch; + public static implicit operator global::OpenRouter.OutputItemsVariant22?(OutputItems @this) => @this.OpenrouterWebFetch; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant22? value) { - OpenrouterWebSearch = value; + OpenrouterWebFetch = value; } /// /// /// - public static OutputItems FromOpenrouterWebSearch(global::OpenRouter.OutputItemsVariant22? value) => new OutputItems(value); + public static OutputItems FromOpenrouterWebFetch(global::OpenRouter.OutputItemsVariant22? value) => new OutputItems(value); /// /// @@ -1415,20 +1452,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant22? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant23?(OutputItems @this) => @this.Reasoning; + public static implicit operator global::OpenRouter.OutputItemsVariant23?(OutputItems @this) => @this.OpenrouterWebSearch; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant23? value) { - Reasoning = value; + OpenrouterWebSearch = value; } /// /// /// - public static OutputItems FromReasoning(global::OpenRouter.OutputItemsVariant23? value) => new OutputItems(value); + public static OutputItems FromOpenrouterWebSearch(global::OpenRouter.OutputItemsVariant23? value) => new OutputItems(value); /// /// @@ -1438,12 +1475,35 @@ public OutputItems(global::OpenRouter.OutputItemsVariant23? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant24?(OutputItems @this) => @this.WebSearchCall; + public static implicit operator global::OpenRouter.OutputItemsVariant24?(OutputItems @this) => @this.Reasoning; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant24? value) + { + Reasoning = value; + } + + /// + /// + /// + public static OutputItems FromReasoning(global::OpenRouter.OutputItemsVariant24? value) => new OutputItems(value); + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant25 value) => new OutputItems((global::OpenRouter.OutputItemsVariant25?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant25?(OutputItems @this) => @this.WebSearchCall; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant25? value) { WebSearchCall = value; } @@ -1451,41 +1511,43 @@ public OutputItems(global::OpenRouter.OutputItemsVariant24? value) /// /// /// - public static OutputItems FromWebSearchCall(global::OpenRouter.OutputItemsVariant24? value) => new OutputItems(value); + public static OutputItems FromWebSearchCall(global::OpenRouter.OutputItemsVariant25? value) => new OutputItems(value); /// /// /// public OutputItems( global::OpenRouter.OutputItemsDiscriminatorType? type, - global::OpenRouter.OutputItemsVariant1? codeInterpreterCall, - global::OpenRouter.OutputItemsVariant2? computerCall, - global::OpenRouter.OutputItemsVariant3? customToolCall, - global::OpenRouter.OutputItemsVariant4? fileSearchCall, - global::OpenRouter.OutputItemsVariant5? functionCall, - global::OpenRouter.OutputItemsVariant6? imageGenerationCall, - global::OpenRouter.OutputItemsVariant7? message, - global::OpenRouter.OutputItemsVariant8? openrouterApplyPatch, - global::OpenRouter.OutputItemsVariant9? openrouterBash, - global::OpenRouter.OutputItemsVariant10? openrouterBrowserUse, - global::OpenRouter.OutputItemsVariant11? openrouterCodeInterpreter, - global::OpenRouter.OutputItemsVariant12? openrouterDatetime, - global::OpenRouter.OutputItemsVariant13? openrouterExperimentalSearchModels, - global::OpenRouter.OutputItemsVariant14? openrouterFileSearch, - global::OpenRouter.OutputItemsVariant15? openrouterFusion, - global::OpenRouter.OutputItemsVariant16? openrouterImageGeneration, - global::OpenRouter.OutputItemsVariant17? openrouterMcp, - global::OpenRouter.OutputItemsVariant18? openrouterMemory, - global::OpenRouter.OutputItemsVariant19? openrouterTextEditor, - global::OpenRouter.OutputItemsVariant20? openrouterToolSearch, - global::OpenRouter.OutputItemsVariant21? openrouterWebFetch, - global::OpenRouter.OutputItemsVariant22? openrouterWebSearch, - global::OpenRouter.OutputItemsVariant23? reasoning, - global::OpenRouter.OutputItemsVariant24? webSearchCall + global::OpenRouter.OutputItemsVariant1? applyPatchCall, + global::OpenRouter.OutputItemsVariant2? codeInterpreterCall, + global::OpenRouter.OutputItemsVariant3? computerCall, + global::OpenRouter.OutputItemsVariant4? customToolCall, + global::OpenRouter.OutputItemsVariant5? fileSearchCall, + global::OpenRouter.OutputItemsVariant6? functionCall, + global::OpenRouter.OutputItemsVariant7? imageGenerationCall, + global::OpenRouter.OutputItemsVariant8? message, + global::OpenRouter.OutputItemsVariant9? openrouterApplyPatch, + global::OpenRouter.OutputItemsVariant10? openrouterBash, + global::OpenRouter.OutputItemsVariant11? openrouterBrowserUse, + global::OpenRouter.OutputItemsVariant12? openrouterCodeInterpreter, + global::OpenRouter.OutputItemsVariant13? openrouterDatetime, + global::OpenRouter.OutputItemsVariant14? openrouterExperimentalSearchModels, + global::OpenRouter.OutputItemsVariant15? openrouterFileSearch, + global::OpenRouter.OutputItemsVariant16? openrouterFusion, + global::OpenRouter.OutputItemsVariant17? openrouterImageGeneration, + global::OpenRouter.OutputItemsVariant18? openrouterMcp, + global::OpenRouter.OutputItemsVariant19? openrouterMemory, + global::OpenRouter.OutputItemsVariant20? openrouterTextEditor, + global::OpenRouter.OutputItemsVariant21? openrouterToolSearch, + global::OpenRouter.OutputItemsVariant22? openrouterWebFetch, + global::OpenRouter.OutputItemsVariant23? openrouterWebSearch, + global::OpenRouter.OutputItemsVariant24? reasoning, + global::OpenRouter.OutputItemsVariant25? webSearchCall ) { Type = type; + ApplyPatchCall = applyPatchCall; CodeInterpreterCall = codeInterpreterCall; ComputerCall = computerCall; CustomToolCall = customToolCall; @@ -1539,13 +1601,15 @@ FunctionCall as object ?? FileSearchCall as object ?? CustomToolCall as object ?? ComputerCall as object ?? - CodeInterpreterCall as object + CodeInterpreterCall as object ?? + ApplyPatchCall as object ; /// /// /// public override string? ToString() => + ApplyPatchCall?.ToString() ?? CodeInterpreterCall?.ToString() ?? ComputerCall?.ToString() ?? CustomToolCall?.ToString() ?? @@ -1577,37 +1641,38 @@ CodeInterpreterCall as object /// public bool Validate() { - return IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && IsWebSearchCall; + return IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && IsReasoning && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && IsWebSearchCall; } /// /// /// public TResult? Match( - global::System.Func? codeInterpreterCall = null, - global::System.Func? computerCall = null, - global::System.Func? customToolCall = null, - global::System.Func? fileSearchCall = null, - global::System.Func? functionCall = null, - global::System.Func? imageGenerationCall = null, - global::System.Func? message = null, - global::System.Func? openrouterApplyPatch = null, - global::System.Func? openrouterBash = null, - global::System.Func? openrouterBrowserUse = null, - global::System.Func? openrouterCodeInterpreter = null, - global::System.Func? openrouterDatetime = null, - global::System.Func? openrouterExperimentalSearchModels = null, - global::System.Func? openrouterFileSearch = null, - global::System.Func? openrouterFusion = null, - global::System.Func? openrouterImageGeneration = null, - global::System.Func? openrouterMcp = null, - global::System.Func? openrouterMemory = null, - global::System.Func? openrouterTextEditor = null, - global::System.Func? openrouterToolSearch = null, - global::System.Func? openrouterWebFetch = null, - global::System.Func? openrouterWebSearch = null, - global::System.Func? reasoning = null, - global::System.Func? webSearchCall = null, + global::System.Func? applyPatchCall = null, + global::System.Func? codeInterpreterCall = null, + global::System.Func? computerCall = null, + global::System.Func? customToolCall = null, + global::System.Func? fileSearchCall = null, + global::System.Func? functionCall = null, + global::System.Func? imageGenerationCall = null, + global::System.Func? message = null, + global::System.Func? openrouterApplyPatch = null, + global::System.Func? openrouterBash = null, + global::System.Func? openrouterBrowserUse = null, + global::System.Func? openrouterCodeInterpreter = null, + global::System.Func? openrouterDatetime = null, + global::System.Func? openrouterExperimentalSearchModels = null, + global::System.Func? openrouterFileSearch = null, + global::System.Func? openrouterFusion = null, + global::System.Func? openrouterImageGeneration = null, + global::System.Func? openrouterMcp = null, + global::System.Func? openrouterMemory = null, + global::System.Func? openrouterTextEditor = null, + global::System.Func? openrouterToolSearch = null, + global::System.Func? openrouterWebFetch = null, + global::System.Func? openrouterWebSearch = null, + global::System.Func? reasoning = null, + global::System.Func? webSearchCall = null, bool validate = true) { if (validate) @@ -1615,7 +1680,11 @@ public bool Validate() Validate(); } - if (IsCodeInterpreterCall && codeInterpreterCall != null) + if (IsApplyPatchCall && applyPatchCall != null) + { + return applyPatchCall(ApplyPatchCall!); + } + else if (IsCodeInterpreterCall && codeInterpreterCall != null) { return codeInterpreterCall(CodeInterpreterCall!); } @@ -1719,53 +1788,55 @@ public bool Validate() /// /// public void Match( - global::System.Action? codeInterpreterCall = null, + global::System.Action? applyPatchCall = null, + + global::System.Action? codeInterpreterCall = null, - global::System.Action? computerCall = null, + global::System.Action? computerCall = null, - global::System.Action? customToolCall = null, + global::System.Action? customToolCall = null, - global::System.Action? fileSearchCall = null, + global::System.Action? fileSearchCall = null, - global::System.Action? functionCall = null, + global::System.Action? functionCall = null, - global::System.Action? imageGenerationCall = null, + global::System.Action? imageGenerationCall = null, - global::System.Action? message = null, + global::System.Action? message = null, - global::System.Action? openrouterApplyPatch = null, + global::System.Action? openrouterApplyPatch = null, - global::System.Action? openrouterBash = null, + global::System.Action? openrouterBash = null, - global::System.Action? openrouterBrowserUse = null, + global::System.Action? openrouterBrowserUse = null, - global::System.Action? openrouterCodeInterpreter = null, + global::System.Action? openrouterCodeInterpreter = null, - global::System.Action? openrouterDatetime = null, + global::System.Action? openrouterDatetime = null, - global::System.Action? openrouterExperimentalSearchModels = null, + global::System.Action? openrouterExperimentalSearchModels = null, - global::System.Action? openrouterFileSearch = null, + global::System.Action? openrouterFileSearch = null, - global::System.Action? openrouterFusion = null, + global::System.Action? openrouterFusion = null, - global::System.Action? openrouterImageGeneration = null, + global::System.Action? openrouterImageGeneration = null, - global::System.Action? openrouterMcp = null, + global::System.Action? openrouterMcp = null, - global::System.Action? openrouterMemory = null, + global::System.Action? openrouterMemory = null, - global::System.Action? openrouterTextEditor = null, + global::System.Action? openrouterTextEditor = null, - global::System.Action? openrouterToolSearch = null, + global::System.Action? openrouterToolSearch = null, - global::System.Action? openrouterWebFetch = null, + global::System.Action? openrouterWebFetch = null, - global::System.Action? openrouterWebSearch = null, + global::System.Action? openrouterWebSearch = null, - global::System.Action? reasoning = null, + global::System.Action? reasoning = null, - global::System.Action? webSearchCall = null, + global::System.Action? webSearchCall = null, bool validate = true) { if (validate) @@ -1773,7 +1844,11 @@ public void Match( Validate(); } - if (IsCodeInterpreterCall) + if (IsApplyPatchCall) + { + applyPatchCall?.Invoke(ApplyPatchCall!); + } + else if (IsCodeInterpreterCall) { codeInterpreterCall?.Invoke(CodeInterpreterCall!); } @@ -1875,30 +1950,31 @@ public void Match( /// /// public void Switch( - global::System.Action? codeInterpreterCall = null, - global::System.Action? computerCall = null, - global::System.Action? customToolCall = null, - global::System.Action? fileSearchCall = null, - global::System.Action? functionCall = null, - global::System.Action? imageGenerationCall = null, - global::System.Action? message = null, - global::System.Action? openrouterApplyPatch = null, - global::System.Action? openrouterBash = null, - global::System.Action? openrouterBrowserUse = null, - global::System.Action? openrouterCodeInterpreter = null, - global::System.Action? openrouterDatetime = null, - global::System.Action? openrouterExperimentalSearchModels = null, - global::System.Action? openrouterFileSearch = null, - global::System.Action? openrouterFusion = null, - global::System.Action? openrouterImageGeneration = null, - global::System.Action? openrouterMcp = null, - global::System.Action? openrouterMemory = null, - global::System.Action? openrouterTextEditor = null, - global::System.Action? openrouterToolSearch = null, - global::System.Action? openrouterWebFetch = null, - global::System.Action? openrouterWebSearch = null, - global::System.Action? reasoning = null, - global::System.Action? webSearchCall = null, + global::System.Action? applyPatchCall = null, + global::System.Action? codeInterpreterCall = null, + global::System.Action? computerCall = null, + global::System.Action? customToolCall = null, + global::System.Action? fileSearchCall = null, + global::System.Action? functionCall = null, + global::System.Action? imageGenerationCall = null, + global::System.Action? message = null, + global::System.Action? openrouterApplyPatch = null, + global::System.Action? openrouterBash = null, + global::System.Action? openrouterBrowserUse = null, + global::System.Action? openrouterCodeInterpreter = null, + global::System.Action? openrouterDatetime = null, + global::System.Action? openrouterExperimentalSearchModels = null, + global::System.Action? openrouterFileSearch = null, + global::System.Action? openrouterFusion = null, + global::System.Action? openrouterImageGeneration = null, + global::System.Action? openrouterMcp = null, + global::System.Action? openrouterMemory = null, + global::System.Action? openrouterTextEditor = null, + global::System.Action? openrouterToolSearch = null, + global::System.Action? openrouterWebFetch = null, + global::System.Action? openrouterWebSearch = null, + global::System.Action? reasoning = null, + global::System.Action? webSearchCall = null, bool validate = true) { if (validate) @@ -1906,7 +1982,11 @@ public void Switch( Validate(); } - if (IsCodeInterpreterCall) + if (IsApplyPatchCall) + { + applyPatchCall?.Invoke(ApplyPatchCall!); + } + else if (IsCodeInterpreterCall) { codeInterpreterCall?.Invoke(CodeInterpreterCall!); } @@ -2011,54 +2091,56 @@ public override int GetHashCode() { var fields = new object?[] { - CodeInterpreterCall, + ApplyPatchCall, typeof(global::OpenRouter.OutputItemsVariant1), - ComputerCall, + CodeInterpreterCall, typeof(global::OpenRouter.OutputItemsVariant2), - CustomToolCall, + ComputerCall, typeof(global::OpenRouter.OutputItemsVariant3), - FileSearchCall, + CustomToolCall, typeof(global::OpenRouter.OutputItemsVariant4), - FunctionCall, + FileSearchCall, typeof(global::OpenRouter.OutputItemsVariant5), - ImageGenerationCall, + FunctionCall, typeof(global::OpenRouter.OutputItemsVariant6), - Message, + ImageGenerationCall, typeof(global::OpenRouter.OutputItemsVariant7), - OpenrouterApplyPatch, + Message, typeof(global::OpenRouter.OutputItemsVariant8), - OpenrouterBash, + OpenrouterApplyPatch, typeof(global::OpenRouter.OutputItemsVariant9), - OpenrouterBrowserUse, + OpenrouterBash, typeof(global::OpenRouter.OutputItemsVariant10), - OpenrouterCodeInterpreter, + OpenrouterBrowserUse, typeof(global::OpenRouter.OutputItemsVariant11), - OpenrouterDatetime, + OpenrouterCodeInterpreter, typeof(global::OpenRouter.OutputItemsVariant12), - OpenrouterExperimentalSearchModels, + OpenrouterDatetime, typeof(global::OpenRouter.OutputItemsVariant13), - OpenrouterFileSearch, + OpenrouterExperimentalSearchModels, typeof(global::OpenRouter.OutputItemsVariant14), - OpenrouterFusion, + OpenrouterFileSearch, typeof(global::OpenRouter.OutputItemsVariant15), - OpenrouterImageGeneration, + OpenrouterFusion, typeof(global::OpenRouter.OutputItemsVariant16), - OpenrouterMcp, + OpenrouterImageGeneration, typeof(global::OpenRouter.OutputItemsVariant17), - OpenrouterMemory, + OpenrouterMcp, typeof(global::OpenRouter.OutputItemsVariant18), - OpenrouterTextEditor, + OpenrouterMemory, typeof(global::OpenRouter.OutputItemsVariant19), - OpenrouterToolSearch, + OpenrouterTextEditor, typeof(global::OpenRouter.OutputItemsVariant20), - OpenrouterWebFetch, + OpenrouterToolSearch, typeof(global::OpenRouter.OutputItemsVariant21), - OpenrouterWebSearch, + OpenrouterWebFetch, typeof(global::OpenRouter.OutputItemsVariant22), - Reasoning, + OpenrouterWebSearch, typeof(global::OpenRouter.OutputItemsVariant23), - WebSearchCall, + Reasoning, typeof(global::OpenRouter.OutputItemsVariant24), + WebSearchCall, + typeof(global::OpenRouter.OutputItemsVariant25), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -2075,30 +2157,31 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(OutputItems other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreterCall, other.CodeInterpreterCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ComputerCall, other.ComputerCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomToolCall, other.CustomToolCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearchCall, other.FileSearchCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionCall, other.FunctionCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationCall, other.ImageGenerationCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Message, other.Message) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterApplyPatch, other.OpenrouterApplyPatch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterBash, other.OpenrouterBash) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterBrowserUse, other.OpenrouterBrowserUse) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterCodeInterpreter, other.OpenrouterCodeInterpreter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterDatetime, other.OpenrouterDatetime) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterExperimentalSearchModels, other.OpenrouterExperimentalSearchModels) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterFileSearch, other.OpenrouterFileSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterFusion, other.OpenrouterFusion) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterImageGeneration, other.OpenrouterImageGeneration) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterMcp, other.OpenrouterMcp) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterMemory, other.OpenrouterMemory) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterTextEditor, other.OpenrouterTextEditor) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterToolSearch, other.OpenrouterToolSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterWebFetch, other.OpenrouterWebFetch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterWebSearch, other.OpenrouterWebSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Reasoning, other.Reasoning) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchCall, other.WebSearchCall) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchCall, other.ApplyPatchCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreterCall, other.CodeInterpreterCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ComputerCall, other.ComputerCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomToolCall, other.CustomToolCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearchCall, other.FileSearchCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionCall, other.FunctionCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationCall, other.ImageGenerationCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Message, other.Message) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterApplyPatch, other.OpenrouterApplyPatch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterBash, other.OpenrouterBash) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterBrowserUse, other.OpenrouterBrowserUse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterCodeInterpreter, other.OpenrouterCodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterDatetime, other.OpenrouterDatetime) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterExperimentalSearchModels, other.OpenrouterExperimentalSearchModels) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterFileSearch, other.OpenrouterFileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterFusion, other.OpenrouterFusion) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterImageGeneration, other.OpenrouterImageGeneration) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterMcp, other.OpenrouterMcp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterMemory, other.OpenrouterMemory) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterTextEditor, other.OpenrouterTextEditor) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterToolSearch, other.OpenrouterToolSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterWebFetch, other.OpenrouterWebFetch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterWebSearch, other.OpenrouterWebSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Reasoning, other.Reasoning) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchCall, other.WebSearchCall) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsDiscriminatorType.g.cs index e4923130..a06b0f40 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsDiscriminatorType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsDiscriminatorType.g.cs @@ -8,6 +8,10 @@ namespace OpenRouter /// public enum OutputItemsDiscriminatorType { + /// + /// + /// + ApplyPatchCall, /// /// /// @@ -118,6 +122,7 @@ public static string ToValueString(this OutputItemsDiscriminatorType value) { return value switch { + OutputItemsDiscriminatorType.ApplyPatchCall => "apply_patch_call", OutputItemsDiscriminatorType.CodeInterpreterCall => "code_interpreter_call", OutputItemsDiscriminatorType.ComputerCall => "computer_call", OutputItemsDiscriminatorType.CustomToolCall => "custom_tool_call", @@ -152,6 +157,7 @@ public static string ToValueString(this OutputItemsDiscriminatorType value) { return value switch { + "apply_patch_call" => OutputItemsDiscriminatorType.ApplyPatchCall, "code_interpreter_call" => OutputItemsDiscriminatorType.CodeInterpreterCall, "computer_call" => OutputItemsDiscriminatorType.ComputerCall, "custom_tool_call" => OutputItemsDiscriminatorType.CustomToolCall, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1.g.cs index b847093d..abc1ca67 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1.g.cs @@ -4,29 +4,23 @@ namespace OpenRouter { /// - /// A code interpreter execution call with outputs + /// A native `apply_patch_call` output item matching OpenAI's Responses API shape. Emitted when the client requested the `apply_patch` shorthand. /// public sealed partial class OutputItemsVariant1 { /// - /// + /// Discriminator value: apply_patch_call /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemTypeJsonConverter))] - public global::OpenRouter.OutputCodeInterpreterCallItemType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant1TypeJsonConverter))] + public global::OpenRouter.OutputItemsVariant1Type Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("container_id")] + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string ContainerId { get; set; } + public required string CallId { get; set; } /// /// @@ -36,18 +30,20 @@ public sealed partial class OutputItemsVariant1 public required string Id { get; set; } /// - /// + /// The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. /// - [global::System.Text.Json.Serialization.JsonPropertyName("outputs")] - public global::System.Collections.Generic.IList? Outputs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ApplyPatchCallOperation Operation { get; set; } /// - /// + /// Lifecycle state of an `apply_patch_call` output item. /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ToolCallStatus Status { get; set; } + public required global::OpenRouter.ApplyPatchCallStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -58,28 +54,31 @@ public sealed partial class OutputItemsVariant1 /// /// Initializes a new instance of the class. /// - /// + /// /// - /// - /// - /// - /// + /// + /// The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. + /// + /// + /// Lifecycle state of an `apply_patch_call` output item. + /// + /// + /// Discriminator value: apply_patch_call + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant1( - string containerId, + string callId, string id, - global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputCodeInterpreterCallItemType type, - string? code, - global::System.Collections.Generic.IList? outputs) + global::OpenRouter.ApplyPatchCallOperation operation, + global::OpenRouter.ApplyPatchCallStatus status, + global::OpenRouter.OutputItemsVariant1Type type) { this.Type = type; - this.Code = code; - this.ContainerId = containerId ?? throw new global::System.ArgumentNullException(nameof(containerId)); + this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Outputs = outputs; + this.Operation = operation; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10.g.cs index 0583181e..46c74aad 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// An openrouter:browser_use server tool output item + /// An openrouter:bash server tool output item /// public sealed partial class OutputItemsVariant10 { /// - /// Discriminator value: openrouter:browser_use + /// Discriminator value: openrouter:bash /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant10TypeJsonConverter))] @@ -18,20 +18,20 @@ public sealed partial class OutputItemsVariant10 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - public string? Action { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("command")] + public string? Command { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("exitCode")] + public int? ExitCode { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("screenshotB64")] - public string? ScreenshotB64 { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// @@ -41,6 +41,18 @@ public sealed partial class OutputItemsVariant10 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stderr")] + public string? Stderr { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stdout")] + public string? Stdout { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -52,26 +64,32 @@ public sealed partial class OutputItemsVariant10 /// /// /// - /// Discriminator value: openrouter:browser_use + /// Discriminator value: openrouter:bash /// - /// + /// + /// /// - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant10( global::OpenRouter.ToolCallStatus status, global::OpenRouter.OutputItemsVariant10Type type, - string? action, + string? command, + int? exitCode, string? id, - string? screenshotB64) + string? stderr, + string? stdout) { this.Type = type; - this.Action = action; + this.Command = command; + this.ExitCode = exitCode; this.Id = id; - this.ScreenshotB64 = screenshotB64; this.Status = status; + this.Stderr = stderr; + this.Stdout = stdout; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10Type.g.cs index 6d9648fa..6ff73806 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:browser_use + /// Discriminator value: openrouter:bash /// public enum OutputItemsVariant10Type { /// - /// openrouter:browser_use + /// openrouter:bash /// - Openrouter_browserUse, + Openrouter_bash, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this OutputItemsVariant10Type value) { return value switch { - OutputItemsVariant10Type.Openrouter_browserUse => "openrouter:browser_use", + OutputItemsVariant10Type.Openrouter_bash => "openrouter:bash", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this OutputItemsVariant10Type value) { return value switch { - "openrouter:browser_use" => OutputItemsVariant10Type.Openrouter_browserUse, + "openrouter:bash" => OutputItemsVariant10Type.Openrouter_bash, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11.g.cs index aedfb8ab..f4298d61 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// An openrouter:code_interpreter server tool output item + /// An openrouter:browser_use server tool output item /// public sealed partial class OutputItemsVariant11 { /// - /// Discriminator value: openrouter:code_interpreter + /// Discriminator value: openrouter:browser_use /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant11TypeJsonConverter))] @@ -18,14 +18,8 @@ public sealed partial class OutputItemsVariant11 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exitCode")] - public int? ExitCode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + public string? Action { get; set; } /// /// @@ -36,8 +30,8 @@ public sealed partial class OutputItemsVariant11 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("language")] - public string? Language { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("screenshotB64")] + public string? ScreenshotB64 { get; set; } /// /// @@ -47,18 +41,6 @@ public sealed partial class OutputItemsVariant11 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stderr")] - public string? Stderr { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stdout")] - public string? Stdout { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -70,35 +52,26 @@ public sealed partial class OutputItemsVariant11 /// /// /// - /// Discriminator value: openrouter:code_interpreter + /// Discriminator value: openrouter:browser_use /// - /// - /// + /// /// - /// - /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant11( global::OpenRouter.ToolCallStatus status, global::OpenRouter.OutputItemsVariant11Type type, - string? code, - int? exitCode, + string? action, string? id, - string? language, - string? stderr, - string? stdout) + string? screenshotB64) { this.Type = type; - this.Code = code; - this.ExitCode = exitCode; + this.Action = action; this.Id = id; - this.Language = language; + this.ScreenshotB64 = screenshotB64; this.Status = status; - this.Stderr = stderr; - this.Stdout = stdout; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11Type.g.cs index 183335d1..43ec7e25 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:code_interpreter + /// Discriminator value: openrouter:browser_use /// public enum OutputItemsVariant11Type { /// - /// openrouter:code_interpreter + /// openrouter:browser_use /// - Openrouter_codeInterpreter, + Openrouter_browserUse, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this OutputItemsVariant11Type value) { return value switch { - OutputItemsVariant11Type.Openrouter_codeInterpreter => "openrouter:code_interpreter", + OutputItemsVariant11Type.Openrouter_browserUse => "openrouter:browser_use", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this OutputItemsVariant11Type value) { return value switch { - "openrouter:code_interpreter" => OutputItemsVariant11Type.Openrouter_codeInterpreter, + "openrouter:browser_use" => OutputItemsVariant11Type.Openrouter_browserUse, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12.g.cs index ad7eac57..0c744f0c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12.g.cs @@ -4,23 +4,28 @@ namespace OpenRouter { /// - /// An openrouter:datetime server tool output item + /// An openrouter:code_interpreter server tool output item /// public sealed partial class OutputItemsVariant12 { /// - /// Discriminator value: openrouter:datetime + /// Discriminator value: openrouter:code_interpreter /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant12TypeJsonConverter))] public global::OpenRouter.OutputItemsVariant12Type Type { get; set; } /// - /// ISO 8601 datetime string + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("datetime")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Datetime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exitCode")] + public int? ExitCode { get; set; } /// /// @@ -28,6 +33,12 @@ public sealed partial class OutputItemsVariant12 [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language")] + public string? Language { get; set; } + /// /// /// @@ -37,11 +48,16 @@ public sealed partial class OutputItemsVariant12 public required global::OpenRouter.ToolCallStatus Status { get; set; } /// - /// IANA timezone name + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("timezone")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Timezone { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("stderr")] + public string? Stderr { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stdout")] + public string? Stdout { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,32 +68,37 @@ public sealed partial class OutputItemsVariant12 /// /// Initializes a new instance of the class. /// - /// - /// ISO 8601 datetime string - /// /// - /// - /// IANA timezone name - /// /// - /// Discriminator value: openrouter:datetime + /// Discriminator value: openrouter:code_interpreter /// + /// + /// /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant12( - string datetime, global::OpenRouter.ToolCallStatus status, - string timezone, global::OpenRouter.OutputItemsVariant12Type type, - string? id) + string? code, + int? exitCode, + string? id, + string? language, + string? stderr, + string? stdout) { this.Type = type; - this.Datetime = datetime ?? throw new global::System.ArgumentNullException(nameof(datetime)); + this.Code = code; + this.ExitCode = exitCode; this.Id = id; + this.Language = language; this.Status = status; - this.Timezone = timezone ?? throw new global::System.ArgumentNullException(nameof(timezone)); + this.Stderr = stderr; + this.Stdout = stdout; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12Type.g.cs index caa2d267..f2ef4d27 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:datetime + /// Discriminator value: openrouter:code_interpreter /// public enum OutputItemsVariant12Type { /// - /// openrouter:datetime + /// openrouter:code_interpreter /// - Openrouter_datetime, + Openrouter_codeInterpreter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this OutputItemsVariant12Type value) { return value switch { - OutputItemsVariant12Type.Openrouter_datetime => "openrouter:datetime", + OutputItemsVariant12Type.Openrouter_codeInterpreter => "openrouter:code_interpreter", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this OutputItemsVariant12Type value) { return value switch { - "openrouter:datetime" => OutputItemsVariant12Type.Openrouter_datetime, + "openrouter:code_interpreter" => OutputItemsVariant12Type.Openrouter_codeInterpreter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13.g.cs index 49b76cf5..17308995 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13.g.cs @@ -4,22 +4,23 @@ namespace OpenRouter { /// - /// An openrouter:experimental__search_models server tool output item + /// An openrouter:datetime server tool output item /// public sealed partial class OutputItemsVariant13 { /// - /// + /// Discriminator value: openrouter:datetime /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputSearchModelsServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputSearchModelsServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant13TypeJsonConverter))] + public global::OpenRouter.OutputItemsVariant13Type Type { get; set; } /// - /// The JSON arguments submitted to the search tool (e.g. {"query":"Claude"}) + /// ISO 8601 datetime string /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - public string? Arguments { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("datetime")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Datetime { get; set; } /// /// @@ -27,12 +28,6 @@ public sealed partial class OutputItemsVariant13 [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } - /// /// /// @@ -41,6 +36,13 @@ public sealed partial class OutputItemsVariant13 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } + /// + /// IANA timezone name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timezone")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Timezone { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -50,28 +52,32 @@ public sealed partial class OutputItemsVariant13 /// /// Initializes a new instance of the class. /// + /// + /// ISO 8601 datetime string + /// /// - /// - /// - /// The JSON arguments submitted to the search tool (e.g. {"query":"Claude"}) + /// + /// IANA timezone name + /// + /// + /// Discriminator value: openrouter:datetime /// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant13( + string datetime, global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputSearchModelsServerToolItemType type, - string? arguments, - string? id, - string? query) + string timezone, + global::OpenRouter.OutputItemsVariant13Type type, + string? id) { this.Type = type; - this.Arguments = arguments; + this.Datetime = datetime ?? throw new global::System.ArgumentNullException(nameof(datetime)); this.Id = id; - this.Query = query; this.Status = status; + this.Timezone = timezone ?? throw new global::System.ArgumentNullException(nameof(timezone)); } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13Type.g.cs similarity index 62% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14Type.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13Type.g.cs index bffc66e9..b054bab9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13Type.g.cs @@ -4,40 +4,40 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:file_search + /// Discriminator value: openrouter:datetime /// - public enum OutputItemsVariant14Type + public enum OutputItemsVariant13Type { /// - /// openrouter:file_search + /// openrouter:datetime /// - Openrouter_fileSearch, + Openrouter_datetime, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class OutputItemsVariant14TypeExtensions + public static class OutputItemsVariant13TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this OutputItemsVariant14Type value) + public static string ToValueString(this OutputItemsVariant13Type value) { return value switch { - OutputItemsVariant14Type.Openrouter_fileSearch => "openrouter:file_search", + OutputItemsVariant13Type.Openrouter_datetime => "openrouter:datetime", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static OutputItemsVariant14Type? ToEnum(string value) + public static OutputItemsVariant13Type? ToEnum(string value) { return value switch { - "openrouter:file_search" => OutputItemsVariant14Type.Openrouter_fileSearch, + "openrouter:datetime" => OutputItemsVariant13Type.Openrouter_datetime, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14.g.cs index 31e71c7c..6636f0db 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14.g.cs @@ -4,16 +4,22 @@ namespace OpenRouter { /// - /// An openrouter:file_search server tool output item + /// An openrouter:experimental__search_models server tool output item /// public sealed partial class OutputItemsVariant14 { /// - /// Discriminator value: openrouter:file_search + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant14TypeJsonConverter))] - public global::OpenRouter.OutputItemsVariant14Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputSearchModelsServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputSearchModelsServerToolItemType Type { get; set; } + + /// + /// The JSON arguments submitted to the search tool (e.g. {"query":"Claude"}) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + public string? Arguments { get; set; } /// /// @@ -24,8 +30,8 @@ public sealed partial class OutputItemsVariant14 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("queries")] - public global::System.Collections.Generic.IList? Queries { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + public string? Query { get; set; } /// /// @@ -45,23 +51,26 @@ public sealed partial class OutputItemsVariant14 /// Initializes a new instance of the class. /// /// - /// - /// Discriminator value: openrouter:file_search + /// + /// + /// The JSON arguments submitted to the search tool (e.g. {"query":"Claude"}) /// /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant14( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputItemsVariant14Type type, + global::OpenRouter.OutputSearchModelsServerToolItemType type, + string? arguments, string? id, - global::System.Collections.Generic.IList? queries) + string? query) { this.Type = type; + this.Arguments = arguments; this.Id = id; - this.Queries = queries; + this.Query = query; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15.g.cs index 798ff2d1..8271473b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15.g.cs @@ -4,29 +4,17 @@ namespace OpenRouter { /// - /// An openrouter:fusion server tool output item + /// An openrouter:file_search server tool output item /// public sealed partial class OutputItemsVariant15 { /// - /// Discriminator value: openrouter:fusion + /// Discriminator value: openrouter:file_search /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant15TypeJsonConverter))] public global::OpenRouter.OutputItemsVariant15Type Type { get; set; } - /// - /// Structured analysis produced by the fusion judge model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("analysis")] - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysis? Analysis { get; set; } - - /// - /// Error message when the fusion run did not produce an analysis result. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public string? Error { get; set; } - /// /// /// @@ -34,10 +22,10 @@ public sealed partial class OutputItemsVariant15 public string? Id { get; set; } /// - /// Slugs of the analysis models that produced a response in this fusion run. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("responses")] - public global::System.Collections.Generic.IList? Responses { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("queries")] + public global::System.Collections.Generic.IList? Queries { get; set; } /// /// @@ -58,34 +46,22 @@ public sealed partial class OutputItemsVariant15 /// /// /// - /// Discriminator value: openrouter:fusion - /// - /// - /// Structured analysis produced by the fusion judge model. - /// - /// - /// Error message when the fusion run did not produce an analysis result. + /// Discriminator value: openrouter:file_search /// /// - /// - /// Slugs of the analysis models that produced a response in this fusion run. - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant15( global::OpenRouter.ToolCallStatus status, global::OpenRouter.OutputItemsVariant15Type type, - global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysis? analysis, - string? error, string? id, - global::System.Collections.Generic.IList? responses) + global::System.Collections.Generic.IList? queries) { this.Type = type; - this.Analysis = analysis; - this.Error = error; this.Id = id; - this.Responses = responses; + this.Queries = queries; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15Type.g.cs index 2a7485f1..e23d5fbb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:fusion + /// Discriminator value: openrouter:file_search /// public enum OutputItemsVariant15Type { /// - /// openrouter:fusion + /// openrouter:file_search /// - Openrouter_fusion, + Openrouter_fileSearch, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this OutputItemsVariant15Type value) { return value switch { - OutputItemsVariant15Type.Openrouter_fusion => "openrouter:fusion", + OutputItemsVariant15Type.Openrouter_fileSearch => "openrouter:file_search", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this OutputItemsVariant15Type value) { return value switch { - "openrouter:fusion" => OutputItemsVariant15Type.Openrouter_fusion, + "openrouter:file_search" => OutputItemsVariant15Type.Openrouter_fileSearch, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16.g.cs index dde02068..b1f3bf27 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16.g.cs @@ -4,46 +4,40 @@ namespace OpenRouter { /// - /// An openrouter:image_generation server tool output item + /// An openrouter:fusion server tool output item /// public sealed partial class OutputItemsVariant16 { /// - /// Discriminator value: openrouter:image_generation + /// Discriminator value: openrouter:fusion /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant16TypeJsonConverter))] public global::OpenRouter.OutputItemsVariant16Type Type { get; set; } /// - /// + /// Structured analysis produced by the fusion judge model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("analysis")] + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysis? Analysis { get; set; } /// - /// + /// Error message when the fusion run did not produce an analysis result. /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageB64")] - public string? ImageB64 { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageUrl")] - public string? ImageUrl { get; set; } - - /// - /// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format - /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - public string? Result { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// - /// + /// Slugs of the analysis models that produced a response in this fusion run. /// - [global::System.Text.Json.Serialization.JsonPropertyName("revisedPrompt")] - public string? RevisedPrompt { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responses")] + public global::System.Collections.Generic.IList? Responses { get; set; } /// /// @@ -64,33 +58,34 @@ public sealed partial class OutputItemsVariant16 /// /// /// - /// Discriminator value: openrouter:image_generation + /// Discriminator value: openrouter:fusion + /// + /// + /// Structured analysis produced by the fusion judge model. + /// + /// + /// Error message when the fusion run did not produce an analysis result. /// /// - /// - /// - /// - /// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format + /// + /// Slugs of the analysis models that produced a response in this fusion run. /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant16( global::OpenRouter.ToolCallStatus status, global::OpenRouter.OutputItemsVariant16Type type, + global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionAnalysis? analysis, + string? error, string? id, - string? imageB64, - string? imageUrl, - string? result, - string? revisedPrompt) + global::System.Collections.Generic.IList? responses) { this.Type = type; + this.Analysis = analysis; + this.Error = error; this.Id = id; - this.ImageB64 = imageB64; - this.ImageUrl = imageUrl; - this.Result = result; - this.RevisedPrompt = revisedPrompt; + this.Responses = responses; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16Type.g.cs index 1c120fd4..a561293d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:image_generation + /// Discriminator value: openrouter:fusion /// public enum OutputItemsVariant16Type { /// - /// openrouter:image_generation + /// openrouter:fusion /// - Openrouter_imageGeneration, + Openrouter_fusion, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this OutputItemsVariant16Type value) { return value switch { - OutputItemsVariant16Type.Openrouter_imageGeneration => "openrouter:image_generation", + OutputItemsVariant16Type.Openrouter_fusion => "openrouter:fusion", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this OutputItemsVariant16Type value) { return value switch { - "openrouter:image_generation" => OutputItemsVariant16Type.Openrouter_imageGeneration, + "openrouter:fusion" => OutputItemsVariant16Type.Openrouter_fusion, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs index 645d1105..49ac6ba1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs @@ -4,16 +4,16 @@ namespace OpenRouter { /// - /// An openrouter:mcp server tool output item + /// An openrouter:image_generation server tool output item /// public sealed partial class OutputItemsVariant17 { /// - /// + /// Discriminator value: openrouter:image_generation /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMcpServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputMcpServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeJsonConverter))] + public global::OpenRouter.OutputItemsVariant17Type Type { get; set; } /// /// @@ -24,22 +24,34 @@ public sealed partial class OutputItemsVariant17 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("serverLabel")] - public string? ServerLabel { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("imageB64")] + public string? ImageB64 { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ToolCallStatus Status { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("imageUrl")] + public string? ImageUrl { get; set; } + + /// + /// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + public string? Result { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - public string? ToolName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("revisedPrompt")] + public string? RevisedPrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ToolCallStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -51,25 +63,35 @@ public sealed partial class OutputItemsVariant17 /// Initializes a new instance of the class. /// /// - /// + /// + /// Discriminator value: openrouter:image_generation + /// /// - /// - /// + /// + /// + /// + /// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant17( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputMcpServerToolItemType type, + global::OpenRouter.OutputItemsVariant17Type type, string? id, - string? serverLabel, - string? toolName) + string? imageB64, + string? imageUrl, + string? result, + string? revisedPrompt) { this.Type = type; this.Id = id; - this.ServerLabel = serverLabel; + this.ImageB64 = imageB64; + this.ImageUrl = imageUrl; + this.Result = result; + this.RevisedPrompt = revisedPrompt; this.Status = status; - this.ToolName = toolName; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17Type.g.cs new file mode 100644 index 00000000..1e157305 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: openrouter:image_generation + /// + public enum OutputItemsVariant17Type + { + /// + /// openrouter:image_generation + /// + Openrouter_imageGeneration, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputItemsVariant17TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputItemsVariant17Type value) + { + return value switch + { + OutputItemsVariant17Type.Openrouter_imageGeneration => "openrouter:image_generation", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputItemsVariant17Type? ToEnum(string value) + { + return value switch + { + "openrouter:image_generation" => OutputItemsVariant17Type.Openrouter_imageGeneration, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs index 58199867..feb6ff70 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:memory server tool output item + /// An openrouter:mcp server tool output item /// public sealed partial class OutputItemsVariant18 { @@ -12,15 +12,8 @@ public sealed partial class OutputItemsVariant18 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputMemoryServerToolItemType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemActionJsonConverter))] - public global::OpenRouter.OutputMemoryServerToolItemAction? Action { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMcpServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputMcpServerToolItemType Type { get; set; } /// /// @@ -31,8 +24,8 @@ public sealed partial class OutputItemsVariant18 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public string? Key { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("serverLabel")] + public string? ServerLabel { get; set; } /// /// @@ -45,8 +38,8 @@ public sealed partial class OutputItemsVariant18 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public object? Value { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] + public string? ToolName { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,27 +52,24 @@ public sealed partial class OutputItemsVariant18 /// /// /// - /// /// - /// - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant18( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputMemoryServerToolItemType type, - global::OpenRouter.OutputMemoryServerToolItemAction? action, + global::OpenRouter.OutputMcpServerToolItemType type, string? id, - string? key, - object? value) + string? serverLabel, + string? toolName) { this.Type = type; - this.Action = action; this.Id = id; - this.Key = key; + this.ServerLabel = serverLabel; this.Status = status; - this.Value = value; + this.ToolName = toolName; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs index dfbf5d63..1d855d67 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:text_editor server tool output item + /// An openrouter:memory server tool output item /// public sealed partial class OutputItemsVariant19 { @@ -12,27 +12,27 @@ public sealed partial class OutputItemsVariant19 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputTextEditorServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputMemoryServerToolItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("command")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandJsonConverter))] - public global::OpenRouter.OutputTextEditorServerToolItemCommand? Command { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemActionJsonConverter))] + public global::OpenRouter.OutputMemoryServerToolItemAction? Action { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("filePath")] - public string? FilePath { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public string? Key { get; set; } /// /// @@ -42,6 +42,12 @@ public sealed partial class OutputItemsVariant19 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,24 +59,27 @@ public sealed partial class OutputItemsVariant19 /// /// /// - /// - /// + /// /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant19( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputTextEditorServerToolItemType type, - global::OpenRouter.OutputTextEditorServerToolItemCommand? command, - string? filePath, - string? id) + global::OpenRouter.OutputMemoryServerToolItemType type, + global::OpenRouter.OutputMemoryServerToolItemAction? action, + string? id, + string? key, + object? value) { this.Type = type; - this.Command = command; - this.FilePath = filePath; + this.Action = action; this.Id = id; + this.Key = key; this.Status = status; + this.Value = value; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Value.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19Value.Json.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Value.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19Value.Json.g.cs index 04c6670c..eaf80868 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Value.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19Value.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class OutputItemsVariant18Value + public sealed partial class OutputItemsVariant19Value { /// /// 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::OpenRouter.OutputItemsVariant18Value? FromJson( + public static global::OpenRouter.OutputItemsVariant19Value? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.OutputItemsVariant18Value), - jsonSerializerContext) as global::OpenRouter.OutputItemsVariant18Value; + typeof(global::OpenRouter.OutputItemsVariant19Value), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant19Value; } /// @@ -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::OpenRouter.OutputItemsVariant18Value? FromJson( + public static global::OpenRouter.OutputItemsVariant19Value? 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::OpenRouter.OutputItemsVariant18Value), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant18Value; + typeof(global::OpenRouter.OutputItemsVariant19Value), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant19Value; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Value.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19Value.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Value.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19Value.g.cs index f38d6973..42985bc1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Value.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19Value.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Any type /// - public sealed partial class OutputItemsVariant18Value + public sealed partial class OutputItemsVariant19Value { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1Type.g.cs similarity index 64% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Type.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1Type.g.cs index 7baf4e5b..b7b30da1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1Type.g.cs @@ -4,40 +4,40 @@ namespace OpenRouter { /// - /// Discriminator value: computer_call + /// Discriminator value: apply_patch_call /// - public enum OutputItemsVariant2Type + public enum OutputItemsVariant1Type { /// - /// computer_call + /// apply_patch_call /// - ComputerCall, + ApplyPatchCall, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class OutputItemsVariant2TypeExtensions + public static class OutputItemsVariant1TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this OutputItemsVariant2Type value) + public static string ToValueString(this OutputItemsVariant1Type value) { return value switch { - OutputItemsVariant2Type.ComputerCall => "computer_call", + OutputItemsVariant1Type.ApplyPatchCall => "apply_patch_call", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static OutputItemsVariant2Type? ToEnum(string value) + public static OutputItemsVariant1Type? ToEnum(string value) { return value switch { - "computer_call" => OutputItemsVariant2Type.ComputerCall, + "apply_patch_call" => OutputItemsVariant1Type.ApplyPatchCall, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2.g.cs index c43310c9..18b92b1b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2.g.cs @@ -4,50 +4,50 @@ namespace OpenRouter { /// - /// computer_call variant + /// A code interpreter execution call with outputs /// public sealed partial class OutputItemsVariant2 { /// - /// Discriminator value: computer_call + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant2TypeJsonConverter))] - public global::OpenRouter.OutputItemsVariant2Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemTypeJsonConverter))] + public global::OpenRouter.OutputCodeInterpreterCallItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - public object? Action { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] + [global::System.Text.Json.Serialization.JsonPropertyName("container_id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string CallId { get; set; } + public required string ContainerId { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("pending_safety_checks")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList PendingSafetyChecks { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputs")] + public global::System.Collections.Generic.IList? Outputs { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorMappingComputerCallStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus Status { get; set; } + public required global::OpenRouter.ToolCallStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -58,30 +58,28 @@ public sealed partial class OutputItemsVariant2 /// /// Initializes a new instance of the class. /// - /// - /// - /// - /// - /// Discriminator value: computer_call - /// - /// + /// /// + /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant2( - string callId, - global::System.Collections.Generic.IList pendingSafetyChecks, - global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus status, - global::OpenRouter.OutputItemsVariant2Type type, - object? action, - string? id) + string containerId, + string id, + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputCodeInterpreterCallItemType type, + string? code, + global::System.Collections.Generic.IList? outputs) { this.Type = type; - this.Action = action; - this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); - this.Id = id; - this.PendingSafetyChecks = pendingSafetyChecks ?? throw new global::System.ArgumentNullException(nameof(pendingSafetyChecks)); + this.Code = code; + this.ContainerId = containerId ?? throw new global::System.ArgumentNullException(nameof(containerId)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Outputs = outputs; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs index 6fc017d6..dba94b58 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:tool_search server tool output item + /// An openrouter:text_editor server tool output item /// public sealed partial class OutputItemsVariant20 { @@ -12,20 +12,27 @@ public sealed partial class OutputItemsVariant20 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputToolSearchServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputTextEditorServerToolItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("command")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandJsonConverter))] + public global::OpenRouter.OutputTextEditorServerToolItemCommand? Command { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filePath")] + public string? FilePath { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// @@ -46,20 +53,23 @@ public sealed partial class OutputItemsVariant20 /// /// /// + /// + /// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant20( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputToolSearchServerToolItemType type, - string? id, - string? query) + global::OpenRouter.OutputTextEditorServerToolItemType type, + global::OpenRouter.OutputTextEditorServerToolItemCommand? command, + string? filePath, + string? id) { this.Type = type; + this.Command = command; + this.FilePath = filePath; this.Id = id; - this.Query = query; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.g.cs index 611a32cc..ef9ccb97 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:web_fetch server tool output item + /// An openrouter:tool_search server tool output item /// public sealed partial class OutputItemsVariant21 { @@ -12,32 +12,20 @@ public sealed partial class OutputItemsVariant21 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputWebFetchServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputToolSearchServerToolItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// The error message if the fetch failed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public string? Error { get; set; } - - /// - /// The HTTP status code returned by the upstream URL fetch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("httpStatus")] - public int? HttpStatus { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + public string? Query { get; set; } /// /// @@ -47,18 +35,6 @@ public sealed partial class OutputItemsVariant21 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -70,37 +46,21 @@ public sealed partial class OutputItemsVariant21 /// /// /// - /// - /// - /// The error message if the fetch failed. - /// - /// - /// The HTTP status code returned by the upstream URL fetch. - /// /// - /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant21( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputWebFetchServerToolItemType type, - string? content, - string? error, - int? httpStatus, + global::OpenRouter.OutputToolSearchServerToolItemType type, string? id, - string? title, - string? url) + string? query) { this.Type = type; - this.Content = content; - this.Error = error; - this.HttpStatus = httpStatus; this.Id = id; + this.Query = query; this.Status = status; - this.Title = title; - this.Url = url; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant22.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant22.g.cs index d910f4e5..8c39a3fe 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant22.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant22.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:web_search server tool output item + /// An openrouter:web_fetch server tool output item /// public sealed partial class OutputItemsVariant22 { @@ -12,14 +12,26 @@ public sealed partial class OutputItemsVariant22 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputWebSearchServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputWebFetchServerToolItemType Type { get; set; } /// - /// The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public string? Content { get; set; } + + /// + /// The error message if the fetch failed. /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - public global::OpenRouter.OutputWebSearchServerToolItemAction? Action { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { get; set; } + + /// + /// The HTTP status code returned by the upstream URL fetch. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("httpStatus")] + public int? HttpStatus { get; set; } /// /// @@ -35,6 +47,18 @@ public sealed partial class OutputItemsVariant22 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -46,23 +70,37 @@ public sealed partial class OutputItemsVariant22 /// /// /// - /// - /// The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. + /// + /// + /// The error message if the fetch failed. + /// + /// + /// The HTTP status code returned by the upstream URL fetch. /// /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant22( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputWebSearchServerToolItemType type, - global::OpenRouter.OutputWebSearchServerToolItemAction? action, - string? id) + global::OpenRouter.OutputWebFetchServerToolItemType type, + string? content, + string? error, + int? httpStatus, + string? id, + string? title, + string? url) { this.Type = type; - this.Action = action; + this.Content = content; + this.Error = error; + this.HttpStatus = httpStatus; this.Id = id; this.Status = status; + this.Title = title; + this.Url = url; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant23.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant23.g.cs index 0a15a920..83398b5a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant23.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant23.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An output item containing reasoning + /// An openrouter:web_search server tool output item /// public sealed partial class OutputItemsVariant23 { @@ -12,54 +12,28 @@ public sealed partial class OutputItemsVariant23 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputReasoningItemTypeJsonConverter))] - public global::OpenRouter.OutputReasoningItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputWebSearchServerToolItemType Type { get; set; } /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::System.Collections.Generic.IList? Content { get; set; } - - /// - /// + /// The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. /// - [global::System.Text.Json.Serialization.JsonPropertyName("encrypted_content")] - public string? EncryptedContent { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + public global::OpenRouter.OutputWebSearchServerToolItemAction? Action { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } + public string? Id { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatusJsonConverter))] - public global::OpenRouter.OutputReasoningItemStatus? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Summary { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningFormatJsonConverter))] - public global::OpenRouter.ReasoningFormat? Format { get; set; } - - /// - /// A signature for the reasoning content, used for verification - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public string? Signature { get; set; } + public required global::OpenRouter.ToolCallStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -70,37 +44,25 @@ public sealed partial class OutputItemsVariant23 /// /// Initializes a new instance of the class. /// - /// - /// - /// - /// - /// /// - /// - /// - /// A signature for the reasoning content, used for verification + /// + /// + /// The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant23( - string id, - global::System.Collections.Generic.IList summary, - global::OpenRouter.OutputReasoningItemType type, - global::System.Collections.Generic.IList? content, - string? encryptedContent, - global::OpenRouter.OutputReasoningItemStatus? status, - global::OpenRouter.ReasoningFormat? format, - string? signature) + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputWebSearchServerToolItemType type, + global::OpenRouter.OutputWebSearchServerToolItemAction? action, + string? id) { this.Type = type; - this.Content = content; - this.EncryptedContent = encryptedContent; - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Action = action; + this.Id = id; this.Status = status; - this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); - this.Format = format; - this.Signature = signature; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant24.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant24.g.cs index 6072fc2c..f4e5575b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant24.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant24.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// web_search_call variant + /// An output item containing reasoning /// public sealed partial class OutputItemsVariant24 { @@ -12,16 +12,20 @@ public sealed partial class OutputItemsVariant24 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemTypeJsonConverter))] - public global::OpenRouter.OutputWebSearchCallItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputReasoningItemTypeJsonConverter))] + public global::OpenRouter.OutputReasoningItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OutputWebSearchCallItemAction Action { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::System.Collections.Generic.IList? Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("encrypted_content")] + public string? EncryptedContent { get; set; } /// /// @@ -34,9 +38,28 @@ public sealed partial class OutputItemsVariant24 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatusJsonConverter))] + public global::OpenRouter.OutputReasoningItemStatus? Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.WebSearchStatus Status { get; set; } + public required global::System.Collections.Generic.IList Summary { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningFormatJsonConverter))] + public global::OpenRouter.ReasoningFormat? Format { get; set; } + + /// + /// A signature for the reasoning content, used for verification + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public string? Signature { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -47,23 +70,37 @@ public sealed partial class OutputItemsVariant24 /// /// Initializes a new instance of the class. /// - /// /// - /// + /// /// + /// + /// + /// + /// + /// + /// A signature for the reasoning content, used for verification + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant24( - global::OpenRouter.OutputWebSearchCallItemAction action, string id, - global::OpenRouter.WebSearchStatus status, - global::OpenRouter.OutputWebSearchCallItemType type) + global::System.Collections.Generic.IList summary, + global::OpenRouter.OutputReasoningItemType type, + global::System.Collections.Generic.IList? content, + string? encryptedContent, + global::OpenRouter.OutputReasoningItemStatus? status, + global::OpenRouter.ReasoningFormat? format, + string? signature) { this.Type = type; - this.Action = action; + this.Content = content; + this.EncryptedContent = encryptedContent; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Status = status; + this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); + this.Format = format; + this.Signature = signature; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.Json.g.cs new file mode 100644 index 00000000..900c40a1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant25 + { + /// + /// 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::OpenRouter.OutputItemsVariant25? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant25), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant25; + } + + /// + /// 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::OpenRouter.OutputItemsVariant25? 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::OpenRouter.OutputItemsVariant25), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant25; + } + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.g.cs new file mode 100644 index 00000000..2b8f19c1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// web_search_call variant + /// + public sealed partial class OutputItemsVariant25 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemTypeJsonConverter))] + public global::OpenRouter.OutputWebSearchCallItemType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.OutputWebSearchCallItemAction Action { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.WebSearchStatus Status { 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 OutputItemsVariant25( + global::OpenRouter.OutputWebSearchCallItemAction action, + string id, + global::OpenRouter.WebSearchStatus status, + global::OpenRouter.OutputWebSearchCallItemType type) + { + this.Type = type; + this.Action = action; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant25() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs index 84bd8f8c..4952d046 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs @@ -4,17 +4,23 @@ namespace OpenRouter { /// - /// A call to a custom (freeform-grammar) tool created by the model — distinct from `function_call`. Used for tools like Codex CLI's `apply_patch` whose payload is opaque text rather than JSON arguments. + /// computer_call variant /// public sealed partial class OutputItemsVariant3 { /// - /// Discriminator value: custom_tool_call + /// Discriminator value: computer_call /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant3TypeJsonConverter))] public global::OpenRouter.OutputItemsVariant3Type Type { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + public object? Action { get; set; } + /// /// /// @@ -31,22 +37,17 @@ public sealed partial class OutputItemsVariant3 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonPropertyName("pending_safety_checks")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Input { get; set; } + public required global::System.Collections.Generic.IList PendingSafetyChecks { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorMappingComputerCallStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("namespace")] - public string? Namespace { get; set; } + public required global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -58,32 +59,30 @@ public sealed partial class OutputItemsVariant3 /// Initializes a new instance of the class. /// /// - /// - /// + /// + /// /// - /// Discriminator value: custom_tool_call + /// Discriminator value: computer_call /// + /// /// - /// - /// Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant3( string callId, - string input, - string name, + global::System.Collections.Generic.IList pendingSafetyChecks, + global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus status, global::OpenRouter.OutputItemsVariant3Type type, - string? id, - string? @namespace) + object? action, + string? id) { this.Type = type; + this.Action = action; this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); this.Id = id; - this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Namespace = @namespace; + this.PendingSafetyChecks = pendingSafetyChecks ?? throw new global::System.ArgumentNullException(nameof(pendingSafetyChecks)); + this.Status = status; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Action.Json.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Action.Json.g.cs index 7219a65b..7fcfe7f6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Action.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class OutputItemsVariant2Action + public sealed partial class OutputItemsVariant3Action { /// /// 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::OpenRouter.OutputItemsVariant2Action? FromJson( + public static global::OpenRouter.OutputItemsVariant3Action? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.OutputItemsVariant2Action), - jsonSerializerContext) as global::OpenRouter.OutputItemsVariant2Action; + typeof(global::OpenRouter.OutputItemsVariant3Action), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant3Action; } /// @@ -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::OpenRouter.OutputItemsVariant2Action? FromJson( + public static global::OpenRouter.OutputItemsVariant3Action? 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::OpenRouter.OutputItemsVariant2Action), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant2Action; + typeof(global::OpenRouter.OutputItemsVariant3Action), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant3Action; } /// @@ -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/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Action.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Action.g.cs index 4b4f6a0b..89470283 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Action.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Any type /// - public sealed partial class OutputItemsVariant2Action + public sealed partial class OutputItemsVariant3Action { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Type.g.cs index 1c2d34df..a501830f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: custom_tool_call + /// Discriminator value: computer_call /// public enum OutputItemsVariant3Type { /// - /// custom_tool_call + /// computer_call /// - CustomToolCall, + ComputerCall, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this OutputItemsVariant3Type value) { return value switch { - OutputItemsVariant3Type.CustomToolCall => "custom_tool_call", + OutputItemsVariant3Type.ComputerCall => "computer_call", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this OutputItemsVariant3Type value) { return value switch { - "custom_tool_call" => OutputItemsVariant3Type.CustomToolCall, + "computer_call" => OutputItemsVariant3Type.ComputerCall, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4.g.cs index 10bcaea8..b4a683e1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4.g.cs @@ -4,38 +4,49 @@ namespace OpenRouter { /// - /// file_search_call variant + /// A call to a custom (freeform-grammar) tool created by the model — distinct from `function_call`. Used for tools like Codex CLI's `apply_patch` whose payload is opaque text rather than JSON arguments. /// public sealed partial class OutputItemsVariant4 { /// - /// + /// Discriminator value: custom_tool_call /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputFileSearchCallItemTypeJsonConverter))] - public global::OpenRouter.OutputFileSearchCallItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant4TypeJsonConverter))] + public global::OpenRouter.OutputItemsVariant4Type Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } + public required string CallId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("queries")] + [global::System.Text.Json.Serialization.JsonPropertyName("input")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Queries { get; set; } + public required string Input { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonPropertyName("name")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.WebSearchStatus Status { get; set; } + public required string Name { get; set; } + + /// + /// Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("namespace")] + public string? Namespace { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -46,23 +57,33 @@ public sealed partial class OutputItemsVariant4 /// /// Initializes a new instance of the class. /// + /// + /// + /// + /// + /// Discriminator value: custom_tool_call + /// /// - /// - /// - /// + /// + /// Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant4( - string id, - global::System.Collections.Generic.IList queries, - global::OpenRouter.WebSearchStatus status, - global::OpenRouter.OutputFileSearchCallItemType type) + string callId, + string input, + string name, + global::OpenRouter.OutputItemsVariant4Type type, + string? id, + string? @namespace) { this.Type = type; - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Queries = queries ?? throw new global::System.ArgumentNullException(nameof(queries)); - this.Status = status; + this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.Id = id; + this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Namespace = @namespace; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4Type.g.cs similarity index 62% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8Type.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4Type.g.cs index ebe34f85..87321523 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4Type.g.cs @@ -4,40 +4,40 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:apply_patch + /// Discriminator value: custom_tool_call /// - public enum OutputItemsVariant8Type + public enum OutputItemsVariant4Type { /// - /// openrouter:apply_patch + /// custom_tool_call /// - Openrouter_applyPatch, + CustomToolCall, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class OutputItemsVariant8TypeExtensions + public static class OutputItemsVariant4TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this OutputItemsVariant8Type value) + public static string ToValueString(this OutputItemsVariant4Type value) { return value switch { - OutputItemsVariant8Type.Openrouter_applyPatch => "openrouter:apply_patch", + OutputItemsVariant4Type.CustomToolCall => "custom_tool_call", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static OutputItemsVariant8Type? ToEnum(string value) + public static OutputItemsVariant4Type? ToEnum(string value) { return value switch { - "openrouter:apply_patch" => OutputItemsVariant8Type.Openrouter_applyPatch, + "custom_tool_call" => OutputItemsVariant4Type.CustomToolCall, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant5.g.cs index 86dc155c..f9d2808e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant5.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant5.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// function_call variant + /// file_search_call variant /// public sealed partial class OutputItemsVariant5 { @@ -12,48 +12,30 @@ public sealed partial class OutputItemsVariant5 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemTypeJsonConverter))] - public global::OpenRouter.OutputFunctionCallItemType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Arguments { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string CallId { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputFileSearchCallItemTypeJsonConverter))] + public global::OpenRouter.OutputFileSearchCallItemType Type { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonPropertyName("queries")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("namespace")] - public string? Namespace { get; set; } + public required global::System.Collections.Generic.IList Queries { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatusJsonConverter))] - public global::OpenRouter.OutputFunctionCallItemStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.WebSearchStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -64,33 +46,22 @@ public sealed partial class OutputItemsVariant5 /// /// Initializes a new instance of the class. /// - /// - /// - /// - /// /// - /// - /// Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) - /// + /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant5( - string arguments, - string callId, - string name, - global::OpenRouter.OutputFunctionCallItemType type, - string? id, - string? @namespace, - global::OpenRouter.OutputFunctionCallItemStatus? status) + string id, + global::System.Collections.Generic.IList queries, + global::OpenRouter.WebSearchStatus status, + global::OpenRouter.OutputFileSearchCallItemType type) { this.Type = type; - this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); - this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); - this.Id = id; - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Namespace = @namespace; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Queries = queries ?? throw new global::System.ArgumentNullException(nameof(queries)); this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant6.g.cs index a4711671..6b2f6da0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant6.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant6.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// image_generation_call variant + /// function_call variant /// public sealed partial class OutputItemsVariant6 { @@ -12,29 +12,48 @@ public sealed partial class OutputItemsVariant6 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputImageGenerationCallItemTypeJsonConverter))] - public global::OpenRouter.OutputImageGenerationCallItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemTypeJsonConverter))] + public global::OpenRouter.OutputFunctionCallItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } + public required string Arguments { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - public string? Result { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CallId { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ImageGenerationStatus Status { get; set; } + public required string Name { get; set; } + + /// + /// Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("namespace")] + public string? Namespace { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatusJsonConverter))] + public global::OpenRouter.OutputFunctionCallItemStatus? Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,22 +64,33 @@ public sealed partial class OutputItemsVariant6 /// /// Initializes a new instance of the class. /// + /// + /// + /// + /// /// + /// + /// Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) + /// /// - /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant6( - string id, - global::OpenRouter.ImageGenerationStatus status, - global::OpenRouter.OutputImageGenerationCallItemType type, - string? result) + string arguments, + string callId, + string name, + global::OpenRouter.OutputFunctionCallItemType type, + string? id, + string? @namespace, + global::OpenRouter.OutputFunctionCallItemStatus? status) { this.Type = type; - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Result = result; + this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); + this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.Id = id; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Namespace = @namespace; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant7.g.cs index 2603fb49..95962423 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant7.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant7.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An output message item + /// image_generation_call variant /// public sealed partial class OutputItemsVariant7 { @@ -12,15 +12,8 @@ public sealed partial class OutputItemsVariant7 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageItemTypeJsonConverter))] - public global::OpenRouter.OutputMessageItemType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Content { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputImageGenerationCallItemTypeJsonConverter))] + public global::OpenRouter.OutputImageGenerationCallItemType Type { get; set; } /// /// @@ -29,26 +22,19 @@ public sealed partial class OutputItemsVariant7 [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } - /// - /// The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("phase")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageItemPhaseJsonConverter))] - public global::OpenRouter.OutputMessageItemPhase? Phase { get; set; } - /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageItemRoleJsonConverter))] - public global::OpenRouter.OutputMessageItemRole Role { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + public string? Result { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageItemStatusJsonConverter))] - public global::OpenRouter.OutputMessageItemStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ImageGenerationStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,30 +45,22 @@ public sealed partial class OutputItemsVariant7 /// /// Initializes a new instance of the class. /// - /// /// - /// - /// - /// The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages. - /// - /// /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant7( - global::System.Collections.Generic.IList content, string id, - global::OpenRouter.OutputMessageItemType type, - global::OpenRouter.OutputMessageItemPhase? phase, - global::OpenRouter.OutputMessageItemRole role, - global::OpenRouter.OutputMessageItemStatus? status) + global::OpenRouter.ImageGenerationStatus status, + global::OpenRouter.OutputImageGenerationCallItemType type, + string? result) { this.Type = type; - this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Phase = phase; - this.Role = role; + this.Result = result; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs index 5c6877d9..0278b1e4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs @@ -4,42 +4,51 @@ namespace OpenRouter { /// - /// An openrouter:apply_patch server tool output item + /// An output message item /// public sealed partial class OutputItemsVariant8 { /// - /// Discriminator value: openrouter:apply_patch + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant8TypeJsonConverter))] - public global::OpenRouter.OutputItemsVariant8Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageItemTypeJsonConverter))] + public global::OpenRouter.OutputMessageItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("filePath")] - public string? FilePath { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Content { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("phase")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageItemPhaseJsonConverter))] + public global::OpenRouter.OutputMessageItemPhase? Phase { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("patch")] - public string? Patch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageItemRoleJsonConverter))] + public global::OpenRouter.OutputMessageItemRole Role { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ToolCallStatus Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageItemStatusJsonConverter))] + public global::OpenRouter.OutputMessageItemStatus? Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,27 +59,30 @@ public sealed partial class OutputItemsVariant8 /// /// Initializes a new instance of the class. /// - /// - /// - /// Discriminator value: openrouter:apply_patch - /// - /// + /// /// - /// + /// + /// + /// The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages. + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant8( - global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputItemsVariant8Type type, - string? filePath, - string? id, - string? patch) + global::System.Collections.Generic.IList content, + string id, + global::OpenRouter.OutputMessageItemType type, + global::OpenRouter.OutputMessageItemPhase? phase, + global::OpenRouter.OutputMessageItemRole role, + global::OpenRouter.OutputMessageItemStatus? status) { this.Type = type; - this.FilePath = filePath; - this.Id = id; - this.Patch = patch; + this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Phase = phase; + this.Role = role; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9.g.cs index 1086c324..e332ece2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// An openrouter:bash server tool output item + /// An openrouter:apply_patch server tool output item. The turn halts when validation succeeds so the client can apply the patch and echo an `apply_patch_call_output` on the next turn. /// public sealed partial class OutputItemsVariant9 { /// - /// Discriminator value: openrouter:bash + /// Discriminator value: openrouter:apply_patch /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant9TypeJsonConverter))] @@ -18,20 +18,21 @@ public sealed partial class OutputItemsVariant9 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("command")] - public string? Command { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] + public string? CallId { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("exitCode")] - public int? ExitCode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// - /// + /// The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationJsonConverter))] + public global::OpenRouter.ApplyPatchCallOperation? Operation { get; set; } /// /// @@ -41,18 +42,6 @@ public sealed partial class OutputItemsVariant9 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stderr")] - public string? Stderr { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stdout")] - public string? Stdout { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -64,32 +53,28 @@ public sealed partial class OutputItemsVariant9 /// /// /// - /// Discriminator value: openrouter:bash + /// Discriminator value: openrouter:apply_patch /// - /// - /// + /// /// - /// - /// + /// + /// The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant9( global::OpenRouter.ToolCallStatus status, global::OpenRouter.OutputItemsVariant9Type type, - string? command, - int? exitCode, + string? callId, string? id, - string? stderr, - string? stdout) + global::OpenRouter.ApplyPatchCallOperation? operation) { this.Type = type; - this.Command = command; - this.ExitCode = exitCode; + this.CallId = callId; this.Id = id; + this.Operation = operation; this.Status = status; - this.Stderr = stderr; - this.Stdout = stdout; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9Type.g.cs index 1ac80eb3..7c95b19e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:bash + /// Discriminator value: openrouter:apply_patch /// public enum OutputItemsVariant9Type { /// - /// openrouter:bash + /// openrouter:apply_patch /// - Openrouter_bash, + Openrouter_applyPatch, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this OutputItemsVariant9Type value) { return value switch { - OutputItemsVariant9Type.Openrouter_bash => "openrouter:bash", + OutputItemsVariant9Type.Openrouter_applyPatch => "openrouter:apply_patch", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this OutputItemsVariant9Type value) { return value switch { - "openrouter:bash" => OutputItemsVariant9Type.Openrouter_bash, + "openrouter:apply_patch" => OutputItemsVariant9Type.Openrouter_applyPatch, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs index d128b1a4..ffac51ec 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs @@ -748,6 +748,43 @@ public bool TryPickWebSearchServerToolOpenRouter( public global::OpenRouter.WebSearchServerToolOpenRouter PickWebSearchServerToolOpenRouter() => IsWebSearchServerToolOpenRouter ? WebSearchServerToolOpenRouter! : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchServerToolOpenRouter' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchServerToolOpenRouter? ApplyPatchServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.ApplyPatchServerToolOpenRouter? ApplyPatchServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchServerToolOpenRouter))] +#endif + public bool IsApplyPatchServerToolOpenRouter => ApplyPatchServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickApplyPatchServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchServerToolOpenRouter? value) + { + value = ApplyPatchServerToolOpenRouter; + return IsApplyPatchServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchServerToolOpenRouter PickApplyPatchServerToolOpenRouter() => IsApplyPatchServerToolOpenRouter + ? ApplyPatchServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchServerToolOpenRouter' but the value was {ToString()}."); /// /// /// @@ -1208,6 +1245,29 @@ public ResponsesRequestToolsItems(global::OpenRouter.WebSearchServerToolOpenRout /// public static ResponsesRequestToolsItems FromWebSearchServerToolOpenRouter(global::OpenRouter.WebSearchServerToolOpenRouter? value) => new ResponsesRequestToolsItems(value); + /// + /// + /// + public static implicit operator ResponsesRequestToolsItems(global::OpenRouter.ApplyPatchServerToolOpenRouter value) => new ResponsesRequestToolsItems((global::OpenRouter.ApplyPatchServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ApplyPatchServerToolOpenRouter?(ResponsesRequestToolsItems @this) => @this.ApplyPatchServerToolOpenRouter; + + /// + /// + /// + public ResponsesRequestToolsItems(global::OpenRouter.ApplyPatchServerToolOpenRouter? value) + { + ApplyPatchServerToolOpenRouter = value; + } + + /// + /// + /// + public static ResponsesRequestToolsItems FromApplyPatchServerToolOpenRouter(global::OpenRouter.ApplyPatchServerToolOpenRouter? value) => new ResponsesRequestToolsItems(value); + /// /// /// @@ -1231,7 +1291,8 @@ public ResponsesRequestToolsItems( global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter, global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool, global::OpenRouter.WebFetchServerTool? webFetchServerTool, - global::OpenRouter.WebSearchServerToolOpenRouter? webSearchServerToolOpenRouter + global::OpenRouter.WebSearchServerToolOpenRouter? webSearchServerToolOpenRouter, + global::OpenRouter.ApplyPatchServerToolOpenRouter? applyPatchServerToolOpenRouter ) { ResponsesRequestToolsItems0 = responsesRequestToolsItems0; @@ -1254,12 +1315,14 @@ public ResponsesRequestToolsItems( ChatSearchModelsServerTool = chatSearchModelsServerTool; WebFetchServerTool = webFetchServerTool; WebSearchServerToolOpenRouter = webSearchServerToolOpenRouter; + ApplyPatchServerToolOpenRouter = applyPatchServerToolOpenRouter; } /// /// /// public object? Object => + ApplyPatchServerToolOpenRouter as object ?? WebSearchServerToolOpenRouter as object ?? WebFetchServerTool as object ?? ChatSearchModelsServerTool as object ?? @@ -1305,7 +1368,8 @@ ResponsesRequestToolsItems0 as object ImageGenerationServerToolOpenRouter?.ToString() ?? ChatSearchModelsServerTool?.ToString() ?? WebFetchServerTool?.ToString() ?? - WebSearchServerToolOpenRouter?.ToString() + WebSearchServerToolOpenRouter?.ToString() ?? + ApplyPatchServerToolOpenRouter?.ToString() ; /// @@ -1313,7 +1377,7 @@ ResponsesRequestToolsItems0 as object /// public bool Validate() { - return IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && IsWebSearchServerToolOpenRouter; + return IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && IsApplyPatchServerToolOpenRouter; } /// @@ -1340,6 +1404,7 @@ public bool Validate() global::System.Func? chatSearchModelsServerTool = null, global::System.Func? webFetchServerTool = null, global::System.Func? webSearchServerToolOpenRouter = null, + global::System.Func? applyPatchServerToolOpenRouter = null, bool validate = true) { if (validate) @@ -1427,6 +1492,10 @@ public bool Validate() { return webSearchServerToolOpenRouter(WebSearchServerToolOpenRouter!); } + else if (IsApplyPatchServerToolOpenRouter && applyPatchServerToolOpenRouter != null) + { + return applyPatchServerToolOpenRouter(ApplyPatchServerToolOpenRouter!); + } return default(TResult); } @@ -1474,6 +1543,8 @@ public void Match( global::System.Action? webFetchServerTool = null, global::System.Action? webSearchServerToolOpenRouter = null, + + global::System.Action? applyPatchServerToolOpenRouter = null, bool validate = true) { if (validate) @@ -1561,6 +1632,10 @@ public void Match( { webSearchServerToolOpenRouter?.Invoke(WebSearchServerToolOpenRouter!); } + else if (IsApplyPatchServerToolOpenRouter) + { + applyPatchServerToolOpenRouter?.Invoke(ApplyPatchServerToolOpenRouter!); + } } /// @@ -1587,6 +1662,7 @@ public void Switch( global::System.Action? chatSearchModelsServerTool = null, global::System.Action? webFetchServerTool = null, global::System.Action? webSearchServerToolOpenRouter = null, + global::System.Action? applyPatchServerToolOpenRouter = null, bool validate = true) { if (validate) @@ -1674,6 +1750,10 @@ public void Switch( { webSearchServerToolOpenRouter?.Invoke(WebSearchServerToolOpenRouter!); } + else if (IsApplyPatchServerToolOpenRouter) + { + applyPatchServerToolOpenRouter?.Invoke(ApplyPatchServerToolOpenRouter!); + } } /// @@ -1723,6 +1803,8 @@ public override int GetHashCode() typeof(global::OpenRouter.WebFetchServerTool), WebSearchServerToolOpenRouter, typeof(global::OpenRouter.WebSearchServerToolOpenRouter), + ApplyPatchServerToolOpenRouter, + typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -1758,7 +1840,8 @@ public bool Equals(ResponsesRequestToolsItems other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationServerToolOpenRouter, other.ImageGenerationServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatSearchModelsServerTool, other.ChatSearchModelsServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetchServerTool, other.WebFetchServerTool) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchServerToolOpenRouter, other.WebSearchServerToolOpenRouter) + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchServerToolOpenRouter, other.WebSearchServerToolOpenRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchServerToolOpenRouter, other.ApplyPatchServerToolOpenRouter) ; } diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 96bfebfe..b09e7104 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -5090,6 +5090,193 @@ "description": "The output from a function call execution", "title": "FunctionCallOutputItem" }, + "ApplyPatchCallOperationOneOf0Type": { + "type": "string", + "enum": [ + "create_file" + ], + "title": "ApplyPatchCallOperationOneOf0Type" + }, + "ApplyPatchCallOperation0": { + "type": "object", + "properties": { + "diff": { + "type": "string" + }, + "path": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ApplyPatchCallOperationOneOf0Type" + } + }, + "required": [ + "diff", + "path", + "type" + ], + "title": "ApplyPatchCallOperation0" + }, + "ApplyPatchCallOperationOneOf1Type": { + "type": "string", + "enum": [ + "update_file" + ], + "title": "ApplyPatchCallOperationOneOf1Type" + }, + "ApplyPatchCallOperation1": { + "type": "object", + "properties": { + "diff": { + "type": "string" + }, + "path": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ApplyPatchCallOperationOneOf1Type" + } + }, + "required": [ + "diff", + "path", + "type" + ], + "title": "ApplyPatchCallOperation1" + }, + "ApplyPatchCallOperationOneOf2Type": { + "type": "string", + "enum": [ + "delete_file" + ], + "title": "ApplyPatchCallOperationOneOf2Type" + }, + "ApplyPatchCallOperation2": { + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ApplyPatchCallOperationOneOf2Type" + } + }, + "required": [ + "path", + "type" + ], + "title": "ApplyPatchCallOperation2" + }, + "ApplyPatchCallOperation": { + "oneOf": [ + { + "$ref": "#/components/schemas/ApplyPatchCallOperation0" + }, + { + "$ref": "#/components/schemas/ApplyPatchCallOperation1" + }, + { + "$ref": "#/components/schemas/ApplyPatchCallOperation2" + } + ], + "description": "The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it.", + "title": "ApplyPatchCallOperation" + }, + "ApplyPatchCallStatus": { + "type": "string", + "enum": [ + "in_progress", + "completed" + ], + "description": "Lifecycle state of an `apply_patch_call` output item.", + "title": "ApplyPatchCallStatus" + }, + "ApplyPatchCallItemType": { + "type": "string", + "enum": [ + "apply_patch_call" + ], + "title": "ApplyPatchCallItemType" + }, + "ApplyPatchCallItem": { + "type": "object", + "properties": { + "call_id": { + "type": "string" + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "operation": { + "$ref": "#/components/schemas/ApplyPatchCallOperation" + }, + "status": { + "$ref": "#/components/schemas/ApplyPatchCallStatus" + }, + "type": { + "$ref": "#/components/schemas/ApplyPatchCallItemType" + } + }, + "required": [ + "call_id", + "operation", + "status", + "type" + ], + "description": "A tool call emitted by the model requesting a V4A patch operation. The client applies the patch and echoes an `apply_patch_call_output` on the next turn.", + "title": "ApplyPatchCallItem" + }, + "ApplyPatchCallOutputItemStatus": { + "type": "string", + "enum": [ + "completed", + "failed" + ], + "title": "ApplyPatchCallOutputItemStatus" + }, + "ApplyPatchCallOutputItemType": { + "type": "string", + "enum": [ + "apply_patch_call_output" + ], + "title": "ApplyPatchCallOutputItemType" + }, + "ApplyPatchCallOutputItem": { + "type": "object", + "properties": { + "call_id": { + "type": "string" + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "output": { + "type": [ + "string", + "null" + ] + }, + "status": { + "$ref": "#/components/schemas/ApplyPatchCallOutputItemStatus" + }, + "type": { + "$ref": "#/components/schemas/ApplyPatchCallOutputItemType" + } + }, + "required": [ + "call_id", + "status", + "type" + ], + "description": "The client's echo of an `apply_patch_call` after applying the patch. `output` is an optional human-readable log; `status` is `completed` when the patch was applied successfully, `failed` otherwise.", + "title": "ApplyPatchCallOutputItem" + }, "FileCitationType": { "type": "string", "enum": [ @@ -5310,7 +5497,7 @@ ], "title": "OpenAIResponsesRefusalContent" }, - "InputsOneOf1ItemsOneOf5ContentOneOf0Items": { + "InputsOneOf1ItemsOneOf7ContentOneOf0Items": { "oneOf": [ { "$ref": "#/components/schemas/ResponseOutputText" @@ -5319,19 +5506,19 @@ "$ref": "#/components/schemas/OpenAIResponsesRefusalContent" } ], - "title": "InputsOneOf1ItemsOneOf5ContentOneOf0Items" + "title": "InputsOneOf1ItemsOneOf7ContentOneOf0Items" }, - "InputsOneOf1ItemsOneOf5Content0": { + "InputsOneOf1ItemsOneOf7Content0": { "type": "array", "items": { - "$ref": "#/components/schemas/InputsOneOf1ItemsOneOf5ContentOneOf0Items" + "$ref": "#/components/schemas/InputsOneOf1ItemsOneOf7ContentOneOf0Items" }, - "title": "InputsOneOf1ItemsOneOf5Content0" + "title": "InputsOneOf1ItemsOneOf7Content0" }, - "InputsOneOf1ItemsOneOf5Content": { + "InputsOneOf1ItemsOneOf7Content": { "oneOf": [ { - "$ref": "#/components/schemas/InputsOneOf1ItemsOneOf5Content0" + "$ref": "#/components/schemas/InputsOneOf1ItemsOneOf7Content0" }, { "type": "string" @@ -5340,19 +5527,19 @@ "description": "Any type" } ], - "title": "InputsOneOf1ItemsOneOf5Content" + "title": "InputsOneOf1ItemsOneOf7Content" }, - "InputsOneOf1Items5": { + "InputsOneOf1Items7": { "type": "object", "properties": { "content": { - "$ref": "#/components/schemas/InputsOneOf1ItemsOneOf5Content" + "$ref": "#/components/schemas/InputsOneOf1ItemsOneOf7Content" } }, "description": "An output message item", - "title": "InputsOneOf1Items5" + "title": "InputsOneOf1Items7" }, - "InputsOneOf1Items6": { + "InputsOneOf1Items8": { "type": "object", "properties": { "content": { @@ -5385,7 +5572,7 @@ } }, "description": "An output item containing reasoning", - "title": "InputsOneOf1Items6" + "title": "InputsOneOf1Items8" }, "OutputFunctionCallItemStatus0": { "type": "string", @@ -6195,14 +6382,14 @@ "OutputApplyPatchServerToolItem": { "type": "object", "properties": { - "filePath": { + "call_id": { "type": "string" }, "id": { "type": "string" }, - "patch": { - "type": "string" + "operation": { + "$ref": "#/components/schemas/ApplyPatchCallOperation" }, "status": { "$ref": "#/components/schemas/ToolCallStatus" @@ -6211,7 +6398,7 @@ "required": [ "status" ], - "description": "An openrouter:apply_patch server tool output item", + "description": "An openrouter:apply_patch server tool output item. The turn halts when validation succeeds so the client can apply the patch and echo an `apply_patch_call_output` on the next turn.", "title": "OutputApplyPatchServerToolItem" }, "OutputWebFetchServerToolItemType": { @@ -6669,225 +6856,6 @@ "description": "Output from a shell command execution (newer variant)", "title": "ShellCallOutputItem" }, - "ApplyPatchCallItemOperationOneOf0Type": { - "type": "string", - "enum": [ - "create_file" - ], - "title": "ApplyPatchCallItemOperationOneOf0Type" - }, - "ApplyPatchCallItemOperation0": { - "type": "object", - "properties": { - "diff": { - "type": "string" - }, - "path": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ApplyPatchCallItemOperationOneOf0Type" - } - }, - "required": [ - "diff", - "path", - "type" - ], - "title": "ApplyPatchCallItemOperation0" - }, - "ApplyPatchCallItemOperationOneOf1Type": { - "type": "string", - "enum": [ - "delete_file" - ], - "title": "ApplyPatchCallItemOperationOneOf1Type" - }, - "ApplyPatchCallItemOperation1": { - "type": "object", - "properties": { - "path": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ApplyPatchCallItemOperationOneOf1Type" - } - }, - "required": [ - "path", - "type" - ], - "title": "ApplyPatchCallItemOperation1" - }, - "ApplyPatchCallItemOperationOneOf2Type": { - "type": "string", - "enum": [ - "update_file" - ], - "title": "ApplyPatchCallItemOperationOneOf2Type" - }, - "ApplyPatchCallItemOperation2": { - "type": "object", - "properties": { - "diff": { - "type": "string" - }, - "path": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ApplyPatchCallItemOperationOneOf2Type" - } - }, - "required": [ - "diff", - "path", - "type" - ], - "title": "ApplyPatchCallItemOperation2" - }, - "ApplyPatchCallItemOperation": { - "oneOf": [ - { - "$ref": "#/components/schemas/ApplyPatchCallItemOperation0" - }, - { - "$ref": "#/components/schemas/ApplyPatchCallItemOperation1" - }, - { - "$ref": "#/components/schemas/ApplyPatchCallItemOperation2" - } - ], - "title": "ApplyPatchCallItemOperation" - }, - "ApplyPatchCallItemStatus0": { - "type": "string", - "enum": [ - "in_progress" - ], - "title": "ApplyPatchCallItemStatus0" - }, - "ApplyPatchCallItemStatus1": { - "type": "string", - "enum": [ - "completed" - ], - "title": "ApplyPatchCallItemStatus1" - }, - "ApplyPatchCallItemStatus": { - "oneOf": [ - { - "$ref": "#/components/schemas/ApplyPatchCallItemStatus0" - }, - { - "$ref": "#/components/schemas/ApplyPatchCallItemStatus1" - } - ], - "title": "ApplyPatchCallItemStatus" - }, - "ApplyPatchCallItemType": { - "type": "string", - "enum": [ - "apply_patch_call" - ], - "title": "ApplyPatchCallItemType" - }, - "ApplyPatchCallItem": { - "type": "object", - "properties": { - "call_id": { - "type": "string" - }, - "id": { - "type": [ - "string", - "null" - ] - }, - "operation": { - "$ref": "#/components/schemas/ApplyPatchCallItemOperation" - }, - "status": { - "$ref": "#/components/schemas/ApplyPatchCallItemStatus" - }, - "type": { - "$ref": "#/components/schemas/ApplyPatchCallItemType" - } - }, - "required": [ - "call_id", - "operation", - "status", - "type" - ], - "description": "A file create/update/delete via diff patch", - "title": "ApplyPatchCallItem" - }, - "ApplyPatchCallOutputItemStatus0": { - "type": "string", - "enum": [ - "completed" - ], - "title": "ApplyPatchCallOutputItemStatus0" - }, - "ApplyPatchCallOutputItemStatus1": { - "type": "string", - "enum": [ - "failed" - ], - "title": "ApplyPatchCallOutputItemStatus1" - }, - "ApplyPatchCallOutputItemStatus": { - "oneOf": [ - { - "$ref": "#/components/schemas/ApplyPatchCallOutputItemStatus0" - }, - { - "$ref": "#/components/schemas/ApplyPatchCallOutputItemStatus1" - } - ], - "title": "ApplyPatchCallOutputItemStatus" - }, - "ApplyPatchCallOutputItemType": { - "type": "string", - "enum": [ - "apply_patch_call_output" - ], - "title": "ApplyPatchCallOutputItemType" - }, - "ApplyPatchCallOutputItem": { - "type": "object", - "properties": { - "call_id": { - "type": "string" - }, - "id": { - "type": [ - "string", - "null" - ] - }, - "output": { - "type": [ - "string", - "null" - ] - }, - "status": { - "$ref": "#/components/schemas/ApplyPatchCallOutputItemStatus" - }, - "type": { - "$ref": "#/components/schemas/ApplyPatchCallOutputItemType" - } - }, - "required": [ - "call_id", - "status", - "type" - ], - "description": "Output from an apply patch operation", - "title": "ApplyPatchCallOutputItem" - }, "McpListToolsItemToolsItems": { "type": "object", "properties": { @@ -7333,10 +7301,16 @@ "$ref": "#/components/schemas/FunctionCallOutputItem" }, { - "$ref": "#/components/schemas/InputsOneOf1Items5" + "$ref": "#/components/schemas/ApplyPatchCallItem" + }, + { + "$ref": "#/components/schemas/ApplyPatchCallOutputItem" }, { - "$ref": "#/components/schemas/InputsOneOf1Items6" + "$ref": "#/components/schemas/InputsOneOf1Items7" + }, + { + "$ref": "#/components/schemas/InputsOneOf1Items8" }, { "$ref": "#/components/schemas/OutputFunctionCallItem" @@ -7413,12 +7387,6 @@ { "$ref": "#/components/schemas/ShellCallOutputItem" }, - { - "$ref": "#/components/schemas/ApplyPatchCallItem" - }, - { - "$ref": "#/components/schemas/ApplyPatchCallOutputItem" - }, { "$ref": "#/components/schemas/McpListToolsItem" }, @@ -8651,6 +8619,44 @@ "description": "Constrains the model to a pre-defined set of allowed tools", "title": "ToolChoiceAllowed" }, + "OpenAiResponsesToolChoiceOneOf6Type": { + "type": "string", + "enum": [ + "apply_patch" + ], + "title": "OpenAiResponsesToolChoiceOneOf6Type" + }, + "OpenAiResponsesToolChoice6": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf6Type" + } + }, + "required": [ + "type" + ], + "title": "OpenAiResponsesToolChoice6" + }, + "OpenAiResponsesToolChoiceOneOf7Type": { + "type": "string", + "enum": [ + "shell" + ], + "title": "OpenAiResponsesToolChoiceOneOf7Type" + }, + "OpenAiResponsesToolChoice7": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf7Type" + } + }, + "required": [ + "type" + ], + "title": "OpenAiResponsesToolChoice7" + }, "OpenAIResponsesToolChoice": { "oneOf": [ { @@ -8670,6 +8676,12 @@ }, { "$ref": "#/components/schemas/ToolChoiceAllowed" + }, + { + "$ref": "#/components/schemas/OpenAiResponsesToolChoice6" + }, + { + "$ref": "#/components/schemas/OpenAiResponsesToolChoice7" } ], "title": "OpenAIResponsesToolChoice" @@ -10064,6 +10076,35 @@ "description": "OpenRouter built-in server tool: searches the web for current information", "title": "WebSearchServerTool_OpenRouter" }, + "ApplyPatchServerToolConfig": { + "type": "object", + "properties": {}, + "description": "Configuration for the openrouter:apply_patch server tool", + "title": "ApplyPatchServerToolConfig" + }, + "ApplyPatchServerToolOpenRouterType": { + "type": "string", + "enum": [ + "openrouter:apply_patch" + ], + "title": "ApplyPatchServerToolOpenRouterType" + }, + "ApplyPatchServerTool_OpenRouter": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/ApplyPatchServerToolConfig" + }, + "type": { + "$ref": "#/components/schemas/ApplyPatchServerToolOpenRouterType" + } + }, + "required": [ + "type" + ], + "description": "OpenRouter built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API.", + "title": "ApplyPatchServerTool_OpenRouter" + }, "ResponsesRequestToolsItems": { "oneOf": [ { @@ -10125,6 +10166,9 @@ }, { "$ref": "#/components/schemas/WebSearchServerTool_OpenRouter" + }, + { + "$ref": "#/components/schemas/ApplyPatchServerTool_OpenRouter" } ], "title": "ResponsesRequestToolsItems" @@ -11341,6 +11385,12 @@ }, { "$ref": "#/components/schemas/OpenAIResponseCustomToolCallOutput" + }, + { + "$ref": "#/components/schemas/ApplyPatchCallItem" + }, + { + "$ref": "#/components/schemas/ApplyPatchCallOutputItem" } ], "title": "BaseInputsOneOf1Items" @@ -11632,6 +11682,38 @@ }, "OutputItems": { "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apply_patch_call" + ], + "description": "Discriminator value: apply_patch_call" + }, + "call_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "operation": { + "$ref": "#/components/schemas/ApplyPatchCallOperation" + }, + "status": { + "$ref": "#/components/schemas/ApplyPatchCallStatus" + } + }, + "required": [ + "type", + "call_id", + "id", + "operation", + "status" + ], + "description": "A native `apply_patch_call` output item matching OpenAI's Responses API shape. Emitted when the client requested the `apply_patch` shorthand." + }, { "type": "object", "properties": { @@ -11883,14 +11965,14 @@ ], "description": "Discriminator value: openrouter:apply_patch" }, - "filePath": { + "call_id": { "type": "string" }, "id": { "type": "string" }, - "patch": { - "type": "string" + "operation": { + "$ref": "#/components/schemas/ApplyPatchCallOperation" }, "status": { "$ref": "#/components/schemas/ToolCallStatus" @@ -11900,7 +11982,7 @@ "type", "status" ], - "description": "An openrouter:apply_patch server tool output item" + "description": "An openrouter:apply_patch server tool output item. The turn halts when validation succeeds so the client can apply the patch and echo an `apply_patch_call_output` on the next turn." }, { "type": "object",