diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItems.g.cs new file mode 100644 index 0000000..2b89527 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItems.g.cs @@ -0,0 +1,137 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class CodeInterpreterCallItemOutputsItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CodeInterpreterCallItemOutputsItems 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; + if (__jsonProps.Contains("type")) __score0++; + if (__jsonProps.Contains("url")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("logs")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::OpenRouter.CodeInterpreterCallItemOutputsItems0? codeInterpreterCallItemOutputsItems0 = default; + global::OpenRouter.CodeInterpreterCallItemOutputsItems1? codeInterpreterCallItemOutputsItems1 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems0).Name}"); + codeInterpreterCallItemOutputsItems0 = 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.CodeInterpreterCallItemOutputsItems1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems1).Name}"); + codeInterpreterCallItemOutputsItems1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (codeInterpreterCallItemOutputsItems0 == null && codeInterpreterCallItemOutputsItems1 == null) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems0).Name}"); + codeInterpreterCallItemOutputsItems0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems1).Name}"); + codeInterpreterCallItemOutputsItems1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.CodeInterpreterCallItemOutputsItems( + codeInterpreterCallItemOutputsItems0, + + codeInterpreterCallItemOutputsItems1 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CodeInterpreterCallItemOutputsItems 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.IsCodeInterpreterCallItemOutputsItems0) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems0).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCallItemOutputsItems0!, typeInfo); + } + else if (value.IsCodeInterpreterCallItemOutputsItems1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCallItemOutputsItems1!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf0Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf0Type.g.cs new file mode 100644 index 0000000..7915653 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf0Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CodeInterpreterCallItemOutputsItemsOneOf0TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type 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.CodeInterpreterCallItemOutputsItemsOneOf0TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf0TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf0TypeNullable.g.cs new file mode 100644 index 0000000..f1ffa61 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf0TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CodeInterpreterCallItemOutputsItemsOneOf0TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type? 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.CodeInterpreterCallItemOutputsItemsOneOf0TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type? 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.CodeInterpreterCallItemOutputsItemsOneOf0TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf1Type.g.cs new file mode 100644 index 0000000..886ab52 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf1Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CodeInterpreterCallItemOutputsItemsOneOf1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type 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.CodeInterpreterCallItemOutputsItemsOneOf1TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf1TypeNullable.g.cs new file mode 100644 index 0000000..a838b36 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf1TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CodeInterpreterCallItemOutputsItemsOneOf1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type? 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.CodeInterpreterCallItemOutputsItemsOneOf1TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type? 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.CodeInterpreterCallItemOutputsItemsOneOf1TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemType.g.cs new file mode 100644 index 0000000..1b512ff --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CodeInterpreterCallItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CodeInterpreterCallItemType 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.CodeInterpreterCallItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CodeInterpreterCallItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CodeInterpreterCallItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CodeInterpreterCallItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CodeInterpreterCallItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemTypeNullable.g.cs new file mode 100644 index 0000000..0883ace --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CodeInterpreterCallItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CodeInterpreterCallItemType? 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.CodeInterpreterCallItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CodeInterpreterCallItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CodeInterpreterCallItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CodeInterpreterCallItemType? 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.CodeInterpreterCallItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputApplyPatchServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputApplyPatchServerToolItemType.g.cs new file mode 100644 index 0000000..6da52d3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputApplyPatchServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputApplyPatchServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputApplyPatchServerToolItemType 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.OutputApplyPatchServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputApplyPatchServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputApplyPatchServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputApplyPatchServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputApplyPatchServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputApplyPatchServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputApplyPatchServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..87e1930 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputApplyPatchServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputApplyPatchServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputApplyPatchServerToolItemType? 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.OutputApplyPatchServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputApplyPatchServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputApplyPatchServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputApplyPatchServerToolItemType? 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.OutputApplyPatchServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBashServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBashServerToolItemType.g.cs new file mode 100644 index 0000000..e03c522 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBashServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputBashServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputBashServerToolItemType 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.OutputBashServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputBashServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputBashServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputBashServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputBashServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBashServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBashServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..4a432c3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBashServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputBashServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputBashServerToolItemType? 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.OutputBashServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputBashServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputBashServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputBashServerToolItemType? 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.OutputBashServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBrowserUseServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBrowserUseServerToolItemType.g.cs new file mode 100644 index 0000000..d5430ac --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBrowserUseServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputBrowserUseServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputBrowserUseServerToolItemType 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.OutputBrowserUseServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputBrowserUseServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputBrowserUseServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputBrowserUseServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputBrowserUseServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBrowserUseServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBrowserUseServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..b231d3a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputBrowserUseServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputBrowserUseServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputBrowserUseServerToolItemType? 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.OutputBrowserUseServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputBrowserUseServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputBrowserUseServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputBrowserUseServerToolItemType? 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.OutputBrowserUseServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputCodeInterpreterServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputCodeInterpreterServerToolItemType.g.cs new file mode 100644 index 0000000..b790e02 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputCodeInterpreterServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputCodeInterpreterServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputCodeInterpreterServerToolItemType 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.OutputCodeInterpreterServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputCodeInterpreterServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputCodeInterpreterServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputCodeInterpreterServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputCodeInterpreterServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputCodeInterpreterServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputCodeInterpreterServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..f60acb6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputCodeInterpreterServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputCodeInterpreterServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputCodeInterpreterServerToolItemType? 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.OutputCodeInterpreterServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputCodeInterpreterServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputCodeInterpreterServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputCodeInterpreterServerToolItemType? 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.OutputCodeInterpreterServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemStatus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemStatus.g.cs new file mode 100644 index 0000000..7f8a285 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputComputerCallItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputComputerCallItemStatus 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.OutputComputerCallItemStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputComputerCallItemStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputComputerCallItemStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputComputerCallItemStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputComputerCallItemStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemStatusNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemStatusNullable.g.cs new file mode 100644 index 0000000..8e3b17b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputComputerCallItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputComputerCallItemStatus? 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.OutputComputerCallItemStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputComputerCallItemStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputComputerCallItemStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputComputerCallItemStatus? 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.OutputComputerCallItemStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemType.g.cs new file mode 100644 index 0000000..0029189 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputComputerCallItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputComputerCallItemType 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.OutputComputerCallItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputComputerCallItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputComputerCallItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputComputerCallItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputComputerCallItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemTypeNullable.g.cs new file mode 100644 index 0000000..761eb05 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputComputerCallItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputComputerCallItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputComputerCallItemType? 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.OutputComputerCallItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputComputerCallItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputComputerCallItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputComputerCallItemType? 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.OutputComputerCallItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputFileSearchServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputFileSearchServerToolItemType.g.cs new file mode 100644 index 0000000..0640dd3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputFileSearchServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputFileSearchServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputFileSearchServerToolItemType 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.OutputFileSearchServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputFileSearchServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputFileSearchServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputFileSearchServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputFileSearchServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputFileSearchServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputFileSearchServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..2bcb14e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputFileSearchServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputFileSearchServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputFileSearchServerToolItemType? 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.OutputFileSearchServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputFileSearchServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputFileSearchServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputFileSearchServerToolItemType? 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.OutputFileSearchServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputImageGenerationServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputImageGenerationServerToolItemType.g.cs new file mode 100644 index 0000000..ab59f71 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputImageGenerationServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputImageGenerationServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputImageGenerationServerToolItemType 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.OutputImageGenerationServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputImageGenerationServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputImageGenerationServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputImageGenerationServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputImageGenerationServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputImageGenerationServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputImageGenerationServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..9299581 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputImageGenerationServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputImageGenerationServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputImageGenerationServerToolItemType? 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.OutputImageGenerationServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputImageGenerationServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputImageGenerationServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputImageGenerationServerToolItemType? 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.OutputImageGenerationServerToolItemTypeExtensions.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 7fefbc0..5ee6a0e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs @@ -27,53 +27,139 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J } var __score0 = 0; + if (__jsonProps.Contains("code")) __score0++; + if (__jsonProps.Contains("container_id")) __score0++; if (__jsonProps.Contains("id")) __score0++; - if (__jsonProps.Contains("queries")) __score0++; + if (__jsonProps.Contains("outputs")) __score0++; if (__jsonProps.Contains("status")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; - if (__jsonProps.Contains("arguments")) __score1++; + if (__jsonProps.Contains("action")) __score1++; if (__jsonProps.Contains("call_id")) __score1++; if (__jsonProps.Contains("id")) __score1++; - if (__jsonProps.Contains("name")) __score1++; + if (__jsonProps.Contains("pending_safety_checks")) __score1++; if (__jsonProps.Contains("status")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("id")) __score2++; - if (__jsonProps.Contains("result")) __score2++; + if (__jsonProps.Contains("queries")) __score2++; if (__jsonProps.Contains("status")) __score2++; if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; - if (__jsonProps.Contains("content")) __score3++; + if (__jsonProps.Contains("arguments")) __score3++; + if (__jsonProps.Contains("call_id")) __score3++; if (__jsonProps.Contains("id")) __score3++; - if (__jsonProps.Contains("phase")) __score3++; - if (__jsonProps.Contains("role")) __score3++; + if (__jsonProps.Contains("name")) __score3++; if (__jsonProps.Contains("status")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __score4 = 0; - if (__jsonProps.Contains("datetime")) __score4++; if (__jsonProps.Contains("id")) __score4++; + if (__jsonProps.Contains("result")) __score4++; if (__jsonProps.Contains("status")) __score4++; - if (__jsonProps.Contains("timezone")) __score4++; if (__jsonProps.Contains("type")) __score4++; var __score5 = 0; + if (__jsonProps.Contains("content")) __score5++; if (__jsonProps.Contains("id")) __score5++; + if (__jsonProps.Contains("phase")) __score5++; + if (__jsonProps.Contains("role")) __score5++; if (__jsonProps.Contains("status")) __score5++; if (__jsonProps.Contains("type")) __score5++; var __score6 = 0; - if (__jsonProps.Contains("content")) __score6++; - if (__jsonProps.Contains("encrypted_content")) __score6++; - if (__jsonProps.Contains("format")) __score6++; + if (__jsonProps.Contains("filePath")) __score6++; if (__jsonProps.Contains("id")) __score6++; - if (__jsonProps.Contains("signature")) __score6++; + if (__jsonProps.Contains("patch")) __score6++; if (__jsonProps.Contains("status")) __score6++; - if (__jsonProps.Contains("summary")) __score6++; if (__jsonProps.Contains("type")) __score6++; var __score7 = 0; - if (__jsonProps.Contains("action")) __score7++; + if (__jsonProps.Contains("command")) __score7++; + if (__jsonProps.Contains("exitCode")) __score7++; if (__jsonProps.Contains("id")) __score7++; if (__jsonProps.Contains("status")) __score7++; + if (__jsonProps.Contains("stderr")) __score7++; + if (__jsonProps.Contains("stdout")) __score7++; if (__jsonProps.Contains("type")) __score7++; + var __score8 = 0; + if (__jsonProps.Contains("action")) __score8++; + if (__jsonProps.Contains("id")) __score8++; + if (__jsonProps.Contains("screenshotB64")) __score8++; + if (__jsonProps.Contains("status")) __score8++; + if (__jsonProps.Contains("type")) __score8++; + var __score9 = 0; + if (__jsonProps.Contains("code")) __score9++; + if (__jsonProps.Contains("exitCode")) __score9++; + if (__jsonProps.Contains("id")) __score9++; + if (__jsonProps.Contains("language")) __score9++; + if (__jsonProps.Contains("status")) __score9++; + if (__jsonProps.Contains("stderr")) __score9++; + if (__jsonProps.Contains("stdout")) __score9++; + if (__jsonProps.Contains("type")) __score9++; + var __score10 = 0; + if (__jsonProps.Contains("datetime")) __score10++; + if (__jsonProps.Contains("id")) __score10++; + if (__jsonProps.Contains("status")) __score10++; + if (__jsonProps.Contains("timezone")) __score10++; + if (__jsonProps.Contains("type")) __score10++; + var __score11 = 0; + if (__jsonProps.Contains("id")) __score11++; + if (__jsonProps.Contains("queries")) __score11++; + if (__jsonProps.Contains("status")) __score11++; + if (__jsonProps.Contains("type")) __score11++; + var __score12 = 0; + if (__jsonProps.Contains("id")) __score12++; + if (__jsonProps.Contains("imageB64")) __score12++; + if (__jsonProps.Contains("imageUrl")) __score12++; + if (__jsonProps.Contains("revisedPrompt")) __score12++; + if (__jsonProps.Contains("status")) __score12++; + if (__jsonProps.Contains("type")) __score12++; + var __score13 = 0; + if (__jsonProps.Contains("id")) __score13++; + if (__jsonProps.Contains("serverLabel")) __score13++; + if (__jsonProps.Contains("status")) __score13++; + if (__jsonProps.Contains("toolName")) __score13++; + if (__jsonProps.Contains("type")) __score13++; + var __score14 = 0; + if (__jsonProps.Contains("action")) __score14++; + if (__jsonProps.Contains("id")) __score14++; + if (__jsonProps.Contains("key")) __score14++; + if (__jsonProps.Contains("status")) __score14++; + if (__jsonProps.Contains("type")) __score14++; + if (__jsonProps.Contains("value")) __score14++; + var __score15 = 0; + if (__jsonProps.Contains("command")) __score15++; + if (__jsonProps.Contains("filePath")) __score15++; + if (__jsonProps.Contains("id")) __score15++; + if (__jsonProps.Contains("status")) __score15++; + if (__jsonProps.Contains("type")) __score15++; + var __score16 = 0; + if (__jsonProps.Contains("id")) __score16++; + if (__jsonProps.Contains("query")) __score16++; + if (__jsonProps.Contains("status")) __score16++; + if (__jsonProps.Contains("type")) __score16++; + var __score17 = 0; + if (__jsonProps.Contains("content")) __score17++; + if (__jsonProps.Contains("id")) __score17++; + if (__jsonProps.Contains("status")) __score17++; + if (__jsonProps.Contains("title")) __score17++; + if (__jsonProps.Contains("type")) __score17++; + if (__jsonProps.Contains("url")) __score17++; + var __score18 = 0; + if (__jsonProps.Contains("id")) __score18++; + if (__jsonProps.Contains("status")) __score18++; + if (__jsonProps.Contains("type")) __score18++; + var __score19 = 0; + if (__jsonProps.Contains("content")) __score19++; + if (__jsonProps.Contains("encrypted_content")) __score19++; + if (__jsonProps.Contains("format")) __score19++; + if (__jsonProps.Contains("id")) __score19++; + if (__jsonProps.Contains("signature")) __score19++; + if (__jsonProps.Contains("status")) __score19++; + if (__jsonProps.Contains("summary")) __score19++; + if (__jsonProps.Contains("type")) __score19++; + var __score20 = 0; + if (__jsonProps.Contains("action")) __score20++; + if (__jsonProps.Contains("id")) __score20++; + if (__jsonProps.Contains("status")) __score20++; + if (__jsonProps.Contains("type")) __score20++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -84,15 +170,41 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J 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; } + if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } + if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } + if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } + if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } + if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } + if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } + if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } + 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.OutputItemsVariant1? fileSearchCall = default; - global::OpenRouter.OutputItemsVariant2? functionCall = default; - global::OpenRouter.OutputItemsVariant3? imageGenerationCall = default; - global::OpenRouter.OutputItemsVariant4? message = default; - global::OpenRouter.OutputItemsVariant5? openrouterDatetime = default; - global::OpenRouter.OutputItemsVariant6? openrouterWebSearch = default; - global::OpenRouter.OutputItemsVariant7? reasoning = default; - global::OpenRouter.OutputItemsVariant8? webSearchCall = default; + global::OpenRouter.OutputItemsVariant1? codeInterpreterCall = default; + global::OpenRouter.OutputItemsVariant2? computerCall = default; + global::OpenRouter.OutputItemsVariant3? fileSearchCall = default; + global::OpenRouter.OutputItemsVariant4? functionCall = default; + global::OpenRouter.OutputItemsVariant5? imageGenerationCall = default; + global::OpenRouter.OutputItemsVariant6? message = default; + global::OpenRouter.OutputItemsVariant7? openrouterApplyPatch = default; + global::OpenRouter.OutputItemsVariant8? openrouterBash = default; + global::OpenRouter.OutputItemsVariant9? openrouterBrowserUse = default; + global::OpenRouter.OutputItemsVariant10? openrouterCodeInterpreter = default; + global::OpenRouter.OutputItemsVariant11? openrouterDatetime = default; + global::OpenRouter.OutputItemsVariant12? openrouterFileSearch = default; + global::OpenRouter.OutputItemsVariant13? openrouterImageGeneration = default; + global::OpenRouter.OutputItemsVariant14? openrouterMcp = default; + global::OpenRouter.OutputItemsVariant15? openrouterMemory = default; + global::OpenRouter.OutputItemsVariant16? openrouterTextEditor = default; + global::OpenRouter.OutputItemsVariant17? openrouterToolSearch = default; + global::OpenRouter.OutputItemsVariant18? openrouterWebFetch = default; + global::OpenRouter.OutputItemsVariant19? openrouterWebSearch = default; + global::OpenRouter.OutputItemsVariant20? reasoning = default; + global::OpenRouter.OutputItemsVariant21? webSearchCall = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -101,7 +213,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -116,7 +228,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -131,7 +243,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -146,7 +258,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -161,7 +273,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - openrouterDatetime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -176,7 +288,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - openrouterWebSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -191,7 +303,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + openrouterApplyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -206,6 +318,201 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); + openrouterBash = 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.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}"); + openrouterBrowserUse = 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.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}"); + openrouterCodeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 10) + { + try + { + 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}"); + openrouterDatetime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 11) + { + try + { + 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}"); + openrouterFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 12) + { + try + { + 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}"); + openrouterImageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 13) + { + try + { + 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}"); + openrouterMcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 14) + { + try + { + 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}"); + openrouterMemory = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 15) + { + try + { + 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}"); + openrouterTextEditor = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 16) + { + try + { + 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}"); + openrouterToolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 17) + { + try + { + 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}"); + openrouterWebFetch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 18) + { + try + { + 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}"); + openrouterWebSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 19) + { + try + { + 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}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 20) + { + try + { + 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}"); webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) @@ -217,13 +524,13 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J } } - if (fileSearchCall == null && functionCall == null && imageGenerationCall == null && message == null && openrouterDatetime == null && openrouterWebSearch == null && reasoning == null && webSearchCall == null) + if (codeInterpreterCall == null && computerCall == null && fileSearchCall == null && functionCall == null && imageGenerationCall == null && message == null && openrouterApplyPatch == null && openrouterBash == null && openrouterBrowserUse == null && openrouterCodeInterpreter == null && openrouterDatetime == null && openrouterFileSearch == null && openrouterImageGeneration == null && openrouterMcp == null && openrouterMemory == null && openrouterTextEditor == null && openrouterToolSearch == null && openrouterWebFetch == null && openrouterWebSearch == null && reasoning == null && webSearchCall == null) { try { 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}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -236,7 +543,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -249,7 +556,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -262,7 +569,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -275,7 +582,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - openrouterDatetime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -288,7 +595,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - openrouterWebSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -301,7 +608,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + openrouterApplyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -314,6 +621,175 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J { 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}"); + openrouterBash = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterBrowserUse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterCodeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterDatetime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterImageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterMcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterMemory = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterTextEditor = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterToolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterWebFetch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + openrouterWebSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + 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}"); webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) @@ -325,6 +801,10 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J } var __value = new global::OpenRouter.OutputItems( + codeInterpreterCall, + + computerCall, + fileSearchCall, functionCall, @@ -333,8 +813,30 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J message, + openrouterApplyPatch, + + openrouterBash, + + openrouterBrowserUse, + + openrouterCodeInterpreter, + openrouterDatetime, + openrouterFileSearch, + + openrouterImageGeneration, + + openrouterMcp, + + openrouterMemory, + + openrouterTextEditor, + + openrouterToolSearch, + + openrouterWebFetch, + openrouterWebSearch, reasoning, @@ -354,52 +856,130 @@ 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.IsFileSearchCall) + if (value.IsCodeInterpreterCall) { 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.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); } - else if (value.IsFunctionCall) + else if (value.IsComputerCall) { 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.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); } - else if (value.IsImageGenerationCall) + else if (value.IsFileSearchCall) { 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.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); } - else if (value.IsMessage) + else if (value.IsFunctionCall) { 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.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); } - else if (value.IsOpenrouterDatetime) + else if (value.IsImageGenerationCall) { 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.OpenrouterDatetime!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); } - else if (value.IsOpenrouterWebSearch) + else if (value.IsMessage) { 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.OpenrouterWebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); } - else if (value.IsReasoning) + else if (value.IsOpenrouterApplyPatch) { 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.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterApplyPatch!, typeInfo); } - else if (value.IsWebSearchCall) + else if (value.IsOpenrouterBash) { 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.OpenrouterBash!, typeInfo); + } + else if (value.IsOpenrouterBrowserUse) + { + 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.OpenrouterBrowserUse!, typeInfo); + } + else if (value.IsOpenrouterCodeInterpreter) + { + 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.OpenrouterCodeInterpreter!, typeInfo); + } + else if (value.IsOpenrouterDatetime) + { + 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.OpenrouterDatetime!, typeInfo); + } + else if (value.IsOpenrouterFileSearch) + { + 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.OpenrouterFileSearch!, typeInfo); + } + else if (value.IsOpenrouterImageGeneration) + { + 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.OpenrouterImageGeneration!, typeInfo); + } + else if (value.IsOpenrouterMcp) + { + 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.OpenrouterMcp!, typeInfo); + } + else if (value.IsOpenrouterMemory) + { + 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.OpenrouterMemory!, typeInfo); + } + else if (value.IsOpenrouterTextEditor) + { + 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.OpenrouterTextEditor!, typeInfo); + } + else if (value.IsOpenrouterToolSearch) + { + 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.OpenrouterToolSearch!, typeInfo); + } + else if (value.IsOpenrouterWebFetch) + { + 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.OpenrouterWebFetch!, typeInfo); + } + else if (value.IsOpenrouterWebSearch) + { + 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.OpenrouterWebSearch!, typeInfo); + } + else if (value.IsReasoning) + { + 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.Reasoning!, typeInfo); + } + else if (value.IsWebSearchCall) + { + 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.WebSearchCall!, typeInfo); } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMcpServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMcpServerToolItemType.g.cs new file mode 100644 index 0000000..6e23556 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMcpServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputMcpServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputMcpServerToolItemType 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.OutputMcpServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputMcpServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputMcpServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputMcpServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputMcpServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMcpServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMcpServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..a951430 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMcpServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputMcpServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputMcpServerToolItemType? 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.OutputMcpServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputMcpServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputMcpServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputMcpServerToolItemType? 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.OutputMcpServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemAction.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemAction.g.cs new file mode 100644 index 0000000..8a75acc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemAction.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputMemoryServerToolItemActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputMemoryServerToolItemAction 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.OutputMemoryServerToolItemActionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputMemoryServerToolItemAction)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputMemoryServerToolItemAction); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputMemoryServerToolItemAction value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputMemoryServerToolItemActionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemActionNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemActionNullable.g.cs new file mode 100644 index 0000000..52e026a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemActionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputMemoryServerToolItemActionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputMemoryServerToolItemAction? 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.OutputMemoryServerToolItemActionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputMemoryServerToolItemAction)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputMemoryServerToolItemAction?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputMemoryServerToolItemAction? 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.OutputMemoryServerToolItemActionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemType.g.cs new file mode 100644 index 0000000..18f68ae --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputMemoryServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputMemoryServerToolItemType 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.OutputMemoryServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputMemoryServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputMemoryServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputMemoryServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputMemoryServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..b011df2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputMemoryServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputMemoryServerToolItemType? 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.OutputMemoryServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputMemoryServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputMemoryServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputMemoryServerToolItemType? 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.OutputMemoryServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommand.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommand.g.cs new file mode 100644 index 0000000..aaf07e9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommand.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputTextEditorServerToolItemCommandJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputTextEditorServerToolItemCommand 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.OutputTextEditorServerToolItemCommandExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputTextEditorServerToolItemCommand)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputTextEditorServerToolItemCommand); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputTextEditorServerToolItemCommand value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputTextEditorServerToolItemCommandExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandNullable.g.cs new file mode 100644 index 0000000..9ce0bd6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputTextEditorServerToolItemCommandNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputTextEditorServerToolItemCommand? 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.OutputTextEditorServerToolItemCommandExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputTextEditorServerToolItemCommand)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputTextEditorServerToolItemCommand?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputTextEditorServerToolItemCommand? 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.OutputTextEditorServerToolItemCommandExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemType.g.cs new file mode 100644 index 0000000..cb58b6e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputTextEditorServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputTextEditorServerToolItemType 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.OutputTextEditorServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputTextEditorServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputTextEditorServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputTextEditorServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputTextEditorServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..0bbb317 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputTextEditorServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputTextEditorServerToolItemType? 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.OutputTextEditorServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputTextEditorServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputTextEditorServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputTextEditorServerToolItemType? 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.OutputTextEditorServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputToolSearchServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputToolSearchServerToolItemType.g.cs new file mode 100644 index 0000000..efd6780 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputToolSearchServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputToolSearchServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputToolSearchServerToolItemType 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.OutputToolSearchServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputToolSearchServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputToolSearchServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputToolSearchServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputToolSearchServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..cc28438 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputToolSearchServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputToolSearchServerToolItemType? 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.OutputToolSearchServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputToolSearchServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputToolSearchServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputToolSearchServerToolItemType? 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.OutputToolSearchServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputWebFetchServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputWebFetchServerToolItemType.g.cs new file mode 100644 index 0000000..4aee435 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputWebFetchServerToolItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputWebFetchServerToolItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputWebFetchServerToolItemType 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.OutputWebFetchServerToolItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputWebFetchServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputWebFetchServerToolItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputWebFetchServerToolItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputWebFetchServerToolItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeNullable.g.cs new file mode 100644 index 0000000..1cec79c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputWebFetchServerToolItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputWebFetchServerToolItemType? 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.OutputWebFetchServerToolItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputWebFetchServerToolItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputWebFetchServerToolItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputWebFetchServerToolItemType? 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.OutputWebFetchServerToolItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index c1b6319..be71b0e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -597,6 +597,78 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.TruncationNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputComputerCallItemStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputComputerCallItemStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputComputerCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputComputerCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputApplyPatchServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputApplyPatchServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputBashServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputBashServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputBrowserUseServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputBrowserUseServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFileSearchServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFileSearchServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputImageGenerationServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputImageGenerationServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMcpServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMcpServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemActionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemActionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodJsonConverter), typeof(global::OpenRouter.JsonConverters.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodNullableJsonConverter), @@ -1431,6 +1503,8 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.BaseResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestImageConfigJsonConverter), @@ -1870,7 +1944,7 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolFormat), TypeInfoPropertyName = "CustomToolFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolType), TypeInfoPropertyName = "CustomToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatetimeServerToolParameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatetimeServerToolConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatetimeServerToolType), TypeInfoPropertyName = "DatetimeServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatetimeServerTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolOpenRouterParameters))] @@ -1934,15 +2008,52 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesUsageInputTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type), TypeInfoPropertyName = "CodeInterpreterCallItemOutputsItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type), TypeInfoPropertyName = "CodeInterpreterCallItemOutputsItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems), TypeInfoPropertyName = "CodeInterpreterCallItemOutputsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterCallItemType), TypeInfoPropertyName = "CodeInterpreterCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputComputerCallItemPendingSafetyChecksItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputComputerCallItemStatus), TypeInfoPropertyName = "OutputComputerCallItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputComputerCallItemType), TypeInfoPropertyName = "OutputComputerCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputApplyPatchServerToolItemType), TypeInfoPropertyName = "OutputApplyPatchServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputBashServerToolItemType), TypeInfoPropertyName = "OutputBashServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputBrowserUseServerToolItemType), TypeInfoPropertyName = "OutputBrowserUseServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputCodeInterpreterServerToolItemType), TypeInfoPropertyName = "OutputCodeInterpreterServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFileSearchServerToolItemType), TypeInfoPropertyName = "OutputFileSearchServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputImageGenerationServerToolItemType), TypeInfoPropertyName = "OutputImageGenerationServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMcpServerToolItemType), TypeInfoPropertyName = "OutputMcpServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMemoryServerToolItemAction), TypeInfoPropertyName = "OutputMemoryServerToolItemAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMemoryServerToolItemType), TypeInfoPropertyName = "OutputMemoryServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputTextEditorServerToolItemCommand), TypeInfoPropertyName = "OutputTextEditorServerToolItemCommand2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputTextEditorServerToolItemType), TypeInfoPropertyName = "OutputTextEditorServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputToolSearchServerToolItemType), TypeInfoPropertyName = "OutputToolSearchServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebFetchServerToolItemType), TypeInfoPropertyName = "OutputWebFetchServerToolItemType2")] [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::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant4))] [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::OpenRouter.OutputItemsVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant11))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant14))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant15))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant16))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant17))] + [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))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant21))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UsageCostDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Usage))] @@ -2594,6 +2705,8 @@ namespace OpenRouter [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))] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index 68d7999..48626b6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -1188,7 +1188,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.DatetimeServerToolParameters? Type290 { get; set; } + public global::OpenRouter.DatetimeServerToolConfig? Type290 { get; set; } /// /// /// @@ -1444,2531 +1444,2679 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.OutputItems? Type354 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type? Type354 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant1? Type355 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItems0? Type355 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant2? Type356 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type? Type356 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant3? Type357 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItems1? Type357 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant4? Type358 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItems? Type358 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant5? Type359 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemType? Type359 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant6? Type360 { get; set; } + public global::OpenRouter.OutputComputerCallItemPendingSafetyChecksItems? Type360 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant7? Type361 { get; set; } + public global::OpenRouter.OutputComputerCallItemStatus? Type361 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant8? Type362 { get; set; } + public global::OpenRouter.OutputComputerCallItemType? Type362 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminator? Type363 { get; set; } + public global::OpenRouter.OutputApplyPatchServerToolItemType? Type363 { get; set; } /// /// /// - public global::OpenRouter.UsageCostDetails? Type364 { get; set; } + public global::OpenRouter.OutputBashServerToolItemType? Type364 { get; set; } /// /// /// - public global::OpenRouter.Usage? Type365 { get; set; } + public global::OpenRouter.OutputBrowserUseServerToolItemType? Type365 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResult? Type366 { get; set; } + public global::OpenRouter.OutputCodeInterpreterServerToolItemType? Type366 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type367 { get; set; } + public global::OpenRouter.OutputFileSearchServerToolItemType? Type367 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type368 { get; set; } + public global::OpenRouter.OutputImageGenerationServerToolItemType? Type368 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponseErrorData? Type369 { get; set; } + public global::OpenRouter.OutputMcpServerToolItemType? Type369 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponse? Type370 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemAction? Type370 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponseErrorData? Type371 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemType? Type371 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponse? Type372 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type372 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponseErrorData? Type373 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemType? Type373 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponse? Type374 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItemType? Type374 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponseErrorData? Type375 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItemType? Type375 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponse? Type376 { get; set; } + public global::OpenRouter.OutputItems? Type376 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponseErrorData? Type377 { get; set; } + public global::OpenRouter.OutputItemsVariant1? Type377 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponse? Type378 { get; set; } + public global::System.Collections.Generic.IList? Type378 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponseErrorData? Type379 { get; set; } + public global::OpenRouter.OutputItemsVariant2? Type379 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponse? Type380 { get; set; } + public global::System.Collections.Generic.IList? Type380 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponseErrorData? Type381 { get; set; } + public global::OpenRouter.OutputItemsVariant3? Type381 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponse? Type382 { get; set; } + public global::OpenRouter.OutputItemsVariant4? Type382 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponseErrorData? Type383 { get; set; } + public global::OpenRouter.OutputItemsVariant5? Type383 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponse? Type384 { get; set; } + public global::OpenRouter.OutputItemsVariant6? Type384 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponseErrorData? Type385 { get; set; } + public global::OpenRouter.OutputItemsVariant7? Type385 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponse? Type386 { get; set; } + public global::OpenRouter.OutputItemsVariant8? Type386 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponseErrorData? Type387 { get; set; } + public global::OpenRouter.OutputItemsVariant9? Type387 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponse? Type388 { get; set; } + public global::OpenRouter.OutputItemsVariant10? Type388 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponseErrorData? Type389 { get; set; } + public global::OpenRouter.OutputItemsVariant11? Type389 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponse? Type390 { get; set; } + public global::OpenRouter.OutputItemsVariant12? Type390 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type391 { get; set; } + public global::OpenRouter.OutputItemsVariant13? Type391 { get; set; } /// /// /// - public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type392 { get; set; } + public global::OpenRouter.OutputItemsVariant14? Type392 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponseErrorData? Type393 { get; set; } + public global::OpenRouter.OutputItemsVariant15? Type393 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponse? Type394 { get; set; } + public global::OpenRouter.OutputItemsVariant16? Type394 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type395 { get; set; } + public global::OpenRouter.OutputItemsVariant17? Type395 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type396 { get; set; } + public global::OpenRouter.OutputItemsVariant18? Type396 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type397 { get; set; } + public global::OpenRouter.OutputItemsVariant19? Type397 { get; set; } /// /// /// - public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type398 { get; set; } + public global::OpenRouter.OutputItemsVariant20? Type398 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponseErrorData? Type399 { get; set; } + public global::OpenRouter.OutputItemsVariant21? Type399 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponse? Type400 { get; set; } + public global::OpenRouter.OutputItemsDiscriminator? Type400 { get; set; } /// /// /// - public global::OpenRouter.ActivityItem? Type401 { get; set; } + public global::OpenRouter.UsageCostDetails? Type401 { get; set; } /// /// /// - public global::OpenRouter.ActivityResponse? Type402 { get; set; } + public global::OpenRouter.Usage? Type402 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type403 { get; set; } + public global::OpenRouter.OpenResponsesResult? Type403 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheControlTtl? Type404 { get; set; } + public global::System.Collections.Generic.IList? Type404 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheControlDirectiveType? Type405 { get; set; } + public global::System.Collections.Generic.IList? Type405 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestCacheControl? Type406 { get; set; } + public global::OpenRouter.BadRequestResponseErrorData? Type406 { get; set; } /// /// /// - public global::OpenRouter.ChatDebugOptions? Type407 { get; set; } + public global::OpenRouter.BadRequestResponse? Type407 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestImageConfig? Type408 { get; set; } + public global::OpenRouter.UnauthorizedResponseErrorData? Type408 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControl? Type409 { get; set; } + public global::OpenRouter.UnauthorizedResponse? Type409 { get; set; } /// /// /// - public global::OpenRouter.ChatContentTextType? Type410 { get; set; } + public global::OpenRouter.PaymentRequiredResponseErrorData? Type410 { get; set; } /// /// /// - public global::OpenRouter.ChatContentText? Type411 { get; set; } + public global::OpenRouter.PaymentRequiredResponse? Type411 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type412 { get; set; } + public global::OpenRouter.NotFoundResponseErrorData? Type412 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageContent? Type413 { get; set; } + public global::OpenRouter.NotFoundResponse? Type413 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageRole? Type414 { get; set; } + public global::OpenRouter.RequestTimeoutResponseErrorData? Type414 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessage? Type415 { get; set; } + public global::OpenRouter.RequestTimeoutResponse? Type415 { get; set; } /// /// /// - public global::OpenRouter.ChatContentImageImageUrlDetail? Type416 { get; set; } + public global::OpenRouter.PayloadTooLargeResponseErrorData? Type416 { get; set; } /// /// /// - public global::OpenRouter.ChatContentImageImageUrl? Type417 { get; set; } + public global::OpenRouter.PayloadTooLargeResponse? Type417 { get; set; } /// /// /// - public global::OpenRouter.ChatContentImageType? Type418 { get; set; } + public global::OpenRouter.UnprocessableEntityResponseErrorData? Type418 { get; set; } /// /// /// - public global::OpenRouter.ChatContentImage? Type419 { get; set; } + public global::OpenRouter.UnprocessableEntityResponse? Type419 { get; set; } /// /// /// - public global::OpenRouter.ChatContentAudioInputAudio? Type420 { get; set; } + public global::OpenRouter.TooManyRequestsResponseErrorData? Type420 { get; set; } /// /// /// - public global::OpenRouter.ChatContentAudioType? Type421 { get; set; } + public global::OpenRouter.TooManyRequestsResponse? Type421 { get; set; } /// /// /// - public global::OpenRouter.ChatContentAudio? Type422 { get; set; } + public global::OpenRouter.InternalServerResponseErrorData? Type422 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoType? Type423 { get; set; } + public global::OpenRouter.InternalServerResponse? Type423 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoInput? Type424 { get; set; } + public global::OpenRouter.BadGatewayResponseErrorData? Type424 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideo? Type425 { get; set; } + public global::OpenRouter.BadGatewayResponse? Type425 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoType? Type426 { get; set; } + public global::OpenRouter.ServiceUnavailableResponseErrorData? Type426 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideo? Type427 { get; set; } + public global::OpenRouter.ServiceUnavailableResponse? Type427 { get; set; } /// /// /// - public global::OpenRouter.ChatContentFileFile? Type428 { get; set; } + public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type428 { get; set; } /// /// /// - public global::OpenRouter.ChatContentFileType? Type429 { get; set; } + public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type429 { get; set; } /// /// /// - public global::OpenRouter.ChatContentFile? Type430 { get; set; } + public global::OpenRouter.ForbiddenResponseErrorData? Type430 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItems? Type431 { get; set; } + public global::OpenRouter.ForbiddenResponse? Type431 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type432 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type432 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageContent? Type433 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type433 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageRole? Type434 { get; set; } + public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type434 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessage? Type435 { get; set; } + public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type435 { get; set; } /// /// /// - public global::OpenRouter.ChatDeveloperMessageContent? Type436 { get; set; } + public global::OpenRouter.ConflictResponseErrorData? Type436 { get; set; } /// /// /// - public global::OpenRouter.ChatDeveloperMessageRole? Type437 { get; set; } + public global::OpenRouter.ConflictResponse? Type437 { get; set; } /// /// /// - public global::OpenRouter.ChatDeveloperMessage? Type438 { get; set; } + public global::OpenRouter.ActivityItem? Type438 { get; set; } /// /// /// - public global::OpenRouter.ChatAudioOutput? Type439 { get; set; } + public global::OpenRouter.ActivityResponse? Type439 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessageContent? Type440 { get; set; } + public global::System.Collections.Generic.IList? Type440 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type441 { get; set; } + public global::OpenRouter.AnthropicCacheControlTtl? Type441 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItems? Type442 { get; set; } + public global::OpenRouter.AnthropicCacheControlDirectiveType? Type442 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type443 { get; set; } + public global::OpenRouter.ChatRequestCacheControl? Type443 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailSummaryType? Type444 { get; set; } + public global::OpenRouter.ChatDebugOptions? Type444 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailSummary? Type445 { get; set; } + public global::OpenRouter.ChatRequestImageConfig? Type445 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailEncryptedType? Type446 { get; set; } + public global::OpenRouter.ChatContentCacheControl? Type446 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailEncrypted? Type447 { get; set; } + public global::OpenRouter.ChatContentTextType? Type447 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailTextType? Type448 { get; set; } + public global::OpenRouter.ChatContentText? Type448 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailText? Type449 { get; set; } + public global::System.Collections.Generic.IList? Type449 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnion? Type450 { get; set; } + public global::OpenRouter.ChatSystemMessageContent? Type450 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type451 { get; set; } + public global::OpenRouter.ChatSystemMessageRole? Type451 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessageRole? Type452 { get; set; } + public global::OpenRouter.ChatSystemMessage? Type452 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallFunction? Type453 { get; set; } + public global::OpenRouter.ChatContentImageImageUrlDetail? Type453 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallType? Type454 { get; set; } + public global::OpenRouter.ChatContentImageImageUrl? Type454 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCall? Type455 { get; set; } + public global::OpenRouter.ChatContentImageType? Type455 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessage? Type456 { get; set; } + public global::OpenRouter.ChatContentImage? Type456 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type457 { get; set; } + public global::OpenRouter.ChatContentAudioInputAudio? Type457 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageContent? Type458 { get; set; } + public global::OpenRouter.ChatContentAudioType? Type458 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageRole? Type459 { get; set; } + public global::OpenRouter.ChatContentAudio? Type459 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessage? Type460 { get; set; } + public global::OpenRouter.LegacyChatContentVideoType? Type460 { get; set; } /// /// /// - public global::OpenRouter.ChatMessages? Type461 { get; set; } + public global::OpenRouter.ChatContentVideoInput? Type461 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestModalitiesItems? Type462 { get; set; } + public global::OpenRouter.LegacyChatContentVideo? Type462 { get; set; } /// /// /// - public global::OpenRouter.ChatModelNamesItems? Type463 { get; set; } + public global::OpenRouter.ChatContentVideoType? Type463 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type464 { get; set; } + public global::OpenRouter.ChatContentVideo? Type464 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItems? Type465 { get; set; } + public global::OpenRouter.ChatContentFileFile? Type465 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoningEffort? Type466 { get; set; } + public global::OpenRouter.ChatContentFileType? Type466 { get; set; } /// /// /// - public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type467 { get; set; } + public global::OpenRouter.ChatContentFile? Type467 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoning? Type468 { get; set; } + public global::OpenRouter.ChatContentItems? Type468 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type469 { get; set; } + public global::System.Collections.Generic.IList? Type469 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatTextConfigType? Type470 { get; set; } + public global::OpenRouter.ChatUserMessageContent? Type470 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatTextConfig? Type471 { get; set; } + public global::OpenRouter.ChatUserMessageRole? Type471 { get; set; } /// /// /// - public global::OpenRouter.ChatJsonSchemaConfig? Type472 { get; set; } + public global::OpenRouter.ChatUserMessage? Type472 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatJsonSchemaConfigType? Type473 { get; set; } + public global::OpenRouter.ChatDeveloperMessageContent? Type473 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatJsonSchemaConfig? Type474 { get; set; } + public global::OpenRouter.ChatDeveloperMessageRole? Type474 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatGrammarConfigType? Type475 { get; set; } + public global::OpenRouter.ChatDeveloperMessage? Type475 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatGrammarConfig? Type476 { get; set; } + public global::OpenRouter.ChatAudioOutput? Type476 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatPythonConfigType? Type477 { get; set; } + public global::OpenRouter.ChatAssistantMessageContent? Type477 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatPythonConfig? Type478 { get; set; } + public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type478 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormat? Type479 { get; set; } + public global::OpenRouter.ChatAssistantImagesItems? Type479 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestServiceTier? Type480 { get; set; } + public global::System.Collections.Generic.IList? Type480 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestStop? Type481 { get; set; } + public global::OpenRouter.ReasoningDetailSummaryType? Type481 { get; set; } /// /// /// - public global::OpenRouter.ChatStreamOptions? Type482 { get; set; } + public global::OpenRouter.ReasoningDetailSummary? Type482 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice0? Type483 { get; set; } + public global::OpenRouter.ReasoningDetailEncryptedType? Type483 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice1? Type484 { get; set; } + public global::OpenRouter.ReasoningDetailEncrypted? Type484 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice2? Type485 { get; set; } + public global::OpenRouter.ReasoningDetailTextType? Type485 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceFunction? Type486 { get; set; } + public global::OpenRouter.ReasoningDetailText? Type486 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceType? Type487 { get; set; } + public global::OpenRouter.ReasoningDetailUnion? Type487 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoice? Type488 { get; set; } + public global::System.Collections.Generic.IList? Type488 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice? Type489 { get; set; } + public global::OpenRouter.ChatAssistantMessageRole? Type489 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Function? Type490 { get; set; } + public global::OpenRouter.ChatToolCallFunction? Type490 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Type? Type491 { get; set; } + public global::OpenRouter.ChatToolCallType? Type491 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool0? Type492 { get; set; } + public global::OpenRouter.ChatToolCall? Type492 { get; set; } /// /// /// - public global::OpenRouter.SearchQualityLevel? Type493 { get; set; } + public global::OpenRouter.ChatAssistantMessage? Type493 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationServerToolType? Type494 { get; set; } + public global::System.Collections.Generic.IList? Type494 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationServerTool? Type495 { get; set; } + public global::OpenRouter.ChatToolMessageContent? Type495 { get; set; } /// /// /// - public global::OpenRouter.WebSearchConfig? Type496 { get; set; } + public global::OpenRouter.ChatToolMessageRole? Type496 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerToolType? Type497 { get; set; } + public global::OpenRouter.ChatToolMessage? Type497 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerTool? Type498 { get; set; } + public global::OpenRouter.ChatMessages? Type498 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthandType? Type499 { get; set; } + public global::OpenRouter.ChatRequestModalitiesItems? Type499 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthand? Type500 { get; set; } + public global::OpenRouter.ChatModelNamesItems? Type500 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool? Type501 { get; set; } + public global::System.Collections.Generic.IList? Type501 { get; set; } /// /// /// - public global::OpenRouter.ChatRequest? Type502 { get; set; } + public global::OpenRouter.ChatRequestPluginsItems? Type502 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type503 { get; set; } + public global::OpenRouter.ChatRequestReasoningEffort? Type503 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type504 { get; set; } + public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type504 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type505 { get; set; } + public global::OpenRouter.ChatRequestReasoning? Type505 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type506 { get; set; } + public global::OpenRouter.OneOf? Type506 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type507 { get; set; } + public global::OpenRouter.ChatFormatTextConfigType? Type507 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type508 { get; set; } + public global::OpenRouter.ChatFormatTextConfig? Type508 { get; set; } /// /// /// - public global::OpenRouter.ChatFinishReasonEnum? Type509 { get; set; } + public global::OpenRouter.ChatJsonSchemaConfig? Type509 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type510 { get; set; } + public global::OpenRouter.ChatFormatJsonSchemaConfigType? Type510 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprob? Type511 { get; set; } + public global::OpenRouter.ChatFormatJsonSchemaConfig? Type511 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type512 { get; set; } + public global::OpenRouter.ChatFormatGrammarConfigType? Type512 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobs? Type513 { get; set; } + public global::OpenRouter.ChatFormatGrammarConfig? Type513 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type514 { get; set; } + public global::OpenRouter.ChatFormatPythonConfigType? Type514 { get; set; } /// /// /// - public global::OpenRouter.ChatChoice? Type515 { get; set; } + public global::OpenRouter.ChatFormatPythonConfig? Type515 { get; set; } /// /// /// - public global::OpenRouter.ChatResultObject? Type516 { get; set; } + public global::OpenRouter.ChatRequestResponseFormat? Type516 { get; set; } /// /// /// - public global::OpenRouter.ChatUsageCompletionTokensDetails? Type517 { get; set; } + public global::OpenRouter.ChatRequestServiceTier? Type517 { get; set; } /// /// /// - public global::OpenRouter.ChatUsagePromptTokensDetails? Type518 { get; set; } + public global::OpenRouter.ChatRequestStop? Type518 { get; set; } /// /// /// - public global::OpenRouter.ChatUsage? Type519 { get; set; } + public global::OpenRouter.ChatStreamOptions? Type519 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type520 { get; set; } + public global::OpenRouter.ChatToolChoice0? Type520 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type521 { get; set; } + public global::OpenRouter.ChatToolChoice1? Type521 { get; set; } /// /// /// - public global::OpenRouter.ChatResult? Type522 { get; set; } + public global::OpenRouter.ChatToolChoice2? Type522 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type523 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceFunction? Type523 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type524 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceType? Type524 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type525 { get; set; } + public global::OpenRouter.ChatNamedToolChoice? Type525 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetCreditsResponse200? Type526 { get; set; } + public global::OpenRouter.ChatToolChoice? Type526 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type527 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Function? Type527 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type528 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Type? Type528 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type529 { get; set; } + public global::OpenRouter.ChatFunctionTool0? Type529 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type530 { get; set; } + public global::OpenRouter.SearchQualityLevel? Type530 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type531 { get; set; } + public global::OpenRouter.WebSearchUserLocationServerToolType? Type531 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type532 { get; set; } + public global::OpenRouter.WebSearchUserLocationServerTool? Type532 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type533 { get; set; } + public global::OpenRouter.WebSearchConfig? Type533 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type534 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerToolType? Type534 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type535 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerTool? Type535 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type536 { get; set; } + public global::OpenRouter.ChatWebSearchShorthandType? Type536 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type537 { get; set; } + public global::OpenRouter.ChatWebSearchShorthand? Type537 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type538 { get; set; } + public global::OpenRouter.ChatFunctionTool? Type538 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type539 { get; set; } + public global::OpenRouter.ChatRequest? Type539 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type540 { get; set; } + public global::System.Collections.Generic.Dictionary? Type540 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type541 { get; set; } + public global::System.Collections.Generic.IList? Type541 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type542 { get; set; } + public global::System.Collections.Generic.IList? Type542 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type543 { get; set; } + public global::System.Collections.Generic.IList? Type543 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type544 { get; set; } + public global::OpenRouter.OneOf? Type544 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type545 { get; set; } + public global::System.Collections.Generic.IList? Type545 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type546 { get; set; } + public global::OpenRouter.ChatFinishReasonEnum? Type546 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type547 { get; set; } + public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type547 { get; set; } /// /// /// - public global::OpenRouter.InputModality? Type548 { get; set; } + public global::OpenRouter.ChatTokenLogprob? Type548 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitectureInstructType? Type549 { get; set; } + public global::System.Collections.Generic.IList? Type549 { get; set; } /// /// /// - public global::OpenRouter.OutputModality? Type550 { get; set; } + public global::OpenRouter.ChatTokenLogprobs? Type550 { get; set; } /// /// /// - public global::OpenRouter.ModelGroup? Type551 { get; set; } + public global::System.Collections.Generic.IList? Type551 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitecture? Type552 { get; set; } + public global::OpenRouter.ChatChoice? Type552 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type553 { get; set; } + public global::OpenRouter.ChatResultObject? Type553 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type554 { get; set; } + public global::OpenRouter.ChatUsageCompletionTokensDetails? Type554 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type555 { get; set; } + public global::OpenRouter.ChatUsagePromptTokensDetails? Type555 { get; set; } /// /// /// - public global::OpenRouter.DefaultParameters? Type556 { get; set; } + public global::OpenRouter.ChatUsage? Type556 { get; set; } /// /// /// - public global::OpenRouter.ModelLinks? Type557 { get; set; } + public global::OpenRouter.OneOf? Type557 { get; set; } /// /// /// - public global::OpenRouter.PerRequestLimits? Type558 { get; set; } + public global::OpenRouter.OneOf? Type558 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingAudio? Type559 { get; set; } + public global::OpenRouter.ChatResult? Type559 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingAudioOutput? Type560 { get; set; } + public global::System.Collections.Generic.IList? Type560 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingCompletion? Type561 { get; set; } + public global::System.DateTimeOffset? Type561 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingImage? Type562 { get; set; } + public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type562 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingImageOutput? Type563 { get; set; } + public global::OpenRouter.CreditsGetCreditsResponse200? Type563 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingImageToken? Type564 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type564 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingInputAudioCache? Type565 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type565 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingInputCacheRead? Type566 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type566 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingInputCacheWrite? Type567 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type567 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingInternalReasoning? Type568 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type568 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingPrompt? Type569 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type569 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingRequest? Type570 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type570 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingWebSearch? Type571 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type571 { get; set; } /// /// /// - public global::OpenRouter.PublicPricing? Type572 { get; set; } + public global::System.Collections.Generic.IList? Type572 { get; set; } /// /// /// - public global::OpenRouter.Parameter? Type573 { get; set; } + public global::System.Collections.Generic.IList? Type573 { get; set; } /// /// /// - public global::OpenRouter.TopProviderInfo? Type574 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type574 { get; set; } /// /// /// - public global::OpenRouter.Model? Type575 { get; set; } + public global::System.Collections.Generic.IList? Type575 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type576 { get; set; } + public global::System.Collections.Generic.IList>? Type576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type577 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type577 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponse? Type578 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type578 { get; set; } /// /// /// - public global::OpenRouter.PercentileStats? Type579 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type579 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingAudio? Type580 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type580 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingAudioOutput? Type581 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type581 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingCompletion? Type582 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type582 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingImage? Type583 { get; set; } + public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type583 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingImageOutput? Type584 { get; set; } + public global::System.Collections.Generic.IList? Type584 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingImageToken? Type585 { get; set; } + public global::OpenRouter.InputModality? Type585 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingInputAudioCache? Type586 { get; set; } + public global::OpenRouter.ModelArchitectureInstructType? Type586 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingInputCacheRead? Type587 { get; set; } + public global::OpenRouter.OutputModality? Type587 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingInputCacheWrite? Type588 { get; set; } + public global::OpenRouter.ModelGroup? Type588 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingInternalReasoning? Type589 { get; set; } + public global::OpenRouter.ModelArchitecture? Type589 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingPrompt? Type590 { get; set; } + public global::System.Collections.Generic.IList? Type590 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingRequest? Type591 { get; set; } + public global::OpenRouter.OneOf? Type591 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingWebSearch? Type592 { get; set; } + public global::System.Collections.Generic.IList? Type592 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricing? Type593 { get; set; } + public global::OpenRouter.DefaultParameters? Type593 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointQuantization? Type594 { get; set; } + public global::OpenRouter.ModelLinks? Type594 { get; set; } /// /// /// - public global::OpenRouter.EndpointStatus? Type595 { get; set; } + public global::OpenRouter.PerRequestLimits? Type595 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointThroughputLast30M? Type596 { get; set; } + public global::OpenRouter.PublicPricingAudio? Type596 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpoint? Type597 { get; set; } + public global::OpenRouter.PublicPricingAudioOutput? Type597 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type598 { get; set; } + public global::OpenRouter.PublicPricingCompletion? Type598 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type599 { get; set; } + public global::OpenRouter.PublicPricingImage? Type599 { get; set; } /// /// /// - public global::OpenRouter.InstructType2? Type600 { get; set; } + public global::OpenRouter.PublicPricingImageOutput? Type600 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitectureTokenizer? Type601 { get; set; } + public global::OpenRouter.PublicPricingImageToken? Type601 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitecture? Type602 { get; set; } + public global::OpenRouter.PublicPricingInputAudioCache? Type602 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse? Type603 { get; set; } + public global::OpenRouter.PublicPricingInputCacheRead? Type603 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsResponse200? Type604 { get; set; } + public global::OpenRouter.PublicPricingInputCacheWrite? Type604 { get; set; } /// /// /// - public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType? Type605 { get; set; } + public global::OpenRouter.PublicPricingInternalReasoning? Type605 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseProviderName? Type606 { get; set; } + public global::OpenRouter.PublicPricingPrompt? Type606 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponse? Type607 { get; set; } + public global::OpenRouter.PublicPricingRequest? Type607 { get; set; } /// /// /// - public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData? Type608 { get; set; } + public global::OpenRouter.PublicPricingWebSearch? Type608 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type609 { get; set; } + public global::OpenRouter.PublicPricing? Type609 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type610 { get; set; } + public global::OpenRouter.Parameter? Type610 { get; set; } /// /// /// - public global::OpenRouter.GenerationsGetGenerationResponse200? Type611 { get; set; } + public global::OpenRouter.TopProviderInfo? Type611 { get; set; } /// /// /// - public global::OpenRouter.GuardrailInterval? Type612 { get; set; } + public global::OpenRouter.Model? Type612 { get; set; } /// /// /// - public global::OpenRouter.Guardrail? Type613 { get; set; } + public global::System.Collections.Generic.IList? Type613 { get; set; } /// /// /// - public global::System.Guid? Type614 { get; set; } + public global::System.Collections.Generic.IList? Type614 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type615 { get; set; } + public global::OpenRouter.ModelsListResponse? Type615 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type616 { get; set; } + public global::OpenRouter.PercentileStats? Type616 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailRequest? Type617 { get; set; } + public global::OpenRouter.PublicEndpointPricingAudio? Type617 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponseData? Type618 { get; set; } + public global::OpenRouter.PublicEndpointPricingAudioOutput? Type618 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponse? Type619 { get; set; } + public global::OpenRouter.PublicEndpointPricingCompletion? Type619 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponseData? Type620 { get; set; } + public global::OpenRouter.PublicEndpointPricingImage? Type620 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type621 { get; set; } + public global::OpenRouter.PublicEndpointPricingImageOutput? Type621 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type622 { get; set; } + public global::OpenRouter.PublicEndpointPricingImageToken? Type622 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type623 { get; set; } + public global::OpenRouter.PublicEndpointPricingInputAudioCache? Type623 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponseData? Type624 { get; set; } + public global::OpenRouter.PublicEndpointPricingInputCacheRead? Type624 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type625 { get; set; } + public global::OpenRouter.PublicEndpointPricingInputCacheWrite? Type625 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type626 { get; set; } + public global::OpenRouter.PublicEndpointPricingInternalReasoning? Type626 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type627 { get; set; } + public global::OpenRouter.PublicEndpointPricingPrompt? Type627 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type628 { get; set; } + public global::OpenRouter.PublicEndpointPricingRequest? Type628 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysRequest? Type629 { get; set; } + public global::OpenRouter.PublicEndpointPricingWebSearch? Type629 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysResponse? Type630 { get; set; } + public global::OpenRouter.PublicEndpointPricing? Type630 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysRequest? Type631 { get; set; } + public global::OpenRouter.PublicEndpointQuantization? Type631 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysResponse? Type632 { get; set; } + public global::OpenRouter.EndpointStatus? Type632 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type633 { get; set; } + public global::OpenRouter.PublicEndpointThroughputLast30M? Type633 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type634 { get; set; } + public global::OpenRouter.PublicEndpoint? Type634 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type635 { get; set; } + public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type635 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersRequest? Type636 { get; set; } + public global::System.Collections.Generic.IList? Type636 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersResponse? Type637 { get; set; } + public global::OpenRouter.InstructType2? Type637 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersRequest? Type638 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitectureTokenizer? Type638 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersResponse? Type639 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitecture? Type639 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type640 { get; set; } + public global::OpenRouter.ListEndpointsResponse? Type640 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type641 { get; set; } + public global::OpenRouter.EndpointsListEndpointsResponse200? Type641 { get; set; } /// /// /// - public global::System.DateTime? Type642 { get; set; } + public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType? Type642 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type643 { get; set; } + public global::OpenRouter.ProviderResponseProviderName? Type643 { get; set; } /// /// /// - public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type644 { get; set; } + public global::OpenRouter.ProviderResponse? Type644 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysListResponse200? Type645 { get; set; } + public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData? Type645 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type646 { get; set; } + public global::OpenRouter.OneOf? Type646 { get; set; } /// /// /// - public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type647 { get; set; } + public global::System.Collections.Generic.IList? Type647 { get; set; } /// /// /// - public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type648 { get; set; } + public global::OpenRouter.GenerationsGetGenerationResponse200? Type648 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysCreateKeysResponse201? Type649 { get; set; } + public global::OpenRouter.GuardrailInterval? Type649 { get; set; } /// /// /// - public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type650 { get; set; } + public global::OpenRouter.Guardrail? Type650 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetKeyResponse200? Type651 { get; set; } + public global::System.Guid? Type651 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type652 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type652 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type653 { get; set; } + public global::System.Collections.Generic.IList? Type653 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type654 { get; set; } + public global::OpenRouter.CreateGuardrailRequest? Type654 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type655 { get; set; } + public global::OpenRouter.CreateGuardrailResponseData? Type655 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheControlDirective? Type656 { get; set; } + public global::OpenRouter.CreateGuardrailResponse? Type656 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type657 { get; set; } + public global::OpenRouter.GetGuardrailResponseData? Type657 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type658 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type658 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type659 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type659 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeepType? Type660 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type660 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeep? Type661 { get; set; } + public global::OpenRouter.UpdateGuardrailResponseData? Type661 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensTriggerType? Type662 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type662 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensTrigger? Type663 { get; set; } + public global::OpenRouter.KeyAssignment? Type663 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesTriggerType? Type664 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type664 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesTrigger? Type665 { get; set; } + public global::System.Collections.Generic.IList? Type665 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type666 { get; set; } + public global::OpenRouter.BulkAssignKeysRequest? Type666 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type667 { get; set; } + public global::OpenRouter.BulkAssignKeysResponse? Type667 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type668 { get; set; } + public global::OpenRouter.BulkUnassignKeysRequest? Type668 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurnsType? Type669 { get; set; } + public global::OpenRouter.BulkUnassignKeysResponse? Type669 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurns? Type670 { get; set; } + public global::OpenRouter.MemberAssignment? Type670 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type671 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type671 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type672 { get; set; } + public global::System.Collections.Generic.IList? Type672 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type673 { get; set; } + public global::OpenRouter.BulkAssignMembersRequest? Type673 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type674 { get; set; } + public global::OpenRouter.BulkAssignMembersResponse? Type674 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type675 { get; set; } + public global::OpenRouter.BulkUnassignMembersRequest? Type675 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type676 { get; set; } + public global::OpenRouter.BulkUnassignMembersResponse? Type676 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type677 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type677 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type678 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type678 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type679 { get; set; } + public global::System.DateTime? Type679 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type680 { get; set; } + public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type680 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type681 { get; set; } + public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type681 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type682 { get; set; } + public global::OpenRouter.ApiKeysListResponse200? Type682 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationParamType? Type683 { get; set; } + public global::System.Collections.Generic.IList? Type683 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationParam? Type684 { get; set; } + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type684 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationParamType? Type685 { get; set; } + public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type685 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationParam? Type686 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysResponse201? Type686 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationParamType? Type687 { get; set; } + public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type687 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationParam? Type688 { get; set; } + public global::OpenRouter.ApiKeysGetKeyResponse200? Type688 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationWebSearchResultLocationType? Type689 { get; set; } + public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type689 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationWebSearchResultLocation? Type690 { get; set; } + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type690 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationSearchResultLocationType? Type691 { get; set; } + public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type691 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationSearchResultLocation? Type692 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type692 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type693 { get; set; } + public global::OpenRouter.AnthropicCacheControlDirective? Type693 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamType? Type694 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type694 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParam? Type695 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type695 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type696 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type696 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageMimeType? Type697 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeepType? Type697 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64ImageSourceType? Type698 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeep? Type698 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64ImageSource? Type699 { get; set; } + public global::OpenRouter.AnthropicInputTokensTriggerType? Type699 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSourceType? Type700 { get; set; } + public global::OpenRouter.AnthropicInputTokensTrigger? Type700 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSource? Type701 { get; set; } + public global::OpenRouter.AnthropicToolUsesTriggerType? Type701 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSource? Type702 { get; set; } + public global::OpenRouter.AnthropicToolUsesTrigger? Type702 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamType? Type703 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type703 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParam? Type704 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type704 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type705 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type705 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type706 { get; set; } + public global::OpenRouter.AnthropicThinkingTurnsType? Type706 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceType? Type707 { get; set; } + public global::OpenRouter.AnthropicThinkingTurns? Type707 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSource? Type708 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type708 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type709 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type709 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceType? Type710 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type710 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSource? Type711 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type711 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type712 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type712 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type713 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type713 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type714 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type714 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type715 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type715 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type716 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type716 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSourceType? Type717 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type717 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSource? Type718 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type718 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource? Type719 { get; set; } + public global::System.Collections.Generic.IList? Type719 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamType? Type720 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationParamType? Type720 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParam? Type721 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationParam? Type721 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type722 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationParamType? Type722 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type723 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationParam? Type723 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type724 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationParamType? Type724 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type725 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationParam? Type725 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type726 { get; set; } + public global::OpenRouter.AnthropicCitationWebSearchResultLocationType? Type726 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type727 { get; set; } + public global::OpenRouter.AnthropicCitationWebSearchResultLocation? Type727 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamType? Type728 { get; set; } + public global::OpenRouter.AnthropicCitationSearchResultLocationType? Type728 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParam? Type729 { get; set; } + public global::OpenRouter.AnthropicCitationSearchResultLocation? Type729 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type730 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type730 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type731 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamType? Type731 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type732 { get; set; } + public global::OpenRouter.AnthropicTextBlockParam? Type732 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type733 { get; set; } + public global::System.Collections.Generic.IList? Type733 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type734 { get; set; } + public global::OpenRouter.AnthropicImageMimeType? Type734 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type735 { get; set; } + public global::OpenRouter.AnthropicBase64ImageSourceType? Type735 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type736 { get; set; } + public global::OpenRouter.AnthropicBase64ImageSource? Type736 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type737 { get; set; } + public global::OpenRouter.AnthropicUrlImageSourceType? Type737 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type738 { get; set; } + public global::OpenRouter.AnthropicUrlImageSource? Type738 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type739 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSource? Type739 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolName? Type740 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamType? Type740 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type741 { get; set; } + public global::OpenRouter.AnthropicImageBlockParam? Type741 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type742 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type742 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type743 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type743 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type744 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceType? Type744 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type745 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSource? Type745 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type746 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type746 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type747 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceType? Type747 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type748 { get; set; } + public global::OpenRouter.AnthropicPlainTextSource? Type748 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type749 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type749 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type750 { get; set; } + public global::System.Collections.Generic.IList? Type750 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type751 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type751 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type752 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type752 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type753 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type753 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type754 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSourceType? Type754 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type755 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSource? Type755 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContent? Type756 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource? Type756 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type757 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamType? Type757 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type758 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParam? Type758 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type759 { get; set; } + public global::OpenRouter.OneOf? Type759 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type760 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type760 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type761 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type761 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type762 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type762 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type763 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type763 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type764 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type764 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type765 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamType? Type765 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItems? Type766 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParam? Type766 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestServiceTier? Type767 { get; set; } + public global::System.Collections.Generic.IList? Type767 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSpeed? Type768 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type768 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSystem? Type769 { get; set; } + public global::System.Collections.Generic.IList? Type769 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type770 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type770 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type771 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type771 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type772 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type772 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type773 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type773 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type774 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type774 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type775 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type775 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type776 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type776 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type777 { get; set; } + public global::OpenRouter.AnthropicServerToolName? Type777 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type778 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type778 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type779 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type779 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type780 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type780 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type781 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type781 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type782 { get; set; } + public global::System.Collections.Generic.IList? Type782 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type783 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type783 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type784 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type784 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type785 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type785 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type786 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type786 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type787 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type787 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type788 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type788 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type789 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type789 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type790 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type790 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type791 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type791 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type792 { get; set; } + public global::System.Collections.Generic.IList? Type792 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type793 { get; set; } + public global::OpenRouter.MessagesMessageParamContent? Type793 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type794 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type794 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type795 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type795 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type796 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type796 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type797 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type797 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type798 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type798 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type799 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type799 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4AllowedCallersItems? Type800 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type800 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type801 { get; set; } + public global::OpenRouter.OneOf? Type801 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type802 { get; set; } + public global::OpenRouter.OneOf? Type802 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type803 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItems? Type803 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type804 { get; set; } + public global::OpenRouter.MessagesRequestServiceTier? Type804 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type805 { get; set; } + public global::OpenRouter.MessagesRequestSpeed? Type805 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type806 { get; set; } + public global::OpenRouter.MessagesRequestSystem? Type806 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type807 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type807 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type808 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type808 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type809 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type809 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type810 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type810 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type811 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type811 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationType? Type812 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type812 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocation? Type813 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type813 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationType? Type814 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type814 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocation? Type815 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type815 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationType? Type816 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type816 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocation? Type817 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type817 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type818 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type818 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockType? Type819 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type819 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlock? Type820 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type820 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type821 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type821 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDirectCallerType? Type822 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type822 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDirectCaller? Type823 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type823 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20250825CallerType? Type824 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type824 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20250825Caller? Type825 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type825 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20260120CallerType? Type826 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type826 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20260120Caller? Type827 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type827 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type828 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type828 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUseBlockType? Type829 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type829 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUseBlock? Type830 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type830 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingBlockType? Type831 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type831 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingBlock? Type832 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type832 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRedactedThinkingBlockType? Type833 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type833 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRedactedThinkingBlock? Type834 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type834 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUseBlockType? Type835 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type835 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUseBlock? Type836 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type836 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type837 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4AllowedCallersItems? Type837 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type838 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type838 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type839 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type839 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type840 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type840 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type841 { get; set; } + public global::System.Collections.Generic.IList? Type841 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type842 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type842 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultContent? Type843 { get; set; } + public global::OpenRouter.MessagesRequest? Type843 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultType? Type844 { get; set; } + public global::OpenRouter.OneOf? Type844 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResult? Type845 { get; set; } + public global::System.Collections.Generic.IList? Type845 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type846 { get; set; } + public global::System.Collections.Generic.IList? Type846 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type847 { get; set; } + public global::System.Collections.Generic.IList? Type847 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultError? Type848 { get; set; } + public global::OpenRouter.AnthropicContainer? Type848 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type849 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationType? Type849 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type850 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocation? Type850 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type851 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationType? Type851 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type852 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocation? Type852 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchBlockType? Type853 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationType? Type853 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchBlock? Type854 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocation? Type854 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type855 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type855 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultType? Type856 { get; set; } + public global::OpenRouter.AnthropicTextBlockType? Type856 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResult? Type857 { get; set; } + public global::OpenRouter.AnthropicTextBlock? Type857 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type858 { get; set; } + public global::System.Collections.Generic.IList? Type858 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type859 { get; set; } + public global::OpenRouter.AnthropicDirectCallerType? Type859 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultError? Type860 { get; set; } + public global::OpenRouter.AnthropicDirectCaller? Type860 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type861 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20250825CallerType? Type861 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type862 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20250825Caller? Type862 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type863 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20260120CallerType? Type863 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResult? Type864 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20260120Caller? Type864 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type865 { get; set; } + public global::OpenRouter.AnthropicCaller? Type865 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type866 { get; set; } + public global::OpenRouter.AnthropicToolUseBlockType? Type866 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResult? Type867 { get; set; } + public global::OpenRouter.AnthropicToolUseBlock? Type867 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type868 { get; set; } + public global::OpenRouter.AnthropicThinkingBlockType? Type868 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultType? Type869 { get; set; } + public global::OpenRouter.AnthropicThinkingBlock? Type869 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResult? Type870 { get; set; } + public global::OpenRouter.AnthropicRedactedThinkingBlockType? Type870 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type871 { get; set; } + public global::OpenRouter.AnthropicRedactedThinkingBlock? Type871 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type872 { get; set; } + public global::OpenRouter.AnthropicServerToolUseBlockType? Type872 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultError? Type873 { get; set; } + public global::OpenRouter.AnthropicServerToolUseBlock? Type873 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type874 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type874 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type875 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type875 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type876 { get; set; } + public global::System.Collections.Generic.IList? Type876 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResult? Type877 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type877 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type878 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type878 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type879 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type879 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultType? Type880 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultContent? Type880 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResult? Type881 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultType? Type881 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type882 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResult? Type882 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type883 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type883 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultError? Type884 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type884 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type885 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultError? Type885 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type886 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type886 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResult? Type887 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type887 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type888 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type888 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResult? Type889 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type889 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type890 { get; set; } + public global::OpenRouter.AnthropicWebFetchBlockType? Type890 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResult? Type891 { get; set; } + public global::OpenRouter.AnthropicWebFetchBlock? Type891 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type892 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type892 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultType? Type893 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultType? Type893 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResult? Type894 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResult? Type894 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type895 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type895 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultError? Type896 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type896 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type897 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultError? Type897 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type898 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type898 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type899 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type899 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResult? Type900 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type900 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type901 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResult? Type901 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type902 { get; set; } + public global::System.Collections.Generic.IList? Type902 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchToolResultType? Type903 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type903 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchToolResult? Type904 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResult? Type904 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainerUploadType? Type905 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type905 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainerUpload? Type906 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultType? Type906 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionBlockType? Type907 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResult? Type907 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionBlock? Type908 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type908 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type909 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type909 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultRole? Type910 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultError? Type910 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type911 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type911 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultType? Type912 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type912 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type913 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type913 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type914 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResult? Type914 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type915 { get; set; } + public global::System.Collections.Generic.IList? Type915 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type916 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type916 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type917 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultType? Type917 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type918 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResult? Type918 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type919 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type919 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type920 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type920 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type921 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultError? Type921 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type922 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type922 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type923 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type923 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultUsage? Type924 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResult? Type924 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type925 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type925 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsageCostDetails? Type926 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResult? Type926 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type927 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type927 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type928 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResult? Type928 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type929 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type929 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type930 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultType? Type930 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type931 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResult? Type931 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type932 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type932 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type933 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultError? Type933 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type934 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type934 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type935 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type935 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type936 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type936 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type937 { get; set; } + public global::OpenRouter.AnthropicToolSearchResult? Type937 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type938 { get; set; } + public global::System.Collections.Generic.IList? Type938 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type939 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type939 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type940 { get; set; } + public global::OpenRouter.AnthropicToolSearchToolResultType? Type940 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type941 { get; set; } + public global::OpenRouter.AnthropicToolSearchToolResult? Type941 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type942 { get; set; } + public global::OpenRouter.AnthropicContainerUploadType? Type942 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type943 { get; set; } + public global::OpenRouter.AnthropicContainerUpload? Type943 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type944 { get; set; } + public global::OpenRouter.AnthropicCompactionBlockType? Type944 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type945 { get; set; } + public global::OpenRouter.AnthropicCompactionBlock? Type945 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type946 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type946 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type947 { get; set; } + public global::OpenRouter.BaseMessagesResultRole? Type947 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type948 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type948 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type949 { get; set; } + public global::OpenRouter.BaseMessagesResultType? Type949 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type950 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type950 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type951 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type951 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type952 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type952 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type953 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type953 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type954 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type954 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageImageUrl? Type955 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type955 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageType? Type956 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type956 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImage? Type957 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type957 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type958 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type958 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type959 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type959 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type960 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type960 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type961 { get; set; } + public global::OpenRouter.BaseMessagesResultUsage? Type961 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type962 { get; set; } + public global::System.Collections.Generic.IList? Type962 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type963 { get; set; } + public global::OpenRouter.MessagesResultUsageCostDetails? Type963 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type964 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type964 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type965 { get; set; } + public global::OpenRouter.OneOf? Type965 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type966 { get; set; } + public global::OpenRouter.MessagesResult? Type966 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type967 { get; set; } + public global::System.Collections.Generic.IList? Type967 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type968 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type968 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type969 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type969 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type970 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type970 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type971 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type971 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type972 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type972 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type973 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type973 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type974 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type974 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type975 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type975 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type976 { get; set; } + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type976 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type977 { get; set; } + public global::System.Collections.Generic.IList? Type977 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type978 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type978 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type979 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type979 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type980 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type980 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type981 { get; set; } + public global::System.Collections.Generic.IList? Type981 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type982 { get; set; } + public global::OpenRouter.OneOf? Type982 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type983 { get; set; } + public global::OpenRouter.ProvidersListProvidersResponse200? Type983 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type984 { get; set; } + public global::System.Collections.Generic.IList? Type984 { get; set; } /// /// /// - public byte[]? Type985 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type985 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type986 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type987 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type988 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankCreateRerankResponse200? Type989 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type990 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type991 { get; set; } + /// + /// + /// + public global::OpenRouter.ContentPartImageImageUrl? Type992 { get; set; } + /// + /// + /// + public global::OpenRouter.ContentPartImageType? Type993 { get; set; } + /// + /// + /// + public global::OpenRouter.ContentPartImage? Type994 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type995 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestProvider? Type996 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestResolution? Type997 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequest? Type998 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type999 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationResponseStatus? Type1000 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationUsage? Type1001 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationResponse? Type1002 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1003 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1004 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedSizesItems? Type1005 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModel? Type1006 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1007 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1008 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1009 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1010 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelsListResponse? Type1011 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1012 { get; set; } + /// + /// + /// + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1013 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1014 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1015 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsRequest? Type1016 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateKeysRequest? Type1017 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1018 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysRequest? Type1019 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1020 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1021 { get; set; } + /// + /// + /// + public byte[]? Type1022 { get; set; } /// /// @@ -4085,238 +4233,246 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType29 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType47 { get; set; } + public global::System.Collections.Generic.List>? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems.Json.g.cs new file mode 100644 index 0000000..27946d4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct CodeInterpreterCallItemOutputsItems + { + /// + /// 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.CodeInterpreterCallItemOutputsItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems), + jsonSerializerContext) as global::OpenRouter.CodeInterpreterCallItemOutputsItems?; + } + + /// + /// 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.CodeInterpreterCallItemOutputsItems? 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.CodeInterpreterCallItemOutputsItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CodeInterpreterCallItemOutputsItems?; + } + + /// + /// 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.CodeInterpreterCallItemOutputsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems.g.cs new file mode 100644 index 0000000..ae88a15 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems.g.cs @@ -0,0 +1,221 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct CodeInterpreterCallItemOutputsItems : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CodeInterpreterCallItemOutputsItems0? CodeInterpreterCallItemOutputsItems0 { get; init; } +#else + public global::OpenRouter.CodeInterpreterCallItemOutputsItems0? CodeInterpreterCallItemOutputsItems0 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreterCallItemOutputsItems0))] +#endif + public bool IsCodeInterpreterCallItemOutputsItems0 => CodeInterpreterCallItemOutputsItems0 != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CodeInterpreterCallItemOutputsItems1? CodeInterpreterCallItemOutputsItems1 { get; init; } +#else + public global::OpenRouter.CodeInterpreterCallItemOutputsItems1? CodeInterpreterCallItemOutputsItems1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreterCallItemOutputsItems1))] +#endif + public bool IsCodeInterpreterCallItemOutputsItems1 => CodeInterpreterCallItemOutputsItems1 != null; + /// + /// + /// + public static implicit operator CodeInterpreterCallItemOutputsItems(global::OpenRouter.CodeInterpreterCallItemOutputsItems0 value) => new CodeInterpreterCallItemOutputsItems((global::OpenRouter.CodeInterpreterCallItemOutputsItems0?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CodeInterpreterCallItemOutputsItems0?(CodeInterpreterCallItemOutputsItems @this) => @this.CodeInterpreterCallItemOutputsItems0; + + /// + /// + /// + public CodeInterpreterCallItemOutputsItems(global::OpenRouter.CodeInterpreterCallItemOutputsItems0? value) + { + CodeInterpreterCallItemOutputsItems0 = value; + } + + /// + /// + /// + public static implicit operator CodeInterpreterCallItemOutputsItems(global::OpenRouter.CodeInterpreterCallItemOutputsItems1 value) => new CodeInterpreterCallItemOutputsItems((global::OpenRouter.CodeInterpreterCallItemOutputsItems1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CodeInterpreterCallItemOutputsItems1?(CodeInterpreterCallItemOutputsItems @this) => @this.CodeInterpreterCallItemOutputsItems1; + + /// + /// + /// + public CodeInterpreterCallItemOutputsItems(global::OpenRouter.CodeInterpreterCallItemOutputsItems1? value) + { + CodeInterpreterCallItemOutputsItems1 = value; + } + + /// + /// + /// + public CodeInterpreterCallItemOutputsItems( + global::OpenRouter.CodeInterpreterCallItemOutputsItems0? codeInterpreterCallItemOutputsItems0, + global::OpenRouter.CodeInterpreterCallItemOutputsItems1? codeInterpreterCallItemOutputsItems1 + ) + { + CodeInterpreterCallItemOutputsItems0 = codeInterpreterCallItemOutputsItems0; + CodeInterpreterCallItemOutputsItems1 = codeInterpreterCallItemOutputsItems1; + } + + /// + /// + /// + public object? Object => + CodeInterpreterCallItemOutputsItems1 as object ?? + CodeInterpreterCallItemOutputsItems0 as object + ; + + /// + /// + /// + public override string? ToString() => + CodeInterpreterCallItemOutputsItems0?.ToString() ?? + CodeInterpreterCallItemOutputsItems1?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCodeInterpreterCallItemOutputsItems0 && !IsCodeInterpreterCallItemOutputsItems1 || !IsCodeInterpreterCallItemOutputsItems0 && IsCodeInterpreterCallItemOutputsItems1; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? codeInterpreterCallItemOutputsItems0 = null, + global::System.Func? codeInterpreterCallItemOutputsItems1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCodeInterpreterCallItemOutputsItems0 && codeInterpreterCallItemOutputsItems0 != null) + { + return codeInterpreterCallItemOutputsItems0(CodeInterpreterCallItemOutputsItems0!); + } + else if (IsCodeInterpreterCallItemOutputsItems1 && codeInterpreterCallItemOutputsItems1 != null) + { + return codeInterpreterCallItemOutputsItems1(CodeInterpreterCallItemOutputsItems1!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? codeInterpreterCallItemOutputsItems0 = null, + global::System.Action? codeInterpreterCallItemOutputsItems1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCodeInterpreterCallItemOutputsItems0) + { + codeInterpreterCallItemOutputsItems0?.Invoke(CodeInterpreterCallItemOutputsItems0!); + } + else if (IsCodeInterpreterCallItemOutputsItems1) + { + codeInterpreterCallItemOutputsItems1?.Invoke(CodeInterpreterCallItemOutputsItems1!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CodeInterpreterCallItemOutputsItems0, + typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems0), + CodeInterpreterCallItemOutputsItems1, + typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems1), + }; + 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(CodeInterpreterCallItemOutputsItems other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreterCallItemOutputsItems0, other.CodeInterpreterCallItemOutputsItems0) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreterCallItemOutputsItems1, other.CodeInterpreterCallItemOutputsItems1) + ; + } + + /// + /// + /// + public static bool operator ==(CodeInterpreterCallItemOutputsItems obj1, CodeInterpreterCallItemOutputsItems obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CodeInterpreterCallItemOutputsItems obj1, CodeInterpreterCallItemOutputsItems obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CodeInterpreterCallItemOutputsItems o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems0.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems0.Json.g.cs new file mode 100644 index 0000000..e7a381c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems0.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CodeInterpreterCallItemOutputsItems0 + { + /// + /// 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.CodeInterpreterCallItemOutputsItems0? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems0), + jsonSerializerContext) as global::OpenRouter.CodeInterpreterCallItemOutputsItems0; + } + + /// + /// 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.CodeInterpreterCallItemOutputsItems0? 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.CodeInterpreterCallItemOutputsItems0), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CodeInterpreterCallItemOutputsItems0; + } + + /// + /// 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.CodeInterpreterCallItemOutputsItems0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems0.g.cs new file mode 100644 index 0000000..fb9ca1f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems0.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class CodeInterpreterCallItemOutputsItems0 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf0TypeJsonConverter))] + public global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Url { 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 CodeInterpreterCallItemOutputsItems0( + string url, + global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type type) + { + this.Type = type; + this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); + } + + /// + /// Initializes a new instance of the class. + /// + public CodeInterpreterCallItemOutputsItems0() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems1.Json.g.cs new file mode 100644 index 0000000..6932426 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CodeInterpreterCallItemOutputsItems1 + { + /// + /// 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.CodeInterpreterCallItemOutputsItems1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CodeInterpreterCallItemOutputsItems1), + jsonSerializerContext) as global::OpenRouter.CodeInterpreterCallItemOutputsItems1; + } + + /// + /// 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.CodeInterpreterCallItemOutputsItems1? 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.CodeInterpreterCallItemOutputsItems1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CodeInterpreterCallItemOutputsItems1; + } + + /// + /// 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.CodeInterpreterCallItemOutputsItems1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems1.g.cs new file mode 100644 index 0000000..9244d27 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItems1.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class CodeInterpreterCallItemOutputsItems1 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Logs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItemsOneOf1TypeJsonConverter))] + public global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type 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 CodeInterpreterCallItemOutputsItems1( + string logs, + global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type type) + { + this.Logs = logs ?? throw new global::System.ArgumentNullException(nameof(logs)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CodeInterpreterCallItemOutputsItems1() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItemsOneOf0Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItemsOneOf0Type.g.cs new file mode 100644 index 0000000..cd0bff8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItemsOneOf0Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum CodeInterpreterCallItemOutputsItemsOneOf0Type + { + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CodeInterpreterCallItemOutputsItemsOneOf0TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CodeInterpreterCallItemOutputsItemsOneOf0Type value) + { + return value switch + { + CodeInterpreterCallItemOutputsItemsOneOf0Type.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CodeInterpreterCallItemOutputsItemsOneOf0Type? ToEnum(string value) + { + return value switch + { + "image" => CodeInterpreterCallItemOutputsItemsOneOf0Type.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItemsOneOf1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItemsOneOf1Type.g.cs new file mode 100644 index 0000000..2877131 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemOutputsItemsOneOf1Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum CodeInterpreterCallItemOutputsItemsOneOf1Type + { + /// + /// + /// + Logs, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CodeInterpreterCallItemOutputsItemsOneOf1TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CodeInterpreterCallItemOutputsItemsOneOf1Type value) + { + return value switch + { + CodeInterpreterCallItemOutputsItemsOneOf1Type.Logs => "logs", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CodeInterpreterCallItemOutputsItemsOneOf1Type? ToEnum(string value) + { + return value switch + { + "logs" => CodeInterpreterCallItemOutputsItemsOneOf1Type.Logs, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemType.g.cs new file mode 100644 index 0000000..c36505f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterCallItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum CodeInterpreterCallItemType + { + /// + /// + /// + CodeInterpreterCall, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CodeInterpreterCallItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CodeInterpreterCallItemType value) + { + return value switch + { + CodeInterpreterCallItemType.CodeInterpreterCall => "code_interpreter_call", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CodeInterpreterCallItemType? ToEnum(string value) + { + return value switch + { + "code_interpreter_call" => CodeInterpreterCallItemType.CodeInterpreterCall, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerTool.g.cs index 83bf654..1cc8086 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerTool.g.cs @@ -9,10 +9,10 @@ namespace OpenRouter public sealed partial class DatetimeServerTool { /// - /// + /// Configuration for the openrouter:datetime server tool /// [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] - public global::OpenRouter.DatetimeServerToolParameters? Parameters { get; set; } + public global::OpenRouter.DatetimeServerToolConfig? Parameters { get; set; } /// /// @@ -30,13 +30,15 @@ public sealed partial class DatetimeServerTool /// /// Initializes a new instance of the class. /// - /// + /// + /// Configuration for the openrouter:datetime server tool + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public DatetimeServerTool( - global::OpenRouter.DatetimeServerToolParameters? parameters, + global::OpenRouter.DatetimeServerToolConfig? parameters, global::OpenRouter.DatetimeServerToolType type) { this.Parameters = parameters; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolParameters.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolConfig.Json.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolParameters.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolConfig.Json.g.cs index 295cc35..615cbd3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolParameters.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class DatetimeServerToolParameters + public sealed partial class DatetimeServerToolConfig { /// /// 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.DatetimeServerToolParameters? FromJson( + public static global::OpenRouter.DatetimeServerToolConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.DatetimeServerToolParameters), - jsonSerializerContext) as global::OpenRouter.DatetimeServerToolParameters; + typeof(global::OpenRouter.DatetimeServerToolConfig), + jsonSerializerContext) as global::OpenRouter.DatetimeServerToolConfig; } /// @@ -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.DatetimeServerToolParameters? FromJson( + public static global::OpenRouter.DatetimeServerToolConfig? 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.DatetimeServerToolParameters), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.DatetimeServerToolParameters; + typeof(global::OpenRouter.DatetimeServerToolConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.DatetimeServerToolConfig; } /// @@ -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.DatetimeServerToolParameters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolConfig.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolParameters.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolConfig.g.cs index bda9d1a..012adc8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolParameters.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatetimeServerToolConfig.g.cs @@ -4,9 +4,9 @@ namespace OpenRouter { /// - /// + /// Configuration for the openrouter:datetime server tool /// - public sealed partial class DatetimeServerToolParameters + public sealed partial class DatetimeServerToolConfig { /// /// IANA timezone name (e.g. "America/New_York"). Defaults to UTC. @@ -21,7 +21,7 @@ public sealed partial class DatetimeServerToolParameters 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. /// /// /// IANA timezone name (e.g. "America/New_York"). Defaults to UTC. @@ -29,16 +29,16 @@ public sealed partial class DatetimeServerToolParameters #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public DatetimeServerToolParameters( + public DatetimeServerToolConfig( string? timezone) { this.Timezone = timezone; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public DatetimeServerToolParameters() + public DatetimeServerToolConfig() { } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputApplyPatchServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputApplyPatchServerToolItemType.g.cs new file mode 100644 index 0000000..49bba49 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputApplyPatchServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputApplyPatchServerToolItemType + { + /// + /// + /// + Openrouter_applyPatch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputApplyPatchServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputApplyPatchServerToolItemType value) + { + return value switch + { + OutputApplyPatchServerToolItemType.Openrouter_applyPatch => "openrouter:apply_patch", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputApplyPatchServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:apply_patch" => OutputApplyPatchServerToolItemType.Openrouter_applyPatch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputBashServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputBashServerToolItemType.g.cs new file mode 100644 index 0000000..d5ce2a9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputBashServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputBashServerToolItemType + { + /// + /// + /// + Openrouter_bash, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputBashServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputBashServerToolItemType value) + { + return value switch + { + OutputBashServerToolItemType.Openrouter_bash => "openrouter:bash", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputBashServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:bash" => OutputBashServerToolItemType.Openrouter_bash, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputBrowserUseServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputBrowserUseServerToolItemType.g.cs new file mode 100644 index 0000000..ae8e820 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputBrowserUseServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputBrowserUseServerToolItemType + { + /// + /// + /// + Openrouter_browserUse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputBrowserUseServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputBrowserUseServerToolItemType value) + { + return value switch + { + OutputBrowserUseServerToolItemType.Openrouter_browserUse => "openrouter:browser_use", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputBrowserUseServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:browser_use" => OutputBrowserUseServerToolItemType.Openrouter_browserUse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputCodeInterpreterServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputCodeInterpreterServerToolItemType.g.cs new file mode 100644 index 0000000..2333490 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputCodeInterpreterServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputCodeInterpreterServerToolItemType + { + /// + /// + /// + Openrouter_codeInterpreter, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputCodeInterpreterServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputCodeInterpreterServerToolItemType value) + { + return value switch + { + OutputCodeInterpreterServerToolItemType.Openrouter_codeInterpreter => "openrouter:code_interpreter", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputCodeInterpreterServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:code_interpreter" => OutputCodeInterpreterServerToolItemType.Openrouter_codeInterpreter, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemPendingSafetyChecksItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemPendingSafetyChecksItems.Json.g.cs new file mode 100644 index 0000000..e684594 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemPendingSafetyChecksItems.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputComputerCallItemPendingSafetyChecksItems + { + /// + /// 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.OutputComputerCallItemPendingSafetyChecksItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputComputerCallItemPendingSafetyChecksItems), + jsonSerializerContext) as global::OpenRouter.OutputComputerCallItemPendingSafetyChecksItems; + } + + /// + /// 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.OutputComputerCallItemPendingSafetyChecksItems? 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.OutputComputerCallItemPendingSafetyChecksItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputComputerCallItemPendingSafetyChecksItems; + } + + /// + /// 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.OutputComputerCallItemPendingSafetyChecksItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemPendingSafetyChecksItems.g.cs new file mode 100644 index 0000000..8092a95 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemPendingSafetyChecksItems.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class OutputComputerCallItemPendingSafetyChecksItems + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { 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("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 OutputComputerCallItemPendingSafetyChecksItems( + string code, + string id, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public OutputComputerCallItemPendingSafetyChecksItems() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemStatus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemStatus.g.cs new file mode 100644 index 0000000..7182ccc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemStatus.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputComputerCallItemStatus + { + /// + /// + /// + Completed, + /// + /// + /// + InProgress, + /// + /// + /// + Incomplete, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputComputerCallItemStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputComputerCallItemStatus value) + { + return value switch + { + OutputComputerCallItemStatus.Completed => "completed", + OutputComputerCallItemStatus.InProgress => "in_progress", + OutputComputerCallItemStatus.Incomplete => "incomplete", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputComputerCallItemStatus? ToEnum(string value) + { + return value switch + { + "completed" => OutputComputerCallItemStatus.Completed, + "in_progress" => OutputComputerCallItemStatus.InProgress, + "incomplete" => OutputComputerCallItemStatus.Incomplete, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemType.g.cs new file mode 100644 index 0000000..bcc952e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputComputerCallItemType + { + /// + /// + /// + ComputerCall, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputComputerCallItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputComputerCallItemType value) + { + return value switch + { + OutputComputerCallItemType.ComputerCall => "computer_call", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputComputerCallItemType? ToEnum(string value) + { + return value switch + { + "computer_call" => OutputComputerCallItemType.ComputerCall, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputFileSearchServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputFileSearchServerToolItemType.g.cs new file mode 100644 index 0000000..4b8ce58 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputFileSearchServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputFileSearchServerToolItemType + { + /// + /// + /// + Openrouter_fileSearch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputFileSearchServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputFileSearchServerToolItemType value) + { + return value switch + { + OutputFileSearchServerToolItemType.Openrouter_fileSearch => "openrouter:file_search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputFileSearchServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:file_search" => OutputFileSearchServerToolItemType.Openrouter_fileSearch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputImageGenerationServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputImageGenerationServerToolItemType.g.cs new file mode 100644 index 0000000..818dbc6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputImageGenerationServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputImageGenerationServerToolItemType + { + /// + /// + /// + Openrouter_imageGeneration, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputImageGenerationServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputImageGenerationServerToolItemType value) + { + return value switch + { + OutputImageGenerationServerToolItemType.Openrouter_imageGeneration => "openrouter:image_generation", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputImageGenerationServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:image_generation" => OutputImageGenerationServerToolItemType.Openrouter_imageGeneration, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs index b73596d..6a6e1d4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs @@ -9,13 +9,47 @@ namespace OpenRouter /// public readonly partial struct OutputItems : global::System.IEquatable { + /// + /// code_interpreter_call variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant1? CodeInterpreterCall { get; init; } +#else + public global::OpenRouter.OutputItemsVariant1? CodeInterpreterCall { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreterCall))] +#endif + public bool IsCodeInterpreterCall => CodeInterpreterCall != null; + + /// + /// computer_call variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant2? ComputerCall { get; init; } +#else + public global::OpenRouter.OutputItemsVariant2? ComputerCall { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ComputerCall))] +#endif + public bool IsComputerCall => ComputerCall != null; + /// /// file_search_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant1? FileSearchCall { get; init; } + public global::OpenRouter.OutputItemsVariant3? FileSearchCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant1? FileSearchCall { get; } + public global::OpenRouter.OutputItemsVariant3? FileSearchCall { get; } #endif /// @@ -30,9 +64,9 @@ namespace OpenRouter /// function_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant2? FunctionCall { get; init; } + public global::OpenRouter.OutputItemsVariant4? FunctionCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant2? FunctionCall { get; } + public global::OpenRouter.OutputItemsVariant4? FunctionCall { get; } #endif /// @@ -47,9 +81,9 @@ namespace OpenRouter /// image_generation_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant3? ImageGenerationCall { get; init; } + public global::OpenRouter.OutputItemsVariant5? ImageGenerationCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant3? ImageGenerationCall { get; } + public global::OpenRouter.OutputItemsVariant5? ImageGenerationCall { get; } #endif /// @@ -64,9 +98,9 @@ namespace OpenRouter /// message variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant4? Message { get; init; } + public global::OpenRouter.OutputItemsVariant6? Message { get; init; } #else - public global::OpenRouter.OutputItemsVariant4? Message { get; } + public global::OpenRouter.OutputItemsVariant6? Message { get; } #endif /// @@ -77,13 +111,81 @@ namespace OpenRouter #endif public bool IsMessage => Message != null; + /// + /// openrouter:apply_patch variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant7? OpenrouterApplyPatch { get; init; } +#else + public global::OpenRouter.OutputItemsVariant7? OpenrouterApplyPatch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterApplyPatch))] +#endif + public bool IsOpenrouterApplyPatch => OpenrouterApplyPatch != null; + + /// + /// openrouter:bash variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant8? OpenrouterBash { get; init; } +#else + public global::OpenRouter.OutputItemsVariant8? OpenrouterBash { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterBash))] +#endif + public bool IsOpenrouterBash => OpenrouterBash != null; + + /// + /// openrouter:browser_use variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant9? OpenrouterBrowserUse { get; init; } +#else + public global::OpenRouter.OutputItemsVariant9? OpenrouterBrowserUse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterBrowserUse))] +#endif + public bool IsOpenrouterBrowserUse => OpenrouterBrowserUse != null; + + /// + /// openrouter:code_interpreter variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant10? OpenrouterCodeInterpreter { get; init; } +#else + public global::OpenRouter.OutputItemsVariant10? OpenrouterCodeInterpreter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterCodeInterpreter))] +#endif + public bool IsOpenrouterCodeInterpreter => OpenrouterCodeInterpreter != null; + /// /// openrouter:datetime variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant5? OpenrouterDatetime { get; init; } + public global::OpenRouter.OutputItemsVariant11? OpenrouterDatetime { get; init; } #else - public global::OpenRouter.OutputItemsVariant5? OpenrouterDatetime { get; } + public global::OpenRouter.OutputItemsVariant11? OpenrouterDatetime { get; } #endif /// @@ -94,13 +196,132 @@ namespace OpenRouter #endif public bool IsOpenrouterDatetime => OpenrouterDatetime != null; + /// + /// openrouter:file_search variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant12? OpenrouterFileSearch { get; init; } +#else + public global::OpenRouter.OutputItemsVariant12? OpenrouterFileSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterFileSearch))] +#endif + public bool IsOpenrouterFileSearch => OpenrouterFileSearch != null; + + /// + /// openrouter:image_generation variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant13? OpenrouterImageGeneration { get; init; } +#else + public global::OpenRouter.OutputItemsVariant13? OpenrouterImageGeneration { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterImageGeneration))] +#endif + public bool IsOpenrouterImageGeneration => OpenrouterImageGeneration != null; + + /// + /// openrouter:mcp variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant14? OpenrouterMcp { get; init; } +#else + public global::OpenRouter.OutputItemsVariant14? OpenrouterMcp { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterMcp))] +#endif + public bool IsOpenrouterMcp => OpenrouterMcp != null; + + /// + /// openrouter:memory variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant15? OpenrouterMemory { get; init; } +#else + public global::OpenRouter.OutputItemsVariant15? OpenrouterMemory { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterMemory))] +#endif + public bool IsOpenrouterMemory => OpenrouterMemory != null; + + /// + /// openrouter:text_editor variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant16? OpenrouterTextEditor { get; init; } +#else + public global::OpenRouter.OutputItemsVariant16? OpenrouterTextEditor { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterTextEditor))] +#endif + public bool IsOpenrouterTextEditor => OpenrouterTextEditor != null; + + /// + /// openrouter:tool_search variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant17? OpenrouterToolSearch { get; init; } +#else + public global::OpenRouter.OutputItemsVariant17? OpenrouterToolSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterToolSearch))] +#endif + public bool IsOpenrouterToolSearch => OpenrouterToolSearch != null; + + /// + /// openrouter:web_fetch variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant18? OpenrouterWebFetch { get; init; } +#else + public global::OpenRouter.OutputItemsVariant18? OpenrouterWebFetch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterWebFetch))] +#endif + public bool IsOpenrouterWebFetch => OpenrouterWebFetch != null; + /// /// openrouter:web_search variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant6? OpenrouterWebSearch { get; init; } + public global::OpenRouter.OutputItemsVariant19? OpenrouterWebSearch { get; init; } #else - public global::OpenRouter.OutputItemsVariant6? OpenrouterWebSearch { get; } + public global::OpenRouter.OutputItemsVariant19? OpenrouterWebSearch { get; } #endif /// @@ -115,9 +336,9 @@ namespace OpenRouter /// reasoning variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant7? Reasoning { get; init; } + public global::OpenRouter.OutputItemsVariant20? Reasoning { get; init; } #else - public global::OpenRouter.OutputItemsVariant7? Reasoning { get; } + public global::OpenRouter.OutputItemsVariant20? Reasoning { get; } #endif /// @@ -132,9 +353,9 @@ namespace OpenRouter /// web_search_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant8? WebSearchCall { get; init; } + public global::OpenRouter.OutputItemsVariant21? WebSearchCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant8? WebSearchCall { get; } + public global::OpenRouter.OutputItemsVariant21? WebSearchCall { get; } #endif /// @@ -152,14 +373,14 @@ namespace OpenRouter /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant1?(OutputItems @this) => @this.FileSearchCall; + public static implicit operator global::OpenRouter.OutputItemsVariant1?(OutputItems @this) => @this.CodeInterpreterCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant1? value) { - FileSearchCall = value; + CodeInterpreterCall = value; } /// @@ -170,14 +391,14 @@ public OutputItems(global::OpenRouter.OutputItemsVariant1? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant2?(OutputItems @this) => @this.FunctionCall; + public static implicit operator global::OpenRouter.OutputItemsVariant2?(OutputItems @this) => @this.ComputerCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant2? value) { - FunctionCall = value; + ComputerCall = value; } /// @@ -188,14 +409,14 @@ public OutputItems(global::OpenRouter.OutputItemsVariant2? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant3?(OutputItems @this) => @this.ImageGenerationCall; + public static implicit operator global::OpenRouter.OutputItemsVariant3?(OutputItems @this) => @this.FileSearchCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant3? value) { - ImageGenerationCall = value; + FileSearchCall = value; } /// @@ -206,14 +427,14 @@ public OutputItems(global::OpenRouter.OutputItemsVariant3? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant4?(OutputItems @this) => @this.Message; + public static implicit operator global::OpenRouter.OutputItemsVariant4?(OutputItems @this) => @this.FunctionCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant4? value) { - Message = value; + FunctionCall = value; } /// @@ -224,14 +445,14 @@ public OutputItems(global::OpenRouter.OutputItemsVariant4? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant5?(OutputItems @this) => @this.OpenrouterDatetime; + public static implicit operator global::OpenRouter.OutputItemsVariant5?(OutputItems @this) => @this.ImageGenerationCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant5? value) { - OpenrouterDatetime = value; + ImageGenerationCall = value; } /// @@ -242,14 +463,14 @@ public OutputItems(global::OpenRouter.OutputItemsVariant5? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant6?(OutputItems @this) => @this.OpenrouterWebSearch; + public static implicit operator global::OpenRouter.OutputItemsVariant6?(OutputItems @this) => @this.Message; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant6? value) { - OpenrouterWebSearch = value; + Message = value; } /// @@ -260,14 +481,14 @@ public OutputItems(global::OpenRouter.OutputItemsVariant6? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant7?(OutputItems @this) => @this.Reasoning; + public static implicit operator global::OpenRouter.OutputItemsVariant7?(OutputItems @this) => @this.OpenrouterApplyPatch; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant7? value) { - Reasoning = value; + OpenrouterApplyPatch = value; } /// @@ -278,12 +499,246 @@ public OutputItems(global::OpenRouter.OutputItemsVariant7? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant8?(OutputItems @this) => @this.WebSearchCall; + public static implicit operator global::OpenRouter.OutputItemsVariant8?(OutputItems @this) => @this.OpenrouterBash; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant8? value) + { + OpenrouterBash = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant9 value) => new OutputItems((global::OpenRouter.OutputItemsVariant9?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant9?(OutputItems @this) => @this.OpenrouterBrowserUse; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant9? value) + { + OpenrouterBrowserUse = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant10 value) => new OutputItems((global::OpenRouter.OutputItemsVariant10?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant10?(OutputItems @this) => @this.OpenrouterCodeInterpreter; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant10? value) + { + OpenrouterCodeInterpreter = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant11 value) => new OutputItems((global::OpenRouter.OutputItemsVariant11?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant11?(OutputItems @this) => @this.OpenrouterDatetime; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant11? value) + { + OpenrouterDatetime = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant12 value) => new OutputItems((global::OpenRouter.OutputItemsVariant12?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant12?(OutputItems @this) => @this.OpenrouterFileSearch; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant12? value) + { + OpenrouterFileSearch = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant13 value) => new OutputItems((global::OpenRouter.OutputItemsVariant13?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant13?(OutputItems @this) => @this.OpenrouterImageGeneration; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant13? value) + { + OpenrouterImageGeneration = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant14 value) => new OutputItems((global::OpenRouter.OutputItemsVariant14?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant14?(OutputItems @this) => @this.OpenrouterMcp; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant14? value) + { + OpenrouterMcp = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant15 value) => new OutputItems((global::OpenRouter.OutputItemsVariant15?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant15?(OutputItems @this) => @this.OpenrouterMemory; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant15? value) + { + OpenrouterMemory = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant16 value) => new OutputItems((global::OpenRouter.OutputItemsVariant16?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant16?(OutputItems @this) => @this.OpenrouterTextEditor; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant16? value) + { + OpenrouterTextEditor = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant17 value) => new OutputItems((global::OpenRouter.OutputItemsVariant17?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant17?(OutputItems @this) => @this.OpenrouterToolSearch; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant17? value) + { + OpenrouterToolSearch = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant18 value) => new OutputItems((global::OpenRouter.OutputItemsVariant18?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant18?(OutputItems @this) => @this.OpenrouterWebFetch; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant18? value) + { + OpenrouterWebFetch = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant19 value) => new OutputItems((global::OpenRouter.OutputItemsVariant19?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant19?(OutputItems @this) => @this.OpenrouterWebSearch; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant19? value) + { + OpenrouterWebSearch = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant20 value) => new OutputItems((global::OpenRouter.OutputItemsVariant20?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant20?(OutputItems @this) => @this.Reasoning; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant20? value) + { + Reasoning = value; + } + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant21 value) => new OutputItems((global::OpenRouter.OutputItemsVariant21?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant21?(OutputItems @this) => @this.WebSearchCall; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant21? value) { WebSearchCall = value; } @@ -292,21 +747,47 @@ public OutputItems(global::OpenRouter.OutputItemsVariant8? value) /// /// public OutputItems( - global::OpenRouter.OutputItemsVariant1? fileSearchCall, - global::OpenRouter.OutputItemsVariant2? functionCall, - global::OpenRouter.OutputItemsVariant3? imageGenerationCall, - global::OpenRouter.OutputItemsVariant4? message, - global::OpenRouter.OutputItemsVariant5? openrouterDatetime, - global::OpenRouter.OutputItemsVariant6? openrouterWebSearch, - global::OpenRouter.OutputItemsVariant7? reasoning, - global::OpenRouter.OutputItemsVariant8? webSearchCall + global::OpenRouter.OutputItemsVariant1? codeInterpreterCall, + global::OpenRouter.OutputItemsVariant2? computerCall, + global::OpenRouter.OutputItemsVariant3? fileSearchCall, + global::OpenRouter.OutputItemsVariant4? functionCall, + global::OpenRouter.OutputItemsVariant5? imageGenerationCall, + global::OpenRouter.OutputItemsVariant6? message, + global::OpenRouter.OutputItemsVariant7? openrouterApplyPatch, + global::OpenRouter.OutputItemsVariant8? openrouterBash, + global::OpenRouter.OutputItemsVariant9? openrouterBrowserUse, + global::OpenRouter.OutputItemsVariant10? openrouterCodeInterpreter, + global::OpenRouter.OutputItemsVariant11? openrouterDatetime, + global::OpenRouter.OutputItemsVariant12? openrouterFileSearch, + global::OpenRouter.OutputItemsVariant13? openrouterImageGeneration, + global::OpenRouter.OutputItemsVariant14? openrouterMcp, + global::OpenRouter.OutputItemsVariant15? openrouterMemory, + global::OpenRouter.OutputItemsVariant16? openrouterTextEditor, + global::OpenRouter.OutputItemsVariant17? openrouterToolSearch, + global::OpenRouter.OutputItemsVariant18? openrouterWebFetch, + global::OpenRouter.OutputItemsVariant19? openrouterWebSearch, + global::OpenRouter.OutputItemsVariant20? reasoning, + global::OpenRouter.OutputItemsVariant21? webSearchCall ) { + CodeInterpreterCall = codeInterpreterCall; + ComputerCall = computerCall; FileSearchCall = fileSearchCall; FunctionCall = functionCall; ImageGenerationCall = imageGenerationCall; Message = message; + OpenrouterApplyPatch = openrouterApplyPatch; + OpenrouterBash = openrouterBash; + OpenrouterBrowserUse = openrouterBrowserUse; + OpenrouterCodeInterpreter = openrouterCodeInterpreter; OpenrouterDatetime = openrouterDatetime; + OpenrouterFileSearch = openrouterFileSearch; + OpenrouterImageGeneration = openrouterImageGeneration; + OpenrouterMcp = openrouterMcp; + OpenrouterMemory = openrouterMemory; + OpenrouterTextEditor = openrouterTextEditor; + OpenrouterToolSearch = openrouterToolSearch; + OpenrouterWebFetch = openrouterWebFetch; OpenrouterWebSearch = openrouterWebSearch; Reasoning = reasoning; WebSearchCall = webSearchCall; @@ -319,22 +800,48 @@ public OutputItems( WebSearchCall as object ?? Reasoning as object ?? OpenrouterWebSearch as object ?? + OpenrouterWebFetch as object ?? + OpenrouterToolSearch as object ?? + OpenrouterTextEditor as object ?? + OpenrouterMemory as object ?? + OpenrouterMcp as object ?? + OpenrouterImageGeneration as object ?? + OpenrouterFileSearch as object ?? OpenrouterDatetime as object ?? + OpenrouterCodeInterpreter as object ?? + OpenrouterBrowserUse as object ?? + OpenrouterBash as object ?? + OpenrouterApplyPatch as object ?? Message as object ?? ImageGenerationCall as object ?? FunctionCall as object ?? - FileSearchCall as object + FileSearchCall as object ?? + ComputerCall as object ?? + CodeInterpreterCall as object ; /// /// /// public override string? ToString() => + CodeInterpreterCall?.ToString() ?? + ComputerCall?.ToString() ?? FileSearchCall?.ToString() ?? FunctionCall?.ToString() ?? ImageGenerationCall?.ToString() ?? Message?.ToString() ?? + OpenrouterApplyPatch?.ToString() ?? + OpenrouterBash?.ToString() ?? + OpenrouterBrowserUse?.ToString() ?? + OpenrouterCodeInterpreter?.ToString() ?? OpenrouterDatetime?.ToString() ?? + OpenrouterFileSearch?.ToString() ?? + OpenrouterImageGeneration?.ToString() ?? + OpenrouterMcp?.ToString() ?? + OpenrouterMemory?.ToString() ?? + OpenrouterTextEditor?.ToString() ?? + OpenrouterToolSearch?.ToString() ?? + OpenrouterWebFetch?.ToString() ?? OpenrouterWebSearch?.ToString() ?? Reasoning?.ToString() ?? WebSearchCall?.ToString() @@ -345,21 +852,34 @@ FileSearchCall as object /// public bool Validate() { - return IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterDatetime && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsFileSearchCall && IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterDatetime && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsFileSearchCall && !IsFunctionCall && IsImageGenerationCall && !IsMessage && !IsOpenrouterDatetime && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && IsMessage && !IsOpenrouterDatetime && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && IsOpenrouterDatetime && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterDatetime && IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterDatetime && !IsOpenrouterWebSearch && IsReasoning && !IsWebSearchCall || !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterDatetime && !IsOpenrouterWebSearch && !IsReasoning && IsWebSearchCall; + return IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && IsOpenrouterWebSearch && !IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && IsReasoning && !IsWebSearchCall || !IsCodeInterpreterCall && !IsComputerCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterFileSearch && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && IsWebSearchCall; } /// /// /// public TResult? Match( - global::System.Func? fileSearchCall = null, - global::System.Func? functionCall = null, - global::System.Func? imageGenerationCall = null, - global::System.Func? message = null, - global::System.Func? openrouterDatetime = null, - global::System.Func? openrouterWebSearch = null, - global::System.Func? reasoning = null, - global::System.Func? webSearchCall = null, + global::System.Func? codeInterpreterCall = null, + global::System.Func? computerCall = 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? openrouterFileSearch = 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) @@ -367,7 +887,15 @@ public bool Validate() Validate(); } - if (IsFileSearchCall && fileSearchCall != null) + if (IsCodeInterpreterCall && codeInterpreterCall != null) + { + return codeInterpreterCall(CodeInterpreterCall!); + } + else if (IsComputerCall && computerCall != null) + { + return computerCall(ComputerCall!); + } + else if (IsFileSearchCall && fileSearchCall != null) { return fileSearchCall(FileSearchCall!); } @@ -383,10 +911,54 @@ public bool Validate() { return message(Message!); } + else if (IsOpenrouterApplyPatch && openrouterApplyPatch != null) + { + return openrouterApplyPatch(OpenrouterApplyPatch!); + } + else if (IsOpenrouterBash && openrouterBash != null) + { + return openrouterBash(OpenrouterBash!); + } + else if (IsOpenrouterBrowserUse && openrouterBrowserUse != null) + { + return openrouterBrowserUse(OpenrouterBrowserUse!); + } + else if (IsOpenrouterCodeInterpreter && openrouterCodeInterpreter != null) + { + return openrouterCodeInterpreter(OpenrouterCodeInterpreter!); + } else if (IsOpenrouterDatetime && openrouterDatetime != null) { return openrouterDatetime(OpenrouterDatetime!); } + else if (IsOpenrouterFileSearch && openrouterFileSearch != null) + { + return openrouterFileSearch(OpenrouterFileSearch!); + } + else if (IsOpenrouterImageGeneration && openrouterImageGeneration != null) + { + return openrouterImageGeneration(OpenrouterImageGeneration!); + } + else if (IsOpenrouterMcp && openrouterMcp != null) + { + return openrouterMcp(OpenrouterMcp!); + } + else if (IsOpenrouterMemory && openrouterMemory != null) + { + return openrouterMemory(OpenrouterMemory!); + } + else if (IsOpenrouterTextEditor && openrouterTextEditor != null) + { + return openrouterTextEditor(OpenrouterTextEditor!); + } + else if (IsOpenrouterToolSearch && openrouterToolSearch != null) + { + return openrouterToolSearch(OpenrouterToolSearch!); + } + else if (IsOpenrouterWebFetch && openrouterWebFetch != null) + { + return openrouterWebFetch(OpenrouterWebFetch!); + } else if (IsOpenrouterWebSearch && openrouterWebSearch != null) { return openrouterWebSearch(OpenrouterWebSearch!); @@ -407,14 +979,27 @@ public bool Validate() /// /// public void Match( - global::System.Action? fileSearchCall = null, - global::System.Action? functionCall = null, - global::System.Action? imageGenerationCall = null, - global::System.Action? message = null, - global::System.Action? openrouterDatetime = null, - global::System.Action? openrouterWebSearch = null, - global::System.Action? reasoning = null, - global::System.Action? webSearchCall = null, + global::System.Action? codeInterpreterCall = null, + global::System.Action? computerCall = 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? openrouterFileSearch = 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) @@ -422,7 +1007,15 @@ public void Match( Validate(); } - if (IsFileSearchCall) + if (IsCodeInterpreterCall) + { + codeInterpreterCall?.Invoke(CodeInterpreterCall!); + } + else if (IsComputerCall) + { + computerCall?.Invoke(ComputerCall!); + } + else if (IsFileSearchCall) { fileSearchCall?.Invoke(FileSearchCall!); } @@ -438,10 +1031,54 @@ public void Match( { message?.Invoke(Message!); } + else if (IsOpenrouterApplyPatch) + { + openrouterApplyPatch?.Invoke(OpenrouterApplyPatch!); + } + else if (IsOpenrouterBash) + { + openrouterBash?.Invoke(OpenrouterBash!); + } + else if (IsOpenrouterBrowserUse) + { + openrouterBrowserUse?.Invoke(OpenrouterBrowserUse!); + } + else if (IsOpenrouterCodeInterpreter) + { + openrouterCodeInterpreter?.Invoke(OpenrouterCodeInterpreter!); + } else if (IsOpenrouterDatetime) { openrouterDatetime?.Invoke(OpenrouterDatetime!); } + else if (IsOpenrouterFileSearch) + { + openrouterFileSearch?.Invoke(OpenrouterFileSearch!); + } + else if (IsOpenrouterImageGeneration) + { + openrouterImageGeneration?.Invoke(OpenrouterImageGeneration!); + } + else if (IsOpenrouterMcp) + { + openrouterMcp?.Invoke(OpenrouterMcp!); + } + else if (IsOpenrouterMemory) + { + openrouterMemory?.Invoke(OpenrouterMemory!); + } + else if (IsOpenrouterTextEditor) + { + openrouterTextEditor?.Invoke(OpenrouterTextEditor!); + } + else if (IsOpenrouterToolSearch) + { + openrouterToolSearch?.Invoke(OpenrouterToolSearch!); + } + else if (IsOpenrouterWebFetch) + { + openrouterWebFetch?.Invoke(OpenrouterWebFetch!); + } else if (IsOpenrouterWebSearch) { openrouterWebSearch?.Invoke(OpenrouterWebSearch!); @@ -463,22 +1100,48 @@ public override int GetHashCode() { var fields = new object?[] { - FileSearchCall, + CodeInterpreterCall, typeof(global::OpenRouter.OutputItemsVariant1), - FunctionCall, + ComputerCall, typeof(global::OpenRouter.OutputItemsVariant2), - ImageGenerationCall, + FileSearchCall, typeof(global::OpenRouter.OutputItemsVariant3), - Message, + FunctionCall, typeof(global::OpenRouter.OutputItemsVariant4), - OpenrouterDatetime, + ImageGenerationCall, typeof(global::OpenRouter.OutputItemsVariant5), - OpenrouterWebSearch, + Message, typeof(global::OpenRouter.OutputItemsVariant6), - Reasoning, + OpenrouterApplyPatch, typeof(global::OpenRouter.OutputItemsVariant7), - WebSearchCall, + OpenrouterBash, typeof(global::OpenRouter.OutputItemsVariant8), + OpenrouterBrowserUse, + typeof(global::OpenRouter.OutputItemsVariant9), + OpenrouterCodeInterpreter, + typeof(global::OpenRouter.OutputItemsVariant10), + OpenrouterDatetime, + typeof(global::OpenRouter.OutputItemsVariant11), + OpenrouterFileSearch, + typeof(global::OpenRouter.OutputItemsVariant12), + OpenrouterImageGeneration, + typeof(global::OpenRouter.OutputItemsVariant13), + OpenrouterMcp, + typeof(global::OpenRouter.OutputItemsVariant14), + OpenrouterMemory, + typeof(global::OpenRouter.OutputItemsVariant15), + OpenrouterTextEditor, + typeof(global::OpenRouter.OutputItemsVariant16), + OpenrouterToolSearch, + typeof(global::OpenRouter.OutputItemsVariant17), + OpenrouterWebFetch, + typeof(global::OpenRouter.OutputItemsVariant18), + OpenrouterWebSearch, + typeof(global::OpenRouter.OutputItemsVariant19), + Reasoning, + typeof(global::OpenRouter.OutputItemsVariant20), + WebSearchCall, + typeof(global::OpenRouter.OutputItemsVariant21), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -495,14 +1158,27 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(OutputItems other) { return - 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(OpenrouterDatetime, other.OpenrouterDatetime) && - 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(CodeInterpreterCall, other.CodeInterpreterCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ComputerCall, other.ComputerCall) && + 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(OpenrouterFileSearch, other.OpenrouterFileSearch) && + 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.OutputItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1.g.cs index b6a1838..42c3a51 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant1.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// file_search_call variant + /// code_interpreter_call variant /// public sealed partial class OutputItemsVariant1 { @@ -12,8 +12,21 @@ public sealed partial class OutputItemsVariant1 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemFileSearchCallTypeJsonConverter))] - public global::OpenRouter.OutputItemFileSearchCallType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CodeInterpreterCallItemTypeJsonConverter))] + public global::OpenRouter.CodeInterpreterCallItemType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("container_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ContainerId { get; set; } /// /// @@ -25,17 +38,16 @@ public sealed partial class OutputItemsVariant1 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("queries")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Queries { 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.WebSearchStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.WebSearchStatus Status { get; set; } + public required global::OpenRouter.ToolCallStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -46,22 +58,28 @@ public sealed partial class OutputItemsVariant1 /// /// Initializes a new instance of the class. /// + /// /// - /// /// /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant1( + string containerId, string id, - global::System.Collections.Generic.IList queries, - global::OpenRouter.WebSearchStatus status, - global::OpenRouter.OutputItemFileSearchCallType type) + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.CodeInterpreterCallItemType type, + string? code, + global::System.Collections.Generic.IList? outputs) { this.Type = type; + this.Code = code; + this.ContainerId = containerId ?? throw new global::System.ArgumentNullException(nameof(containerId)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Queries = queries ?? throw new global::System.ArgumentNullException(nameof(queries)); + this.Outputs = outputs; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10.Json.g.cs new file mode 100644 index 0000000..15c1982 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant10 + { + /// + /// 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.OutputItemsVariant10? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant10), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant10; + } + + /// + /// 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.OutputItemsVariant10? 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.OutputItemsVariant10), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant10; + } + + /// + /// 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.OutputItemsVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10.g.cs new file mode 100644 index 0000000..0eff0ff --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant10.g.cs @@ -0,0 +1,109 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:code_interpreter variant + /// + public sealed partial class OutputItemsVariant10 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputCodeInterpreterServerToolItemType Type { 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; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language")] + public string? Language { 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("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 + /// + [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 OutputItemsVariant10( + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputCodeInterpreterServerToolItemType type, + string? code, + int? exitCode, + string? id, + string? language, + string? stderr, + string? stdout) + { + this.Type = type; + this.Code = code; + this.ExitCode = exitCode; + this.Id = id; + this.Language = language; + this.Status = status; + this.Stderr = stderr; + this.Stdout = stdout; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant10() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11.Json.g.cs new file mode 100644 index 0000000..246135d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant11 + { + /// + /// 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.OutputItemsVariant11? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant11), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant11; + } + + /// + /// 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.OutputItemsVariant11? 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.OutputItemsVariant11), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant11; + } + + /// + /// 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.OutputItemsVariant11.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11.g.cs new file mode 100644 index 0000000..3af6c43 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant11.g.cs @@ -0,0 +1,88 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:datetime variant + /// + public sealed partial class OutputItemsVariant11 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputDatetimeItemTypeJsonConverter))] + public global::OpenRouter.OutputDatetimeItemType 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("id")] + public string? Id { 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; } + + /// + /// 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 + /// + [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. + /// + /// + /// ISO 8601 datetime string + /// + /// + /// + /// IANA timezone name + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OutputItemsVariant11( + string datetime, + global::OpenRouter.ToolCallStatus status, + string timezone, + global::OpenRouter.OutputDatetimeItemType type, + string? id) + { + this.Type = type; + this.Datetime = datetime ?? throw new global::System.ArgumentNullException(nameof(datetime)); + this.Id = id; + this.Status = status; + this.Timezone = timezone ?? throw new global::System.ArgumentNullException(nameof(timezone)); + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant11() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12.Json.g.cs new file mode 100644 index 0000000..e0ffc10 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant12 + { + /// + /// 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.OutputItemsVariant12? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant12), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant12; + } + + /// + /// 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.OutputItemsVariant12? 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.OutputItemsVariant12), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant12; + } + + /// + /// 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.OutputItemsVariant12.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12.g.cs new file mode 100644 index 0000000..c67bf6c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant12.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:file_search variant + /// + public sealed partial class OutputItemsVariant12 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputFileSearchServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputFileSearchServerToolItemType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("queries")] + public 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.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 + /// + [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 OutputItemsVariant12( + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputFileSearchServerToolItemType type, + string? id, + global::System.Collections.Generic.IList? queries) + { + this.Type = type; + this.Id = id; + this.Queries = queries; + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant12() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13.Json.g.cs new file mode 100644 index 0000000..45e1921 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant13 + { + /// + /// 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.OutputItemsVariant13? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant13), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant13; + } + + /// + /// 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.OutputItemsVariant13? 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.OutputItemsVariant13), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant13; + } + + /// + /// 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.OutputItemsVariant13.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13.g.cs new file mode 100644 index 0000000..e1664c2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant13.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:image_generation variant + /// + public sealed partial class OutputItemsVariant13 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputImageGenerationServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputImageGenerationServerToolItemType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("imageB64")] + public string? ImageB64 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("imageUrl")] + public string? ImageUrl { 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 + /// + [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 OutputItemsVariant13( + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputImageGenerationServerToolItemType type, + string? id, + string? imageB64, + string? imageUrl, + string? revisedPrompt) + { + this.Type = type; + this.Id = id; + this.ImageB64 = imageB64; + this.ImageUrl = imageUrl; + this.RevisedPrompt = revisedPrompt; + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant13() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14.Json.g.cs new file mode 100644 index 0000000..cc882fc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant14 + { + /// + /// 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.OutputItemsVariant14? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant14), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant14; + } + + /// + /// 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.OutputItemsVariant14? 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.OutputItemsVariant14), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant14; + } + + /// + /// 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.OutputItemsVariant14.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14.g.cs new file mode 100644 index 0000000..6abf394 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant14.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:mcp variant + /// + public sealed partial class OutputItemsVariant14 + { + /// + /// + /// + [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.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("serverLabel")] + public string? ServerLabel { 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("toolName")] + public string? ToolName { 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 OutputItemsVariant14( + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputMcpServerToolItemType type, + string? id, + string? serverLabel, + string? toolName) + { + this.Type = type; + this.Id = id; + this.ServerLabel = serverLabel; + this.Status = status; + this.ToolName = toolName; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant14() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15.Json.g.cs new file mode 100644 index 0000000..51e6265 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant15 + { + /// + /// 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.OutputItemsVariant15? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant15), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant15; + } + + /// + /// 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.OutputItemsVariant15? 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.OutputItemsVariant15), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant15; + } + + /// + /// 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.OutputItemsVariant15.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15.g.cs new file mode 100644 index 0000000..b5da531 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15.g.cs @@ -0,0 +1,92 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:memory variant + /// + public sealed partial class OutputItemsVariant15 + { + /// + /// + /// + [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.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public string? Key { 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("value")] + public object? Value { 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 OutputItemsVariant15( + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputMemoryServerToolItemType type, + global::OpenRouter.OutputMemoryServerToolItemAction? action, + string? id, + string? key, + object? value) + { + this.Type = type; + this.Action = action; + this.Id = id; + this.Key = key; + this.Status = status; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant15() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15Value.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15Value.Json.g.cs new file mode 100644 index 0000000..3aab504 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15Value.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant15Value + { + /// + /// 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.OutputItemsVariant15Value? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant15Value), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant15Value; + } + + /// + /// 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.OutputItemsVariant15Value? 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.OutputItemsVariant15Value), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant15Value; + } + + /// + /// 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.OutputItemsVariant15Value.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15Value.g.cs new file mode 100644 index 0000000..6917c37 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant15Value.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class OutputItemsVariant15Value + { + + /// + /// 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.OutputItemsVariant16.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16.Json.g.cs new file mode 100644 index 0000000..825147b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant16 + { + /// + /// 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.OutputItemsVariant16? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant16), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant16; + } + + /// + /// 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.OutputItemsVariant16? 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.OutputItemsVariant16), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant16; + } + + /// + /// 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.OutputItemsVariant16.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16.g.cs new file mode 100644 index 0000000..80dfffd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant16.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:text_editor variant + /// + public sealed partial class OutputItemsVariant16 + { + /// + /// + /// + [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.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("id")] + public string? Id { 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 + /// + [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 OutputItemsVariant16( + global::OpenRouter.ToolCallStatus status, + 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.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant16() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.Json.g.cs new file mode 100644 index 0000000..48458ee --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant17 + { + /// + /// 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.OutputItemsVariant17? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant17), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant17; + } + + /// + /// 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.OutputItemsVariant17? 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.OutputItemsVariant17), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant17; + } + + /// + /// 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.OutputItemsVariant17.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs new file mode 100644 index 0000000..8f02e0a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:tool_search variant + /// + public sealed partial class OutputItemsVariant17 + { + /// + /// + /// + [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.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + public string? Query { 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 + /// + [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 OutputItemsVariant17( + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputToolSearchServerToolItemType type, + string? id, + string? query) + { + this.Type = type; + this.Id = id; + this.Query = query; + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant17() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.Json.g.cs new file mode 100644 index 0000000..cf4fc77 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant18 + { + /// + /// 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.OutputItemsVariant18? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant18), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant18; + } + + /// + /// 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.OutputItemsVariant18? 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.OutputItemsVariant18), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant18; + } + + /// + /// 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.OutputItemsVariant18.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs new file mode 100644 index 0000000..5eebfcd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:web_fetch variant + /// + public sealed partial class OutputItemsVariant18 + { + /// + /// + /// + [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.JsonPropertyName("content")] + public string? Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { 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("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 + /// + [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 OutputItemsVariant18( + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputWebFetchServerToolItemType type, + string? content, + string? id, + string? title, + string? url) + { + this.Type = type; + this.Content = content; + this.Id = id; + this.Status = status; + this.Title = title; + this.Url = url; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant18() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.Json.g.cs new file mode 100644 index 0000000..bec6678 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant19 + { + /// + /// 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.OutputItemsVariant19? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant19), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant19; + } + + /// + /// 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.OutputItemsVariant19? 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.OutputItemsVariant19), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant19; + } + + /// + /// 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.OutputItemsVariant19.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs new file mode 100644 index 0000000..7ffb8af --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:web_search variant + /// + public sealed partial class OutputItemsVariant19 + { + /// + /// + /// + [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.JsonPropertyName("id")] + public string? Id { 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 + /// + [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 OutputItemsVariant19( + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputWebSearchServerToolItemType type, + string? id) + { + this.Type = type; + this.Id = id; + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant19() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2.g.cs index 775f43e..dc26ffc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// function_call variant + /// computer_call variant /// public sealed partial class OutputItemsVariant2 { @@ -12,15 +12,14 @@ public sealed partial class OutputItemsVariant2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemFunctionCallTypeJsonConverter))] - public global::OpenRouter.OutputItemFunctionCallType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputComputerCallItemTypeJsonConverter))] + public global::OpenRouter.OutputComputerCallItemType 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("action")] + public object? Action { get; set; } /// /// @@ -38,16 +37,17 @@ public sealed partial class OutputItemsVariant2 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonPropertyName("pending_safety_checks")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } + public required global::System.Collections.Generic.IList PendingSafetyChecks { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemFunctionCallStatusJsonConverter))] - public global::OpenRouter.OutputItemFunctionCallStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputComputerCallItemStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.OutputComputerCallItemStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -58,28 +58,28 @@ public sealed partial class OutputItemsVariant2 /// /// Initializes a new instance of the class. /// - /// /// - /// + /// + /// /// + /// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant2( - string arguments, string callId, - string name, - global::OpenRouter.OutputItemFunctionCallType type, - string? id, - global::OpenRouter.OutputItemFunctionCallStatus? status) + global::System.Collections.Generic.IList pendingSafetyChecks, + global::OpenRouter.OutputComputerCallItemStatus status, + global::OpenRouter.OutputComputerCallItemType type, + object? action, + string? id) { this.Type = type; - this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); + this.Action = action; this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); this.Id = id; - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.PendingSafetyChecks = pendingSafetyChecks ?? throw new global::System.ArgumentNullException(nameof(pendingSafetyChecks)); this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.Json.g.cs new file mode 100644 index 0000000..8eb211f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant20 + { + /// + /// 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.OutputItemsVariant20? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant20), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant20; + } + + /// + /// 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.OutputItemsVariant20? 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.OutputItemsVariant20), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant20; + } + + /// + /// 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.OutputItemsVariant20.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs new file mode 100644 index 0000000..8d2ed25 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs @@ -0,0 +1,113 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// reasoning variant + /// + public sealed partial class OutputItemsVariant20 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemReasoningTypeJsonConverter))] + public global::OpenRouter.OutputItemReasoningType Type { 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; } + + /// + /// + /// + [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.OutputItemReasoningStatusJsonConverter))] + public global::OpenRouter.OutputItemReasoningStatus? Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + [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; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// A signature for the reasoning content, used for verification + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OutputItemsVariant20( + string id, + global::System.Collections.Generic.IList summary, + global::OpenRouter.OutputItemReasoningType type, + global::System.Collections.Generic.IList? content, + string? encryptedContent, + global::OpenRouter.OutputItemReasoningStatus? status, + global::OpenRouter.ReasoningFormat? format, + string? signature) + { + this.Type = type; + 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; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant20() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.Json.g.cs new file mode 100644 index 0000000..4ea00de --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant21 + { + /// + /// 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.OutputItemsVariant21? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant21), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant21; + } + + /// + /// 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.OutputItemsVariant21? 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.OutputItemsVariant21), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant21; + } + + /// + /// 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.OutputItemsVariant21.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.g.cs new file mode 100644 index 0000000..e52bdb4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// web_search_call variant + /// + public sealed partial class OutputItemsVariant21 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemWebSearchCallTypeJsonConverter))] + public global::OpenRouter.OutputItemWebSearchCallType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemWebSearchCallActionJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.OutputItemWebSearchCallAction 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 OutputItemsVariant21( + global::OpenRouter.OutputItemWebSearchCallAction action, + string id, + global::OpenRouter.WebSearchStatus status, + global::OpenRouter.OutputItemWebSearchCallType 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 OutputItemsVariant21() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.Json.g.cs new file mode 100644 index 0000000..7219a65 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant2Action + { + /// + /// 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.OutputItemsVariant2Action? 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; + } + + /// + /// 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.OutputItemsVariant2Action? 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.OutputItemsVariant2Action), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant2Action; + } + + /// + /// 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.OutputItemsVariant2Action.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.g.cs new file mode 100644 index 0000000..0f02ee5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant2Action.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class OutputItemsVariant2Action + { + + /// + /// 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.OutputItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs index fdf7a01..70bb733 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// image_generation_call variant + /// file_search_call variant /// public sealed partial class OutputItemsVariant3 { @@ -12,8 +12,8 @@ public sealed partial class OutputItemsVariant3 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemImageGenerationCallTypeJsonConverter))] - public global::OpenRouter.OutputItemImageGenerationCallType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemFileSearchCallTypeJsonConverter))] + public global::OpenRouter.OutputItemFileSearchCallType Type { get; set; } /// /// @@ -25,16 +25,17 @@ public sealed partial class OutputItemsVariant3 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - public string? Result { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("queries")] + [global::System.Text.Json.Serialization.JsonRequired] + 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.ImageGenerationStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ImageGenerationStatus Status { get; set; } + public required global::OpenRouter.WebSearchStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -46,21 +47,21 @@ public sealed partial class OutputItemsVariant3 /// Initializes a new instance of the class. /// /// + /// /// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant3( string id, - global::OpenRouter.ImageGenerationStatus status, - global::OpenRouter.OutputItemImageGenerationCallType type, - string? result) + global::System.Collections.Generic.IList queries, + global::OpenRouter.WebSearchStatus status, + global::OpenRouter.OutputItemFileSearchCallType type) { this.Type = type; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Result = result; + this.Queries = queries ?? throw new global::System.ArgumentNullException(nameof(queries)); this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4.g.cs index 3481026..78c4552 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant4.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// message variant + /// function_call variant /// public sealed partial class OutputItemsVariant4 { @@ -12,43 +12,42 @@ public sealed partial class OutputItemsVariant4 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageTypeJsonConverter))] - public global::OpenRouter.OutputMessageType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemFunctionCallTypeJsonConverter))] + public global::OpenRouter.OutputItemFunctionCallType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Content { get; set; } + public required string Arguments { 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; } /// - /// 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.OutputMessagePhaseJsonConverter))] - public global::OpenRouter.OutputMessagePhase? Phase { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageRoleJsonConverter))] - public global::OpenRouter.OutputMessageRole Role { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageStatusJsonConverter))] - public global::OpenRouter.OutputMessageStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemFunctionCallStatusJsonConverter))] + public global::OpenRouter.OutputItemFunctionCallStatus? Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,30 +58,28 @@ public sealed partial class OutputItemsVariant4 /// /// 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 OutputItemsVariant4( - global::System.Collections.Generic.IList content, - string id, - global::OpenRouter.OutputMessageType type, - global::OpenRouter.OutputMessagePhase? phase, - global::OpenRouter.OutputMessageRole role, - global::OpenRouter.OutputMessageStatus? status) + string arguments, + string callId, + string name, + global::OpenRouter.OutputItemFunctionCallType type, + string? id, + global::OpenRouter.OutputItemFunctionCallStatus? status) { 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.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.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant5.g.cs index 06f9f02..dd47ca3 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 { /// - /// openrouter:datetime variant + /// image_generation_call variant /// public sealed partial class OutputItemsVariant5 { @@ -12,36 +12,29 @@ public sealed partial class OutputItemsVariant5 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputDatetimeItemTypeJsonConverter))] - public global::OpenRouter.OutputDatetimeItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemImageGenerationCallTypeJsonConverter))] + public global::OpenRouter.OutputItemImageGenerationCallType Type { get; set; } /// - /// ISO 8601 datetime string + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("datetime")] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Datetime { get; set; } + public required string Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { 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.ToolCallStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationStatusJsonConverter))] [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; } + public required global::OpenRouter.ImageGenerationStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,30 +45,23 @@ public sealed partial class OutputItemsVariant5 /// /// Initializes a new instance of the class. /// - /// - /// ISO 8601 datetime string - /// + /// /// - /// - /// IANA timezone name - /// /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant5( - string datetime, - global::OpenRouter.ToolCallStatus status, - string timezone, - global::OpenRouter.OutputDatetimeItemType type, - string? id) + string id, + global::OpenRouter.ImageGenerationStatus status, + global::OpenRouter.OutputItemImageGenerationCallType type, + string? result) { this.Type = type; - this.Datetime = datetime ?? throw new global::System.ArgumentNullException(nameof(datetime)); - this.Id = id; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Result = result; this.Status = status; - this.Timezone = timezone ?? throw new global::System.ArgumentNullException(nameof(timezone)); } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant6.g.cs index f3acf3f..cd0bd08 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 { /// - /// openrouter:web_search variant + /// message variant /// public sealed partial class OutputItemsVariant6 { @@ -12,22 +12,43 @@ public sealed partial class OutputItemsVariant6 /// /// [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.OutputMessageTypeJsonConverter))] + public global::OpenRouter.OutputMessageType 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.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.OutputMessagePhaseJsonConverter))] + public global::OpenRouter.OutputMessagePhase? Phase { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageRoleJsonConverter))] + public global::OpenRouter.OutputMessageRole 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.OutputMessageStatusJsonConverter))] + public global::OpenRouter.OutputMessageStatus? Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,19 +59,30 @@ public sealed partial class OutputItemsVariant6 /// /// 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 OutputItemsVariant6( - global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputWebSearchServerToolItemType type, - string? id) + global::System.Collections.Generic.IList content, + string id, + global::OpenRouter.OutputMessageType type, + global::OpenRouter.OutputMessagePhase? phase, + global::OpenRouter.OutputMessageRole role, + global::OpenRouter.OutputMessageStatus? status) { this.Type = type; - this.Id = id; + 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.OutputItemsVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant7.g.cs index e210ef1..58ec01a 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 { /// - /// reasoning variant + /// openrouter:apply_patch variant /// public sealed partial class OutputItemsVariant7 { @@ -12,54 +12,34 @@ public sealed partial class OutputItemsVariant7 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemReasoningTypeJsonConverter))] - public global::OpenRouter.OutputItemReasoningType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputApplyPatchServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputApplyPatchServerToolItemType Type { 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; } + [global::System.Text.Json.Serialization.JsonPropertyName("filePath")] + public string? FilePath { 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.OutputItemReasoningStatusJsonConverter))] - public global::OpenRouter.OutputItemReasoningStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("patch")] + public string? Patch { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + [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::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 +50,26 @@ public sealed partial class OutputItemsVariant7 /// /// 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 OutputItemsVariant7( - string id, - global::System.Collections.Generic.IList summary, - global::OpenRouter.OutputItemReasoningType type, - global::System.Collections.Generic.IList? content, - string? encryptedContent, - global::OpenRouter.OutputItemReasoningStatus? status, - global::OpenRouter.ReasoningFormat? format, - string? signature) + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputApplyPatchServerToolItemType type, + string? filePath, + string? id, + string? patch) { this.Type = type; - this.Content = content; - this.EncryptedContent = encryptedContent; - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.FilePath = filePath; + this.Id = id; + this.Patch = patch; 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.OutputItemsVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs index 2951080..73060c3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// web_search_call variant + /// openrouter:bash variant /// public sealed partial class OutputItemsVariant8 { @@ -12,31 +12,46 @@ public sealed partial class OutputItemsVariant8 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemWebSearchCallTypeJsonConverter))] - public global::OpenRouter.OutputItemWebSearchCallType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputBashServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputBashServerToolItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemWebSearchCallActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OutputItemWebSearchCallAction Action { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("command")] + public string? Command { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exitCode")] + public int? ExitCode { 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.WebSearchStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.WebSearchStatus Status { get; set; } + 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 @@ -47,23 +62,32 @@ public sealed partial class OutputItemsVariant8 /// /// Initializes a new instance of the class. /// - /// - /// /// /// + /// + /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant8( - global::OpenRouter.OutputItemWebSearchCallAction action, - string id, - global::OpenRouter.WebSearchStatus status, - global::OpenRouter.OutputItemWebSearchCallType type) + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputBashServerToolItemType type, + string? command, + int? exitCode, + string? id, + string? stderr, + string? stdout) { this.Type = type; - this.Action = action; - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Command = command; + this.ExitCode = exitCode; + this.Id = id; this.Status = status; + this.Stderr = stderr; + this.Stdout = stdout; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9.Json.g.cs new file mode 100644 index 0000000..92bfe2f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant9 + { + /// + /// 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.OutputItemsVariant9? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant9), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant9; + } + + /// + /// 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.OutputItemsVariant9? 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.OutputItemsVariant9), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant9; + } + + /// + /// 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.OutputItemsVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9.g.cs new file mode 100644 index 0000000..65dc0dd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant9.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// openrouter:browser_use variant + /// + public sealed partial class OutputItemsVariant9 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputBrowserUseServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputBrowserUseServerToolItemType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + public string? Action { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("screenshotB64")] + public string? ScreenshotB64 { 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 + /// + [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 OutputItemsVariant9( + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputBrowserUseServerToolItemType type, + string? action, + string? id, + string? screenshotB64) + { + this.Type = type; + this.Action = action; + this.Id = id; + this.ScreenshotB64 = screenshotB64; + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant9() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMcpServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMcpServerToolItemType.g.cs new file mode 100644 index 0000000..267f83f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMcpServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputMcpServerToolItemType + { + /// + /// + /// + Openrouter_mcp, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputMcpServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputMcpServerToolItemType value) + { + return value switch + { + OutputMcpServerToolItemType.Openrouter_mcp => "openrouter:mcp", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputMcpServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:mcp" => OutputMcpServerToolItemType.Openrouter_mcp, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItemAction.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItemAction.g.cs new file mode 100644 index 0000000..661c35f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItemAction.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputMemoryServerToolItemAction + { + /// + /// + /// + Delete, + /// + /// + /// + Read, + /// + /// + /// + Write, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputMemoryServerToolItemActionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputMemoryServerToolItemAction value) + { + return value switch + { + OutputMemoryServerToolItemAction.Delete => "delete", + OutputMemoryServerToolItemAction.Read => "read", + OutputMemoryServerToolItemAction.Write => "write", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputMemoryServerToolItemAction? ToEnum(string value) + { + return value switch + { + "delete" => OutputMemoryServerToolItemAction.Delete, + "read" => OutputMemoryServerToolItemAction.Read, + "write" => OutputMemoryServerToolItemAction.Write, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItemType.g.cs new file mode 100644 index 0000000..fe8b9ab --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputMemoryServerToolItemType + { + /// + /// + /// + Openrouter_memory, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputMemoryServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputMemoryServerToolItemType value) + { + return value switch + { + OutputMemoryServerToolItemType.Openrouter_memory => "openrouter:memory", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputMemoryServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:memory" => OutputMemoryServerToolItemType.Openrouter_memory, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputTextEditorServerToolItemCommand.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputTextEditorServerToolItemCommand.g.cs new file mode 100644 index 0000000..200a9c6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputTextEditorServerToolItemCommand.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputTextEditorServerToolItemCommand + { + /// + /// + /// + Create, + /// + /// + /// + Insert, + /// + /// + /// + StrReplace, + /// + /// + /// + View, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputTextEditorServerToolItemCommandExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputTextEditorServerToolItemCommand value) + { + return value switch + { + OutputTextEditorServerToolItemCommand.Create => "create", + OutputTextEditorServerToolItemCommand.Insert => "insert", + OutputTextEditorServerToolItemCommand.StrReplace => "str_replace", + OutputTextEditorServerToolItemCommand.View => "view", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputTextEditorServerToolItemCommand? ToEnum(string value) + { + return value switch + { + "create" => OutputTextEditorServerToolItemCommand.Create, + "insert" => OutputTextEditorServerToolItemCommand.Insert, + "str_replace" => OutputTextEditorServerToolItemCommand.StrReplace, + "view" => OutputTextEditorServerToolItemCommand.View, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputTextEditorServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputTextEditorServerToolItemType.g.cs new file mode 100644 index 0000000..f787d2a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputTextEditorServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputTextEditorServerToolItemType + { + /// + /// + /// + Openrouter_textEditor, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputTextEditorServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputTextEditorServerToolItemType value) + { + return value switch + { + OutputTextEditorServerToolItemType.Openrouter_textEditor => "openrouter:text_editor", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputTextEditorServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:text_editor" => OutputTextEditorServerToolItemType.Openrouter_textEditor, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputToolSearchServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputToolSearchServerToolItemType.g.cs new file mode 100644 index 0000000..642af4a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputToolSearchServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputToolSearchServerToolItemType + { + /// + /// + /// + Openrouter_toolSearch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputToolSearchServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputToolSearchServerToolItemType value) + { + return value switch + { + OutputToolSearchServerToolItemType.Openrouter_toolSearch => "openrouter:tool_search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputToolSearchServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:tool_search" => OutputToolSearchServerToolItemType.Openrouter_toolSearch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputWebFetchServerToolItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputWebFetchServerToolItemType.g.cs new file mode 100644 index 0000000..3cbd214 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputWebFetchServerToolItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OutputWebFetchServerToolItemType + { + /// + /// + /// + Openrouter_webFetch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputWebFetchServerToolItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputWebFetchServerToolItemType value) + { + return value switch + { + OutputWebFetchServerToolItemType.Openrouter_webFetch => "openrouter:web_fetch", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputWebFetchServerToolItemType? ToEnum(string value) + { + return value switch + { + "openrouter:web_fetch" => OutputWebFetchServerToolItemType.Openrouter_webFetch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index b62a8b3..aa88d63 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -7114,7 +7114,7 @@ "description": "Custom tool configuration", "title": "CustomTool" }, - "DatetimeServerToolParameters": { + "DatetimeServerToolConfig": { "type": "object", "properties": { "timezone": { @@ -7122,7 +7122,8 @@ "description": "IANA timezone name (e.g. \"America/New_York\"). Defaults to UTC." } }, - "title": "DatetimeServerToolParameters" + "description": "Configuration for the openrouter:datetime server tool", + "title": "DatetimeServerToolConfig" }, "DatetimeServerToolType": { "type": "string", @@ -7135,7 +7136,7 @@ "type": "object", "properties": { "parameters": { - "$ref": "#/components/schemas/DatetimeServerToolParameters" + "$ref": "#/components/schemas/DatetimeServerToolConfig" }, "type": { "$ref": "#/components/schemas/DatetimeServerToolType" @@ -8234,8 +8235,285 @@ ], "title": "OpenAIResponsesUsage" }, + "CodeInterpreterCallItemOutputsItemsOneOf0Type": { + "type": "string", + "enum": [ + "image" + ], + "title": "CodeInterpreterCallItemOutputsItemsOneOf0Type" + }, + "CodeInterpreterCallItemOutputsItems0": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/CodeInterpreterCallItemOutputsItemsOneOf0Type" + }, + "url": { + "type": "string" + } + }, + "required": [ + "type", + "url" + ], + "title": "CodeInterpreterCallItemOutputsItems0" + }, + "CodeInterpreterCallItemOutputsItemsOneOf1Type": { + "type": "string", + "enum": [ + "logs" + ], + "title": "CodeInterpreterCallItemOutputsItemsOneOf1Type" + }, + "CodeInterpreterCallItemOutputsItems1": { + "type": "object", + "properties": { + "logs": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/CodeInterpreterCallItemOutputsItemsOneOf1Type" + } + }, + "required": [ + "logs", + "type" + ], + "title": "CodeInterpreterCallItemOutputsItems1" + }, + "CodeInterpreterCallItemOutputsItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/CodeInterpreterCallItemOutputsItems0" + }, + { + "$ref": "#/components/schemas/CodeInterpreterCallItemOutputsItems1" + } + ], + "title": "CodeInterpreterCallItemOutputsItems" + }, + "CodeInterpreterCallItemType": { + "type": "string", + "enum": [ + "code_interpreter_call" + ], + "title": "CodeInterpreterCallItemType" + }, + "OutputComputerCallItemPendingSafetyChecksItems": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "id": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "code", + "id", + "message" + ], + "title": "OutputComputerCallItemPendingSafetyChecksItems" + }, + "OutputComputerCallItemStatus": { + "type": "string", + "enum": [ + "completed", + "incomplete", + "in_progress" + ], + "title": "OutputComputerCallItemStatus" + }, + "OutputComputerCallItemType": { + "type": "string", + "enum": [ + "computer_call" + ], + "title": "OutputComputerCallItemType" + }, + "OutputApplyPatchServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:apply_patch" + ], + "title": "OutputApplyPatchServerToolItemType" + }, + "OutputBashServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:bash" + ], + "title": "OutputBashServerToolItemType" + }, + "OutputBrowserUseServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:browser_use" + ], + "title": "OutputBrowserUseServerToolItemType" + }, + "OutputCodeInterpreterServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:code_interpreter" + ], + "title": "OutputCodeInterpreterServerToolItemType" + }, + "OutputFileSearchServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:file_search" + ], + "title": "OutputFileSearchServerToolItemType" + }, + "OutputImageGenerationServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:image_generation" + ], + "title": "OutputImageGenerationServerToolItemType" + }, + "OutputMcpServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:mcp" + ], + "title": "OutputMcpServerToolItemType" + }, + "OutputMemoryServerToolItemAction": { + "type": "string", + "enum": [ + "read", + "write", + "delete" + ], + "title": "OutputMemoryServerToolItemAction" + }, + "OutputMemoryServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:memory" + ], + "title": "OutputMemoryServerToolItemType" + }, + "OutputTextEditorServerToolItemCommand": { + "type": "string", + "enum": [ + "view", + "create", + "str_replace", + "insert" + ], + "title": "OutputTextEditorServerToolItemCommand" + }, + "OutputTextEditorServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:text_editor" + ], + "title": "OutputTextEditorServerToolItemType" + }, + "OutputToolSearchServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:tool_search" + ], + "title": "OutputToolSearchServerToolItemType" + }, + "OutputWebFetchServerToolItemType": { + "type": "string", + "enum": [ + "openrouter:web_fetch" + ], + "title": "OutputWebFetchServerToolItemType" + }, "OutputItems": { "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/CodeInterpreterCallItemType" + }, + "code": { + "type": [ + "string", + "null" + ] + }, + "container_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "outputs": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/CodeInterpreterCallItemOutputsItems" + } + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + } + }, + "required": [ + "type", + "code", + "container_id", + "id", + "outputs", + "status" + ], + "description": "code_interpreter_call variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputComputerCallItemType" + }, + "action": { + "oneOf": [ + { + "description": "Any type" + }, + { + "type": "null" + } + ] + }, + "call_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "pending_safety_checks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OutputComputerCallItemPendingSafetyChecksItems" + } + }, + "status": { + "$ref": "#/components/schemas/OutputComputerCallItemStatus" + } + }, + "required": [ + "type", + "call_id", + "pending_safety_checks", + "status" + ], + "description": "computer_call variant" + }, { "type": "object", "properties": { @@ -8353,6 +8631,121 @@ ], "description": "message variant" }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputApplyPatchServerToolItemType" + }, + "filePath": { + "type": "string" + }, + "id": { + "type": "string" + }, + "patch": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:apply_patch variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputBashServerToolItemType" + }, + "command": { + "type": "string" + }, + "exitCode": { + "type": "integer" + }, + "id": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + }, + "stderr": { + "type": "string" + }, + "stdout": { + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:bash variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputBrowserUseServerToolItemType" + }, + "action": { + "type": "string" + }, + "id": { + "type": "string" + }, + "screenshotB64": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:browser_use variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputCodeInterpreterServerToolItemType" + }, + "code": { + "type": "string" + }, + "exitCode": { + "type": "integer" + }, + "id": { + "type": "string" + }, + "language": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + }, + "stderr": { + "type": "string" + }, + "stdout": { + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:code_interpreter variant" + }, { "type": "object", "properties": { @@ -8382,6 +8775,194 @@ ], "description": "openrouter:datetime variant" }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputFileSearchServerToolItemType" + }, + "id": { + "type": "string" + }, + "queries": { + "type": "array", + "items": { + "type": "string" + } + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:file_search variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputImageGenerationServerToolItemType" + }, + "id": { + "type": "string" + }, + "imageB64": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "revisedPrompt": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:image_generation variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputMcpServerToolItemType" + }, + "id": { + "type": "string" + }, + "serverLabel": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + }, + "toolName": { + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:mcp variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputMemoryServerToolItemType" + }, + "action": { + "$ref": "#/components/schemas/OutputMemoryServerToolItemAction" + }, + "id": { + "type": "string" + }, + "key": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + }, + "value": { + "oneOf": [ + { + "description": "Any type" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:memory variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputTextEditorServerToolItemType" + }, + "command": { + "$ref": "#/components/schemas/OutputTextEditorServerToolItemCommand" + }, + "filePath": { + "type": "string" + }, + "id": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:text_editor variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputToolSearchServerToolItemType" + }, + "id": { + "type": "string" + }, + "query": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:tool_search variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OutputWebFetchServerToolItemType" + }, + "content": { + "type": "string" + }, + "id": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "description": "openrouter:web_fetch variant" + }, { "type": "object", "properties": {