diff --git a/src/cli/Exa.CLI/CliRuntime.cs b/src/cli/Exa.CLI/CliRuntime.cs index 9a5dc95..0a8d7e4 100644 --- a/src/cli/Exa.CLI/CliRuntime.cs +++ b/src/cli/Exa.CLI/CliRuntime.cs @@ -4,9 +4,6 @@ using System.CommandLine.Parsing; using System.Globalization; using System.Text; -using System.Text.Json; -using System.Text.Json.Nodes; -using System.Text.Json.Serialization; namespace Exa.CLI; @@ -131,7 +128,7 @@ internal static class CliRuntime var values = await ReadUserSecretsAsync(cancellationToken).ConfigureAwait(false); values[name] = value; - var json = PrettyJson(JsonSerializer.Serialize(values, UserSecretsJsonContext.Default.DictionaryStringString)); + var json = PrettyJson(global::System.Text.Json.JsonSerializer.Serialize(values, UserSecretsJsonContext.Default.DictionaryStringString)); await File.WriteAllTextAsync(path, json, cancellationToken).ConfigureAwait(false); } @@ -149,7 +146,7 @@ internal static class CliRuntime return; } - var json = PrettyJson(JsonSerializer.Serialize(values, UserSecretsJsonContext.Default.DictionaryStringString)); + var json = PrettyJson(global::System.Text.Json.JsonSerializer.Serialize(values, UserSecretsJsonContext.Default.DictionaryStringString)); await File.WriteAllTextAsync(path, json, cancellationToken).ConfigureAwait(false); } @@ -266,7 +263,7 @@ public static async Task PollUntilTerminalAsync( Func> fetchAsync, TimeSpan pollInterval, TimeSpan waitTimeout, - JsonSerializerContext context, + global::System.Text.Json.Serialization.JsonSerializerContext context, CancellationToken cancellationToken) { if (pollInterval <= TimeSpan.Zero || waitTimeout <= TimeSpan.Zero) @@ -313,9 +310,9 @@ public static async Task PollUntilTerminalAsync( } } - private static string? FindJobStatus(JsonElement element, int depth) + private static string? FindJobStatus(global::System.Text.Json.JsonElement element, int depth) { - if (element.ValueKind != JsonValueKind.Object || depth > 3) + if (element.ValueKind != global::System.Text.Json.JsonValueKind.Object || depth > 3) { return null; } @@ -324,7 +321,7 @@ public static async Task PollUntilTerminalAsync( { if (string.Equals(property.Name, "status", StringComparison.OrdinalIgnoreCase)) { - return property.Value.ValueKind == JsonValueKind.String + return property.Value.ValueKind == global::System.Text.Json.JsonValueKind.String ? property.Value.GetString() : property.Value.ToString(); } @@ -393,7 +390,7 @@ public static async Task PollUntilTerminalAsync( Option inputOption, Option requestJsonOption, Option requestFileOption, - JsonSerializerContext context, + global::System.Text.Json.Serialization.JsonSerializerContext context, CancellationToken cancellationToken = default) { var requestJson = await ReadInputAsync( @@ -404,7 +401,7 @@ public static async Task PollUntilTerminalAsync( required: true, cancellationToken).ConfigureAwait(false); - var value = JsonSerializer.Deserialize(requestJson ?? throw new CliException("Request input is required."), typeof(T), context); + var value = global::System.Text.Json.JsonSerializer.Deserialize(requestJson ?? throw new CliException("Request input is required."), typeof(T), context); return value is T typed ? typed : throw new CliException($"Unable to deserialize request JSON as {typeof(T).Name}."); @@ -415,7 +412,7 @@ public static async Task PollUntilTerminalAsync( Option inputOption, Option requestJsonOption, Option requestFileOption, - JsonSerializerContext context, + global::System.Text.Json.Serialization.JsonSerializerContext context, CancellationToken cancellationToken = default) { var requestJson = await ReadInputAsync( @@ -429,15 +426,15 @@ public static async Task PollUntilTerminalAsync( return default; } - var value = JsonSerializer.Deserialize(requestJson!, typeof(T), context); + var value = global::System.Text.Json.JsonSerializer.Deserialize(requestJson!, typeof(T), context); return value is T typed ? typed : throw new CliException($"Unable to deserialize request JSON as {typeof(T).Name}."); } - public static T DeserializeJsonValue(string json, JsonSerializerContext context) + public static T DeserializeJsonValue(string json, global::System.Text.Json.Serialization.JsonSerializerContext context) { - var value = JsonSerializer.Deserialize(json, typeof(T), context); + var value = global::System.Text.Json.JsonSerializer.Deserialize(json, typeof(T), context); return value is T typed ? typed : throw new CliException($"Unable to deserialize generated CLI value as {typeof(T).Name}."); @@ -445,7 +442,7 @@ public static T DeserializeJsonValue(string json, JsonSerializerContext conte public static string SerializeKeyValuePairs(IEnumerable pairs) { - var objectNode = new JsonObject(); + var objectNode = new global::System.Text.Json.Nodes.JsonObject(); foreach (var pair in pairs) { var separatorIndex = pair.IndexOf('=', StringComparison.Ordinal); @@ -469,26 +466,32 @@ public static string SerializeKeyValuePairs(IEnumerable pairs) public static string SerializeStringArray(IEnumerable values) { - return JsonSerializer.Serialize(values.ToArray()); + var array = new global::System.Text.Json.Nodes.JsonArray(); + foreach (var value in values) + { + array.Add((global::System.Text.Json.Nodes.JsonNode?)global::System.Text.Json.Nodes.JsonValue.Create(value)); + } + + return array.ToJsonString(); } - public static async global::System.Threading.Tasks.Task WriteJsonAsync(ParseResult parseResult, T value, JsonSerializerContext context, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task WriteJsonAsync(ParseResult parseResult, T value, global::System.Text.Json.Serialization.JsonSerializerContext context, CancellationToken cancellationToken = default) { - var json = JsonSerializer.Serialize(value, typeof(T), context); + var json = global::System.Text.Json.JsonSerializer.Serialize(value, typeof(T), context); await WriteTextAsync(parseResult, PrettyJson(json), cancellationToken: cancellationToken).ConfigureAwait(false); } - public static async global::System.Threading.Tasks.Task WriteJsonLineAsync(ParseResult parseResult, T value, JsonSerializerContext context, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task WriteJsonLineAsync(ParseResult parseResult, T value, global::System.Text.Json.Serialization.JsonSerializerContext context, CancellationToken cancellationToken = default) { - var json = JsonSerializer.Serialize(value, typeof(T), context); + var json = global::System.Text.Json.JsonSerializer.Serialize(value, typeof(T), context); await WriteTextAsync(parseResult, json + Environment.NewLine, append: true, cancellationToken: cancellationToken).ConfigureAwait(false); } public static async global::System.Threading.Tasks.Task WriteResponseAsync( ParseResult parseResult, T value, - JsonSerializerContext context, - Func? formatter = null, + global::System.Text.Json.Serialization.JsonSerializerContext context, + Func? formatter = null, CancellationToken cancellationToken = default) { if (parseResult.GetValue(CliOptions.Json)) @@ -507,8 +510,8 @@ public static string SerializeStringArray(IEnumerable values) public static async global::System.Threading.Tasks.Task WriteResponseLineAsync( ParseResult parseResult, T value, - JsonSerializerContext context, - Func? formatter = null, + global::System.Text.Json.Serialization.JsonSerializerContext context, + Func? formatter = null, CancellationToken cancellationToken = default) { if (parseResult.GetValue(CliOptions.Json)) @@ -527,7 +530,7 @@ public static string SerializeStringArray(IEnumerable values) public static async global::System.Threading.Tasks.Task TryWriteOutputDirectoryAsync( ParseResult parseResult, T value, - JsonSerializerContext context, + global::System.Text.Json.Serialization.JsonSerializerContext context, string itemsPropertyName, CancellationToken cancellationToken = default) { @@ -539,8 +542,8 @@ public static string SerializeStringArray(IEnumerable values) var rootNode = ToJsonNode(value, typeof(T), context); var items = itemsPropertyName == "$self" - ? rootNode as JsonArray - : rootNode?[itemsPropertyName] as JsonArray; + ? rootNode as global::System.Text.Json.Nodes.JsonArray + : rootNode?[itemsPropertyName] as global::System.Text.Json.Nodes.JsonArray; if (items is null) { throw new CliException("The response does not contain a writable item collection for --output-dir."); @@ -641,7 +644,7 @@ public static string MaskSecret(string secret) return new Dictionary(StringComparer.Ordinal); } - return JsonSerializer.Deserialize(json, UserSecretsJsonContext.Default.DictionaryStringString) ?? + return global::System.Text.Json.JsonSerializer.Deserialize(json, UserSecretsJsonContext.Default.DictionaryStringString) ?? new Dictionary(StringComparer.Ordinal); } @@ -732,22 +735,22 @@ private static bool EndsWithUnit(string value, char unit) return await File.ReadAllTextAsync(pathOrDash, cancellationToken).ConfigureAwait(false); } - private static JsonNode? ToJsonNode(T value, Type type, JsonSerializerContext context) + private static global::System.Text.Json.Nodes.JsonNode? ToJsonNode(T value, Type type, global::System.Text.Json.Serialization.JsonSerializerContext context) { - var json = JsonSerializer.Serialize(value, type, context); - return JsonNode.Parse(json); + var json = global::System.Text.Json.JsonSerializer.Serialize(value, type, context); + return global::System.Text.Json.Nodes.JsonNode.Parse(json); } - private static JsonElement ToJsonElement(T value, JsonSerializerContext context) + private static global::System.Text.Json.JsonElement ToJsonElement(T value, global::System.Text.Json.Serialization.JsonSerializerContext context) { - var json = JsonSerializer.Serialize(value, typeof(T), context); - using var document = JsonDocument.Parse(json); + var json = global::System.Text.Json.JsonSerializer.Serialize(value, typeof(T), context); + using var document = global::System.Text.Json.JsonDocument.Parse(json); return document.RootElement.Clone(); } public static string FormatHumanReadable( T value, - JsonSerializerContext context, + global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings, IReadOnlyDictionary? formatHints = null) { @@ -760,7 +763,7 @@ public static string FormatHumanReadable( private static void AppendFormattedValue( StringBuilder builder, string? name, - JsonElement element, + global::System.Text.Json.JsonElement element, int indent, bool truncateLongStrings, IReadOnlyDictionary? formatHints, @@ -771,7 +774,7 @@ private static void AppendFormattedValue( return; } - if (element.ValueKind == JsonValueKind.String && + if (element.ValueKind == global::System.Text.Json.JsonValueKind.String && HasFormatHint(path, CliFormatHint.Code, formatHints)) { AppendCodeBlock(builder, name, element.GetString() ?? string.Empty, indent); @@ -780,10 +783,10 @@ private static void AppendFormattedValue( switch (element.ValueKind) { - case JsonValueKind.Object: + case global::System.Text.Json.JsonValueKind.Object: AppendFormattedObject(builder, name, element, indent, truncateLongStrings, formatHints, path); break; - case JsonValueKind.Array: + case global::System.Text.Json.JsonValueKind.Array: AppendFormattedArray(builder, name, element, indent, truncateLongStrings, formatHints, path); break; default: @@ -795,7 +798,7 @@ private static void AppendFormattedValue( private static void AppendFormattedObject( StringBuilder builder, string? name, - JsonElement element, + global::System.Text.Json.JsonElement element, int indent, bool truncateLongStrings, IReadOnlyDictionary? formatHints, @@ -827,7 +830,7 @@ private static void AppendFormattedObject( private static void AppendFormattedArray( StringBuilder builder, string? name, - JsonElement element, + global::System.Text.Json.JsonElement element, int indent, bool truncateLongStrings, IReadOnlyDictionary? formatHints, @@ -846,7 +849,7 @@ private static void AppendFormattedArray( return; } - if (items.All(static item => item.ValueKind is not JsonValueKind.Object and not JsonValueKind.Array)) + if (items.All(static item => item.ValueKind is not global::System.Text.Json.JsonValueKind.Object and not global::System.Text.Json.JsonValueKind.Array)) { foreach (var item in items) { @@ -863,15 +866,15 @@ private static void AppendFormattedArray( } } - private static string FormatScalar(JsonElement element, bool truncateLongStrings) + private static string FormatScalar(global::System.Text.Json.JsonElement element, bool truncateLongStrings) { return element.ValueKind switch { - JsonValueKind.String => FormatStringScalar(element.GetString() ?? string.Empty, truncateLongStrings), - JsonValueKind.True => "true", - JsonValueKind.False => "false", - JsonValueKind.Number => element.GetRawText(), - JsonValueKind.Null => "null", + global::System.Text.Json.JsonValueKind.String => FormatStringScalar(element.GetString() ?? string.Empty, truncateLongStrings), + global::System.Text.Json.JsonValueKind.True => "true", + global::System.Text.Json.JsonValueKind.False => "false", + global::System.Text.Json.JsonValueKind.Number => element.GetRawText(), + global::System.Text.Json.JsonValueKind.Null => "null", _ => element.GetRawText(), }; } @@ -935,18 +938,18 @@ private static void AppendLine(StringBuilder builder, int indent, string value) builder.AppendLine(value); } - private static async global::System.Threading.Tasks.Task WriteItemFilesAsync(string outputDirectory, JsonArray items, CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task WriteItemFilesAsync(string outputDirectory, global::System.Text.Json.Nodes.JsonArray items, CancellationToken cancellationToken = default) { Directory.CreateDirectory(outputDirectory); for (var index = 0; index < items.Count; index++) { - if (items[index] is not JsonNode itemNode) + if (items[index] is not global::System.Text.Json.Nodes.JsonNode itemNode) { continue; } - var itemObject = itemNode as JsonObject; + var itemObject = itemNode as global::System.Text.Json.Nodes.JsonObject; var baseName = itemObject is null ? $"{index + 1:000}" : SanitizeFileName(GetOutputItemName(itemObject) ?? $"{index + 1:000}"); @@ -960,7 +963,7 @@ private static void AppendLine(StringBuilder builder, int indent, string value) wroteStructuredFile |= await TryWriteTextPropertyAsync(itemObject, outputDirectory, baseName, "raw_html", ".raw.html", cancellationToken).ConfigureAwait(false); wroteStructuredFile |= await TryWriteTextPropertyAsync(itemObject, outputDirectory, baseName, "text", ".txt", cancellationToken).ConfigureAwait(false); - if (TryGetNamedNode(itemObject, out var linksNode, "links") && linksNode is JsonArray links) + if (TryGetNamedNode(itemObject, out var linksNode, "links") && linksNode is global::System.Text.Json.Nodes.JsonArray links) { var linkLines = links .Select(static node => node?.GetValue()) @@ -977,7 +980,7 @@ await File.WriteAllTextAsync( } } - var json = itemNode.ToJsonString(new JsonSerializerOptions { WriteIndented = true }); + var json = itemNode.ToJsonString(new global::System.Text.Json.JsonSerializerOptions { WriteIndented = true }); var fileName = wroteStructuredFile ? $"{baseName}.metadata.json" : $"{baseName}.json"; @@ -986,7 +989,7 @@ await File.WriteAllTextAsync( } private static async global::System.Threading.Tasks.Task TryWriteTextPropertyAsync( - JsonObject item, + global::System.Text.Json.Nodes.JsonObject item, string outputDirectory, string baseName, string propertyName, @@ -1011,7 +1014,7 @@ await File.WriteAllTextAsync( return true; } - private static string? GetOutputItemName(JsonObject item) + private static string? GetOutputItemName(global::System.Text.Json.Nodes.JsonObject item) { if (TryGetNamedNode(item, out var node, "url", "sourceUrl", "source_url", "id")) { @@ -1021,7 +1024,7 @@ await File.WriteAllTextAsync( return null; } - private static bool TryGetNamedNode(JsonObject item, out JsonNode? node, params string[] names) + private static bool TryGetNamedNode(global::System.Text.Json.Nodes.JsonObject item, out global::System.Text.Json.Nodes.JsonNode? node, params string[] names) { foreach (var property in item) { @@ -1069,9 +1072,9 @@ private static string SanitizeFileName(string value) private static string PrettyJson(string json) { - using var document = JsonDocument.Parse(json); + using var document = global::System.Text.Json.JsonDocument.Parse(json); using var stream = new MemoryStream(); - using (var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true })) + using (var writer = new global::System.Text.Json.Utf8JsonWriter(stream, new global::System.Text.Json.JsonWriterOptions { Indented = true })) { document.WriteTo(writer); } @@ -1148,6 +1151,6 @@ internal sealed record AuthSourceProbe(string Source, string DisplayName, string public bool Present => !string.IsNullOrWhiteSpace(RawValue); } -[JsonSerializable(typeof(AuthStatusInfo))] -[JsonSerializable(typeof(Dictionary))] -internal sealed partial class UserSecretsJsonContext : JsonSerializerContext; \ No newline at end of file +[global::System.Text.Json.Serialization.JsonSerializable(typeof(AuthStatusInfo))] +[global::System.Text.Json.Serialization.JsonSerializable(typeof(Dictionary))] +internal sealed partial class UserSecretsJsonContext : global::System.Text.Json.Serialization.JsonSerializerContext; \ No newline at end of file diff --git a/src/cli/Exa.CLI/Commands/SearchRequestOptionSet.g.cs b/src/cli/Exa.CLI/Commands/SearchRequestOptionSet.g.cs index 6fe7a51..1b92d4b 100644 --- a/src/cli/Exa.CLI/Commands/SearchRequestOptionSet.g.cs +++ b/src/cli/Exa.CLI/Commands/SearchRequestOptionSet.g.cs @@ -35,7 +35,7 @@ public static SearchRequestOptionSet Create(string? prefix = null) Description = @"The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications. - `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications. -- `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected. +- `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported. - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search. - `deep`: Conducts comprehensive multi-step research with synthesis. - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter. diff --git a/src/cli/Exa.CLI/Exa.CLI.csproj b/src/cli/Exa.CLI/Exa.CLI.csproj index 45b7fcc..b42698d 100644 --- a/src/cli/Exa.CLI/Exa.CLI.csproj +++ b/src/cli/Exa.CLI/Exa.CLI.csproj @@ -19,11 +19,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + \ No newline at end of file diff --git a/src/libs/Exa/Generated/Exa.Agent.JsonSerializerContext.g.cs b/src/libs/Exa/Generated/Exa.Agent.JsonSerializerContext.g.cs index f69321f..1d33a18 100644 --- a/src/libs/Exa/Generated/Exa.Agent.JsonSerializerContext.g.cs +++ b/src/libs/Exa/Generated/Exa.Agent.JsonSerializerContext.g.cs @@ -29,11 +29,10 @@ namespace Exa [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentDataSource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentBudget))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentDataSourceProvider), TypeInfoPropertyName = "AgentDataSourceProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRun))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRunStatus), TypeInfoPropertyName = "AgentRunStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentStopReason), TypeInfoPropertyName = "AgentStopReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentStopReason))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRunRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRunOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentUsage))] @@ -65,9 +64,7 @@ namespace Exa [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.JsonValue?), TypeInfoPropertyName = "NullableJsonValue2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentEffort?), TypeInfoPropertyName = "NullableAgentEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentDataSourceProvider?), TypeInfoPropertyName = "NullableAgentDataSourceProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRunStatus?), TypeInfoPropertyName = "NullableAgentRunStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentStopReason?), TypeInfoPropertyName = "NullableAgentStopReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentGroundingConfidence?), TypeInfoPropertyName = "NullableAgentGroundingConfidence2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentErrorType?), TypeInfoPropertyName = "NullableAgentErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentErrorCode?), TypeInfoPropertyName = "NullableAgentErrorCode2")] @@ -130,6 +127,7 @@ private AgentSourceGenerationContext(global::System.Text.Json.JsonSerializerOpti public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::Exa.JsonConverters.JsonValueJsonConverter()); + options.Converters.Add(new global::Exa.JsonConverters.AgentStopReasonJsonConverter()); options.Converters.Add(new global::Exa.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Exa.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Exa.JsonConverters.OneOfJsonConverter>()); @@ -162,18 +160,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Exa.AgentEffort?) - || typeToConvert == typeof(global::Exa.AgentDataSourceProvider) - - || typeToConvert == typeof(global::Exa.AgentDataSourceProvider?) - || typeToConvert == typeof(global::Exa.AgentRunStatus) || typeToConvert == typeof(global::Exa.AgentRunStatus?) - || typeToConvert == typeof(global::Exa.AgentStopReason) - - || typeToConvert == typeof(global::Exa.AgentStopReason?) - || typeToConvert == typeof(global::Exa.AgentGroundingConfidence) || typeToConvert == typeof(global::Exa.AgentGroundingConfidence?) @@ -213,16 +203,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Exa.JsonConverters.AgentEffortNullableJsonConverter(); } - if (typeToConvert == typeof(global::Exa.AgentDataSourceProvider)) - { - return new global::Exa.JsonConverters.AgentDataSourceProviderJsonConverter(); - } - - if (typeToConvert == typeof(global::Exa.AgentDataSourceProvider?)) - { - return new global::Exa.JsonConverters.AgentDataSourceProviderNullableJsonConverter(); - } - if (typeToConvert == typeof(global::Exa.AgentRunStatus)) { return new global::Exa.JsonConverters.AgentRunStatusJsonConverter(); @@ -233,16 +213,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Exa.JsonConverters.AgentRunStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::Exa.AgentStopReason)) - { - return new global::Exa.JsonConverters.AgentStopReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::Exa.AgentStopReason?)) - { - return new global::Exa.JsonConverters.AgentStopReasonNullableJsonConverter(); - } - if (typeToConvert == typeof(global::Exa.AgentGroundingConfidence)) { return new global::Exa.JsonConverters.AgentGroundingConfidenceJsonConverter(); diff --git a/src/libs/Exa/Generated/Exa.AgentClient.g.cs b/src/libs/Exa/Generated/Exa.AgentClient.g.cs index d47181a..3aca13d 100644 --- a/src/libs/Exa/Generated/Exa.AgentClient.g.cs +++ b/src/libs/Exa/Generated/Exa.AgentClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class AgentClient : global::Exa.IAgentClient, global::Syst internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.AgentSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.AgentSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.BatchesClient.g.cs b/src/libs/Exa/Generated/Exa.BatchesClient.g.cs index c02ead2..0671164 100644 --- a/src/libs/Exa/Generated/Exa.BatchesClient.g.cs +++ b/src/libs/Exa/Generated/Exa.BatchesClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class BatchesClient : global::Exa.IBatchesClient, global:: internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.BatchesSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.BatchesSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.EnrichmentsClient.g.cs b/src/libs/Exa/Generated/Exa.EnrichmentsClient.g.cs index d4d7d99..efe81dd 100644 --- a/src/libs/Exa/Generated/Exa.EnrichmentsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.EnrichmentsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class EnrichmentsClient : global::Exa.IEnrichmentsClient, internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.EnrichmentsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.EnrichmentsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.EventsClient.g.cs b/src/libs/Exa/Generated/Exa.EventsClient.g.cs index 63d43ae..5338d0e 100644 --- a/src/libs/Exa/Generated/Exa.EventsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.EventsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class EventsClient : global::Exa.IEventsClient, global::Sy internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.EventsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.EventsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.ExaClient.Search.g.cs b/src/libs/Exa/Generated/Exa.ExaClient.Search.g.cs index 4693537..e5b5ec6 100644 --- a/src/libs/Exa/Generated/Exa.ExaClient.Search.g.cs +++ b/src/libs/Exa/Generated/Exa.ExaClient.Search.g.cs @@ -774,7 +774,7 @@ partial void ProcessSearchResponseContent( /// /// The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications.
/// - `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications.
- /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected.
+ /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported.
/// - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search.
/// - `deep`: Conducts comprehensive multi-step research with synthesis.
/// - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter.
diff --git a/src/libs/Exa/Generated/Exa.ExaClient.SearchAsStream.g.cs b/src/libs/Exa/Generated/Exa.ExaClient.SearchAsStream.g.cs index d9af000..e286775 100644 --- a/src/libs/Exa/Generated/Exa.ExaClient.SearchAsStream.g.cs +++ b/src/libs/Exa/Generated/Exa.ExaClient.SearchAsStream.g.cs @@ -446,7 +446,7 @@ partial void ProcessSearchAsStreamResponse( /// /// The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications.
/// - `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications.
- /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected.
+ /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported.
/// - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search.
/// - `deep`: Conducts comprehensive multi-step research with synthesis.
/// - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter.
diff --git a/src/libs/Exa/Generated/Exa.ExaClient.g.cs b/src/libs/Exa/Generated/Exa.ExaClient.g.cs index 7af9f9d..93b2185 100644 --- a/src/libs/Exa/Generated/Exa.ExaClient.g.cs +++ b/src/libs/Exa/Generated/Exa.ExaClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class ExaClient : global::Exa.IExaClient, global::System.I internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.SourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.SourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.IExaClient.Search.g.cs b/src/libs/Exa/Generated/Exa.IExaClient.Search.g.cs index 64c1b21..e433371 100644 --- a/src/libs/Exa/Generated/Exa.IExaClient.Search.g.cs +++ b/src/libs/Exa/Generated/Exa.IExaClient.Search.g.cs @@ -74,7 +74,7 @@ public partial interface IExaClient /// /// The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications.
/// - `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications.
- /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected.
+ /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported.
/// - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search.
/// - `deep`: Conducts comprehensive multi-step research with synthesis.
/// - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter.
diff --git a/src/libs/Exa/Generated/Exa.IExaClient.SearchAsStream.g.cs b/src/libs/Exa/Generated/Exa.IExaClient.SearchAsStream.g.cs index 22ebdcf..7ce00a3 100644 --- a/src/libs/Exa/Generated/Exa.IExaClient.SearchAsStream.g.cs +++ b/src/libs/Exa/Generated/Exa.IExaClient.SearchAsStream.g.cs @@ -49,7 +49,7 @@ public partial interface IExaClient /// /// The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications.
/// - `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications.
- /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected.
+ /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported.
/// - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search.
/// - `deep`: Conducts comprehensive multi-step research with synthesis.
/// - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter.
diff --git a/src/libs/Exa/Generated/Exa.ImportsClient.g.cs b/src/libs/Exa/Generated/Exa.ImportsClient.g.cs index b75db57..24ce7d8 100644 --- a/src/libs/Exa/Generated/Exa.ImportsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.ImportsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class ImportsClient : global::Exa.IImportsClient, global:: internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.ImportsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.ImportsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.ItemsClient.g.cs b/src/libs/Exa/Generated/Exa.ItemsClient.g.cs index 672989c..32307ff 100644 --- a/src/libs/Exa/Generated/Exa.ItemsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.ItemsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class ItemsClient : global::Exa.IItemsClient, global::Syst internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.ItemsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.ItemsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.JsonConverters.AgentDataSourceProvider.g.cs b/src/libs/Exa/Generated/Exa.JsonConverters.AgentDataSourceProvider.g.cs deleted file mode 100644 index ab335b4..0000000 --- a/src/libs/Exa/Generated/Exa.JsonConverters.AgentDataSourceProvider.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Exa.JsonConverters -{ - /// - public sealed class AgentDataSourceProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Exa.AgentDataSourceProvider 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::Exa.AgentDataSourceProviderExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Exa.AgentDataSourceProvider)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Exa.AgentDataSourceProvider); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Exa.AgentDataSourceProvider value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Exa.AgentDataSourceProviderExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Exa/Generated/Exa.JsonConverters.AgentDataSourceProviderNullable.g.cs b/src/libs/Exa/Generated/Exa.JsonConverters.AgentDataSourceProviderNullable.g.cs deleted file mode 100644 index a57b553..0000000 --- a/src/libs/Exa/Generated/Exa.JsonConverters.AgentDataSourceProviderNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Exa.JsonConverters -{ - /// - public sealed class AgentDataSourceProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Exa.AgentDataSourceProvider? 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::Exa.AgentDataSourceProviderExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Exa.AgentDataSourceProvider)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Exa.AgentDataSourceProvider?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Exa.AgentDataSourceProvider? 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::Exa.AgentDataSourceProviderExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Exa/Generated/Exa.JsonConverters.AgentStopReason.g.cs b/src/libs/Exa/Generated/Exa.JsonConverters.AgentStopReason.g.cs index bc89c4e..71d83e8 100644 --- a/src/libs/Exa/Generated/Exa.JsonConverters.AgentStopReason.g.cs +++ b/src/libs/Exa/Generated/Exa.JsonConverters.AgentStopReason.g.cs @@ -1,9 +1,10 @@ #nullable enable +#pragma warning disable CS0618 // Type or member is obsolete namespace Exa.JsonConverters { /// - public sealed class AgentStopReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class AgentStopReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// public override global::Exa.AgentStopReason Read( @@ -11,32 +12,543 @@ public sealed class AgentStopReasonJsonConverter : global::System.Text.Json.Seri global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - switch (reader.TokenType) + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score2++; + } + } + } + var __score3 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score3++; + } + } + } + var __score4 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score4++; + } + } + } + var __score5 = 0; { - case global::System.Text.Json.JsonTokenType.String: + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score5++; + } + } + } + var __score6 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score6++; + } + } + } + var __score7 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score7++; + } + } + } + var __score8 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score8++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } + if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } + if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + + string? agentStopReasonVariant1 = default; + string? agentStopReasonVariant2 = default; + string? agentStopReasonVariant3 = default; + string? agentStopReasonVariant4 = default; + string? agentStopReasonVariant5 = default; + string? agentStopReasonVariant6 = default; + string? agentStopReasonVariant7 = default; + string? agentStopReasonVariant8 = default; + string? agentStopReasonVariant9 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + else if (__bestIndex == 1) { - var stringValue = reader.GetString(); - if (stringValue != null) + try { - return global::Exa.AgentStopReasonExtensions.ToEnum(stringValue) ?? default; + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + else if (__bestIndex == 2) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + else if (__bestIndex == 3) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + else if (__bestIndex == 4) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + else if (__bestIndex == 5) + { + try + { - break; + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } - case global::System.Text.Json.JsonTokenType.Number: + + else if (__bestIndex == 6) { - var numValue = reader.GetInt32(); - return (global::Exa.AgentStopReason)numValue; + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } - case global::System.Text.Json.JsonTokenType.Null: + + else if (__bestIndex == 7) { - return default(global::Exa.AgentStopReason); + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + else if (__bestIndex == 8) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + } + + if (agentStopReasonVariant1 == null && agentStopReasonVariant2 == null && agentStopReasonVariant3 == null && agentStopReasonVariant4 == null && agentStopReasonVariant5 == null && agentStopReasonVariant6 == null && agentStopReasonVariant7 == null && agentStopReasonVariant8 == null && agentStopReasonVariant9 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + if (agentStopReasonVariant1 == null && agentStopReasonVariant2 == null && agentStopReasonVariant3 == null && agentStopReasonVariant4 == null && agentStopReasonVariant5 == null && agentStopReasonVariant6 == null && agentStopReasonVariant7 == null && agentStopReasonVariant8 == null && agentStopReasonVariant9 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + if (agentStopReasonVariant1 == null && agentStopReasonVariant2 == null && agentStopReasonVariant3 == null && agentStopReasonVariant4 == null && agentStopReasonVariant5 == null && agentStopReasonVariant6 == null && agentStopReasonVariant7 == null && agentStopReasonVariant8 == null && agentStopReasonVariant9 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); } - return default; + if (agentStopReasonVariant1 == null && agentStopReasonVariant2 == null && agentStopReasonVariant3 == null && agentStopReasonVariant4 == null && agentStopReasonVariant5 == null && agentStopReasonVariant6 == null && agentStopReasonVariant7 == null && agentStopReasonVariant8 == null && agentStopReasonVariant9 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + if (agentStopReasonVariant1 == null && agentStopReasonVariant2 == null && agentStopReasonVariant3 == null && agentStopReasonVariant4 == null && agentStopReasonVariant5 == null && agentStopReasonVariant6 == null && agentStopReasonVariant7 == null && agentStopReasonVariant8 == null && agentStopReasonVariant9 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + if (agentStopReasonVariant1 == null && agentStopReasonVariant2 == null && agentStopReasonVariant3 == null && agentStopReasonVariant4 == null && agentStopReasonVariant5 == null && agentStopReasonVariant6 == null && agentStopReasonVariant7 == null && agentStopReasonVariant8 == null && agentStopReasonVariant9 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + if (agentStopReasonVariant1 == null && agentStopReasonVariant2 == null && agentStopReasonVariant3 == null && agentStopReasonVariant4 == null && agentStopReasonVariant5 == null && agentStopReasonVariant6 == null && agentStopReasonVariant7 == null && agentStopReasonVariant8 == null && agentStopReasonVariant9 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + if (agentStopReasonVariant1 == null && agentStopReasonVariant2 == null && agentStopReasonVariant3 == null && agentStopReasonVariant4 == null && agentStopReasonVariant5 == null && agentStopReasonVariant6 == null && agentStopReasonVariant7 == null && agentStopReasonVariant8 == null && agentStopReasonVariant9 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + if (agentStopReasonVariant1 == null && agentStopReasonVariant2 == null && agentStopReasonVariant3 == null && agentStopReasonVariant4 == null && agentStopReasonVariant5 == null && agentStopReasonVariant6 == null && agentStopReasonVariant7 == null && agentStopReasonVariant8 == null && agentStopReasonVariant9 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + agentStopReasonVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + } + + var __value = new global::Exa.AgentStopReason( + agentStopReasonVariant1, + + agentStopReasonVariant2, + + agentStopReasonVariant3, + + agentStopReasonVariant4, + + agentStopReasonVariant5, + + agentStopReasonVariant6, + + agentStopReasonVariant7, + + agentStopReasonVariant8, + + agentStopReasonVariant9 + ); + + return __value; } /// @@ -45,9 +557,63 @@ public override void Write( global::Exa.AgentStopReason value, global::System.Text.Json.JsonSerializerOptions options) { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - writer.WriteStringValue(global::Exa.AgentStopReasonExtensions.ToValueString(value)); + if (value.IsAgentStopReasonVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentStopReasonVariant1(), typeInfo); + } + else if (value.IsAgentStopReasonVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentStopReasonVariant2(), typeInfo); + } + else if (value.IsAgentStopReasonVariant3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentStopReasonVariant3(), typeInfo); + } + else if (value.IsAgentStopReasonVariant4) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentStopReasonVariant4(), typeInfo); + } + else if (value.IsAgentStopReasonVariant5) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentStopReasonVariant5(), typeInfo); + } + else if (value.IsAgentStopReasonVariant6) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentStopReasonVariant6(), typeInfo); + } + else if (value.IsAgentStopReasonVariant7) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentStopReasonVariant7(), typeInfo); + } + else if (value.IsAgentStopReasonVariant8) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentStopReasonVariant8(), typeInfo); + } + else if (value.IsAgentStopReasonVariant9) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentStopReasonVariant9(), typeInfo); + } } } -} +} \ No newline at end of file diff --git a/src/libs/Exa/Generated/Exa.JsonConverters.AgentStopReasonNullable.g.cs b/src/libs/Exa/Generated/Exa.JsonConverters.AgentStopReasonNullable.g.cs deleted file mode 100644 index 1df9ac4..0000000 --- a/src/libs/Exa/Generated/Exa.JsonConverters.AgentStopReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Exa.JsonConverters -{ - /// - public sealed class AgentStopReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Exa.AgentStopReason? 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::Exa.AgentStopReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Exa.AgentStopReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Exa.AgentStopReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Exa.AgentStopReason? 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::Exa.AgentStopReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Exa/Generated/Exa.JsonSerializerContext.g.cs b/src/libs/Exa/Generated/Exa.JsonSerializerContext.g.cs index ed5fbbd..d208592 100644 --- a/src/libs/Exa/Generated/Exa.JsonSerializerContext.g.cs +++ b/src/libs/Exa/Generated/Exa.JsonSerializerContext.g.cs @@ -141,7 +141,6 @@ namespace Exa [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentDataSource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentBudget))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentDataSourceProvider), TypeInfoPropertyName = "AgentDataSourceProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.CreateBatchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.BatchRequestItem))] @@ -222,7 +221,7 @@ namespace Exa [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.SearchMonitorRunOutputGroundingVariant1ItemConfidence), TypeInfoPropertyName = "SearchMonitorRunOutputGroundingVariant1ItemConfidence2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRun))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRunStatus), TypeInfoPropertyName = "AgentRunStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentStopReason), TypeInfoPropertyName = "AgentStopReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentStopReason))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRunRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRunOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentUsage))] @@ -529,6 +528,7 @@ namespace Exa [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.PreviewWebsetResponseSearchCriteriaItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.PreviewWebsetResponseEnrichment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.PreviewWebsetResponseEnrichmentFormat), TypeInfoPropertyName = "PreviewWebsetResponseEnrichmentFormat2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -541,7 +541,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.OneOf), TypeInfoPropertyName = "WebsetItemCustomProperties_976e7369ebb8440c")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.OneOf?), TypeInfoPropertyName = "WebsetItemCustomProperties_2a7882e053a7bb38")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.PreviewWebsetResponseEnrichmentFormat), TypeInfoPropertyName = "PreviewWebsetResponseEnrichmentFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.PreviewWebsetResponseEnrichmentOption))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -634,7 +633,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.UpdateSearchMonitorParametersStatus?), TypeInfoPropertyName = "NullableUpdateSearchMonitorParametersStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.UpdateSearchMonitorParametersWebhookEvent?), TypeInfoPropertyName = "NullableUpdateSearchMonitorParametersWebhookEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentEffort?), TypeInfoPropertyName = "NullableAgentEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentDataSourceProvider?), TypeInfoPropertyName = "NullableAgentDataSourceProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.BatchRequestItemUrl?), TypeInfoPropertyName = "NullableBatchRequestItemUrl2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.SearchResponse?), TypeInfoPropertyName = "NullableSearchResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.ContentsResponseStatuseStatus?), TypeInfoPropertyName = "NullableContentsResponseStatuseStatus2")] @@ -650,7 +648,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.SearchMonitorRunFailReason?), TypeInfoPropertyName = "NullableSearchMonitorRunFailReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.SearchMonitorRunOutputGroundingVariant1ItemConfidence?), TypeInfoPropertyName = "NullableSearchMonitorRunOutputGroundingVariant1ItemConfidence2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentRunStatus?), TypeInfoPropertyName = "NullableAgentRunStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentStopReason?), TypeInfoPropertyName = "NullableAgentStopReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentGroundingConfidence?), TypeInfoPropertyName = "NullableAgentGroundingConfidence2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentErrorType?), TypeInfoPropertyName = "NullableAgentErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Exa.AgentErrorCode?), TypeInfoPropertyName = "NullableAgentErrorCode2")] @@ -880,6 +877,7 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::Exa.JsonConverters.SearchMonitorOutputSchemaVariant1JsonConverter()); options.Converters.Add(new global::Exa.JsonConverters.SearchResponseJsonConverter()); options.Converters.Add(new global::Exa.JsonConverters.FindSimilarResultEntitieJsonConverter()); + options.Converters.Add(new global::Exa.JsonConverters.AgentStopReasonJsonConverter()); options.Converters.Add(new global::Exa.JsonConverters.AnswerStreamChunkJsonConverter()); options.Converters.Add(new global::Exa.JsonConverters.SearchStreamChunkJsonConverter()); options.Converters.Add(new global::Exa.JsonConverters.SearchResultOutputEntitieJsonConverter()); @@ -1062,10 +1060,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Exa.AgentEffort?) - || typeToConvert == typeof(global::Exa.AgentDataSourceProvider) - - || typeToConvert == typeof(global::Exa.AgentDataSourceProvider?) - || typeToConvert == typeof(global::Exa.BatchRequestItemUrl) || typeToConvert == typeof(global::Exa.BatchRequestItemUrl?) @@ -1110,10 +1104,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Exa.AgentRunStatus?) - || typeToConvert == typeof(global::Exa.AgentStopReason) - - || typeToConvert == typeof(global::Exa.AgentStopReason?) - || typeToConvert == typeof(global::Exa.AgentGroundingConfidence) || typeToConvert == typeof(global::Exa.AgentGroundingConfidence?) @@ -1671,16 +1661,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Exa.JsonConverters.AgentEffortNullableJsonConverter(); } - if (typeToConvert == typeof(global::Exa.AgentDataSourceProvider)) - { - return new global::Exa.JsonConverters.AgentDataSourceProviderJsonConverter(); - } - - if (typeToConvert == typeof(global::Exa.AgentDataSourceProvider?)) - { - return new global::Exa.JsonConverters.AgentDataSourceProviderNullableJsonConverter(); - } - if (typeToConvert == typeof(global::Exa.BatchRequestItemUrl)) { return new global::Exa.JsonConverters.BatchRequestItemUrlJsonConverter(); @@ -1791,16 +1771,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Exa.JsonConverters.AgentRunStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::Exa.AgentStopReason)) - { - return new global::Exa.JsonConverters.AgentStopReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::Exa.AgentStopReason?)) - { - return new global::Exa.JsonConverters.AgentStopReasonNullableJsonConverter(); - } - if (typeToConvert == typeof(global::Exa.AgentGroundingConfidence)) { return new global::Exa.JsonConverters.AgentGroundingConfidenceJsonConverter(); diff --git a/src/libs/Exa/Generated/Exa.JsonSerializerContextTypes.g.cs b/src/libs/Exa/Generated/Exa.JsonSerializerContextTypes.g.cs index a239365..9cf3cf3 100644 --- a/src/libs/Exa/Generated/Exa.JsonSerializerContextTypes.g.cs +++ b/src/libs/Exa/Generated/Exa.JsonSerializerContextTypes.g.cs @@ -477,1763 +477,1759 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Exa.AgentDataSourceProvider? Type111 { get; set; } + public global::Exa.CreateBatchRequest? Type111 { get; set; } /// /// /// - public global::Exa.CreateBatchRequest? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type113 { get; set; } + public global::Exa.BatchRequestItem? Type113 { get; set; } /// /// /// - public global::Exa.BatchRequestItem? Type114 { get; set; } + public global::Exa.BatchRequestItemUrl? Type114 { get; set; } /// /// /// - public global::Exa.BatchRequestItemUrl? Type115 { get; set; } + public global::Exa.AnswerStreamTextDeltaChunk? Type115 { get; set; } /// /// /// - public global::Exa.AnswerStreamTextDeltaChunk? Type116 { get; set; } + public global::System.Collections.Generic.IList? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type117 { get; set; } + public global::Exa.AnswerStreamTextDeltaChunkChoice? Type117 { get; set; } /// /// /// - public global::Exa.AnswerStreamTextDeltaChunkChoice? Type118 { get; set; } + public global::Exa.AnswerStreamTextDeltaChunkChoiceDelta? Type118 { get; set; } /// /// /// - public global::Exa.AnswerStreamTextDeltaChunkChoiceDelta? Type119 { get; set; } + public global::Exa.SearchResponse? Type119 { get; set; } /// /// /// - public global::Exa.SearchResponse? Type120 { get; set; } + public global::Exa.SearchSynthesisResponse? Type120 { get; set; } /// /// /// - public global::Exa.SearchSynthesisResponse? Type121 { get; set; } + public global::Exa.SearchResultsResponse? Type121 { get; set; } /// /// /// - public global::Exa.SearchResultsResponse? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type123 { get; set; } + public global::Exa.SearchResultOutput? Type123 { get; set; } /// /// /// - public global::Exa.SearchResultOutput? Type124 { get; set; } + public global::Exa.CostDollarsOutput? Type124 { get; set; } /// /// /// - public global::Exa.CostDollarsOutput? Type125 { get; set; } + public global::System.Collections.Generic.IList? Type125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type126 { get; set; } + public global::Exa.SearchWarningOutput? Type126 { get; set; } /// /// /// - public global::Exa.SearchWarningOutput? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type128 { get; set; } + public global::Exa.SearchNoticeOutput? Type128 { get; set; } /// /// /// - public global::Exa.SearchNoticeOutput? Type129 { get; set; } + public global::Exa.SearchSynthesisOutputOutput? Type129 { get; set; } /// /// /// - public global::Exa.SearchSynthesisOutputOutput? Type130 { get; set; } + public global::Exa.ErrorResponse? Type130 { get; set; } /// /// /// - public global::Exa.ErrorResponse? Type131 { get; set; } + public global::Exa.X402PaymentChallenge? Type131 { get; set; } /// /// /// - public global::Exa.X402PaymentChallenge? Type132 { get; set; } + public global::Exa.X402PaymentChallengeResource? Type132 { get; set; } /// /// /// - public global::Exa.X402PaymentChallengeResource? Type133 { get; set; } + public global::System.Collections.Generic.IList? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type134 { get; set; } + public global::Exa.ContentsResponse? Type134 { get; set; } /// /// /// - public global::Exa.ContentsResponse? Type135 { get; set; } + public global::System.Collections.Generic.IList? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type136 { get; set; } + public global::Exa.ContentsResponseStatuse? Type136 { get; set; } /// /// /// - public global::Exa.ContentsResponseStatuse? Type137 { get; set; } + public global::Exa.ContentsResponseStatuseStatus? Type137 { get; set; } /// /// /// - public global::Exa.ContentsResponseStatuseStatus? Type138 { get; set; } + public global::Exa.ContentsResponseStatuseSource? Type138 { get; set; } /// /// /// - public global::Exa.ContentsResponseStatuseSource? Type139 { get; set; } + public global::Exa.ContentsResponseStatuseError? Type139 { get; set; } /// /// /// - public global::Exa.ContentsResponseStatuseError? Type140 { get; set; } + public global::Exa.AnswerResponse? Type140 { get; set; } /// /// /// - public global::Exa.AnswerResponse? Type141 { get; set; } + public global::Exa.OneOf>? Type141 { get; set; } /// /// /// - public global::Exa.OneOf>? Type142 { get; set; } + public global::System.Collections.Generic.IList? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type143 { get; set; } + public global::Exa.AnswerResponseCitation? Type143 { get; set; } /// /// /// - public global::Exa.AnswerResponseCitation? Type144 { get; set; } + public global::Exa.FindSimilarResponse? Type144 { get; set; } /// /// /// - public global::Exa.FindSimilarResponse? Type145 { get; set; } + public global::System.Collections.Generic.IList? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type146 { get; set; } + public global::Exa.FindSimilarResult? Type146 { get; set; } /// /// /// - public global::Exa.FindSimilarResult? Type147 { get; set; } + public global::System.Collections.Generic.IList? Type147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type148 { get; set; } + public float? Type148 { get; set; } /// /// /// - public float? Type149 { get; set; } + public global::System.Collections.Generic.IList? Type149 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type150 { get; set; } + public global::Exa.FindSimilarResultSubpage? Type150 { get; set; } /// /// /// - public global::Exa.FindSimilarResultSubpage? Type151 { get; set; } + public global::System.Collections.Generic.IList? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::Exa.FindSimilarResultEntitie? Type152 { get; set; } /// /// /// - public global::Exa.FindSimilarResultEntitie? Type153 { get; set; } + public global::Exa.SearchCompanyEntityOutput? Type153 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutput? Type154 { get; set; } + public global::Exa.SearchPersonEntityOutput? Type154 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutput? Type155 { get; set; } + public global::Exa.SearchPublicationEntityOutput? Type155 { get; set; } /// /// /// - public global::Exa.SearchPublicationEntityOutput? Type156 { get; set; } + public global::Exa.FindSimilarResultEntitieDiscriminator? Type156 { get; set; } /// /// /// - public global::Exa.FindSimilarResultEntitieDiscriminator? Type157 { get; set; } + public global::Exa.FindSimilarResultEntitieDiscriminatorType? Type157 { get; set; } /// /// /// - public global::Exa.FindSimilarResultEntitieDiscriminatorType? Type158 { get; set; } + public global::Exa.FindSimilarResultExtras? Type158 { get; set; } /// /// /// - public global::Exa.FindSimilarResultExtras? Type159 { get; set; } + public global::System.Collections.Generic.IList? Type159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type160 { get; set; } + public global::Exa.FindSimilarResultExtrasRichImageLink? Type160 { get; set; } /// /// /// - public global::Exa.FindSimilarResultExtrasRichImageLink? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type162 { get; set; } + public global::Exa.FindSimilarResultExtrasRichLink? Type162 { get; set; } /// /// /// - public global::Exa.FindSimilarResultExtrasRichLink? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::Exa.FindSimilarResultExtrasCodeBlock? Type164 { get; set; } /// /// /// - public global::Exa.FindSimilarResultExtrasCodeBlock? Type165 { get; set; } + public global::Exa.CreateSearchMonitorResponse? Type165 { get; set; } /// /// /// - public global::Exa.CreateSearchMonitorResponse? Type166 { get; set; } + public global::Exa.CreateSearchMonitorResponseStatus? Type166 { get; set; } /// /// /// - public global::Exa.CreateSearchMonitorResponseStatus? Type167 { get; set; } + public global::Exa.SearchMonitorSearchOutput? Type167 { get; set; } /// /// /// - public global::Exa.SearchMonitorSearchOutput? Type168 { get; set; } + public global::Exa.SearchMonitorTriggerOutput? Type168 { get; set; } /// /// /// - public global::Exa.SearchMonitorTriggerOutput? Type169 { get; set; } + public global::Exa.SearchMonitorOutputSchemaOutputVariant1? Type169 { get; set; } /// /// /// - public global::Exa.SearchMonitorOutputSchemaOutputVariant1? Type170 { get; set; } + public global::Exa.SearchMonitorWebhookOutput? Type170 { get; set; } /// /// /// - public global::Exa.SearchMonitorWebhookOutput? Type171 { get; set; } + public global::Exa.ListSearchMonitorsResponse? Type171 { get; set; } /// /// /// - public global::Exa.ListSearchMonitorsResponse? Type172 { get; set; } + public global::System.Collections.Generic.IList? Type172 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type173 { get; set; } + public global::Exa.SearchMonitor? Type173 { get; set; } /// /// /// - public global::Exa.SearchMonitor? Type174 { get; set; } + public global::Exa.SearchMonitorStatus? Type174 { get; set; } /// /// /// - public global::Exa.SearchMonitorStatus? Type175 { get; set; } + public global::Exa.BatchMonitorsResponse? Type175 { get; set; } /// /// /// - public global::Exa.BatchMonitorsResponse? Type176 { get; set; } + public global::Exa.BatchMonitorsResponseAction? Type176 { get; set; } /// /// /// - public global::Exa.BatchMonitorsResponseAction? Type177 { get; set; } + public global::Exa.TriggerSearchMonitorResponse? Type177 { get; set; } /// /// /// - public global::Exa.TriggerSearchMonitorResponse? Type178 { get; set; } + public global::Exa.ListSearchMonitorRunsResponse? Type178 { get; set; } /// /// /// - public global::Exa.ListSearchMonitorRunsResponse? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type180 { get; set; } + public global::Exa.SearchMonitorRun? Type180 { get; set; } /// /// /// - public global::Exa.SearchMonitorRun? Type181 { get; set; } + public global::Exa.SearchMonitorRunStatus? Type181 { get; set; } /// /// /// - public global::Exa.SearchMonitorRunStatus? Type182 { get; set; } + public global::Exa.SearchMonitorRunOutput? Type182 { get; set; } /// /// /// - public global::Exa.SearchMonitorRunOutput? Type183 { get; set; } + public global::Exa.SearchMonitorRunFailReason? Type183 { get; set; } /// /// /// - public global::Exa.SearchMonitorRunFailReason? Type184 { get; set; } + public global::System.Collections.Generic.IList? Type184 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type185 { get; set; } + public global::Exa.SearchMonitorRunOutputGroundingVariant1Item? Type185 { get; set; } /// /// /// - public global::Exa.SearchMonitorRunOutputGroundingVariant1Item? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type187 { get; set; } + public global::Exa.SearchMonitorRunOutputGroundingVariant1ItemCitation? Type187 { get; set; } /// /// /// - public global::Exa.SearchMonitorRunOutputGroundingVariant1ItemCitation? Type188 { get; set; } + public global::Exa.SearchMonitorRunOutputGroundingVariant1ItemConfidence? Type188 { get; set; } /// /// /// - public global::Exa.SearchMonitorRunOutputGroundingVariant1ItemConfidence? Type189 { get; set; } + public global::Exa.AgentRun? Type189 { get; set; } /// /// /// - public global::Exa.AgentRun? Type190 { get; set; } + public global::Exa.AgentRunStatus? Type190 { get; set; } /// /// /// - public global::Exa.AgentRunStatus? Type191 { get; set; } + public global::Exa.AgentStopReason? Type191 { get; set; } /// /// /// - public global::Exa.AgentStopReason? Type192 { get; set; } + public global::Exa.AgentRunRequest? Type192 { get; set; } /// /// /// - public global::Exa.AgentRunRequest? Type193 { get; set; } + public global::Exa.AgentRunOutput? Type193 { get; set; } /// /// /// - public global::Exa.AgentRunOutput? Type194 { get; set; } + public global::Exa.AgentUsage? Type194 { get; set; } /// /// /// - public global::Exa.AgentUsage? Type195 { get; set; } + public global::Exa.AgentCostDollars? Type195 { get; set; } /// /// /// - public global::Exa.AgentCostDollars? Type196 { get; set; } + public global::Exa.AgentRunRequestInput? Type196 { get; set; } /// /// /// - public global::Exa.AgentRunRequestInput? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type198 { get; set; } + public global::Exa.AgentDataSourceOutput? Type198 { get; set; } /// /// /// - public global::Exa.AgentDataSourceOutput? Type199 { get; set; } + public global::Exa.AgentBudgetOutput? Type199 { get; set; } /// /// /// - public global::Exa.AgentBudgetOutput? Type200 { get; set; } + public global::System.Collections.Generic.IList? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::Exa.AgentGrounding? Type201 { get; set; } /// /// /// - public global::Exa.AgentGrounding? Type202 { get; set; } + public global::System.Collections.Generic.IList? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type203 { get; set; } + public global::Exa.AgentCitation? Type203 { get; set; } /// /// /// - public global::Exa.AgentCitation? Type204 { get; set; } + public global::Exa.AgentGroundingConfidence? Type204 { get; set; } /// /// /// - public global::Exa.AgentGroundingConfidence? Type205 { get; set; } + public global::System.Collections.Generic.Dictionary? Type205 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type206 { get; set; } + public global::System.Collections.Generic.Dictionary? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type207 { get; set; } + public global::Exa.AgentErrorResponse? Type207 { get; set; } /// /// /// - public global::Exa.AgentErrorResponse? Type208 { get; set; } + public global::Exa.AgentError? Type208 { get; set; } /// /// /// - public global::Exa.AgentError? Type209 { get; set; } + public global::Exa.AgentErrorType? Type209 { get; set; } /// /// /// - public global::Exa.AgentErrorType? Type210 { get; set; } + public global::Exa.AgentErrorCode? Type210 { get; set; } /// /// /// - public global::Exa.AgentErrorCode? Type211 { get; set; } + public global::Exa.AgentRunList? Type211 { get; set; } /// /// /// - public global::Exa.AgentRunList? Type212 { get; set; } + public global::System.Collections.Generic.IList? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::Exa.DeleteAgentRunResponse? Type213 { get; set; } /// /// /// - public global::Exa.DeleteAgentRunResponse? Type214 { get; set; } + public global::Exa.AgentRunEventList? Type214 { get; set; } /// /// /// - public global::Exa.AgentRunEventList? Type215 { get; set; } + public global::System.Collections.Generic.IList? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type216 { get; set; } + public global::Exa.AgentRunEvent? Type216 { get; set; } /// /// /// - public global::Exa.AgentRunEvent? Type217 { get; set; } + public global::Exa.Batch? Type217 { get; set; } /// /// /// - public global::Exa.Batch? Type218 { get; set; } + public global::Exa.BatchStatus? Type218 { get; set; } /// /// /// - public global::Exa.BatchStatus? Type219 { get; set; } + public global::Exa.BatchRequestCounts? Type219 { get; set; } /// /// /// - public global::Exa.BatchRequestCounts? Type220 { get; set; } + public global::Exa.BatchList? Type220 { get; set; } /// /// /// - public global::Exa.BatchList? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type222 { get; set; } + public global::Exa.DeletedBatch? Type222 { get; set; } /// /// /// - public global::Exa.DeletedBatch? Type223 { get; set; } + public global::Exa.WebsetsTeamInfo? Type223 { get; set; } /// /// /// - public global::Exa.WebsetsTeamInfo? Type224 { get; set; } + public global::Exa.WebsetsTeamInfoConcurrency? Type224 { get; set; } /// /// /// - public global::Exa.WebsetsTeamInfoConcurrency? Type225 { get; set; } + public global::Exa.WebsetsTeamInfoLimits? Type225 { get; set; } /// /// /// - public global::Exa.WebsetsTeamInfoLimits? Type226 { get; set; } + public global::Exa.AnswerStreamChunk? Type226 { get; set; } /// /// /// - public global::Exa.AnswerStreamChunk? Type227 { get; set; } + public global::Exa.AnswerStreamCitationsChunkOutput? Type227 { get; set; } /// /// /// - public global::Exa.AnswerStreamCitationsChunkOutput? Type228 { get; set; } + public global::Exa.AnswerStreamCostChunkOutput? Type228 { get; set; } /// /// /// - public global::Exa.AnswerStreamCostChunkOutput? Type229 { get; set; } + public global::Exa.AnswerStreamErrorChunkOutput? Type229 { get; set; } /// /// /// - public global::Exa.AnswerStreamErrorChunkOutput? Type230 { get; set; } + public global::Exa.SearchStreamChunk? Type230 { get; set; } /// /// /// - public global::Exa.SearchStreamChunk? Type231 { get; set; } + public global::Exa.SearchStreamTextDeltaChunkOutput? Type231 { get; set; } /// /// /// - public global::Exa.SearchStreamTextDeltaChunkOutput? Type232 { get; set; } + public global::Exa.SearchStreamGroundingChunkOutput? Type232 { get; set; } /// /// /// - public global::Exa.SearchStreamGroundingChunkOutput? Type233 { get; set; } + public global::Exa.SearchStreamResultsChunkOutput? Type233 { get; set; } /// /// /// - public global::Exa.SearchStreamResultsChunkOutput? Type234 { get; set; } + public global::Exa.SearchStreamResetChunkOutput? Type234 { get; set; } /// /// /// - public global::Exa.SearchStreamResetChunkOutput? Type235 { get; set; } + public global::Exa.SearchStreamDoneChunkOutput? Type235 { get; set; } /// /// /// - public global::Exa.SearchStreamDoneChunkOutput? Type236 { get; set; } + public global::Exa.SearchStreamErrorChunkOutput? Type236 { get; set; } /// /// /// - public global::Exa.SearchStreamErrorChunkOutput? Type237 { get; set; } + public global::Exa.SearchStreamChunkDiscriminator? Type237 { get; set; } /// /// /// - public global::Exa.SearchStreamChunkDiscriminator? Type238 { get; set; } + public global::Exa.SearchStreamChunkDiscriminatorType? Type238 { get; set; } /// /// /// - public global::Exa.SearchStreamChunkDiscriminatorType? Type239 { get; set; } + public global::Exa.AgentRunEventEvent? Type239 { get; set; } /// /// /// - public global::Exa.AgentRunEventEvent? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::Exa.SearchResultOutputSubpage? Type241 { get; set; } /// /// /// - public global::Exa.SearchResultOutputSubpage? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type243 { get; set; } + public global::Exa.SearchResultOutputEntitie? Type243 { get; set; } /// /// /// - public global::Exa.SearchResultOutputEntitie? Type244 { get; set; } + public global::Exa.SearchResultOutputEntitieDiscriminator? Type244 { get; set; } /// /// /// - public global::Exa.SearchResultOutputEntitieDiscriminator? Type245 { get; set; } + public global::Exa.SearchResultOutputEntitieDiscriminatorType? Type245 { get; set; } /// /// /// - public global::Exa.SearchResultOutputEntitieDiscriminatorType? Type246 { get; set; } + public global::Exa.SearchResultOutputExtras? Type246 { get; set; } /// /// /// - public global::Exa.SearchResultOutputExtras? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::Exa.SearchResultOutputExtrasRichImageLink? Type248 { get; set; } /// /// /// - public global::Exa.SearchResultOutputExtrasRichImageLink? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type250 { get; set; } + public global::Exa.SearchResultOutputExtrasRichLink? Type250 { get; set; } /// /// /// - public global::Exa.SearchResultOutputExtrasRichLink? Type251 { get; set; } + public global::System.Collections.Generic.IList? Type251 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type252 { get; set; } + public global::Exa.SearchResultOutputExtrasCodeBlock? Type252 { get; set; } /// /// /// - public global::Exa.SearchResultOutputExtrasCodeBlock? Type253 { get; set; } + public global::Exa.SearchCompanyEntityOutputProperties? Type253 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputProperties? Type254 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesWorkforce? Type254 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesWorkforce? Type255 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesHeadquarters? Type255 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesHeadquarters? Type256 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesFinancials? Type256 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesFinancials? Type257 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesFinancialsFundingLatestRound? Type257 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesFinancialsFundingLatestRound? Type258 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesWebTraffic? Type258 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesWebTraffic? Type259 { get; set; } + public global::System.Collections.Generic.IList? Type259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type260 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesWebTrafficHistoryItem? Type260 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesWebTrafficHistoryItem? Type261 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesResearch? Type261 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesResearch? Type262 { get; set; } + public global::System.Collections.Generic.IList? Type262 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type263 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesResearchNotableWork? Type263 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesResearchNotableWork? Type264 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesResearchNotableWorkType? Type264 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesResearchNotableWorkType? Type265 { get; set; } + public global::System.Collections.Generic.IList? Type265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type266 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesResearchTopResearcher? Type266 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesResearchTopResearcher? Type267 { get; set; } + public global::Exa.SearchCompanyEntityOutputPropertiesResearchTopResearcherPerson? Type267 { get; set; } /// /// /// - public global::Exa.SearchCompanyEntityOutputPropertiesResearchTopResearcherPerson? Type268 { get; set; } + public global::Exa.SearchPersonEntityOutputProperties? Type268 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputProperties? Type269 { get; set; } + public global::System.Collections.Generic.IList? Type269 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type270 { get; set; } + public global::Exa.SearchPersonEntityOutputPropertiesWorkHistoryItem? Type270 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputPropertiesWorkHistoryItem? Type271 { get; set; } + public global::Exa.SearchPersonEntityOutputPropertiesWorkHistoryItemDates? Type271 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputPropertiesWorkHistoryItemDates? Type272 { get; set; } + public global::Exa.SearchPersonEntityOutputPropertiesWorkHistoryItemCompany? Type272 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputPropertiesWorkHistoryItemCompany? Type273 { get; set; } + public global::System.Collections.Generic.IList? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::Exa.SearchPersonEntityOutputPropertiesEducationHistoryItem? Type274 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputPropertiesEducationHistoryItem? Type275 { get; set; } + public global::Exa.SearchPersonEntityOutputPropertiesEducationHistoryItemDates? Type275 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputPropertiesEducationHistoryItemDates? Type276 { get; set; } + public global::Exa.SearchPersonEntityOutputPropertiesEducationHistoryItemInstitution? Type276 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputPropertiesEducationHistoryItemInstitution? Type277 { get; set; } + public global::Exa.SearchPersonEntityOutputPropertiesResearch? Type277 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputPropertiesResearch? Type278 { get; set; } + public global::System.Collections.Generic.IList? Type278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type279 { get; set; } + public global::Exa.SearchPersonEntityOutputPropertiesResearchNotableWork? Type279 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputPropertiesResearchNotableWork? Type280 { get; set; } + public global::Exa.SearchPersonEntityOutputPropertiesResearchNotableWorkType? Type280 { get; set; } /// /// /// - public global::Exa.SearchPersonEntityOutputPropertiesResearchNotableWorkType? Type281 { get; set; } + public global::Exa.SearchPublicationEntityOutputProperties? Type281 { get; set; } /// /// /// - public global::Exa.SearchPublicationEntityOutputProperties? Type282 { get; set; } + public global::Exa.SearchPublicationEntityOutputPropertiesType? Type282 { get; set; } /// /// /// - public global::Exa.SearchPublicationEntityOutputPropertiesType? Type283 { get; set; } + public global::System.Collections.Generic.IList? Type283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type284 { get; set; } + public global::Exa.SearchPublicationEntityOutputPropertiesAuthor? Type284 { get; set; } /// /// /// - public global::Exa.SearchPublicationEntityOutputPropertiesAuthor? Type285 { get; set; } + public global::Exa.CostDollarsOutputSearch? Type285 { get; set; } /// /// /// - public global::Exa.CostDollarsOutputSearch? Type286 { get; set; } + public global::Exa.CostDollarsOutputContents? Type286 { get; set; } /// /// /// - public global::Exa.CostDollarsOutputContents? Type287 { get; set; } + public global::System.Collections.Generic.IList? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type288 { get; set; } + public global::Exa.SearchSynthesisOutputOutputGroundingItem? Type288 { get; set; } /// /// /// - public global::Exa.SearchSynthesisOutputOutputGroundingItem? Type289 { get; set; } + public global::System.Collections.Generic.IList? Type289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type290 { get; set; } + public global::Exa.SearchSynthesisOutputOutputGroundingItemCitation? Type290 { get; set; } /// /// /// - public global::Exa.SearchSynthesisOutputOutputGroundingItemCitation? Type291 { get; set; } + public global::Exa.SearchSynthesisOutputOutputGroundingItemConfidence? Type291 { get; set; } /// /// /// - public global::Exa.SearchSynthesisOutputOutputGroundingItemConfidence? Type292 { get; set; } + public global::System.Collections.Generic.IList? Type292 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type293 { get; set; } + public global::Exa.SearchStreamTextDeltaChunkOutputChoice? Type293 { get; set; } /// /// /// - public global::Exa.SearchStreamTextDeltaChunkOutputChoice? Type294 { get; set; } + public global::Exa.SearchStreamTextDeltaChunkOutputChoiceDelta? Type294 { get; set; } /// /// /// - public global::Exa.SearchStreamTextDeltaChunkOutputChoiceDelta? Type295 { get; set; } + public global::System.Collections.Generic.IList? Type295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type296 { get; set; } + public global::Exa.SearchStreamTextDeltaChunkOutputChoiceDeltaCitation? Type296 { get; set; } /// /// /// - public global::Exa.SearchStreamTextDeltaChunkOutputChoiceDeltaCitation? Type297 { get; set; } + public global::System.Collections.Generic.IList? Type297 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type298 { get; set; } + public global::Exa.SearchStreamGroundingChunkOutputGroundingItem? Type298 { get; set; } /// /// /// - public global::Exa.SearchStreamGroundingChunkOutputGroundingItem? Type299 { get; set; } + public global::System.Collections.Generic.IList? Type299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type300 { get; set; } + public global::Exa.SearchStreamGroundingChunkOutputGroundingItemCitation? Type300 { get; set; } /// /// /// - public global::Exa.SearchStreamGroundingChunkOutputGroundingItemCitation? Type301 { get; set; } + public global::Exa.SearchStreamGroundingChunkOutputGroundingItemConfidence? Type301 { get; set; } /// /// /// - public global::Exa.SearchStreamGroundingChunkOutputGroundingItemConfidence? Type302 { get; set; } + public global::System.Collections.Generic.IList? Type302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::Exa.SearchStreamGroundingChunkOutputCitation? Type303 { get; set; } /// /// /// - public global::Exa.SearchStreamGroundingChunkOutputCitation? Type304 { get; set; } + public global::System.Collections.Generic.IList? Type304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type305 { get; set; } + public global::Exa.SearchStreamGroundingChunkOutputChoice? Type305 { get; set; } /// /// /// - public global::Exa.SearchStreamGroundingChunkOutputChoice? Type306 { get; set; } + public global::Exa.SearchStreamGroundingChunkOutputChoiceDelta? Type306 { get; set; } /// /// /// - public global::Exa.SearchStreamGroundingChunkOutputChoiceDelta? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type308 { get; set; } + public global::Exa.SearchStreamGroundingChunkOutputChoiceDeltaCitation? Type308 { get; set; } /// /// /// - public global::Exa.SearchStreamGroundingChunkOutputChoiceDeltaCitation? Type309 { get; set; } + public global::System.Collections.Generic.IList? Type309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type310 { get; set; } + public global::Exa.SearchStreamDoneChunkOutputChoice? Type310 { get; set; } /// /// /// - public global::Exa.SearchStreamDoneChunkOutputChoice? Type311 { get; set; } + public global::Exa.SearchStreamDoneChunkOutputChoiceDelta? Type311 { get; set; } /// /// /// - public global::Exa.SearchStreamDoneChunkOutputChoiceDelta? Type312 { get; set; } + public global::System.Collections.Generic.IList? Type312 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type313 { get; set; } + public global::Exa.SearchStreamDoneChunkOutputChoiceDeltaCitation? Type313 { get; set; } /// /// /// - public global::Exa.SearchStreamDoneChunkOutputChoiceDeltaCitation? Type314 { get; set; } + public global::Exa.SearchStreamErrorChunkOutputError? Type314 { get; set; } /// /// /// - public global::Exa.SearchStreamErrorChunkOutputError? Type315 { get; set; } + public global::System.Collections.Generic.IList? Type315 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type316 { get; set; } + public global::Exa.AnswerStreamCitationsChunkOutputCitation? Type316 { get; set; } /// /// /// - public global::Exa.AnswerStreamCitationsChunkOutputCitation? Type317 { get; set; } + public global::Exa.AnswerStreamErrorChunkOutputPayload? Type317 { get; set; } /// /// /// - public global::Exa.AnswerStreamErrorChunkOutputPayload? Type318 { get; set; } + public global::Exa.AnswerStreamErrorChunkOutputPayloadError? Type318 { get; set; } /// /// /// - public global::Exa.AnswerStreamErrorChunkOutputPayloadError? Type319 { get; set; } + public global::Exa.SearchMonitorContentsOutput? Type319 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutput? Type320 { get; set; } + public global::Exa.OneOf? Type320 { get; set; } /// /// /// - public global::Exa.OneOf? Type321 { get; set; } + public global::Exa.SearchMonitorContentsOutputText? Type321 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutputText? Type322 { get; set; } + public global::Exa.SearchMonitorContentsOutputTextVerbosity? Type322 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutputTextVerbosity? Type323 { get; set; } + public global::System.Collections.Generic.IList? Type323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type324 { get; set; } + public global::Exa.SearchMonitorContentsOutputTextIncludeSectionsVariant1Item? Type324 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutputTextIncludeSectionsVariant1Item? Type325 { get; set; } + public global::System.Collections.Generic.IList? Type325 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type326 { get; set; } + public global::Exa.SearchMonitorContentsOutputTextExcludeSectionsVariant1Item? Type326 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutputTextExcludeSectionsVariant1Item? Type327 { get; set; } + public global::Exa.OneOf? Type327 { get; set; } /// /// /// - public global::Exa.OneOf? Type328 { get; set; } + public global::Exa.SearchMonitorContentsOutputHighlights? Type328 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutputHighlights? Type329 { get; set; } + public global::Exa.SearchMonitorContentsOutputHighlightsVerbosity? Type329 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutputHighlightsVerbosity? Type330 { get; set; } + public global::Exa.OneOf? Type330 { get; set; } /// /// /// - public global::Exa.OneOf? Type331 { get; set; } + public global::Exa.SummaryWithMaxTokensOptionsOutput? Type331 { get; set; } /// /// /// - public global::Exa.SummaryWithMaxTokensOptionsOutput? Type332 { get; set; } + public global::Exa.SearchMonitorContentsOutputExtras? Type332 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutputExtras? Type333 { get; set; } + public global::Exa.OneOf? Type333 { get; set; } /// /// /// - public global::Exa.OneOf? Type334 { get; set; } + public global::Exa.SearchMonitorContentsOutputLivecrawl? Type334 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutputLivecrawl? Type335 { get; set; } + public global::Exa.OneOf? Type335 { get; set; } /// /// /// - public global::Exa.OneOf? Type336 { get; set; } + public global::Exa.SearchMonitorContentsOutputContext? Type336 { get; set; } /// /// /// - public global::Exa.SearchMonitorContentsOutputContext? Type337 { get; set; } + public global::Exa.OutputSchemaTextOutput? Type337 { get; set; } /// /// /// - public global::Exa.OutputSchemaTextOutput? Type338 { get; set; } + public global::Exa.SearchMonitorOutputSchemaOutputVariant1Discriminator? Type338 { get; set; } /// /// /// - public global::Exa.SearchMonitorOutputSchemaOutputVariant1Discriminator? Type339 { get; set; } + public global::Exa.SearchMonitorOutputSchemaOutputVariant1DiscriminatorType? Type339 { get; set; } /// /// /// - public global::Exa.SearchMonitorOutputSchemaOutputVariant1DiscriminatorType? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type341 { get; set; } + public global::Exa.SearchMonitorWebhookOutputEvent? Type341 { get; set; } /// /// /// - public global::Exa.SearchMonitorWebhookOutputEvent? Type342 { get; set; } + public global::Exa.CreateWebsetParameters? Type342 { get; set; } /// /// /// - public global::Exa.CreateWebsetParameters? Type343 { get; set; } + public global::Exa.CreateWebsetParametersSearch? Type343 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersSearch? Type344 { get; set; } + public global::Exa.Entity? Type344 { get; set; } /// /// /// - public global::Exa.Entity? Type345 { get; set; } + public global::System.Collections.Generic.IList? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::Exa.CreateCriterionParameters? Type346 { get; set; } /// /// /// - public global::Exa.CreateCriterionParameters? Type347 { get; set; } + public global::System.Collections.Generic.IList? Type347 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type348 { get; set; } + public global::Exa.CreateWebsetParametersSearchExcludeItem? Type348 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersSearchExcludeItem? Type349 { get; set; } + public global::Exa.CreateWebsetParametersSearchExcludeItemSource? Type349 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersSearchExcludeItemSource? Type350 { get; set; } + public global::System.Collections.Generic.IList? Type350 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type351 { get; set; } + public global::Exa.CreateWebsetParametersSearchScopeItem? Type351 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersSearchScopeItem? Type352 { get; set; } + public global::Exa.CreateWebsetParametersSearchScopeItemSource? Type352 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersSearchScopeItemSource? Type353 { get; set; } + public global::Exa.CreateWebsetParametersSearchScopeItemRelationship? Type353 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersSearchScopeItemRelationship? Type354 { get; set; } + public global::System.Collections.Generic.IList? Type354 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type355 { get; set; } + public global::Exa.CreateWebsetParametersImportItem? Type355 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersImportItem? Type356 { get; set; } + public global::Exa.CreateWebsetParametersImportItemSource? Type356 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersImportItemSource? Type357 { get; set; } + public global::System.Collections.Generic.IList? Type357 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type358 { get; set; } + public global::Exa.CreateEnrichmentParameters? Type358 { get; set; } /// /// /// - public global::Exa.CreateEnrichmentParameters? Type359 { get; set; } + public global::System.Collections.Generic.IList? Type359 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type360 { get; set; } + public global::Exa.CreateWebsetParametersExcludeItem? Type360 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersExcludeItem? Type361 { get; set; } + public global::Exa.CreateWebsetParametersExcludeItemSource? Type361 { get; set; } /// /// /// - public global::Exa.CreateWebsetParametersExcludeItemSource? Type362 { get; set; } + public global::Exa.CompanyEntity? Type362 { get; set; } /// /// /// - public global::Exa.CompanyEntity? Type363 { get; set; } + public global::Exa.PersonEntity? Type363 { get; set; } /// /// /// - public global::Exa.PersonEntity? Type364 { get; set; } + public global::Exa.ArticleEntity? Type364 { get; set; } /// /// /// - public global::Exa.ArticleEntity? Type365 { get; set; } + public global::Exa.ResearchPaperEntity? Type365 { get; set; } /// /// /// - public global::Exa.ResearchPaperEntity? Type366 { get; set; } + public global::Exa.CustomEntity? Type366 { get; set; } /// /// /// - public global::Exa.CustomEntity? Type367 { get; set; } + public global::Exa.WebsetEnrichmentFormat? Type367 { get; set; } /// /// /// - public global::Exa.WebsetEnrichmentFormat? Type368 { get; set; } + public global::System.Collections.Generic.IList? Type368 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type369 { get; set; } + public global::Exa.CreateEnrichmentParametersOption? Type369 { get; set; } /// /// /// - public global::Exa.CreateEnrichmentParametersOption? Type370 { get; set; } + public global::Exa.UpdateWebsetRequest? Type370 { get; set; } /// /// /// - public global::Exa.UpdateWebsetRequest? Type371 { get; set; } + public global::Exa.CreateWebsetSearchParameters? Type371 { get; set; } /// /// /// - public global::Exa.CreateWebsetSearchParameters? Type372 { get; set; } + public global::System.Collections.Generic.IList? Type372 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type373 { get; set; } + public global::Exa.CreateWebsetSearchParametersExcludeItem? Type373 { get; set; } /// /// /// - public global::Exa.CreateWebsetSearchParametersExcludeItem? Type374 { get; set; } + public global::Exa.CreateWebsetSearchParametersExcludeItemSource? Type374 { get; set; } /// /// /// - public global::Exa.CreateWebsetSearchParametersExcludeItemSource? Type375 { get; set; } + public global::System.Collections.Generic.IList? Type375 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type376 { get; set; } + public global::Exa.CreateWebsetSearchParametersScopeItem? Type376 { get; set; } /// /// /// - public global::Exa.CreateWebsetSearchParametersScopeItem? Type377 { get; set; } + public global::Exa.CreateWebsetSearchParametersScopeItemSource? Type377 { get; set; } /// /// /// - public global::Exa.CreateWebsetSearchParametersScopeItemSource? Type378 { get; set; } + public global::Exa.CreateWebsetSearchParametersScopeItemRelationship? Type378 { get; set; } /// /// /// - public global::Exa.CreateWebsetSearchParametersScopeItemRelationship? Type379 { get; set; } + public global::Exa.WebsetSearchBehavior? Type379 { get; set; } /// /// /// - public global::Exa.WebsetSearchBehavior? Type380 { get; set; } + public global::Exa.UpdateEnrichmentParameters? Type380 { get; set; } /// /// /// - public global::Exa.UpdateEnrichmentParameters? Type381 { get; set; } + public global::System.Collections.Generic.IList? Type381 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type382 { get; set; } + public global::Exa.UpdateEnrichmentParametersOption? Type382 { get; set; } /// /// /// - public global::Exa.UpdateEnrichmentParametersOption? Type383 { get; set; } + public global::Exa.PreviewWebsetParameters? Type383 { get; set; } /// /// /// - public global::Exa.PreviewWebsetParameters? Type384 { get; set; } + public global::Exa.PreviewWebsetParametersSearch? Type384 { get; set; } /// /// /// - public global::Exa.PreviewWebsetParametersSearch? Type385 { get; set; } + public global::Exa.CreateMonitorParameters? Type385 { get; set; } /// /// /// - public global::Exa.CreateMonitorParameters? Type386 { get; set; } + public global::Exa.MonitorCadence? Type386 { get; set; } /// /// /// - public global::Exa.MonitorCadence? Type387 { get; set; } + public global::Exa.MonitorBehavior? Type387 { get; set; } /// /// /// - public global::Exa.MonitorBehavior? Type388 { get; set; } + public global::Exa.MonitorBehaviorConfig? Type388 { get; set; } /// /// /// - public global::Exa.MonitorBehaviorConfig? Type389 { get; set; } + public global::System.Collections.Generic.IList? Type389 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type390 { get; set; } + public global::Exa.MonitorBehaviorConfigCriteriaItem? Type390 { get; set; } /// /// /// - public global::Exa.MonitorBehaviorConfigCriteriaItem? Type391 { get; set; } + public global::Exa.UpdateMonitor? Type391 { get; set; } /// /// /// - public global::Exa.UpdateMonitor? Type392 { get; set; } + public global::Exa.UpdateMonitorStatus? Type392 { get; set; } /// /// /// - public global::Exa.UpdateMonitorStatus? Type393 { get; set; } + public global::Exa.CreateImportParameters? Type393 { get; set; } /// /// /// - public global::Exa.CreateImportParameters? Type394 { get; set; } + public global::Exa.CreateImportParametersVariant1? Type394 { get; set; } /// /// /// - public global::Exa.CreateImportParametersVariant1? Type395 { get; set; } + public global::Exa.CreateImportParametersVariant1Format? Type395 { get; set; } /// /// /// - public global::Exa.CreateImportParametersVariant1Format? Type396 { get; set; } + public global::Exa.CreateImportParametersVariant1Csv? Type396 { get; set; } /// /// /// - public global::Exa.CreateImportParametersVariant1Csv? Type397 { get; set; } + public global::Exa.CreateImportParametersDiscriminator? Type397 { get; set; } /// /// /// - public global::Exa.CreateImportParametersDiscriminator? Type398 { get; set; } + public global::Exa.CreateImportParametersDiscriminatorFormat? Type398 { get; set; } /// /// /// - public global::Exa.CreateImportParametersDiscriminatorFormat? Type399 { get; set; } + public global::Exa.UpdateImport? Type399 { get; set; } /// /// /// - public global::Exa.UpdateImport? Type400 { get; set; } + public global::Exa.CreateWebhookParameters? Type400 { get; set; } /// /// /// - public global::Exa.CreateWebhookParameters? Type401 { get; set; } + public global::System.Collections.Generic.IList? Type401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type402 { get; set; } + public global::Exa.EventType? Type402 { get; set; } /// /// /// - public global::Exa.EventType? Type403 { get; set; } + public global::Exa.UpdateWebhookParameters? Type403 { get; set; } /// /// /// - public global::Exa.UpdateWebhookParameters? Type404 { get; set; } + public global::Exa.Webset? Type404 { get; set; } /// /// /// - public global::Exa.Webset? Type405 { get; set; } + public global::Exa.WebsetStatus? Type405 { get; set; } /// /// /// - public global::Exa.WebsetStatus? Type406 { get; set; } + public global::System.Collections.Generic.IList? Type406 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type407 { get; set; } + public global::Exa.WebsetSearch? Type407 { get; set; } /// /// /// - public global::Exa.WebsetSearch? Type408 { get; set; } + public global::System.Collections.Generic.IList? Type408 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type409 { get; set; } + public global::Exa.Import? Type409 { get; set; } /// /// /// - public global::Exa.Import? Type410 { get; set; } + public global::System.Collections.Generic.IList? Type410 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type411 { get; set; } + public global::Exa.WebsetEnrichment? Type411 { get; set; } /// /// /// - public global::Exa.WebsetEnrichment? Type412 { get; set; } + public global::System.Collections.Generic.IList? Type412 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type413 { get; set; } + public global::Exa.Monitor? Type413 { get; set; } /// /// /// - public global::Exa.Monitor? Type414 { get; set; } + public global::System.Collections.Generic.IList? Type414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type415 { get; set; } + public global::Exa.WebsetExclude? Type415 { get; set; } /// /// /// - public global::Exa.WebsetExclude? Type416 { get; set; } + public global::Exa.WebsetExcludeSource? Type416 { get; set; } /// /// /// - public global::Exa.WebsetExcludeSource? Type417 { get; set; } + public global::Exa.WebsetSearchStatus? Type417 { get; set; } /// /// /// - public global::Exa.WebsetSearchStatus? Type418 { get; set; } + public global::System.Collections.Generic.IList? Type418 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type419 { get; set; } + public global::Exa.WebsetSearchCriteriaItem? Type419 { get; set; } /// /// /// - public global::Exa.WebsetSearchCriteriaItem? Type420 { get; set; } + public global::System.Collections.Generic.IList? Type420 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type421 { get; set; } + public global::Exa.WebsetSearchExcludeItem? Type421 { get; set; } /// /// /// - public global::Exa.WebsetSearchExcludeItem? Type422 { get; set; } + public global::Exa.WebsetSearchExcludeItemSource? Type422 { get; set; } /// /// /// - public global::Exa.WebsetSearchExcludeItemSource? Type423 { get; set; } + public global::System.Collections.Generic.IList? Type423 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type424 { get; set; } + public global::Exa.WebsetSearchScopeItem? Type424 { get; set; } /// /// /// - public global::Exa.WebsetSearchScopeItem? Type425 { get; set; } + public global::Exa.WebsetSearchScopeItemSource? Type425 { get; set; } /// /// /// - public global::Exa.WebsetSearchScopeItemSource? Type426 { get; set; } + public global::Exa.WebsetSearchScopeItemRelationship? Type426 { get; set; } /// /// /// - public global::Exa.WebsetSearchScopeItemRelationship? Type427 { get; set; } + public global::Exa.WebsetSearchProgress? Type427 { get; set; } /// /// /// - public global::Exa.WebsetSearchProgress? Type428 { get; set; } + public global::Exa.WebsetSearchRecall? Type428 { get; set; } /// /// /// - public global::Exa.WebsetSearchRecall? Type429 { get; set; } + public global::Exa.WebsetSearchRecallExpected? Type429 { get; set; } /// /// /// - public global::Exa.WebsetSearchRecallExpected? Type430 { get; set; } + public global::Exa.WebsetSearchRecallExpectedConfidence? Type430 { get; set; } /// /// /// - public global::Exa.WebsetSearchRecallExpectedConfidence? Type431 { get; set; } + public global::Exa.WebsetSearchRecallExpectedBounds? Type431 { get; set; } /// /// /// - public global::Exa.WebsetSearchRecallExpectedBounds? Type432 { get; set; } + public global::Exa.WebsetSearchCanceledReason? Type432 { get; set; } /// /// /// - public global::Exa.WebsetSearchCanceledReason? Type433 { get; set; } + public global::Exa.ImportObject? Type433 { get; set; } /// /// /// - public global::Exa.ImportObject? Type434 { get; set; } + public global::Exa.ImportStatus? Type434 { get; set; } /// /// /// - public global::Exa.ImportStatus? Type435 { get; set; } + public global::Exa.ImportFormat? Type435 { get; set; } /// /// /// - public global::Exa.ImportFormat? Type436 { get; set; } + public global::Exa.ImportFailedReason? Type436 { get; set; } /// /// /// - public global::Exa.ImportFailedReason? Type437 { get; set; } + public global::Exa.WebsetEnrichmentStatus? Type437 { get; set; } /// /// /// - public global::Exa.WebsetEnrichmentStatus? Type438 { get; set; } + public global::System.Collections.Generic.IList? Type438 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type439 { get; set; } + public global::Exa.WebsetEnrichmentOption? Type439 { get; set; } /// /// /// - public global::Exa.WebsetEnrichmentOption? Type440 { get; set; } + public global::Exa.MonitorObject? Type440 { get; set; } /// /// /// - public global::Exa.MonitorObject? Type441 { get; set; } + public global::Exa.MonitorStatus? Type441 { get; set; } /// /// /// - public global::Exa.MonitorStatus? Type442 { get; set; } + public global::Exa.MonitorRun? Type442 { get; set; } /// /// /// - public global::Exa.MonitorRun? Type443 { get; set; } + public global::Exa.MonitorRunObject? Type443 { get; set; } /// /// /// - public global::Exa.MonitorRunObject? Type444 { get; set; } + public global::Exa.MonitorRunStatus? Type444 { get; set; } /// /// /// - public global::Exa.MonitorRunStatus? Type445 { get; set; } + public global::Exa.MonitorRunType? Type445 { get; set; } /// /// /// - public global::Exa.MonitorRunType? Type446 { get; set; } + public global::Exa.ListWebsetsResponse? Type446 { get; set; } /// /// /// - public global::Exa.ListWebsetsResponse? Type447 { get; set; } + public global::System.Collections.Generic.IList? Type447 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type448 { get; set; } + public global::Exa.GetWebsetResponse? Type448 { get; set; } /// /// /// - public global::Exa.GetWebsetResponse? Type449 { get; set; } + public global::Exa.GetWebsetResponseVariant2? Type449 { get; set; } /// /// /// - public global::Exa.GetWebsetResponseVariant2? Type450 { get; set; } + public global::System.Collections.Generic.IList? Type450 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type451 { get; set; } + public global::Exa.WebsetItem? Type451 { get; set; } /// /// /// - public global::Exa.WebsetItem? Type452 { get; set; } + public global::Exa.WebsetItemSource? Type452 { get; set; } /// /// /// - public global::Exa.WebsetItemSource? Type453 { get; set; } + public global::Exa.WebsetItemPersonProperties? Type453 { get; set; } /// /// /// - public global::Exa.WebsetItemPersonProperties? Type454 { get; set; } + public global::Exa.WebsetItemCompanyProperties? Type454 { get; set; } /// /// /// - public global::Exa.WebsetItemCompanyProperties? Type455 { get; set; } + public global::Exa.WebsetItemArticleProperties? Type455 { get; set; } /// /// /// - public global::Exa.WebsetItemArticleProperties? Type456 { get; set; } + public global::Exa.WebsetItemResearchPaperProperties? Type456 { get; set; } /// /// /// - public global::Exa.WebsetItemResearchPaperProperties? Type457 { get; set; } + public global::Exa.WebsetItemCustomProperties? Type457 { get; set; } /// /// /// - public global::Exa.WebsetItemCustomProperties? Type458 { get; set; } + public global::System.Collections.Generic.IList? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type459 { get; set; } + public global::Exa.WebsetItemEvaluation? Type459 { get; set; } /// /// /// - public global::Exa.WebsetItemEvaluation? Type460 { get; set; } + public global::System.Collections.Generic.IList? Type460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type461 { get; set; } + public global::Exa.EnrichmentResult? Type461 { get; set; } /// /// /// - public global::Exa.EnrichmentResult? Type462 { get; set; } + public global::Exa.WebsetItemPersonPropertiesPerson? Type462 { get; set; } /// /// /// - public global::Exa.WebsetItemPersonPropertiesPerson? Type463 { get; set; } + public global::Exa.WebsetItemPersonPropertiesPersonCompany? Type463 { get; set; } /// /// /// - public global::Exa.WebsetItemPersonPropertiesPersonCompany? Type464 { get; set; } + public global::System.Collections.Generic.IList? Type464 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type465 { get; set; } + public global::Exa.WebsetItemPersonPropertiesPersonWorkHistoryItem? Type465 { get; set; } /// /// /// - public global::Exa.WebsetItemPersonPropertiesPersonWorkHistoryItem? Type466 { get; set; } + public global::Exa.WebsetItemPersonPropertiesPersonWorkHistoryItemDates? Type466 { get; set; } /// /// /// - public global::Exa.WebsetItemPersonPropertiesPersonWorkHistoryItemDates? Type467 { get; set; } + public global::Exa.WebsetItemPersonPropertiesPersonWorkHistoryItemCompany? Type467 { get; set; } /// /// /// - public global::Exa.WebsetItemPersonPropertiesPersonWorkHistoryItemCompany? Type468 { get; set; } + public global::System.Collections.Generic.IList? Type468 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type469 { get; set; } + public global::Exa.WebsetItemPersonPropertiesPersonEducationHistoryItem? Type469 { get; set; } /// /// /// - public global::Exa.WebsetItemPersonPropertiesPersonEducationHistoryItem? Type470 { get; set; } + public global::Exa.WebsetItemPersonPropertiesPersonEducationHistoryItemDates? Type470 { get; set; } /// /// /// - public global::Exa.WebsetItemPersonPropertiesPersonEducationHistoryItemDates? Type471 { get; set; } + public global::Exa.WebsetItemPersonPropertiesPersonEducationHistoryItemInstitution? Type471 { get; set; } /// /// /// - public global::Exa.WebsetItemPersonPropertiesPersonEducationHistoryItemInstitution? Type472 { get; set; } + public global::Exa.WebsetItemCompanyPropertiesCompany? Type472 { get; set; } /// /// /// - public global::Exa.WebsetItemCompanyPropertiesCompany? Type473 { get; set; } + public global::Exa.WebsetItemCompanyPropertiesCompanyHeadquarters? Type473 { get; set; } /// /// /// - public global::Exa.WebsetItemCompanyPropertiesCompanyHeadquarters? Type474 { get; set; } + public global::Exa.WebsetItemCompanyPropertiesCompanyFinancials? Type474 { get; set; } /// /// /// - public global::Exa.WebsetItemCompanyPropertiesCompanyFinancials? Type475 { get; set; } + public global::Exa.WebsetItemCompanyPropertiesCompanyFinancialsFundingLatestRound? Type475 { get; set; } /// /// /// - public global::Exa.WebsetItemCompanyPropertiesCompanyFinancialsFundingLatestRound? Type476 { get; set; } + public global::Exa.WebsetItemCompanyPropertiesCompanyWebTraffic? Type476 { get; set; } /// /// /// - public global::Exa.WebsetItemCompanyPropertiesCompanyWebTraffic? Type477 { get; set; } + public global::Exa.WebsetItemArticlePropertiesArticle? Type477 { get; set; } /// /// /// - public global::Exa.WebsetItemArticlePropertiesArticle? Type478 { get; set; } + public global::Exa.WebsetItemResearchPaperPropertiesResearchPaper? Type478 { get; set; } /// /// /// - public global::Exa.WebsetItemResearchPaperPropertiesResearchPaper? Type479 { get; set; } + public global::Exa.WebsetItemCustomPropertiesCustom? Type479 { get; set; } /// /// /// - public global::Exa.WebsetItemCustomPropertiesCustom? Type480 { get; set; } + public global::Exa.WebsetItemEvaluationSatisfied? Type480 { get; set; } /// /// /// - public global::Exa.WebsetItemEvaluationSatisfied? Type481 { get; set; } + public global::System.Collections.Generic.IList? Type481 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type482 { get; set; } + public global::Exa.WebsetItemEvaluationReference? Type482 { get; set; } /// /// /// - public global::Exa.WebsetItemEvaluationReference? Type483 { get; set; } + public global::Exa.EnrichmentResultStatus? Type483 { get; set; } /// /// /// - public global::Exa.EnrichmentResultStatus? Type484 { get; set; } + public global::System.Collections.Generic.IList? Type484 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type485 { get; set; } + public global::Exa.EnrichmentResultReference? Type485 { get; set; } /// /// /// - public global::Exa.EnrichmentResultReference? Type486 { get; set; } + public global::Exa.ListWebsetItemResponse? Type486 { get; set; } /// /// /// - public global::Exa.ListWebsetItemResponse? Type487 { get; set; } + public global::Exa.PreviewWebsetResponse? Type487 { get; set; } /// /// /// - public global::Exa.PreviewWebsetResponse? Type488 { get; set; } + public global::Exa.PreviewWebsetResponseSearch? Type488 { get; set; } /// /// /// - public global::Exa.PreviewWebsetResponseSearch? Type489 { get; set; } + public global::Exa.OneOf? Type489 { get; set; } /// /// /// - public global::Exa.OneOf? Type490 { get; set; } + public global::System.Collections.Generic.IList? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::Exa.PreviewWebsetResponseSearchCriteriaItem? Type491 { get; set; } /// /// /// - public global::Exa.PreviewWebsetResponseSearchCriteriaItem? Type492 { get; set; } + public global::System.Collections.Generic.IList? Type492 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type493 { get; set; } + public global::Exa.PreviewWebsetResponseEnrichment? Type493 { get; set; } /// /// /// - public global::Exa.PreviewWebsetResponseEnrichment? Type494 { get; set; } + public global::Exa.PreviewWebsetResponseEnrichmentFormat? Type494 { get; set; } /// /// /// - public global::Exa.PreviewWebsetResponseEnrichmentFormat? Type495 { get; set; } + public global::System.Collections.Generic.IList? Type495 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type496 { get; set; } + public global::Exa.PreviewWebsetResponseEnrichmentOption? Type496 { get; set; } /// /// /// - public global::Exa.PreviewWebsetResponseEnrichmentOption? Type497 { get; set; } + public global::System.Collections.Generic.IList? Type497 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type498 { get; set; } + public global::Exa.WebsetItemPreview? Type498 { get; set; } /// /// /// - public global::Exa.WebsetItemPreview? Type499 { get; set; } + public global::Exa.ListMonitorsResponse? Type499 { get; set; } /// /// /// - public global::Exa.ListMonitorsResponse? Type500 { get; set; } + public global::Exa.ListMonitorRunsResponse? Type500 { get; set; } /// /// /// - public global::Exa.ListMonitorRunsResponse? Type501 { get; set; } + public global::System.Collections.Generic.IList? Type501 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type502 { get; set; } + public global::Exa.CreateImportResponse? Type502 { get; set; } /// /// /// - public global::Exa.CreateImportResponse? Type503 { get; set; } + public global::Exa.CreateImportResponseObject? Type503 { get; set; } /// /// /// - public global::Exa.CreateImportResponseObject? Type504 { get; set; } + public global::Exa.CreateImportResponseStatus? Type504 { get; set; } /// /// /// - public global::Exa.CreateImportResponseStatus? Type505 { get; set; } + public global::Exa.CreateImportResponseFormat? Type505 { get; set; } /// /// /// - public global::Exa.CreateImportResponseFormat? Type506 { get; set; } + public global::Exa.CreateImportResponseFailedReason? Type506 { get; set; } /// /// /// - public global::Exa.CreateImportResponseFailedReason? Type507 { get; set; } + public global::Exa.ListImportsResponse? Type507 { get; set; } /// /// /// - public global::Exa.ListImportsResponse? Type508 { get; set; } + public global::Exa.Webhook? Type508 { get; set; } /// /// /// - public global::Exa.Webhook? Type509 { get; set; } + public global::Exa.WebhookStatus? Type509 { get; set; } /// /// /// - public global::Exa.WebhookStatus? Type510 { get; set; } + public global::Exa.ListWebhooksResponse? Type510 { get; set; } /// /// /// - public global::Exa.ListWebhooksResponse? Type511 { get; set; } + public global::System.Collections.Generic.IList? Type511 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type512 { get; set; } + public global::Exa.ListWebhookAttemptsResponse? Type512 { get; set; } /// /// /// - public global::Exa.ListWebhookAttemptsResponse? Type513 { get; set; } + public global::System.Collections.Generic.IList? Type513 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type514 { get; set; } + public global::Exa.WebhookAttempt? Type514 { get; set; } /// /// /// - public global::Exa.WebhookAttempt? Type515 { get; set; } + public global::Exa.ListEventsResponse? Type515 { get; set; } /// /// /// - public global::Exa.ListEventsResponse? Type516 { get; set; } + public global::System.Collections.Generic.IList? Type516 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type517 { get; set; } + public global::Exa.Event? Type517 { get; set; } /// /// /// - public global::Exa.Event? Type518 { get; set; } + public global::Exa.EventWebsetCreatedEvent? Type518 { get; set; } /// /// /// - public global::Exa.EventWebsetCreatedEvent? Type519 { get; set; } + public global::Exa.EventWebsetDeletedEvent? Type519 { get; set; } /// /// /// - public global::Exa.EventWebsetDeletedEvent? Type520 { get; set; } + public global::Exa.EventWebsetIdleEvent? Type520 { get; set; } /// /// /// - public global::Exa.EventWebsetIdleEvent? Type521 { get; set; } + public global::Exa.EventWebsetPausedEvent? Type521 { get; set; } /// /// /// - public global::Exa.EventWebsetPausedEvent? Type522 { get; set; } + public global::Exa.EventWebsetItemCreatedEvent? Type522 { get; set; } /// /// /// - public global::Exa.EventWebsetItemCreatedEvent? Type523 { get; set; } + public global::Exa.EventWebsetItemEnrichedEvent? Type523 { get; set; } /// /// /// - public global::Exa.EventWebsetItemEnrichedEvent? Type524 { get; set; } + public global::Exa.EventWebsetSearchCreatedEvent? Type524 { get; set; } /// /// /// - public global::Exa.EventWebsetSearchCreatedEvent? Type525 { get; set; } + public global::Exa.EventWebsetSearchUpdatedEvent? Type525 { get; set; } /// /// /// - public global::Exa.EventWebsetSearchUpdatedEvent? Type526 { get; set; } + public global::Exa.EventWebsetSearchCanceledEvent? Type526 { get; set; } /// /// /// - public global::Exa.EventWebsetSearchCanceledEvent? Type527 { get; set; } + public global::Exa.EventWebsetSearchCompletedEvent? Type527 { get; set; } /// /// /// - public global::Exa.EventWebsetSearchCompletedEvent? Type528 { get; set; } + public global::Exa.EventImportCreatedEvent? Type528 { get; set; } /// /// /// - public global::Exa.EventImportCreatedEvent? Type529 { get; set; } + public global::Exa.EventImportCompletedEvent? Type529 { get; set; } /// /// /// - public global::Exa.EventImportCompletedEvent? Type530 { get; set; } + public global::Exa.EventMonitorCreatedEvent? Type530 { get; set; } /// /// /// - public global::Exa.EventMonitorCreatedEvent? Type531 { get; set; } + public global::Exa.EventMonitorUpdatedEvent? Type531 { get; set; } /// /// /// - public global::Exa.EventMonitorUpdatedEvent? Type532 { get; set; } + public global::Exa.EventMonitorDeletedEvent? Type532 { get; set; } /// /// /// - public global::Exa.EventMonitorDeletedEvent? Type533 { get; set; } + public global::Exa.EventMonitorRunCreatedEvent? Type533 { get; set; } /// /// /// - public global::Exa.EventMonitorRunCreatedEvent? Type534 { get; set; } + public global::Exa.EventMonitorRunCompletedEvent? Type534 { get; set; } /// /// /// - public global::Exa.EventMonitorRunCompletedEvent? Type535 { get; set; } + public global::Exa.EventDiscriminator? Type535 { get; set; } /// /// /// - public global::Exa.EventDiscriminator? Type536 { get; set; } + public global::Exa.EventDiscriminatorType? Type536 { get; set; } /// /// /// - public global::Exa.EventDiscriminatorType? Type537 { get; set; } + public global::Exa.ListMonitorsStatus? Type537 { get; set; } /// /// /// - public global::Exa.ListMonitorsStatus? Type538 { get; set; } + public global::Exa.CreateAgentRunAccept? Type538 { get; set; } /// /// /// - public global::Exa.CreateAgentRunAccept? Type539 { get; set; } + public global::Exa.ListAgentRunEventsAccept? Type539 { get; set; } /// /// /// - public global::Exa.ListAgentRunEventsAccept? Type540 { get; set; } + public global::Exa.CreateBatchExaBeta? Type540 { get; set; } /// /// /// - public global::Exa.CreateBatchExaBeta? Type541 { get; set; } + public global::Exa.ListBatchesExaBeta? Type541 { get; set; } /// /// /// - public global::Exa.ListBatchesExaBeta? Type542 { get; set; } + public global::Exa.GetBatchExaBeta? Type542 { get; set; } /// /// /// - public global::Exa.GetBatchExaBeta? Type543 { get; set; } + public global::Exa.DeleteBatchExaBeta? Type543 { get; set; } /// /// /// - public global::Exa.DeleteBatchExaBeta? Type544 { get; set; } + public global::Exa.CancelBatchExaBeta? Type544 { get; set; } /// /// /// - public global::Exa.CancelBatchExaBeta? Type545 { get; set; } + public global::System.Collections.Generic.IList? Type545 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type546 { get; set; } + public global::Exa.WebsetsGetExpandItem? Type546 { get; set; } /// /// /// - public global::Exa.WebsetsGetExpandItem? Type547 { get; set; } + public global::System.Collections.Generic.IList? Type547 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type548 { get; set; } + public global::Exa.EventsListType? Type548 { get; set; } /// /// /// - public global::Exa.EventsListType? Type549 { get; set; } - /// - /// - /// - public global::Exa.OneOf? Type550 { get; set; } + public global::Exa.OneOf? Type549 { get; set; } /// /// diff --git a/src/libs/Exa/Generated/Exa.Models.AgentDataSource.g.cs b/src/libs/Exa/Generated/Exa.Models.AgentDataSource.g.cs index 26acb5a..53faf8e 100644 --- a/src/libs/Exa/Generated/Exa.Models.AgentDataSource.g.cs +++ b/src/libs/Exa/Generated/Exa.Models.AgentDataSource.g.cs @@ -12,9 +12,8 @@ public sealed partial class AgentDataSource /// Exa Connect data provider to enable for the run. All provider tools are available by default. /// [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Exa.JsonConverters.AgentDataSourceProviderJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Exa.AgentDataSourceProvider Provider { get; set; } + public required string Provider { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -32,9 +31,9 @@ public sealed partial class AgentDataSource [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AgentDataSource( - global::Exa.AgentDataSourceProvider provider) + string provider) { - this.Provider = provider; + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); } /// diff --git a/src/libs/Exa/Generated/Exa.Models.AgentDataSourceOutput.g.cs b/src/libs/Exa/Generated/Exa.Models.AgentDataSourceOutput.g.cs index d7c102b..91629ef 100644 --- a/src/libs/Exa/Generated/Exa.Models.AgentDataSourceOutput.g.cs +++ b/src/libs/Exa/Generated/Exa.Models.AgentDataSourceOutput.g.cs @@ -12,9 +12,8 @@ public sealed partial class AgentDataSourceOutput /// Exa Connect data provider to enable for the run. All provider tools are available by default. /// [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Exa.JsonConverters.AgentDataSourceProviderJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Exa.AgentDataSourceProvider Provider { get; set; } + public required string Provider { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -32,9 +31,9 @@ public sealed partial class AgentDataSourceOutput [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AgentDataSourceOutput( - global::Exa.AgentDataSourceProvider provider) + string provider) { - this.Provider = provider; + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); } /// diff --git a/src/libs/Exa/Generated/Exa.Models.AgentDataSourceProvider.g.cs b/src/libs/Exa/Generated/Exa.Models.AgentDataSourceProvider.g.cs deleted file mode 100644 index ca0926e..0000000 --- a/src/libs/Exa/Generated/Exa.Models.AgentDataSourceProvider.g.cs +++ /dev/null @@ -1,93 +0,0 @@ - -#nullable enable - -namespace Exa -{ - /// - /// Identifier of an Exa Connect data provider. - /// - public enum AgentDataSourceProvider - { - /// - /// - /// - Affiliate, - /// - /// - /// - Baselayer, - /// - /// - /// - Fiber, - /// - /// - /// - FinancialDatasets, - /// - /// - /// - Jinko, - /// - /// - /// - Macrobond, - /// - /// - /// - Particle, - /// - /// - /// - Polymarket, - /// - /// - /// - Similarweb, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AgentDataSourceProviderExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AgentDataSourceProvider value) - { - return value switch - { - AgentDataSourceProvider.Affiliate => "affiliate", - AgentDataSourceProvider.Baselayer => "baselayer", - AgentDataSourceProvider.Fiber => "fiber", - AgentDataSourceProvider.FinancialDatasets => "financial_datasets", - AgentDataSourceProvider.Jinko => "jinko", - AgentDataSourceProvider.Macrobond => "macrobond", - AgentDataSourceProvider.Particle => "particle", - AgentDataSourceProvider.Polymarket => "polymarket", - AgentDataSourceProvider.Similarweb => "similarweb", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AgentDataSourceProvider? ToEnum(string value) - { - return value switch - { - "affiliate" => AgentDataSourceProvider.Affiliate, - "baselayer" => AgentDataSourceProvider.Baselayer, - "fiber" => AgentDataSourceProvider.Fiber, - "financial_datasets" => AgentDataSourceProvider.FinancialDatasets, - "jinko" => AgentDataSourceProvider.Jinko, - "macrobond" => AgentDataSourceProvider.Macrobond, - "particle" => AgentDataSourceProvider.Particle, - "polymarket" => AgentDataSourceProvider.Polymarket, - "similarweb" => AgentDataSourceProvider.Similarweb, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Exa/Generated/Exa.Models.AgentRun.g.cs b/src/libs/Exa/Generated/Exa.Models.AgentRun.g.cs index 93bfbf1..de7e8ef 100644 --- a/src/libs/Exa/Generated/Exa.Models.AgentRun.g.cs +++ b/src/libs/Exa/Generated/Exa.Models.AgentRun.g.cs @@ -31,7 +31,7 @@ public sealed partial class AgentRun public required global::Exa.AgentRunStatus Status { get; set; } /// - /// Why the run stopped. `null` while the run is queued or running. + /// Why the run stopped. `null` while the run is queued or running. Every reason except `error` and `cancelled` means the run completed and returned what it found. Clients should accept values not listed here. /// [global::System.Text.Json.Serialization.JsonPropertyName("stopReason")] public global::Exa.AgentStopReason? StopReason { get; set; } @@ -63,7 +63,7 @@ public sealed partial class AgentRun public required global::Exa.AgentRunOutput Output { get; set; } /// - /// + /// Billed usage for the run. When an `auto` or `ultra` run's metered cost exceeds `budget.maxCostDollars`, the run is billed the budget and each quantity except `dataSources` is scaled down in proportion, so quantities can be fractional. /// [global::System.Text.Json.Serialization.JsonPropertyName("usage")] [global::System.Text.Json.Serialization.JsonRequired] @@ -93,10 +93,12 @@ public sealed partial class AgentRun /// When the run was created /// /// - /// + /// + /// Billed usage for the run. When an `auto` or `ultra` run's metered cost exceeds `budget.maxCostDollars`, the run is billed the budget and each quantity except `dataSources` is scaled down in proportion, so quantities can be fractional. + /// /// /// - /// Why the run stopped. `null` while the run is queued or running. + /// Why the run stopped. `null` while the run is queued or running. Every reason except `error` and `cancelled` means the run completed and returned what it found. Clients should accept values not listed here. /// /// /// diff --git a/src/libs/Exa/Generated/Exa.Models.AgentStopReason.Json.g.cs b/src/libs/Exa/Generated/Exa.Models.AgentStopReason.Json.g.cs new file mode 100644 index 0000000..614ab71 --- /dev/null +++ b/src/libs/Exa/Generated/Exa.Models.AgentStopReason.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Exa +{ + public readonly partial struct AgentStopReason + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Exa.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Exa.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Exa.AgentStopReason? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Exa.AgentStopReason), + jsonSerializerContext) as global::Exa.AgentStopReason?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Exa.AgentStopReason? FromJson( + string json) + { + return FromJson( + json, + global::Exa.SourceGenerationContext.Default); + } + + /// + /// 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::Exa.AgentStopReason? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Exa.SourceGenerationContext.Default); + } + + 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::Exa.AgentStopReason), + jsonSerializerContext).ConfigureAwait(false)) as global::Exa.AgentStopReason?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Exa.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Exa.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Exa/Generated/Exa.Models.AgentStopReason.g.cs b/src/libs/Exa/Generated/Exa.Models.AgentStopReason.g.cs index 51917a2..cd334b8 100644 --- a/src/libs/Exa/Generated/Exa.Models.AgentStopReason.g.cs +++ b/src/libs/Exa/Generated/Exa.Models.AgentStopReason.g.cs @@ -1,3 +1,4 @@ +#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -6,70 +7,686 @@ namespace Exa /// /// /// - public enum AgentStopReason + public readonly partial struct AgentStopReason : global::System.IEquatable { + /// + /// The agent finished the task. + /// +#if NET6_0_OR_GREATER + public string? AgentStopReasonVariant1 { get; init; } +#else + public string? AgentStopReasonVariant1 { get; } +#endif + /// /// /// - BudgetReached, +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentStopReasonVariant1))] +#endif + public bool IsAgentStopReasonVariant1 => AgentStopReasonVariant1 != null; + /// /// /// - Cancelled, + public bool TryPickAgentStopReasonVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AgentStopReasonVariant1; + return IsAgentStopReasonVariant1; + } + /// /// /// - Error, + public string PickAgentStopReasonVariant1() => AgentStopReasonVariant1 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentStopReasonVariant1' but the value was {ToString()}."); + + /// + /// The run reached `budget.maxCostDollars`. + /// +#if NET6_0_OR_GREATER + public string? AgentStopReasonVariant2 { get; init; } +#else + public string? AgentStopReasonVariant2 { get; } +#endif + /// /// /// - SchemaSatisfied, +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentStopReasonVariant2))] +#endif + public bool IsAgentStopReasonVariant2 => AgentStopReasonVariant2 != null; + /// /// /// - Stopped, + public bool TryPickAgentStopReasonVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AgentStopReasonVariant2; + return IsAgentStopReasonVariant2; + } + /// /// /// - TimeLimitReached, - } + public string PickAgentStopReasonVariant2() => AgentStopReasonVariant2 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentStopReasonVariant2' but the value was {ToString()}."); + + /// + /// The run reached `budget.maxDurationSeconds`. + /// +#if NET6_0_OR_GREATER + public string? AgentStopReasonVariant3 { get; init; } +#else + public string? AgentStopReasonVariant3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentStopReasonVariant3))] +#endif + public bool IsAgentStopReasonVariant3 => AgentStopReasonVariant3 != null; + + /// + /// + /// + public bool TryPickAgentStopReasonVariant3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AgentStopReasonVariant3; + return IsAgentStopReasonVariant3; + } + + /// + /// + /// + public string PickAgentStopReasonVariant3() => AgentStopReasonVariant3 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentStopReasonVariant3' but the value was {ToString()}."); + + /// + /// The run reached its maximum number of agent steps. + /// +#if NET6_0_OR_GREATER + public string? AgentStopReasonVariant4 { get; init; } +#else + public string? AgentStopReasonVariant4 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentStopReasonVariant4))] +#endif + public bool IsAgentStopReasonVariant4 => AgentStopReasonVariant4 != null; + + /// + /// + /// + public bool TryPickAgentStopReasonVariant4( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AgentStopReasonVariant4; + return IsAgentStopReasonVariant4; + } + + /// + /// + /// + public string PickAgentStopReasonVariant4() => AgentStopReasonVariant4 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentStopReasonVariant4' but the value was {ToString()}."); + + /// + /// The run reached its limit on model tokens. + /// +#if NET6_0_OR_GREATER + public string? AgentStopReasonVariant5 { get; init; } +#else + public string? AgentStopReasonVariant5 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentStopReasonVariant5))] +#endif + public bool IsAgentStopReasonVariant5 => AgentStopReasonVariant5 != null; + + /// + /// + /// + public bool TryPickAgentStopReasonVariant5( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AgentStopReasonVariant5; + return IsAgentStopReasonVariant5; + } + + /// + /// + /// + public string PickAgentStopReasonVariant5() => AgentStopReasonVariant5 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentStopReasonVariant5' but the value was {ToString()}."); + + /// + /// You stopped the run. + /// +#if NET6_0_OR_GREATER + public string? AgentStopReasonVariant6 { get; init; } +#else + public string? AgentStopReasonVariant6 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentStopReasonVariant6))] +#endif + public bool IsAgentStopReasonVariant6 => AgentStopReasonVariant6 != null; + + /// + /// + /// + public bool TryPickAgentStopReasonVariant6( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AgentStopReasonVariant6; + return IsAgentStopReasonVariant6; + } + + /// + /// + /// + public string PickAgentStopReasonVariant6() => AgentStopReasonVariant6 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentStopReasonVariant6' but the value was {ToString()}."); + + /// + /// The run failed. + /// +#if NET6_0_OR_GREATER + public string? AgentStopReasonVariant7 { get; init; } +#else + public string? AgentStopReasonVariant7 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentStopReasonVariant7))] +#endif + public bool IsAgentStopReasonVariant7 => AgentStopReasonVariant7 != null; + + /// + /// + /// + public bool TryPickAgentStopReasonVariant7( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AgentStopReasonVariant7; + return IsAgentStopReasonVariant7; + } + + /// + /// + /// + public string PickAgentStopReasonVariant7() => AgentStopReasonVariant7 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentStopReasonVariant7' but the value was {ToString()}."); + + /// + /// The run was cancelled. + /// +#if NET6_0_OR_GREATER + public string? AgentStopReasonVariant8 { get; init; } +#else + public string? AgentStopReasonVariant8 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentStopReasonVariant8))] +#endif + public bool IsAgentStopReasonVariant8 => AgentStopReasonVariant8 != null; + + /// + /// + /// + public bool TryPickAgentStopReasonVariant8( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AgentStopReasonVariant8; + return IsAgentStopReasonVariant8; + } + + /// + /// + /// + public string PickAgentStopReasonVariant8() => AgentStopReasonVariant8 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentStopReasonVariant8' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public string? AgentStopReasonVariant9 { get; init; } +#else + public string? AgentStopReasonVariant9 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentStopReasonVariant9))] +#endif + public bool IsAgentStopReasonVariant9 => AgentStopReasonVariant9 != null; - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AgentStopReasonExtensions - { /// - /// Converts an enum to a string. + /// /// - public static string ToValueString(this AgentStopReason value) + public bool TryPickAgentStopReasonVariant9( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) { - return value switch + value = AgentStopReasonVariant9; + return IsAgentStopReasonVariant9; + } + + /// + /// + /// + public string PickAgentStopReasonVariant9() => AgentStopReasonVariant9 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentStopReasonVariant9' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AgentStopReason(string value) => new AgentStopReason((string?)value); + + /// + /// + /// + public static implicit operator string?(AgentStopReason @this) => @this.AgentStopReasonVariant1; + + /// + /// + /// + public AgentStopReason(string? value) + { + AgentStopReasonVariant1 = value; + } + + /// + /// + /// + public static AgentStopReason FromAgentStopReasonVariant1(string? value) => new AgentStopReason(value); + + /// + /// + /// + public AgentStopReason( + string? agentStopReasonVariant1, + string? agentStopReasonVariant2, + string? agentStopReasonVariant3, + string? agentStopReasonVariant4, + string? agentStopReasonVariant5, + string? agentStopReasonVariant6, + string? agentStopReasonVariant7, + string? agentStopReasonVariant8, + string? agentStopReasonVariant9 + ) + { + AgentStopReasonVariant1 = agentStopReasonVariant1; + AgentStopReasonVariant2 = agentStopReasonVariant2; + AgentStopReasonVariant3 = agentStopReasonVariant3; + AgentStopReasonVariant4 = agentStopReasonVariant4; + AgentStopReasonVariant5 = agentStopReasonVariant5; + AgentStopReasonVariant6 = agentStopReasonVariant6; + AgentStopReasonVariant7 = agentStopReasonVariant7; + AgentStopReasonVariant8 = agentStopReasonVariant8; + AgentStopReasonVariant9 = agentStopReasonVariant9; + } + + /// + /// + /// + public object? Object => + AgentStopReasonVariant9 as object ?? + AgentStopReasonVariant8 as object ?? + AgentStopReasonVariant7 as object ?? + AgentStopReasonVariant6 as object ?? + AgentStopReasonVariant5 as object ?? + AgentStopReasonVariant4 as object ?? + AgentStopReasonVariant3 as object ?? + AgentStopReasonVariant2 as object ?? + AgentStopReasonVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + AgentStopReasonVariant1?.ToString() ?? + AgentStopReasonVariant2?.ToString() ?? + AgentStopReasonVariant3?.ToString() ?? + AgentStopReasonVariant4?.ToString() ?? + AgentStopReasonVariant5?.ToString() ?? + AgentStopReasonVariant6?.ToString() ?? + AgentStopReasonVariant7?.ToString() ?? + AgentStopReasonVariant8?.ToString() ?? + AgentStopReasonVariant9?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsAgentStopReasonVariant1 || IsAgentStopReasonVariant2 || IsAgentStopReasonVariant3 || IsAgentStopReasonVariant4 || IsAgentStopReasonVariant5 || IsAgentStopReasonVariant6 || IsAgentStopReasonVariant7 || IsAgentStopReasonVariant8 || IsAgentStopReasonVariant9; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? agentStopReasonVariant1 = null, + global::System.Func? agentStopReasonVariant2 = null, + global::System.Func? agentStopReasonVariant3 = null, + global::System.Func? agentStopReasonVariant4 = null, + global::System.Func? agentStopReasonVariant5 = null, + global::System.Func? agentStopReasonVariant6 = null, + global::System.Func? agentStopReasonVariant7 = null, + global::System.Func? agentStopReasonVariant8 = null, + global::System.Func? agentStopReasonVariant9 = null, + bool validate = true) + { + if (validate) { - AgentStopReason.BudgetReached => "budget_reached", - AgentStopReason.Cancelled => "cancelled", - AgentStopReason.Error => "error", - AgentStopReason.SchemaSatisfied => "schema_satisfied", - AgentStopReason.Stopped => "stopped", - AgentStopReason.TimeLimitReached => "time_limit_reached", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; + Validate(); + } + + if (AgentStopReasonVariant1 is { } __value0 && agentStopReasonVariant1 != null) + { + return agentStopReasonVariant1(__value0); + } + else if (AgentStopReasonVariant2 is { } __value1 && agentStopReasonVariant2 != null) + { + return agentStopReasonVariant2(__value1); + } + else if (AgentStopReasonVariant3 is { } __value2 && agentStopReasonVariant3 != null) + { + return agentStopReasonVariant3(__value2); + } + else if (AgentStopReasonVariant4 is { } __value3 && agentStopReasonVariant4 != null) + { + return agentStopReasonVariant4(__value3); + } + else if (AgentStopReasonVariant5 is { } __value4 && agentStopReasonVariant5 != null) + { + return agentStopReasonVariant5(__value4); + } + else if (AgentStopReasonVariant6 is { } __value5 && agentStopReasonVariant6 != null) + { + return agentStopReasonVariant6(__value5); + } + else if (AgentStopReasonVariant7 is { } __value6 && agentStopReasonVariant7 != null) + { + return agentStopReasonVariant7(__value6); + } + else if (AgentStopReasonVariant8 is { } __value7 && agentStopReasonVariant8 != null) + { + return agentStopReasonVariant8(__value7); + } + else if (AgentStopReasonVariant9 is { } __value8 && agentStopReasonVariant9 != null) + { + return agentStopReasonVariant9(__value8); + } + + return default(TResult); } + /// - /// Converts an string to a enum. + /// /// - public static AgentStopReason? ToEnum(string value) + public void Match( + global::System.Action? agentStopReasonVariant1 = null, + + global::System.Action? agentStopReasonVariant2 = null, + + global::System.Action? agentStopReasonVariant3 = null, + + global::System.Action? agentStopReasonVariant4 = null, + + global::System.Action? agentStopReasonVariant5 = null, + + global::System.Action? agentStopReasonVariant6 = null, + + global::System.Action? agentStopReasonVariant7 = null, + + global::System.Action? agentStopReasonVariant8 = null, + + global::System.Action? agentStopReasonVariant9 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (AgentStopReasonVariant1 is { } __value0) + { + agentStopReasonVariant1?.Invoke(__value0); + } + else if (AgentStopReasonVariant2 is { } __value1) + { + agentStopReasonVariant2?.Invoke(__value1); + } + else if (AgentStopReasonVariant3 is { } __value2) + { + agentStopReasonVariant3?.Invoke(__value2); + } + else if (AgentStopReasonVariant4 is { } __value3) + { + agentStopReasonVariant4?.Invoke(__value3); + } + else if (AgentStopReasonVariant5 is { } __value4) + { + agentStopReasonVariant5?.Invoke(__value4); + } + else if (AgentStopReasonVariant6 is { } __value5) + { + agentStopReasonVariant6?.Invoke(__value5); + } + else if (AgentStopReasonVariant7 is { } __value6) + { + agentStopReasonVariant7?.Invoke(__value6); + } + else if (AgentStopReasonVariant8 is { } __value7) + { + agentStopReasonVariant8?.Invoke(__value7); + } + else if (AgentStopReasonVariant9 is { } __value8) + { + agentStopReasonVariant9?.Invoke(__value8); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? agentStopReasonVariant1 = null, + global::System.Action? agentStopReasonVariant2 = null, + global::System.Action? agentStopReasonVariant3 = null, + global::System.Action? agentStopReasonVariant4 = null, + global::System.Action? agentStopReasonVariant5 = null, + global::System.Action? agentStopReasonVariant6 = null, + global::System.Action? agentStopReasonVariant7 = null, + global::System.Action? agentStopReasonVariant8 = null, + global::System.Action? agentStopReasonVariant9 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (AgentStopReasonVariant1 is { } __value0) + { + agentStopReasonVariant1?.Invoke(__value0); + } + else if (AgentStopReasonVariant2 is { } __value1) + { + agentStopReasonVariant2?.Invoke(__value1); + } + else if (AgentStopReasonVariant3 is { } __value2) + { + agentStopReasonVariant3?.Invoke(__value2); + } + else if (AgentStopReasonVariant4 is { } __value3) + { + agentStopReasonVariant4?.Invoke(__value3); + } + else if (AgentStopReasonVariant5 is { } __value4) + { + agentStopReasonVariant5?.Invoke(__value4); + } + else if (AgentStopReasonVariant6 is { } __value5) + { + agentStopReasonVariant6?.Invoke(__value5); + } + else if (AgentStopReasonVariant7 is { } __value6) + { + agentStopReasonVariant7?.Invoke(__value6); + } + else if (AgentStopReasonVariant8 is { } __value7) + { + agentStopReasonVariant8?.Invoke(__value7); + } + else if (AgentStopReasonVariant9 is { } __value8) + { + agentStopReasonVariant9?.Invoke(__value8); + } + } + + /// + /// + /// + public override int GetHashCode() { - return value switch + var fields = new object?[] { - "budget_reached" => AgentStopReason.BudgetReached, - "cancelled" => AgentStopReason.Cancelled, - "error" => AgentStopReason.Error, - "schema_satisfied" => AgentStopReason.SchemaSatisfied, - "stopped" => AgentStopReason.Stopped, - "time_limit_reached" => AgentStopReason.TimeLimitReached, - _ => null, + AgentStopReasonVariant1, + typeof(string), + AgentStopReasonVariant2, + typeof(string), + AgentStopReasonVariant3, + typeof(string), + AgentStopReasonVariant4, + typeof(string), + AgentStopReasonVariant5, + typeof(string), + AgentStopReasonVariant6, + typeof(string), + AgentStopReasonVariant7, + typeof(string), + AgentStopReasonVariant8, + typeof(string), + AgentStopReasonVariant9, + typeof(string), }; + 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(AgentStopReason other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentStopReasonVariant1, other.AgentStopReasonVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentStopReasonVariant2, other.AgentStopReasonVariant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentStopReasonVariant3, other.AgentStopReasonVariant3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentStopReasonVariant4, other.AgentStopReasonVariant4) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentStopReasonVariant5, other.AgentStopReasonVariant5) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentStopReasonVariant6, other.AgentStopReasonVariant6) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentStopReasonVariant7, other.AgentStopReasonVariant7) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentStopReasonVariant8, other.AgentStopReasonVariant8) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentStopReasonVariant9, other.AgentStopReasonVariant9) + ; + } + + /// + /// + /// + public static bool operator ==(AgentStopReason obj1, AgentStopReason obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AgentStopReason obj1, AgentStopReason obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AgentStopReason o && Equals(o); } } -} \ No newline at end of file +} diff --git a/src/libs/Exa/Generated/Exa.Models.AgentUsage.g.cs b/src/libs/Exa/Generated/Exa.Models.AgentUsage.g.cs index 0cd0bc8..a933c51 100644 --- a/src/libs/Exa/Generated/Exa.Models.AgentUsage.g.cs +++ b/src/libs/Exa/Generated/Exa.Models.AgentUsage.g.cs @@ -4,7 +4,7 @@ namespace Exa { /// - /// + /// Billed usage for the run. When an `auto` or `ultra` run's metered cost exceeds `budget.maxCostDollars`, the run is billed the budget and each quantity except `dataSources` is scaled down in proportion, so quantities can be fractional. /// public sealed partial class AgentUsage { @@ -20,21 +20,21 @@ public sealed partial class AgentUsage /// [global::System.Text.Json.Serialization.JsonPropertyName("searches")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Searches { get; set; } + public required double Searches { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("emails")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Emails { get; set; } + public required double Emails { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("phoneNumbers")] [global::System.Text.Json.Serialization.JsonRequired] - public required int PhoneNumbers { get; set; } + public required double PhoneNumbers { get; set; } /// /// Per-provider tool call counts for Exa Connect data sources used during the run. Keys are provider names (e.g. `fiber`, `similarweb`). Only providers with non-zero usage are included. @@ -63,9 +63,9 @@ public sealed partial class AgentUsage #endif public AgentUsage( double agentComputeUnits, - int searches, - int emails, - int phoneNumbers, + double searches, + double emails, + double phoneNumbers, global::System.Collections.Generic.Dictionary? dataSources) { this.AgentComputeUnits = agentComputeUnits; diff --git a/src/libs/Exa/Generated/Exa.Models.SearchRequest.g.cs b/src/libs/Exa/Generated/Exa.Models.SearchRequest.g.cs index ffc63e4..e632d91 100644 --- a/src/libs/Exa/Generated/Exa.Models.SearchRequest.g.cs +++ b/src/libs/Exa/Generated/Exa.Models.SearchRequest.g.cs @@ -68,7 +68,7 @@ public sealed partial class SearchRequest /// /// The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications.
/// - `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications.
- /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected.
+ /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported.
/// - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search.
/// - `deep`: Conducts comprehensive multi-step research with synthesis.
/// - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter.
@@ -184,7 +184,7 @@ public sealed partial class SearchRequest /// /// The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications.
/// - `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications.
- /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected.
+ /// - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported.
/// - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search.
/// - `deep`: Conducts comprehensive multi-step research with synthesis.
/// - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter.
diff --git a/src/libs/Exa/Generated/Exa.MonitorsClient.g.cs b/src/libs/Exa/Generated/Exa.MonitorsClient.g.cs index da5ddba..47022a8 100644 --- a/src/libs/Exa/Generated/Exa.MonitorsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.MonitorsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class MonitorsClient : global::Exa.IMonitorsClient, global internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.MonitorsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.MonitorsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.MonitorsRunsClient.g.cs b/src/libs/Exa/Generated/Exa.MonitorsRunsClient.g.cs index 60f23ab..fbbc930 100644 --- a/src/libs/Exa/Generated/Exa.MonitorsRunsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.MonitorsRunsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class MonitorsRunsClient : global::Exa.IMonitorsRunsClient internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.MonitorsRunsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.MonitorsRunsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.RunsClient.g.cs b/src/libs/Exa/Generated/Exa.RunsClient.g.cs index 6d2590d..b69fe7a 100644 --- a/src/libs/Exa/Generated/Exa.RunsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.RunsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class RunsClient : global::Exa.IRunsClient, global::System internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.RunsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.RunsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.SearchesClient.g.cs b/src/libs/Exa/Generated/Exa.SearchesClient.g.cs index 8c46a12..0b2ed79 100644 --- a/src/libs/Exa/Generated/Exa.SearchesClient.g.cs +++ b/src/libs/Exa/Generated/Exa.SearchesClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class SearchesClient : global::Exa.ISearchesClient, global internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.SearchesSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.SearchesSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.TeamsClient.g.cs b/src/libs/Exa/Generated/Exa.TeamsClient.g.cs index 70ec787..ab96ba7 100644 --- a/src/libs/Exa/Generated/Exa.TeamsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.TeamsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class TeamsClient : global::Exa.ITeamsClient, global::Syst internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.TeamsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.TeamsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.WebhooksAttemptsClient.g.cs b/src/libs/Exa/Generated/Exa.WebhooksAttemptsClient.g.cs index f132d8c..138971f 100644 --- a/src/libs/Exa/Generated/Exa.WebhooksAttemptsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.WebhooksAttemptsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class WebhooksAttemptsClient : global::Exa.IWebhooksAttemp internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.WebhooksAttemptsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.WebhooksAttemptsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.WebhooksClient.g.cs b/src/libs/Exa/Generated/Exa.WebhooksClient.g.cs index fa0cf42..c44dd54 100644 --- a/src/libs/Exa/Generated/Exa.WebhooksClient.g.cs +++ b/src/libs/Exa/Generated/Exa.WebhooksClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class WebhooksClient : global::Exa.IWebhooksClient, global internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.WebhooksSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.WebhooksSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.WebsetsClient.g.cs b/src/libs/Exa/Generated/Exa.WebsetsClient.g.cs index 109a04c..994610f 100644 --- a/src/libs/Exa/Generated/Exa.WebsetsClient.g.cs +++ b/src/libs/Exa/Generated/Exa.WebsetsClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class WebsetsClient : global::Exa.IWebsetsClient, global:: internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.WebsetsSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.WebsetsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/Exa.WebsetsPreviewClient.g.cs b/src/libs/Exa/Generated/Exa.WebsetsPreviewClient.g.cs index e341cf0..cb9b16e 100644 --- a/src/libs/Exa/Generated/Exa.WebsetsPreviewClient.g.cs +++ b/src/libs/Exa/Generated/Exa.WebsetsPreviewClient.g.cs @@ -37,14 +37,14 @@ public sealed partial class WebsetsPreviewClient : global::Exa.IWebsetsPreviewCl internal global::Exa.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Exa.AutoSDKServerConfiguration(); - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.WebsetsPreviewSourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.WebsetsPreviewSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/Generated/TeamManagement/Exa.TeamManagement.ExaTeamManagementClient.g.cs b/src/libs/Exa/Generated/TeamManagement/Exa.TeamManagement.ExaTeamManagementClient.g.cs index 7de63b1..58185d2 100644 --- a/src/libs/Exa/Generated/TeamManagement/Exa.TeamManagement.ExaTeamManagementClient.g.cs +++ b/src/libs/Exa/Generated/TeamManagement/Exa.TeamManagement.ExaTeamManagementClient.g.cs @@ -35,14 +35,14 @@ public sealed partial class ExaTeamManagementClient : global::Exa.TeamManagement /// public global::Exa.TeamManagement.AutoSDKClientOptions Options { get; } - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Exa.TeamManagement.SourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Exa.TeamManagement.SourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Exa/openapi.yaml b/src/libs/Exa/openapi.yaml index 52ef115..595efab 100644 --- a/src/libs/Exa/openapi.yaml +++ b/src/libs/Exa/openapi.yaml @@ -3294,7 +3294,7 @@ components: title: auto - type: string const: lite - description: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected. + description: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported. title: lite - type: string const: deep-lite @@ -3338,7 +3338,7 @@ components: The search mode to use. Defaults to `auto`, a balanced mode recommended for most applications. - `auto`: The default. A balanced mode that optimizes for both quality and speed and is recommended for most applications. - - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Serves cached content only; it never fetches live, so the freshness options are rejected. + - `lite`: Low-cost, low-latency search for real-time and interactive experiences such as chat, voice agents, and autocomplete. Accepts only `query` (a single string), `objective`, `userIdentifier`, `metadata`, `category`, `numResults`, `contents.highlights`, `contents.text`, `contents.snapshotAsOf`, `userLocation`, `includeDomains`, `excludeDomains`, `startPublishedDate`, `endPublishedDate`, `moderation`, and `compliance`; a request that sets any other parameter is rejected. Lite serves content directly from Exa’s regularly refreshed search index, without fetching pages at query time. Freshness options that require live fetching are not supported. - `deep-lite`: Performs lightweight research with synthesized results and a consistent 4-second latency, lower than full deep search. - `deep`: Conducts comprehensive multi-step research with synthesis. - `instant`: Legacy. Use `lite` instead. Runs a minimum-latency search that trades some search depth for speed. Unlike `lite`, it accepts every search parameter. @@ -5022,17 +5022,8 @@ components: - provider AgentDataSourceProvider: type: string - enum: - - fiber - - financial_datasets - - similarweb - - baselayer - - affiliate - - particle - - jinko - - polymarket - - macrobond - description: Identifier of an Exa Connect data provider. + minLength: 1 + description: Identifier of an Exa Connect data provider, such as `fiber` or `financial_datasets`. A team can use the self-serve providers and any provider enabled for it; requesting any other provider returns a 400. AgentBudget: type: object properties: @@ -6002,7 +5993,7 @@ components: anyOf: - $ref: "#/components/schemas/AgentStopReason" - type: "null" - description: Why the run stopped. `null` while the run is queued or running. + description: Why the run stopped. `null` while the run is queued or running. Every reason except `error` and `cancelled` means the run completed and returned what it found. Clients should accept values not listed here. createdAt: type: string format: date-time @@ -6044,14 +6035,33 @@ components: - failed - cancelled AgentStopReason: - type: string - enum: - - schema_satisfied - - budget_reached - - time_limit_reached - - stopped - - error - - cancelled + anyOf: + - type: string + const: schema_satisfied + description: The agent finished the task. + - type: string + const: budget_reached + description: The run reached `budget.maxCostDollars`. + - type: string + const: time_limit_reached + description: The run reached `budget.maxDurationSeconds`. + - type: string + const: iteration_limit_reached + description: The run reached its maximum number of agent steps. + - type: string + const: token_limit_reached + description: The run reached its limit on model tokens. + - type: string + const: stopped + description: You stopped the run. + - type: string + const: error + description: The run failed. + - type: string + const: cancelled + description: The run was cancelled. + - type: string + x-exa-enum-open: true AgentRunRequest: type: object properties: @@ -6180,13 +6190,13 @@ components: type: number minimum: 0 searches: - type: integer + type: number minimum: 0 emails: - type: integer + type: number minimum: 0 phoneNumbers: - type: integer + type: number minimum: 0 dataSources: $ref: "#/components/schemas/AgentDataSourceUsage" @@ -6196,6 +6206,7 @@ components: - emails - phoneNumbers additionalProperties: false + description: Billed usage for the run. When an `auto` or `ultra` run's metered cost exceeds `budget.maxCostDollars`, the run is billed the budget and each quantity except `dataSources` is scaled down in proportion, so quantities can be fractional. AgentDataSourceUsage: type: object propertyNames: