From d01946ff51287b4713e0768e57a0c190356ec220 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 11 May 2026 04:00:01 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Vectara.AgentAnalyticsClient.g.cs | 21 + .../Vectara.AgentArtifactsClient.g.cs | 21 + .../Generated/Vectara.AgentEventsClient.g.cs | 21 + .../Vectara.AgentSchedulesClient.g.cs | 21 + .../Vectara.AgentSessionsClient.g.cs | 21 + .../Generated/Vectara.AgentsClient.g.cs | 21 + .../Generated/Vectara.ApiKeysClient.g.cs | 21 + .../Generated/Vectara.AppClientsClient.g.cs | 21 + .../Vectara.AuthenticationClient.g.cs | 21 + .../Generated/Vectara.CorporaClient.g.cs | 21 + .../Generated/Vectara.DocumentsClient.g.cs | 21 + .../Generated/Vectara.EncodersClient.g.cs | 21 + .../Vectara.FactualConsistencyClient.g.cs | 21 + .../Vectara.GenerationPresetsClient.g.cs | 21 + .../Generated/Vectara.GlossariesClient.g.cs | 21 + ...Vectara.HallucinationCorrectorsClient.g.cs | 21 + ...ipelineDeadLetterEntriesClient.Create.g.cs | 3 +- ...IPipelineDeadLetterEntriesClient.List.g.cs | 4 + .../Vectara.IPipelinesClient.Create.g.cs | 2 +- .../Vectara.IPipelinesClient.Replace.g.cs | 2 +- .../Vectara.IPipelinesClient.Update.g.cs | 2 +- .../Generated/Vectara.InstructionsClient.g.cs | 21 + .../Vectara/Generated/Vectara.JobsClient.g.cs | 21 + ...ara.JsonConverters.ArtifactCreateTool.g.cs | 3 + ...ctara.JsonConverters.ArtifactGrepTool.g.cs | 3 + ...ctara.JsonConverters.ArtifactReadTool.g.cs | 3 + ...ra.JsonConverters.ArtifactUploadEvent.g.cs | 1 + ...tara.JsonConverters.CorporaSearchTool.g.cs | 3 + ...ctara.JsonConverters.CrawlPagesSource.g.cs | 145 ++++++ ...JsonConverters.DocumentConversionTool.g.cs | 3 + ...ara.JsonConverters.DynamicVectaraTool.g.cs | 3 + ...ra.JsonConverters.GetDocumentTextTool.g.cs | 3 + .../Vectara.JsonConverters.ImageReadTool.g.cs | 3 + ...tara.JsonConverters.InputMessageEvent.g.cs | 1 + .../Vectara.JsonConverters.LambdaTool.g.cs | 3 + .../Vectara.JsonConverters.McpTool.g.cs | 3 + ...Vectara.JsonConverters.PipelineSource.g.cs | 17 +- ...sonConverters.SitemapCrawlPagesSource.g.cs | 146 ++++++ .../Vectara.JsonConverters.SubAgentTool.g.cs | 3 + ...Vectara.JsonConverters.ToolInputEvent.g.cs | 1 + ...a.JsonConverters.UpdatePipelineSource.g.cs | 17 +- ...nverters.UpdateWebSourceConfiguration.g.cs | 150 ++++++ .../Vectara.JsonConverters.WebGetTool.g.cs | 3 + ...Vectara.JsonConverters.WebPagesSource.g.cs | 87 ++++ ...rters.WebPagesSourceDiscriminatorType.g.cs | 53 ++ ...bPagesSourceDiscriminatorTypeNullable.g.cs | 60 +++ .../Vectara.JsonConverters.WebSearchTool.g.cs | 3 + ...JsonConverters.WebSourceConfiguration.g.cs | 150 ++++++ .../Vectara.JsonSerializerContext.g.cs | 49 ++ .../Vectara.JsonSerializerContextTypes.g.cs | 284 ++++++----- .../Vectara/Generated/Vectara.LlmClient.g.cs | 21 + .../Vectara/Generated/Vectara.LlmsClient.g.cs | 21 + .../Generated/Vectara.MetadataClient.g.cs | 21 + .../Generated/Vectara.Models.AgentEvent.g.cs | 4 +- .../Generated/Vectara.Models.AgentSkill.g.cs | 2 +- .../Vectara.Models.AgentStepReminder.g.cs | 2 +- .../Vectara.Models.AgentStreamedResponse.g.cs | 4 +- ...ara.Models.AgentToolConfigurationBase.g.cs | 4 +- ...ra.Models.ArtifactUploadEventVariant2.g.cs | 15 +- ...tara.Models.BaseCrawlPagesSource.Json.g.cs | 92 ++++ .../Vectara.Models.BaseCrawlPagesSource.g.cs | 84 ++++ .../Vectara.Models.BaseWebSource.Json.g.cs | 92 ++++ .../Vectara.Models.BaseWebSource.g.cs | 168 +++++++ ...tara.Models.ContextLimitExceededEvent.g.cs | 2 +- .../Vectara.Models.CrawlPagesSource.Json.g.cs | 92 ++++ .../Vectara.Models.CrawlPagesSource.g.cs | 297 ++++++++++++ ....Models.CrawlPagesSourceVariant2.Json.g.cs | 92 ++++ ...ctara.Models.CrawlPagesSourceVariant2.g.cs | 66 +++ ....CreatePipelineDeadLetterEntryRequest.g.cs | 6 +- .../Vectara.Models.CreatePipelineRequest.g.cs | 6 +- ...tara.Models.GlossaryExpansionReminder.g.cs | 2 +- ...InlineLambdaToolConfigurationVariant2.g.cs | 4 +- ...ConfigurationVariant2ArgumentOverride.g.cs | 2 +- ...tara.Models.InputMessageEventVariant2.g.cs | 15 +- .../Generated/Vectara.Models.NextStep.g.cs | 8 +- .../Generated/Vectara.Models.Pipeline.g.cs | 6 +- ...ectara.Models.PipelineDeadLetterEntry.g.cs | 6 +- .../Vectara.Models.PipelineSource.g.cs | 92 +++- ...odels.PipelineSourceDiscriminatorType.g.cs | 6 + ...a.Models.SitemapCrawlPagesSource.Json.g.cs | 92 ++++ ...ectara.Models.SitemapCrawlPagesSource.g.cs | 297 ++++++++++++ ....SitemapCrawlPagesSourceVariant2.Json.g.cs | 92 ++++ ...odels.SitemapCrawlPagesSourceVariant2.g.cs | 77 +++ ...ectara.Models.SitemapPagesSource.Json.g.cs | 92 ++++ .../Vectara.Models.SitemapPagesSource.g.cs | 67 +++ ...ra.Models.StepTransitionEventVariant2.g.cs | 4 +- ...ectara.Models.StreamingAgentOutputEnd.g.cs | 6 +- .../Vectara.Models.StructuredOutputEvent.g.cs | 2 +- .../Generated/Vectara.Models.ToolBase.g.cs | 75 +++ ....ToolBaseDefaultArgumentOverride.Json.g.cs | 92 ++++ ...odels.ToolBaseDefaultArgumentOverride.g.cs | 29 ++ ...tara.Models.ToolBaseOutputSchema.Json.g.cs | 92 ++++ .../Vectara.Models.ToolBaseOutputSchema.g.cs | 20 + ...Vectara.Models.ToolInputEventVariant2.g.cs | 17 +- .../Vectara.Models.UpdatePipelineRequest.g.cs | 6 +- .../Vectara.Models.UpdatePipelineSource.g.cs | 93 +++- ...UpdatePipelineSourceDiscriminatorType.g.cs | 6 + ...els.UpdateWebSourceConfiguration.Json.g.cs | 92 ++++ ...a.Models.UpdateWebSourceConfiguration.g.cs | 298 ++++++++++++ ...teWebSourceConfigurationVariant2.Json.g.cs | 92 ++++ ....UpdateWebSourceConfigurationVariant2.g.cs | 67 +++ .../Vectara.Models.WebPagesSource.Json.g.cs | 92 ++++ .../Vectara.Models.WebPagesSource.g.cs | 391 +++++++++++++++ ...dels.WebPagesSourceDiscriminator.Json.g.cs | 92 ++++ ...ra.Models.WebPagesSourceDiscriminator.g.cs | 45 ++ ...odels.WebPagesSourceDiscriminatorType.g.cs | 57 +++ ...ra.Models.WebSourceConfiguration.Json.g.cs | 92 ++++ ...Vectara.Models.WebSourceConfiguration.g.cs | 297 ++++++++++++ ...s.WebSourceConfigurationVariant2.Json.g.cs | 92 ++++ ...Models.WebSourceConfigurationVariant2.g.cs | 68 +++ ...ipelineDeadLetterEntriesClient.Create.g.cs | 3 +- ....PipelineDeadLetterEntriesClient.List.g.cs | 10 + ...ctara.PipelineDeadLetterEntriesClient.g.cs | 21 + .../Generated/Vectara.PipelineRunsClient.g.cs | 21 + .../Vectara.PipelinesClient.Create.g.cs | 2 +- .../Vectara.PipelinesClient.Replace.g.cs | 2 +- .../Vectara.PipelinesClient.Update.g.cs | 2 +- .../Generated/Vectara.PipelinesClient.g.cs | 21 + .../Generated/Vectara.QueriesClient.g.cs | 21 + .../Generated/Vectara.QueryHistoryClient.g.cs | 21 + .../Generated/Vectara.RerankersClient.g.cs | 21 + .../Vectara.TableExtractorsClient.g.cs | 21 + .../Generated/Vectara.ToolServersClient.g.cs | 21 + .../Generated/Vectara.ToolsClient.g.cs | 21 + .../Generated/Vectara.UploadClient.g.cs | 21 + .../Generated/Vectara.UsersClient.g.cs | 21 + .../Generated/Vectara.VectaraClient.g.cs | 21 + src/libs/Vectara/openapi.yaml | 454 ++++++++++++++++-- 128 files changed, 6284 insertions(+), 198 deletions(-) create mode 100644 src/libs/Vectara/Generated/Vectara.JsonConverters.CrawlPagesSource.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.JsonConverters.SitemapCrawlPagesSource.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateWebSourceConfiguration.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSource.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSourceDiscriminatorType.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.JsonConverters.WebSourceConfiguration.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.BaseCrawlPagesSource.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.BaseCrawlPagesSource.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.BaseWebSource.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.BaseWebSource.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSource.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSource.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSourceVariant2.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSourceVariant2.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSource.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSource.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSourceVariant2.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSourceVariant2.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.SitemapPagesSource.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.SitemapPagesSource.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.ToolBaseDefaultArgumentOverride.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.ToolBaseDefaultArgumentOverride.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.ToolBaseOutputSchema.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.ToolBaseOutputSchema.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfiguration.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfiguration.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfigurationVariant2.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfigurationVariant2.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.WebPagesSource.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.WebPagesSource.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminator.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminator.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminatorType.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.WebSourceConfiguration.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.WebSourceConfiguration.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.WebSourceConfigurationVariant2.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.WebSourceConfigurationVariant2.g.cs diff --git a/src/libs/Vectara/Generated/Vectara.AgentAnalyticsClient.g.cs b/src/libs/Vectara/Generated/Vectara.AgentAnalyticsClient.g.cs index 18814e47..5ec6dc7b 100644 --- a/src/libs/Vectara/Generated/Vectara.AgentAnalyticsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.AgentAnalyticsClient.g.cs @@ -64,6 +64,27 @@ public AgentAnalyticsClient( { } + /// + /// Creates a new instance of the AgentAnalyticsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AgentAnalyticsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the AgentAnalyticsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.AgentArtifactsClient.g.cs b/src/libs/Vectara/Generated/Vectara.AgentArtifactsClient.g.cs index f4d4daf5..f043be70 100644 --- a/src/libs/Vectara/Generated/Vectara.AgentArtifactsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.AgentArtifactsClient.g.cs @@ -64,6 +64,27 @@ public AgentArtifactsClient( { } + /// + /// Creates a new instance of the AgentArtifactsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AgentArtifactsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the AgentArtifactsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.AgentEventsClient.g.cs b/src/libs/Vectara/Generated/Vectara.AgentEventsClient.g.cs index 708fefa6..6b42953b 100644 --- a/src/libs/Vectara/Generated/Vectara.AgentEventsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.AgentEventsClient.g.cs @@ -64,6 +64,27 @@ public AgentEventsClient( { } + /// + /// Creates a new instance of the AgentEventsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AgentEventsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the AgentEventsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.AgentSchedulesClient.g.cs b/src/libs/Vectara/Generated/Vectara.AgentSchedulesClient.g.cs index 5c30ed24..dc77068f 100644 --- a/src/libs/Vectara/Generated/Vectara.AgentSchedulesClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.AgentSchedulesClient.g.cs @@ -64,6 +64,27 @@ public AgentSchedulesClient( { } + /// + /// Creates a new instance of the AgentSchedulesClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AgentSchedulesClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the AgentSchedulesClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.AgentSessionsClient.g.cs b/src/libs/Vectara/Generated/Vectara.AgentSessionsClient.g.cs index 82e3d2b5..196ff550 100644 --- a/src/libs/Vectara/Generated/Vectara.AgentSessionsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.AgentSessionsClient.g.cs @@ -64,6 +64,27 @@ public AgentSessionsClient( { } + /// + /// Creates a new instance of the AgentSessionsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AgentSessionsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the AgentSessionsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.AgentsClient.g.cs b/src/libs/Vectara/Generated/Vectara.AgentsClient.g.cs index ef49f1c8..bd505bca 100644 --- a/src/libs/Vectara/Generated/Vectara.AgentsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.AgentsClient.g.cs @@ -64,6 +64,27 @@ public AgentsClient( { } + /// + /// Creates a new instance of the AgentsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AgentsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the AgentsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.ApiKeysClient.g.cs b/src/libs/Vectara/Generated/Vectara.ApiKeysClient.g.cs index b0d0a632..bc8f5319 100644 --- a/src/libs/Vectara/Generated/Vectara.ApiKeysClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.ApiKeysClient.g.cs @@ -64,6 +64,27 @@ public ApiKeysClient( { } + /// + /// Creates a new instance of the ApiKeysClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public ApiKeysClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the ApiKeysClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.AppClientsClient.g.cs b/src/libs/Vectara/Generated/Vectara.AppClientsClient.g.cs index 74d01da1..729616ed 100644 --- a/src/libs/Vectara/Generated/Vectara.AppClientsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.AppClientsClient.g.cs @@ -64,6 +64,27 @@ public AppClientsClient( { } + /// + /// Creates a new instance of the AppClientsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AppClientsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the AppClientsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.AuthenticationClient.g.cs b/src/libs/Vectara/Generated/Vectara.AuthenticationClient.g.cs index e83af961..0e8191cb 100644 --- a/src/libs/Vectara/Generated/Vectara.AuthenticationClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.AuthenticationClient.g.cs @@ -65,6 +65,27 @@ public AuthenticationClient( { } + /// + /// Creates a new instance of the AuthenticationClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AuthenticationClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the AuthenticationClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.CorporaClient.g.cs b/src/libs/Vectara/Generated/Vectara.CorporaClient.g.cs index d2398a5a..7a1b78d1 100644 --- a/src/libs/Vectara/Generated/Vectara.CorporaClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.CorporaClient.g.cs @@ -64,6 +64,27 @@ public CorporaClient( { } + /// + /// Creates a new instance of the CorporaClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public CorporaClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the CorporaClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.DocumentsClient.g.cs b/src/libs/Vectara/Generated/Vectara.DocumentsClient.g.cs index 2c299804..dfb88126 100644 --- a/src/libs/Vectara/Generated/Vectara.DocumentsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.DocumentsClient.g.cs @@ -64,6 +64,27 @@ public DocumentsClient( { } + /// + /// Creates a new instance of the DocumentsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public DocumentsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the DocumentsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.EncodersClient.g.cs b/src/libs/Vectara/Generated/Vectara.EncodersClient.g.cs index 1bf4f8d9..f20545b9 100644 --- a/src/libs/Vectara/Generated/Vectara.EncodersClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.EncodersClient.g.cs @@ -64,6 +64,27 @@ public EncodersClient( { } + /// + /// Creates a new instance of the EncodersClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public EncodersClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the EncodersClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.FactualConsistencyClient.g.cs b/src/libs/Vectara/Generated/Vectara.FactualConsistencyClient.g.cs index 74e19c08..6876f250 100644 --- a/src/libs/Vectara/Generated/Vectara.FactualConsistencyClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.FactualConsistencyClient.g.cs @@ -64,6 +64,27 @@ public FactualConsistencyClient( { } + /// + /// Creates a new instance of the FactualConsistencyClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public FactualConsistencyClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the FactualConsistencyClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.GenerationPresetsClient.g.cs b/src/libs/Vectara/Generated/Vectara.GenerationPresetsClient.g.cs index eac9f4ad..4d5efad0 100644 --- a/src/libs/Vectara/Generated/Vectara.GenerationPresetsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.GenerationPresetsClient.g.cs @@ -64,6 +64,27 @@ public GenerationPresetsClient( { } + /// + /// Creates a new instance of the GenerationPresetsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public GenerationPresetsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the GenerationPresetsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.GlossariesClient.g.cs b/src/libs/Vectara/Generated/Vectara.GlossariesClient.g.cs index ff77e904..cd6877d5 100644 --- a/src/libs/Vectara/Generated/Vectara.GlossariesClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.GlossariesClient.g.cs @@ -64,6 +64,27 @@ public GlossariesClient( { } + /// + /// Creates a new instance of the GlossariesClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public GlossariesClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the GlossariesClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.HallucinationCorrectorsClient.g.cs b/src/libs/Vectara/Generated/Vectara.HallucinationCorrectorsClient.g.cs index c947f591..a1efdc4b 100644 --- a/src/libs/Vectara/Generated/Vectara.HallucinationCorrectorsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.HallucinationCorrectorsClient.g.cs @@ -64,6 +64,27 @@ public HallucinationCorrectorsClient( { } + /// + /// Creates a new instance of the HallucinationCorrectorsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public HallucinationCorrectorsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the HallucinationCorrectorsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.Create.g.cs b/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.Create.g.cs index 29ab924a..0d89cd82 100644 --- a/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.Create.g.cs +++ b/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.Create.g.cs @@ -61,7 +61,8 @@ public partial interface IPipelineDeadLetterEntriesClient /// /// The identifier for the source record to add. Format depends on connector type:
/// - S3: the object key (e.g. `legal/contracts/doc.pdf`)
- /// - SharePoint: the drive item ID + /// - SharePoint: the drive item ID
+ /// - Web: the canonicalized URL (e.g. `https://docs.example.com/page`) /// /// /// Optional reason for manually adding this record. diff --git a/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.List.g.cs b/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.List.g.cs index 77c1d5a5..a0996035 100644 --- a/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.List.g.cs +++ b/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.List.g.cs @@ -24,6 +24,7 @@ public partial interface IPipelineDeadLetterEntriesClient /// /// How this dead letter was created. /// + /// /// /// Default Value: 10 /// @@ -38,6 +39,7 @@ public partial interface IPipelineDeadLetterEntriesClient global::Vectara.DeadLetterStatus? status = default, string? lastRunId = default, global::Vectara.DeadLetterOrigin? origin = default, + string? filter = default, int? limit = default, string? pageKey = default, global::Vectara.AutoSDKRequestOptions? requestOptions = default, @@ -62,6 +64,7 @@ public partial interface IPipelineDeadLetterEntriesClient /// /// How this dead letter was created. /// + /// /// /// Default Value: 10 /// @@ -76,6 +79,7 @@ public partial interface IPipelineDeadLetterEntriesClient global::Vectara.DeadLetterStatus? status = default, string? lastRunId = default, global::Vectara.DeadLetterOrigin? origin = default, + string? filter = default, int? limit = default, string? pageKey = default, global::Vectara.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Create.g.cs b/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Create.g.cs index e10d1ca7..83cc3f03 100644 --- a/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Create.g.cs +++ b/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Create.g.cs @@ -78,7 +78,7 @@ public partial interface IPipelinesClient /// global::System.Threading.Tasks.Task CreateAsync( string name, - global::Vectara.S3SourceConfiguration source, + global::Vectara.PipelineSource source, global::Vectara.PipelineTrigger trigger, global::Vectara.PipelineTransform transform, int? requestTimeout = default, diff --git a/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Replace.g.cs b/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Replace.g.cs index 6d9b42bb..d78c1bb5 100644 --- a/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Replace.g.cs +++ b/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Replace.g.cs @@ -93,7 +93,7 @@ public partial interface IPipelinesClient global::System.Threading.Tasks.Task ReplaceAsync( string pipelineKey, string name, - global::Vectara.S3SourceConfiguration source, + global::Vectara.PipelineSource source, global::Vectara.PipelineTrigger trigger, global::Vectara.PipelineTransform transform, int? requestTimeout = default, diff --git a/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Update.g.cs b/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Update.g.cs index 04ce592d..9f9641a2 100644 --- a/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Update.g.cs +++ b/src/libs/Vectara/Generated/Vectara.IPipelinesClient.Update.g.cs @@ -89,7 +89,7 @@ public partial interface IPipelinesClient int? requestTimeoutMillis = default, string? name = default, string? description = default, - global::Vectara.UpdateS3SourceConfiguration? source = default, + global::Vectara.UpdatePipelineSource? source = default, global::Vectara.PipelineTrigger? trigger = default, global::Vectara.PipelineTransform? transform = default, global::Vectara.PipelineSyncMode? syncMode = default, diff --git a/src/libs/Vectara/Generated/Vectara.InstructionsClient.g.cs b/src/libs/Vectara/Generated/Vectara.InstructionsClient.g.cs index e04d0a8c..a8d668b0 100644 --- a/src/libs/Vectara/Generated/Vectara.InstructionsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.InstructionsClient.g.cs @@ -64,6 +64,27 @@ public InstructionsClient( { } + /// + /// Creates a new instance of the InstructionsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public InstructionsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the InstructionsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.JobsClient.g.cs b/src/libs/Vectara/Generated/Vectara.JobsClient.g.cs index d5185f63..96339a32 100644 --- a/src/libs/Vectara/Generated/Vectara.JobsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JobsClient.g.cs @@ -64,6 +64,27 @@ public JobsClient( { } + /// + /// Creates a new instance of the JobsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public JobsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the JobsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactCreateTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactCreateTool.g.cs index c9103475..0c6d998f 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactCreateTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactCreateTool.g.cs @@ -30,6 +30,8 @@ public class ArtifactCreateToolJsonConverter : global::System.Text.Json.Serializ var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class ArtifactCreateToolJsonConverter : global::System.Text.Json.Serializ if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactGrepTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactGrepTool.g.cs index 29cd9997..6b388216 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactGrepTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactGrepTool.g.cs @@ -30,6 +30,8 @@ public class ArtifactGrepToolJsonConverter : global::System.Text.Json.Serializat var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class ArtifactGrepToolJsonConverter : global::System.Text.Json.Serializat if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactReadTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactReadTool.g.cs index e50aa9ce..2695d5d7 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactReadTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactReadTool.g.cs @@ -30,6 +30,8 @@ public class ArtifactReadToolJsonConverter : global::System.Text.Json.Serializat var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class ArtifactReadToolJsonConverter : global::System.Text.Json.Serializat if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactUploadEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactUploadEvent.g.cs index fdd6e14a..5059bbf2 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactUploadEvent.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ArtifactUploadEvent.g.cs @@ -32,6 +32,7 @@ public class ArtifactUploadEventJsonConverter : global::System.Text.Json.Seriali if (__jsonProps.Contains("id")) __score0++; if (__jsonProps.Contains("session_key")) __score0++; var __score1 = 0; + if (__jsonProps.Contains("agent_upload_message")) __score1++; if (__jsonProps.Contains("artifacts")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __bestScore = 0; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CorporaSearchTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CorporaSearchTool.g.cs index 3b0faca4..422f2a54 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.CorporaSearchTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CorporaSearchTool.g.cs @@ -30,6 +30,8 @@ public class CorporaSearchToolJsonConverter : global::System.Text.Json.Serializa var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class CorporaSearchToolJsonConverter : global::System.Text.Json.Serializa if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CrawlPagesSource.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CrawlPagesSource.g.cs new file mode 100644 index 00000000..cc3c67a6 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CrawlPagesSource.g.cs @@ -0,0 +1,145 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class CrawlPagesSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.CrawlPagesSource Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("max_depth")) __score0++; + if (__jsonProps.Contains("neg_regex")) __score0++; + if (__jsonProps.Contains("pos_regex")) __score0++; + if (__jsonProps.Contains("same_domain_only")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("type")) __score1++; + if (__jsonProps.Contains("urls")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::Vectara.BaseCrawlPagesSource? @base = default; + global::Vectara.CrawlPagesSourceVariant2? crawlPagesSourceVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseCrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseCrawlPagesSource).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CrawlPagesSourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CrawlPagesSourceVariant2).Name}"); + crawlPagesSourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && crawlPagesSourceVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseCrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseCrawlPagesSource).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (@base == null && crawlPagesSourceVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CrawlPagesSourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CrawlPagesSourceVariant2).Name}"); + crawlPagesSourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.CrawlPagesSource( + @base, + + crawlPagesSourceVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.CrawlPagesSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsBase) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseCrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseCrawlPagesSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo); + } + else if (value.IsCrawlPagesSourceVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CrawlPagesSourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CrawlPagesSourceVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CrawlPagesSourceVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.DocumentConversionTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.DocumentConversionTool.g.cs index 256fd772..c3e79f92 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.DocumentConversionTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.DocumentConversionTool.g.cs @@ -30,6 +30,8 @@ public class DocumentConversionToolJsonConverter : global::System.Text.Json.Seri var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class DocumentConversionToolJsonConverter : global::System.Text.Json.Seri if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.DynamicVectaraTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.DynamicVectaraTool.g.cs index 52a20cef..4571f9e6 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.DynamicVectaraTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.DynamicVectaraTool.g.cs @@ -30,6 +30,8 @@ public class DynamicVectaraToolJsonConverter : global::System.Text.Json.Serializ var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class DynamicVectaraToolJsonConverter : global::System.Text.Json.Serializ if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.GetDocumentTextTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.GetDocumentTextTool.g.cs index 96623f01..282ed7aa 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.GetDocumentTextTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.GetDocumentTextTool.g.cs @@ -30,6 +30,8 @@ public class GetDocumentTextToolJsonConverter : global::System.Text.Json.Seriali var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class GetDocumentTextToolJsonConverter : global::System.Text.Json.Seriali if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ImageReadTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ImageReadTool.g.cs index 37ab7ec1..b775abe6 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.ImageReadTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ImageReadTool.g.cs @@ -30,6 +30,8 @@ public class ImageReadToolJsonConverter : global::System.Text.Json.Serialization var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class ImageReadToolJsonConverter : global::System.Text.Json.Serialization if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InputMessageEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InputMessageEvent.g.cs index 19b7acf7..eaefe819 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.InputMessageEvent.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InputMessageEvent.g.cs @@ -32,6 +32,7 @@ public class InputMessageEventJsonConverter : global::System.Text.Json.Serializa if (__jsonProps.Contains("id")) __score0++; if (__jsonProps.Contains("session_key")) __score0++; var __score1 = 0; + if (__jsonProps.Contains("message_diffs")) __score1++; if (__jsonProps.Contains("messages")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __bestScore = 0; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.LambdaTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.LambdaTool.g.cs index c37fa45f..c5cd46f5 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.LambdaTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.LambdaTool.g.cs @@ -37,6 +37,8 @@ public class LambdaToolJsonConverter : global::System.Text.Json.Serialization.Js var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -46,6 +48,7 @@ public class LambdaToolJsonConverter : global::System.Text.Json.Serialization.Js if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.McpTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.McpTool.g.cs index 1b01fe8d..c1ec740d 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.McpTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.McpTool.g.cs @@ -37,6 +37,8 @@ public class McpToolJsonConverter : global::System.Text.Json.Serialization.JsonC var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -46,6 +48,7 @@ public class McpToolJsonConverter : global::System.Text.Json.Serialization.JsonC if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineSource.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineSource.g.cs index 61a76106..a8d99300 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineSource.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineSource.g.cs @@ -28,10 +28,19 @@ public class PipelineSourceJsonConverter : global::System.Text.Json.Serializatio throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.S3SourceConfiguration)}"); s3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.WebSourceConfiguration? web = default; + if (discriminator?.Type == global::Vectara.PipelineSourceDiscriminatorType.Web) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WebSourceConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.WebSourceConfiguration)}"); + web = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Vectara.PipelineSource( discriminator?.Type, - s3 + s3, + + web ); return __value; @@ -52,6 +61,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.S3SourceConfiguration).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!.Value, typeInfo); } + else if (value.IsWeb) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WebSourceConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.WebSourceConfiguration).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Web!.Value, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.SitemapCrawlPagesSource.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.SitemapCrawlPagesSource.g.cs new file mode 100644 index 00000000..28b4ca06 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.SitemapCrawlPagesSource.g.cs @@ -0,0 +1,146 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class SitemapCrawlPagesSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.SitemapCrawlPagesSource Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("max_depth")) __score0++; + if (__jsonProps.Contains("neg_regex")) __score0++; + if (__jsonProps.Contains("pos_regex")) __score0++; + if (__jsonProps.Contains("same_domain_only")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("sitemap_urls")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + if (__jsonProps.Contains("urls")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::Vectara.BaseCrawlPagesSource? @base = default; + global::Vectara.SitemapCrawlPagesSourceVariant2? sitemapCrawlPagesSourceVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseCrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseCrawlPagesSource).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.SitemapCrawlPagesSourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.SitemapCrawlPagesSourceVariant2).Name}"); + sitemapCrawlPagesSourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && sitemapCrawlPagesSourceVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseCrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseCrawlPagesSource).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (@base == null && sitemapCrawlPagesSourceVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.SitemapCrawlPagesSourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.SitemapCrawlPagesSourceVariant2).Name}"); + sitemapCrawlPagesSourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.SitemapCrawlPagesSource( + @base, + + sitemapCrawlPagesSourceVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.SitemapCrawlPagesSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsBase) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseCrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseCrawlPagesSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo); + } + else if (value.IsSitemapCrawlPagesSourceVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.SitemapCrawlPagesSourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.SitemapCrawlPagesSourceVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SitemapCrawlPagesSourceVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.SubAgentTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.SubAgentTool.g.cs index 873b02a0..0689a7e2 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.SubAgentTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.SubAgentTool.g.cs @@ -30,6 +30,8 @@ public class SubAgentToolJsonConverter : global::System.Text.Json.Serialization. var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class SubAgentToolJsonConverter : global::System.Text.Json.Serialization. if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolInputEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolInputEvent.g.cs index ee4c403b..da50b4e6 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolInputEvent.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolInputEvent.g.cs @@ -32,6 +32,7 @@ public class ToolInputEventJsonConverter : global::System.Text.Json.Serializatio if (__jsonProps.Contains("id")) __score0++; if (__jsonProps.Contains("session_key")) __score0++; var __score1 = 0; + if (__jsonProps.Contains("argument_override_paths")) __score1++; if (__jsonProps.Contains("tool_call_id")) __score1++; if (__jsonProps.Contains("tool_configuration_name")) __score1++; if (__jsonProps.Contains("tool_input")) __score1++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdatePipelineSource.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdatePipelineSource.g.cs index 45750c9b..c24070cf 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdatePipelineSource.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdatePipelineSource.g.cs @@ -28,10 +28,19 @@ public class UpdatePipelineSourceJsonConverter : global::System.Text.Json.Serial throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.UpdateS3SourceConfiguration)}"); s3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.UpdateWebSourceConfiguration? web = default; + if (discriminator?.Type == global::Vectara.UpdatePipelineSourceDiscriminatorType.Web) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.UpdateWebSourceConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.UpdateWebSourceConfiguration)}"); + web = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Vectara.UpdatePipelineSource( discriminator?.Type, - s3 + s3, + + web ); return __value; @@ -52,6 +61,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.UpdateS3SourceConfiguration).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!.Value, typeInfo); } + else if (value.IsWeb) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.UpdateWebSourceConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.UpdateWebSourceConfiguration).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Web!.Value, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateWebSourceConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateWebSourceConfiguration.g.cs new file mode 100644 index 00000000..29649c70 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateWebSourceConfiguration.g.cs @@ -0,0 +1,150 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class UpdateWebSourceConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.UpdateWebSourceConfiguration Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("auth")) __score0++; + if (__jsonProps.Contains("excluded_content_types")) __score0++; + if (__jsonProps.Contains("js_rendering")) __score0++; + if (__jsonProps.Contains("max_concurrent")) __score0++; + if (__jsonProps.Contains("max_page_bytes")) __score0++; + if (__jsonProps.Contains("max_pages")) __score0++; + if (__jsonProps.Contains("requests_per_second")) __score0++; + if (__jsonProps.Contains("respect_robots_txt")) __score0++; + if (__jsonProps.Contains("user_agent")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("pages_source")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::Vectara.BaseWebSource? @base = default; + global::Vectara.UpdateWebSourceConfigurationVariant2? updateWebSourceConfigurationVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseWebSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseWebSource).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.UpdateWebSourceConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.UpdateWebSourceConfigurationVariant2).Name}"); + updateWebSourceConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && updateWebSourceConfigurationVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseWebSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseWebSource).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (@base == null && updateWebSourceConfigurationVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.UpdateWebSourceConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.UpdateWebSourceConfigurationVariant2).Name}"); + updateWebSourceConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.UpdateWebSourceConfiguration( + @base, + + updateWebSourceConfigurationVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.UpdateWebSourceConfiguration value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsBase) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseWebSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseWebSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo); + } + else if (value.IsUpdateWebSourceConfigurationVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.UpdateWebSourceConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.UpdateWebSourceConfigurationVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateWebSourceConfigurationVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.WebGetTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebGetTool.g.cs index 5322fa80..1ecbf11d 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.WebGetTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebGetTool.g.cs @@ -30,6 +30,8 @@ public class WebGetToolJsonConverter : global::System.Text.Json.Serialization.Js var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class WebGetToolJsonConverter : global::System.Text.Json.Serialization.Js if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSource.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSource.g.cs new file mode 100644 index 00000000..77100eee --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSource.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class WebPagesSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.WebPagesSource Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WebPagesSourceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.WebPagesSourceDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Vectara.SitemapPagesSource? sitemap = default; + if (discriminator?.Type == global::Vectara.WebPagesSourceDiscriminatorType.Sitemap) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.SitemapPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.SitemapPagesSource)}"); + sitemap = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Vectara.CrawlPagesSource? crawl = default; + if (discriminator?.Type == global::Vectara.WebPagesSourceDiscriminatorType.Crawl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.CrawlPagesSource)}"); + crawl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Vectara.SitemapCrawlPagesSource? sitemapCrawl = default; + if (discriminator?.Type == global::Vectara.WebPagesSourceDiscriminatorType.SitemapCrawl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.SitemapCrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.SitemapCrawlPagesSource)}"); + sitemapCrawl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Vectara.WebPagesSource( + discriminator?.Type, + sitemap, + + crawl, + + sitemapCrawl + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.WebPagesSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsSitemap) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.SitemapPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.SitemapPagesSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sitemap!, typeInfo); + } + else if (value.IsCrawl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CrawlPagesSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Crawl!.Value, typeInfo); + } + else if (value.IsSitemapCrawl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.SitemapCrawlPagesSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.SitemapCrawlPagesSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SitemapCrawl!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSourceDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSourceDiscriminatorType.g.cs new file mode 100644 index 00000000..713e18c8 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSourceDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Vectara.JsonConverters +{ + /// + public sealed class WebPagesSourceDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.WebPagesSourceDiscriminatorType 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::Vectara.WebPagesSourceDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Vectara.WebPagesSourceDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Vectara.WebPagesSourceDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.WebPagesSourceDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Vectara.WebPagesSourceDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeNullable.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..b3f528e3 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Vectara.JsonConverters +{ + /// + public sealed class WebPagesSourceDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.WebPagesSourceDiscriminatorType? 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::Vectara.WebPagesSourceDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Vectara.WebPagesSourceDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Vectara.WebPagesSourceDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.WebPagesSourceDiscriminatorType? 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::Vectara.WebPagesSourceDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.WebSearchTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebSearchTool.g.cs index be3a4a7d..82b8b74d 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.WebSearchTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebSearchTool.g.cs @@ -30,6 +30,8 @@ public class WebSearchToolJsonConverter : global::System.Text.Json.Serialization var __score0 = 0; if (__jsonProps.Contains("category")) __score0++; if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("description_template")) __score0++; if (__jsonProps.Contains("documentation")) __score0++; @@ -39,6 +41,7 @@ public class WebSearchToolJsonConverter : global::System.Text.Json.Serialization if (__jsonProps.Contains("input_schema")) __score0++; if (__jsonProps.Contains("lineage")) __score0++; if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; if (__jsonProps.Contains("title")) __score0++; if (__jsonProps.Contains("tool_groups")) __score0++; if (__jsonProps.Contains("updated_at")) __score0++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.WebSourceConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebSourceConfiguration.g.cs new file mode 100644 index 00000000..83036ef0 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.WebSourceConfiguration.g.cs @@ -0,0 +1,150 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class WebSourceConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.WebSourceConfiguration Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("auth")) __score0++; + if (__jsonProps.Contains("excluded_content_types")) __score0++; + if (__jsonProps.Contains("js_rendering")) __score0++; + if (__jsonProps.Contains("max_concurrent")) __score0++; + if (__jsonProps.Contains("max_page_bytes")) __score0++; + if (__jsonProps.Contains("max_pages")) __score0++; + if (__jsonProps.Contains("requests_per_second")) __score0++; + if (__jsonProps.Contains("respect_robots_txt")) __score0++; + if (__jsonProps.Contains("user_agent")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("pages_source")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::Vectara.BaseWebSource? @base = default; + global::Vectara.WebSourceConfigurationVariant2? webSourceConfigurationVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseWebSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseWebSource).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WebSourceConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.WebSourceConfigurationVariant2).Name}"); + webSourceConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && webSourceConfigurationVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseWebSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseWebSource).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (@base == null && webSourceConfigurationVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WebSourceConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.WebSourceConfigurationVariant2).Name}"); + webSourceConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.WebSourceConfiguration( + @base, + + webSourceConfigurationVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.WebSourceConfiguration value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsBase) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.BaseWebSource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.BaseWebSource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo); + } + else if (value.IsWebSourceConfigurationVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WebSourceConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.WebSourceConfigurationVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSourceConfigurationVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs index ceb7e81a..a66898f3 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs @@ -333,6 +333,10 @@ namespace Vectara typeof(global::Vectara.JsonConverters.PipelineStatusNullableJsonConverter), + typeof(global::Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeJsonConverter), + + typeof(global::Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeNullableJsonConverter), + typeof(global::Vectara.JsonConverters.PipelineSourceDiscriminatorTypeJsonConverter), typeof(global::Vectara.JsonConverters.PipelineSourceDiscriminatorTypeNullableJsonConverter), @@ -615,6 +619,14 @@ namespace Vectara typeof(global::Vectara.JsonConverters.S3SourceConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.CrawlPagesSourceJsonConverter), + + typeof(global::Vectara.JsonConverters.SitemapCrawlPagesSourceJsonConverter), + + typeof(global::Vectara.JsonConverters.WebPagesSourceJsonConverter), + + typeof(global::Vectara.JsonConverters.WebSourceConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.PipelineSourceJsonConverter), typeof(global::Vectara.JsonConverters.PipelineTriggerJsonConverter), @@ -623,6 +635,8 @@ namespace Vectara typeof(global::Vectara.JsonConverters.UpdateS3SourceConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.UpdateWebSourceConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.UpdatePipelineSourceJsonConverter), typeof(global::Vectara.JsonConverters.InvokeAgentTraceSpanJsonConverter), @@ -1504,6 +1518,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Vectara.JsonConverters.PipelineStatusNullableJsonConverter), + typeof(global::Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeJsonConverter), + + typeof(global::Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeNullableJsonConverter), + typeof(global::Vectara.JsonConverters.PipelineSourceDiscriminatorTypeJsonConverter), typeof(global::Vectara.JsonConverters.PipelineSourceDiscriminatorTypeNullableJsonConverter), @@ -1786,6 +1804,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Vectara.JsonConverters.S3SourceConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.CrawlPagesSourceJsonConverter), + + typeof(global::Vectara.JsonConverters.SitemapCrawlPagesSourceJsonConverter), + + typeof(global::Vectara.JsonConverters.WebPagesSourceJsonConverter), + + typeof(global::Vectara.JsonConverters.WebSourceConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.PipelineSourceJsonConverter), typeof(global::Vectara.JsonConverters.PipelineTriggerJsonConverter), @@ -1794,6 +1820,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Vectara.JsonConverters.UpdateS3SourceConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.UpdateWebSourceConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.UpdatePipelineSourceJsonConverter), typeof(global::Vectara.JsonConverters.InvokeAgentTraceSpanJsonConverter), @@ -1946,6 +1974,18 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.PipelineStatus), TypeInfoPropertyName = "PipelineStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.BaseS3SourceConfiguration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.S3SourceConfiguration), TypeInfoPropertyName = "S3SourceConfiguration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.BaseWebSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SitemapPagesSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.BaseCrawlPagesSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CrawlPagesSource), TypeInfoPropertyName = "CrawlPagesSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CrawlPagesSourceVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SitemapCrawlPagesSource), TypeInfoPropertyName = "SitemapCrawlPagesSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SitemapCrawlPagesSourceVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WebPagesSource), TypeInfoPropertyName = "WebPagesSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WebPagesSourceDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WebPagesSourceDiscriminatorType), TypeInfoPropertyName = "WebPagesSourceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WebSourceConfiguration), TypeInfoPropertyName = "WebSourceConfiguration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WebSourceConfigurationVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.PipelineSource), TypeInfoPropertyName = "PipelineSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.PipelineSourceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.PipelineSourceDiscriminatorType), TypeInfoPropertyName = "PipelineSourceDiscriminatorType2")] @@ -1971,6 +2011,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreatePipelineRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateS3SourceConfiguration), TypeInfoPropertyName = "UpdateS3SourceConfiguration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateWebSourceConfiguration), TypeInfoPropertyName = "UpdateWebSourceConfiguration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateWebSourceConfigurationVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdatePipelineSource), TypeInfoPropertyName = "UpdatePipelineSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdatePipelineSourceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdatePipelineSourceDiscriminatorType), TypeInfoPropertyName = "UpdatePipelineSourceDiscriminatorType2")] @@ -2336,6 +2378,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Vectara.JsonConverters.CreateAgentConnectorRequestTypeNullableJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.PipelineStatusJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.PipelineStatusNullableJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.PipelineSourceDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.PipelineSourceDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.PipelineTriggerDiscriminatorTypeJsonConverter()); @@ -2477,10 +2521,15 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Vectara.JsonConverters.ScheduleConfigurationJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.ConnectorConfigurationJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.S3SourceConfigurationJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.CrawlPagesSourceJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.SitemapCrawlPagesSourceJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.WebPagesSourceJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.WebSourceConfigurationJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.PipelineSourceJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.PipelineTriggerJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.PipelineVerificationJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.UpdateS3SourceConfigurationJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.UpdateWebSourceConfigurationJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.UpdatePipelineSourceJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.InvokeAgentTraceSpanJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.ChatTraceSpanJsonConverter()); diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs index 8d18547d..2127bc41 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs @@ -2432,459 +2432,515 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Vectara.PipelineSource? Type601 { get; set; } + public global::Vectara.BaseWebSource? Type601 { get; set; } /// /// /// - public global::Vectara.PipelineSourceDiscriminator? Type602 { get; set; } + public global::Vectara.SitemapPagesSource? Type602 { get; set; } /// /// /// - public global::Vectara.PipelineSourceDiscriminatorType? Type603 { get; set; } + public global::Vectara.BaseCrawlPagesSource? Type603 { get; set; } /// /// /// - public global::Vectara.CronTriggerConfiguration? Type604 { get; set; } + public global::Vectara.CrawlPagesSource? Type604 { get; set; } /// /// /// - public global::Vectara.IntervalTriggerConfiguration? Type605 { get; set; } + public global::Vectara.CrawlPagesSourceVariant2? Type605 { get; set; } /// /// /// - public global::Vectara.ManualTriggerConfiguration? Type606 { get; set; } + public global::Vectara.SitemapCrawlPagesSource? Type606 { get; set; } /// /// /// - public global::Vectara.PipelineTrigger? Type607 { get; set; } + public global::Vectara.SitemapCrawlPagesSourceVariant2? Type607 { get; set; } /// /// /// - public global::Vectara.PipelineTriggerDiscriminator? Type608 { get; set; } + public global::Vectara.WebPagesSource? Type608 { get; set; } /// /// /// - public global::Vectara.PipelineTriggerDiscriminatorType? Type609 { get; set; } + public global::Vectara.WebPagesSourceDiscriminator? Type609 { get; set; } /// /// /// - public global::Vectara.ConditionVerification? Type610 { get; set; } + public global::Vectara.WebPagesSourceDiscriminatorType? Type610 { get; set; } /// /// /// - public global::Vectara.AgentVerification? Type611 { get; set; } + public global::Vectara.WebSourceConfiguration? Type611 { get; set; } /// /// /// - public global::Vectara.PipelineVerification? Type612 { get; set; } + public global::Vectara.WebSourceConfigurationVariant2? Type612 { get; set; } /// /// /// - public global::Vectara.PipelineVerificationDiscriminator? Type613 { get; set; } + public global::Vectara.PipelineSource? Type613 { get; set; } /// /// /// - public global::Vectara.PipelineVerificationDiscriminatorType? Type614 { get; set; } + public global::Vectara.PipelineSourceDiscriminator? Type614 { get; set; } /// /// /// - public global::Vectara.AgentTransformConfiguration? Type615 { get; set; } + public global::Vectara.PipelineSourceDiscriminatorType? Type615 { get; set; } /// /// /// - public global::Vectara.PipelineTransform? Type616 { get; set; } + public global::Vectara.CronTriggerConfiguration? Type616 { get; set; } /// /// /// - public global::Vectara.PipelineTransformDiscriminator? Type617 { get; set; } + public global::Vectara.IntervalTriggerConfiguration? Type617 { get; set; } /// /// /// - public global::Vectara.PipelineTransformDiscriminatorType? Type618 { get; set; } + public global::Vectara.ManualTriggerConfiguration? Type618 { get; set; } /// /// /// - public global::Vectara.PipelineSyncMode? Type619 { get; set; } + public global::Vectara.PipelineTrigger? Type619 { get; set; } /// /// /// - public global::Vectara.PipelineWatermark? Type620 { get; set; } + public global::Vectara.PipelineTriggerDiscriminator? Type620 { get; set; } /// /// /// - public global::Vectara.Pipeline? Type621 { get; set; } + public global::Vectara.PipelineTriggerDiscriminatorType? Type621 { get; set; } /// /// /// - public global::Vectara.ListPipelinesResponse? Type622 { get; set; } + public global::Vectara.ConditionVerification? Type622 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type623 { get; set; } + public global::Vectara.AgentVerification? Type623 { get; set; } /// /// /// - public global::Vectara.CreatePipelineRequest? Type624 { get; set; } + public global::Vectara.PipelineVerification? Type624 { get; set; } /// /// /// - public global::Vectara.UpdateS3SourceConfiguration? Type625 { get; set; } + public global::Vectara.PipelineVerificationDiscriminator? Type625 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineSource? Type626 { get; set; } + public global::Vectara.PipelineVerificationDiscriminatorType? Type626 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineSourceDiscriminator? Type627 { get; set; } + public global::Vectara.AgentTransformConfiguration? Type627 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineSourceDiscriminatorType? Type628 { get; set; } + public global::Vectara.PipelineTransform? Type628 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineRequest? Type629 { get; set; } + public global::Vectara.PipelineTransformDiscriminator? Type629 { get; set; } /// /// /// - public global::Vectara.PipelineRunStatus? Type630 { get; set; } + public global::Vectara.PipelineTransformDiscriminatorType? Type630 { get; set; } /// /// /// - public global::Vectara.PipelineRunTriggerType? Type631 { get; set; } + public global::Vectara.PipelineSyncMode? Type631 { get; set; } /// /// /// - public global::Vectara.PipelineRun? Type632 { get; set; } + public global::Vectara.PipelineWatermark? Type632 { get; set; } /// /// /// - public global::Vectara.DeadLetterStatus? Type633 { get; set; } + public global::Vectara.Pipeline? Type633 { get; set; } /// /// /// - public global::Vectara.DeadLetterOrigin? Type634 { get; set; } + public global::Vectara.ListPipelinesResponse? Type634 { get; set; } /// /// /// - public global::Vectara.PipelineDeadLetterEntry? Type635 { get; set; } + public global::System.Collections.Generic.IList? Type635 { get; set; } /// /// /// - public global::Vectara.ListPipelineDeadLetterEntriesResponse? Type636 { get; set; } + public global::Vectara.CreatePipelineRequest? Type636 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type637 { get; set; } + public global::Vectara.UpdateS3SourceConfiguration? Type637 { get; set; } /// /// /// - public global::Vectara.CreatePipelineDeadLetterEntryRequest? Type638 { get; set; } + public global::Vectara.UpdateWebSourceConfiguration? Type638 { get; set; } /// /// /// - public global::Vectara.ProcessPipelineDeadLetterEntriesRequest? Type639 { get; set; } + public global::Vectara.UpdateWebSourceConfigurationVariant2? Type639 { get; set; } /// /// /// - public global::Vectara.ListPipelineRunsResponse? Type640 { get; set; } + public global::Vectara.UpdatePipelineSource? Type640 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type641 { get; set; } + public global::Vectara.UpdatePipelineSourceDiscriminator? Type641 { get; set; } /// /// /// - public global::Vectara.AgentTrace? Type642 { get; set; } + public global::Vectara.UpdatePipelineSourceDiscriminatorType? Type642 { get; set; } /// /// /// - public global::Vectara.AgentTraceStatus? Type643 { get; set; } + public global::Vectara.UpdatePipelineRequest? Type643 { get; set; } /// /// /// - public global::Vectara.ListAgentTracesResponse? Type644 { get; set; } + public global::Vectara.PipelineRunStatus? Type644 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type645 { get; set; } + public global::Vectara.PipelineRunTriggerType? Type645 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpanStatus? Type646 { get; set; } + public global::Vectara.PipelineRun? Type646 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpanBase? Type647 { get; set; } + public global::Vectara.DeadLetterStatus? Type647 { get; set; } /// /// /// - public global::Vectara.AgentTraceInputFile? Type648 { get; set; } + public global::Vectara.DeadLetterOrigin? Type648 { get; set; } /// /// /// - public global::Vectara.InvokeAgentSpanAttributes? Type649 { get; set; } + public global::Vectara.PipelineDeadLetterEntry? Type649 { get; set; } /// /// /// - public global::Vectara.InvokeAgentSpanAttributesOutputType? Type650 { get; set; } + public global::Vectara.ListPipelineDeadLetterEntriesResponse? Type650 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type651 { get; set; } + public global::System.Collections.Generic.IList? Type651 { get; set; } /// /// /// - public global::Vectara.InvokeAgentSpanContent? Type652 { get; set; } + public global::Vectara.CreatePipelineDeadLetterEntryRequest? Type652 { get; set; } /// /// /// - public global::Vectara.InvokeAgentTraceSpan? Type653 { get; set; } + public global::Vectara.ProcessPipelineDeadLetterEntriesRequest? Type653 { get; set; } /// /// /// - public global::Vectara.InvokeAgentTraceSpanVariant2? Type654 { get; set; } + public global::Vectara.ListPipelineRunsResponse? Type654 { get; set; } /// /// /// - public global::Vectara.ChatSpanAttributes? Type655 { get; set; } + public global::System.Collections.Generic.IList? Type655 { get; set; } /// /// /// - public global::Vectara.ChatTraceSpan? Type656 { get; set; } + public global::Vectara.AgentTrace? Type656 { get; set; } /// /// /// - public global::Vectara.ChatTraceSpanVariant2? Type657 { get; set; } + public global::Vectara.AgentTraceStatus? Type657 { get; set; } /// /// /// - public global::Vectara.ExecuteToolSpanAttributes? Type658 { get; set; } + public global::Vectara.ListAgentTracesResponse? Type658 { get; set; } /// /// /// - public global::Vectara.ExecuteToolSpanContent? Type659 { get; set; } + public global::System.Collections.Generic.IList? Type659 { get; set; } /// /// /// - public global::Vectara.ExecuteToolTraceSpan? Type660 { get; set; } + public global::Vectara.AgentTraceSpanStatus? Type660 { get; set; } /// /// /// - public global::Vectara.ExecuteToolTraceSpanVariant2? Type661 { get; set; } + public global::Vectara.AgentTraceSpanBase? Type661 { get; set; } /// /// /// - public global::Vectara.ThinkingSpanContent? Type662 { get; set; } + public global::Vectara.AgentTraceInputFile? Type662 { get; set; } /// /// /// - public global::Vectara.ThinkingTraceSpan? Type663 { get; set; } + public global::Vectara.InvokeAgentSpanAttributes? Type663 { get; set; } /// /// /// - public global::Vectara.ThinkingTraceSpanVariant2? Type664 { get; set; } + public global::Vectara.InvokeAgentSpanAttributesOutputType? Type664 { get; set; } /// /// /// - public global::Vectara.OutputSpanContent? Type665 { get; set; } + public global::System.Collections.Generic.IList? Type665 { get; set; } /// /// /// - public global::Vectara.OutputTraceSpan? Type666 { get; set; } + public global::Vectara.InvokeAgentSpanContent? Type666 { get; set; } /// /// /// - public global::Vectara.OutputTraceSpanVariant2? Type667 { get; set; } + public global::Vectara.InvokeAgentTraceSpan? Type667 { get; set; } /// /// /// - public global::Vectara.GuardrailSpanAttributes? Type668 { get; set; } + public global::Vectara.InvokeAgentTraceSpanVariant2? Type668 { get; set; } /// /// /// - public global::Vectara.GuardrailSpanContent? Type669 { get; set; } + public global::Vectara.ChatSpanAttributes? Type669 { get; set; } /// /// /// - public global::Vectara.GuardrailTraceSpan? Type670 { get; set; } + public global::Vectara.ChatTraceSpan? Type670 { get; set; } /// /// /// - public global::Vectara.GuardrailTraceSpanVariant2? Type671 { get; set; } + public global::Vectara.ChatTraceSpanVariant2? Type671 { get; set; } /// /// /// - public global::Vectara.StepTransitionSpanAttributes? Type672 { get; set; } + public global::Vectara.ExecuteToolSpanAttributes? Type672 { get; set; } /// /// /// - public global::Vectara.StepTransitionTraceSpan? Type673 { get; set; } + public global::Vectara.ExecuteToolSpanContent? Type673 { get; set; } /// /// /// - public global::Vectara.StepTransitionTraceSpanVariant2? Type674 { get; set; } + public global::Vectara.ExecuteToolTraceSpan? Type674 { get; set; } /// /// /// - public global::Vectara.ImageReadSpanAttributes? Type675 { get; set; } + public global::Vectara.ExecuteToolTraceSpanVariant2? Type675 { get; set; } /// /// /// - public global::Vectara.ImageReadTraceSpan? Type676 { get; set; } + public global::Vectara.ThinkingSpanContent? Type676 { get; set; } /// /// /// - public global::Vectara.ImageReadTraceSpanVariant2? Type677 { get; set; } + public global::Vectara.ThinkingTraceSpan? Type677 { get; set; } /// /// /// - public global::Vectara.CompactionSpanAttributes? Type678 { get; set; } + public global::Vectara.ThinkingTraceSpanVariant2? Type678 { get; set; } /// /// /// - public global::Vectara.CompactionTraceSpan? Type679 { get; set; } + public global::Vectara.OutputSpanContent? Type679 { get; set; } /// /// /// - public global::Vectara.CompactionTraceSpanVariant2? Type680 { get; set; } + public global::Vectara.OutputTraceSpan? Type680 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpan? Type681 { get; set; } + public global::Vectara.OutputTraceSpanVariant2? Type681 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpanDiscriminator? Type682 { get; set; } + public global::Vectara.GuardrailSpanAttributes? Type682 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpanDiscriminatorOperation? Type683 { get; set; } + public global::Vectara.GuardrailSpanContent? Type683 { get; set; } /// /// /// - public global::Vectara.ListAgentTraceSpansResponse? Type684 { get; set; } + public global::Vectara.GuardrailTraceSpan? Type684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type685 { get; set; } + public global::Vectara.GuardrailTraceSpanVariant2? Type685 { get; set; } /// /// /// - public global::Vectara.Glossary? Type686 { get; set; } + public global::Vectara.StepTransitionSpanAttributes? Type686 { get; set; } /// /// /// - public global::Vectara.ListGlossariesResponse? Type687 { get; set; } + public global::Vectara.StepTransitionTraceSpan? Type687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type688 { get; set; } + public global::Vectara.StepTransitionTraceSpanVariant2? Type688 { get; set; } /// /// /// - public global::Vectara.CreateGlossaryRequest? Type689 { get; set; } + public global::Vectara.ImageReadSpanAttributes? Type689 { get; set; } /// /// /// - public global::Vectara.UpdateGlossaryRequest? Type690 { get; set; } + public global::Vectara.ImageReadTraceSpan? Type690 { get; set; } /// /// /// - public global::Vectara.GlossaryEntry? Type691 { get; set; } + public global::Vectara.ImageReadTraceSpanVariant2? Type691 { get; set; } /// /// /// - public global::Vectara.GlossaryEntriesResponse? Type692 { get; set; } + public global::Vectara.CompactionSpanAttributes? Type692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type693 { get; set; } + public global::Vectara.CompactionTraceSpan? Type693 { get; set; } /// /// /// - public global::Vectara.UpsertGlossaryEntriesRequest? Type694 { get; set; } + public global::Vectara.CompactionTraceSpanVariant2? Type694 { get; set; } /// /// /// - public global::Vectara.DeleteGlossaryEntriesRequest? Type695 { get; set; } + public global::Vectara.AgentTraceSpan? Type695 { get; set; } /// /// /// - public global::Vectara.GetOAuthTokenRequest? Type696 { get; set; } + public global::Vectara.AgentTraceSpanDiscriminator? Type696 { get; set; } /// /// /// - public global::Vectara.CreateCorpusDocumentWaitFor? Type697 { get; set; } + public global::Vectara.AgentTraceSpanDiscriminatorOperation? Type697 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type698 { get; set; } + public global::Vectara.ListAgentTraceSpansResponse? Type698 { get; set; } /// /// /// - public global::Vectara.ListToolServersType? Type699 { get; set; } + public global::System.Collections.Generic.IList? Type699 { get; set; } /// /// /// - public global::Vectara.ListToolsType? Type700 { get; set; } + public global::Vectara.Glossary? Type700 { get; set; } /// /// /// - public global::Vectara.ListInstructionsType? Type701 { get; set; } + public global::Vectara.ListGlossariesResponse? Type701 { get; set; } /// /// /// - public global::Vectara.ListSessionArtifactsSortBy? Type702 { get; set; } + public global::System.Collections.Generic.IList? Type702 { get; set; } /// /// /// - public global::Vectara.ListSessionArtifactsOrderBy? Type703 { get; set; } + public global::Vectara.CreateGlossaryRequest? Type703 { get; set; } /// /// /// - public global::Vectara.ListAgentConnectorsType? Type704 { get; set; } + public global::Vectara.UpdateGlossaryRequest? Type704 { get; set; } /// /// /// - public global::Vectara.ListPipelinesSourceType? Type705 { get; set; } + public global::Vectara.GlossaryEntry? Type705 { get; set; } /// /// /// - public global::Vectara.ListTracesStatus? Type706 { get; set; } + public global::Vectara.GlossaryEntriesResponse? Type706 { get; set; } /// /// /// - public global::Vectara.ListTracesErrorType? Type707 { get; set; } + public global::System.Collections.Generic.IList? Type707 { get; set; } /// /// /// - public global::Vectara.ListTracesOperation? Type708 { get; set; } + public global::Vectara.UpsertGlossaryEntriesRequest? Type708 { get; set; } /// /// /// - public global::Vectara.ListTracesToolErrorType? Type709 { get; set; } + public global::Vectara.DeleteGlossaryEntriesRequest? Type709 { get; set; } /// /// /// - public global::Vectara.ListTraceSpansOperation? Type710 { get; set; } + public global::Vectara.GetOAuthTokenRequest? Type710 { get; set; } /// /// /// - public global::Vectara.AllOf? Type711 { get; set; } + public global::Vectara.CreateCorpusDocumentWaitFor? Type711 { get; set; } /// /// /// - public global::Vectara.CreateUserResponse2? Type712 { get; set; } + public global::System.Collections.Generic.IList? Type712 { get; set; } /// /// /// - public global::Vectara.ResetUserPasswordResponse? Type713 { get; set; } + public global::Vectara.ListToolServersType? Type713 { get; set; } /// /// /// - public global::Vectara.GetTokenResponse? Type714 { get; set; } + public global::Vectara.ListToolsType? Type714 { get; set; } + /// + /// + /// + public global::Vectara.ListInstructionsType? Type715 { get; set; } + /// + /// + /// + public global::Vectara.ListSessionArtifactsSortBy? Type716 { get; set; } + /// + /// + /// + public global::Vectara.ListSessionArtifactsOrderBy? Type717 { get; set; } + /// + /// + /// + public global::Vectara.ListAgentConnectorsType? Type718 { get; set; } + /// + /// + /// + public global::Vectara.ListPipelinesSourceType? Type719 { get; set; } + /// + /// + /// + public global::Vectara.ListTracesStatus? Type720 { get; set; } + /// + /// + /// + public global::Vectara.ListTracesErrorType? Type721 { get; set; } + /// + /// + /// + public global::Vectara.ListTracesOperation? Type722 { get; set; } + /// + /// + /// + public global::Vectara.ListTracesToolErrorType? Type723 { get; set; } + /// + /// + /// + public global::Vectara.ListTraceSpansOperation? Type724 { get; set; } + /// + /// + /// + public global::Vectara.AllOf? Type725 { get; set; } + /// + /// + /// + public global::Vectara.CreateUserResponse2? Type726 { get; set; } + /// + /// + /// + public global::Vectara.ResetUserPasswordResponse? Type727 { get; set; } + /// + /// + /// + public global::Vectara.GetTokenResponse? Type728 { get; set; } /// /// diff --git a/src/libs/Vectara/Generated/Vectara.LlmClient.g.cs b/src/libs/Vectara/Generated/Vectara.LlmClient.g.cs index 49abfd77..9b2c28da 100644 --- a/src/libs/Vectara/Generated/Vectara.LlmClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.LlmClient.g.cs @@ -64,6 +64,27 @@ public LlmClient( { } + /// + /// Creates a new instance of the LlmClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public LlmClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the LlmClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.LlmsClient.g.cs b/src/libs/Vectara/Generated/Vectara.LlmsClient.g.cs index b3c6a75a..cf642168 100644 --- a/src/libs/Vectara/Generated/Vectara.LlmsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.LlmsClient.g.cs @@ -64,6 +64,27 @@ public LlmsClient( { } + /// + /// Creates a new instance of the LlmsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public LlmsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the LlmsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.MetadataClient.g.cs b/src/libs/Vectara/Generated/Vectara.MetadataClient.g.cs index 0d6bfb30..2f072d2e 100644 --- a/src/libs/Vectara/Generated/Vectara.MetadataClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.MetadataClient.g.cs @@ -64,6 +64,27 @@ public MetadataClient( { } + /// + /// Creates a new instance of the MetadataClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public MetadataClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the MetadataClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentEvent.g.cs index 76a77c2e..77d6d8d0 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentEvent.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentEvent.g.cs @@ -279,7 +279,7 @@ public bool TryPickAgentOutput( /// /// An event representing a complete agent response with structured JSON content conforming to a schema.
/// This event is published instead of AgentOutputEvent when the agent's output_parser is configured
- /// with type "structured". It contains the LLM's final response parsed as validated JSON that
+ /// with type "structured". It contains the agent's final response parsed as validated JSON that
/// conforms to the schema specified in the StructuredOutputParser configuration.
/// When streaming is enabled, this event appears as a single complete event (not streamed in chunks)
/// after any tool interactions are complete. The content field contains the parsed JSON,
@@ -320,7 +320,7 @@ public bool TryPickStructuredOutput( : throw new global::System.InvalidOperationException($"Expected union variant 'StructuredOutput' but the value was {ToString()}."); /// - /// A transient event indicating the current request exceeded the LLM's context limit.
+ /// A transient event indicating the current request exceeded the agent's context limit.
/// This event is not persisted to the session history. ///
#if NET6_0_OR_GREATER diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentSkill.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentSkill.g.cs index fc2a4fcd..ccd091bb 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentSkill.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentSkill.g.cs @@ -7,7 +7,7 @@ namespace Vectara /// A skill that provides progressively disclosed instructions to an agent; it allows the agent to access more instructions without
/// always being within the system scope. Additionally, skills are explicitly loaded as an input event rather than normal text input event.
/// Skills are defined at the agent level and can be filtered per step via allowed_skills.
- /// The skill key and description are shown to the LLM in the system message;
+ /// The skill key and description are shown to the agent in its instructions;
/// the full content is sent as a user message when the skill is invoked via the invoke_skill tool. ///
public sealed partial class AgentSkill diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentStepReminder.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentStepReminder.g.cs index 16c1247f..8d7083a9 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentStepReminder.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentStepReminder.g.cs @@ -54,7 +54,7 @@ public bool TryPickTemplated( /// /// A reminder that expands terms, acronyms, and abbreviations in user messages using a glossary.
/// When attached to a step, user input is run through the glossary's lookup index and matching
- /// terms are expanded before the message reaches the LLM. + /// terms are expanded before the message reaches the agent. ///
#if NET6_0_OR_GREATER public global::Vectara.GlossaryExpansionReminder? GlossaryExpansion { get; init; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponse.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponse.g.cs index 3b9e0c1f..7d2f8d72 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponse.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponse.g.cs @@ -390,7 +390,7 @@ public bool TryPickToolOutput( /// /// An event representing a complete agent response with structured JSON content conforming to a schema.
/// This event is published instead of AgentOutputEvent when the agent's output_parser is configured
- /// with type "structured". It contains the LLM's final response parsed as validated JSON that
+ /// with type "structured". It contains the agent's final response parsed as validated JSON that
/// conforms to the schema specified in the StructuredOutputParser configuration.
/// When streaming is enabled, this event appears as a single complete event (not streamed in chunks)
/// after any tool interactions are complete. The content field contains the parsed JSON,
@@ -431,7 +431,7 @@ public bool TryPickStructuredOutput( : throw new global::System.InvalidOperationException($"Expected union variant 'StructuredOutput' but the value was {ToString()}."); /// - /// A transient event indicating the current request exceeded the LLM's context limit.
+ /// A transient event indicating the current request exceeded the agent's context limit.
/// This event is not persisted to the session history. ///
#if NET6_0_OR_GREATER diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationBase.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationBase.g.cs index d0f7666d..c2db92e8 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationBase.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationBase.g.cs @@ -9,7 +9,7 @@ namespace Vectara public sealed partial class AgentToolConfigurationBase { /// - /// Optional override for the tool's description shown to the LLM. When set, replaces the description from the underlying tool definition.
+ /// Optional override for the tool's description shown to the agent. When set, replaces the description from the underlying tool definition.
/// Example: Search the customer support knowledge base ///
/// Search the customer support knowledge base @@ -55,7 +55,7 @@ public sealed partial class AgentToolConfigurationBase /// Initializes a new instance of the class. ///
/// - /// Optional override for the tool's description shown to the LLM. When set, replaces the description from the underlying tool definition.
+ /// Optional override for the tool's description shown to the agent. When set, replaces the description from the underlying tool definition.
/// Example: Search the customer support knowledge base /// /// diff --git a/src/libs/Vectara/Generated/Vectara.Models.ArtifactUploadEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ArtifactUploadEventVariant2.g.cs index 1408b320..f7d8920e 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.ArtifactUploadEventVariant2.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.ArtifactUploadEventVariant2.g.cs @@ -26,6 +26,13 @@ public sealed partial class ArtifactUploadEventVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Artifacts { get; set; } + /// + /// Frozen text of the single user-role agent message rendered for this artifact upload at emission time, capturing the artifact metadata and instruction
+ /// block as one prompt. When absent the platform reconstructs the rendering on read using current templates. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("agent_upload_message")] + public string? AgentUploadMessage { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -43,15 +50,21 @@ public sealed partial class ArtifactUploadEventVariant2 /// References to uploaded artifacts
/// Example: [{"artifact_id":"art_report_pdf_a3f2","filename":"report.pdf","mime_type":"application/pdf","size_bytes":2048576}] /// + /// + /// Frozen text of the single user-role agent message rendered for this artifact upload at emission time, capturing the artifact metadata and instruction
+ /// block as one prompt. When absent the platform reconstructs the rendering on read using current templates. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ArtifactUploadEventVariant2( string type, - global::System.Collections.Generic.IList artifacts) + global::System.Collections.Generic.IList artifacts, + string? agentUploadMessage) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Artifacts = artifacts ?? throw new global::System.ArgumentNullException(nameof(artifacts)); + this.AgentUploadMessage = agentUploadMessage; } /// diff --git a/src/libs/Vectara/Generated/Vectara.Models.BaseCrawlPagesSource.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.BaseCrawlPagesSource.Json.g.cs new file mode 100644 index 00000000..c4775e61 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.BaseCrawlPagesSource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class BaseCrawlPagesSource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.BaseCrawlPagesSource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.BaseCrawlPagesSource), + jsonSerializerContext) as global::Vectara.BaseCrawlPagesSource; + } + + /// + /// 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::Vectara.BaseCrawlPagesSource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.BaseCrawlPagesSource), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.BaseCrawlPagesSource; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.BaseCrawlPagesSource.g.cs b/src/libs/Vectara/Generated/Vectara.Models.BaseCrawlPagesSource.g.cs new file mode 100644 index 00000000..02cc0c70 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.BaseCrawlPagesSource.g.cs @@ -0,0 +1,84 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// Shared BFS knobs for crawl-mode page-source variants (CrawlPagesSource, SitemapCrawlPagesSource).
+ /// Depth and URL filters; seed lists differ per variant and live on the leaf types. + ///
+ public sealed partial class BaseCrawlPagesSource + { + /// + /// Maximum link-following depth from each seed URL.
+ /// Default Value: 3 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_depth")] + public int? MaxDepth { get; set; } + + /// + /// If true, the crawler does not follow links outside the seed URL's registered domain.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("same_domain_only")] + public bool? SameDomainOnly { get; set; } + + /// + /// Regex patterns; URLs must match at least one to be crawled. Empty list = no positive filter. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pos_regex")] + public global::System.Collections.Generic.IList? PosRegex { get; set; } + + /// + /// Regex patterns; URLs matching any are skipped. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("neg_regex")] + public global::System.Collections.Generic.IList? NegRegex { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Maximum link-following depth from each seed URL.
+ /// Default Value: 3 + /// + /// + /// If true, the crawler does not follow links outside the seed URL's registered domain.
+ /// Default Value: true + /// + /// + /// Regex patterns; URLs must match at least one to be crawled. Empty list = no positive filter. + /// + /// + /// Regex patterns; URLs matching any are skipped. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BaseCrawlPagesSource( + int? maxDepth, + bool? sameDomainOnly, + global::System.Collections.Generic.IList? posRegex, + global::System.Collections.Generic.IList? negRegex) + { + this.MaxDepth = maxDepth; + this.SameDomainOnly = sameDomainOnly; + this.PosRegex = posRegex; + this.NegRegex = negRegex; + } + + /// + /// Initializes a new instance of the class. + /// + public BaseCrawlPagesSource() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.BaseWebSource.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.BaseWebSource.Json.g.cs new file mode 100644 index 00000000..d272c6e4 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.BaseWebSource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class BaseWebSource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.BaseWebSource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.BaseWebSource), + jsonSerializerContext) as global::Vectara.BaseWebSource; + } + + /// + /// 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::Vectara.BaseWebSource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.BaseWebSource), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.BaseWebSource; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.BaseWebSource.g.cs b/src/libs/Vectara/Generated/Vectara.Models.BaseWebSource.g.cs new file mode 100644 index 00000000..40cc273d --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.BaseWebSource.g.cs @@ -0,0 +1,168 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// Shared knobs for all web-based sources (sitemap, crawl, sitemap+crawl). Politeness, limits, auth.
+ /// Mode-specific fields (urls, sitemap_urls, BFS knobs, page count cap) live on the concrete subtypes. + ///
+ public sealed partial class BaseWebSource + { + /// + /// If true (default and strongly recommended), `robots.txt` rules and `Crawl-delay` directives are honored.
+ /// Set to false only if you have explicit authorization to crawl the target site without robots.txt
+ /// restrictions (e.g., your own domain).
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("respect_robots_txt")] + public bool? RespectRobotsTxt { get; set; } + + /// + /// Maximum sustained requests per second per host.
+ /// Default Value: 2 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("requests_per_second")] + public double? RequestsPerSecond { get; set; } + + /// + /// Maximum concurrent in-flight requests per host.
+ /// Default Value: 4 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_concurrent")] + public int? MaxConcurrent { get; set; } + + /// + /// Hard cap on the number of pages fetched per run. The default is a safety rail to prevent
+ /// unbounded crawls — both in BFS mode (high-branching-factor sites like wikis where `max_depth`
+ /// alone is not a meaningful bound) and in sitemap mode (a `<sitemap-index>` can chain
+ /// 50,000 child sitemaps × 50,000 URLs each per the sitemaps.org limits).
+ /// Default Value: 10000 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_pages")] + public int? MaxPages { get; set; } + + /// + /// If true, pages are rendered with a headless browser (slower, but required for JavaScript-heavy SPAs).
+ /// Defaults to false; turn on if pages return empty content without rendering.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("js_rendering")] + public bool? JsRendering { get; set; } + + /// + /// User-Agent header sent with every request. Must not contain CR or LF.
+ /// Default Value: Vectara-Crawler/1.0 (+https://www.vectara.com/crawler) + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("user_agent")] + public string? UserAgent { get; set; } + + /// + /// Maximum page body bytes to download. Larger pages are truncated. The 64 KB floor
+ /// prevents accidentally capping every page below the size of a typical HTML document;
+ /// the 100 MiB ceiling is far above any plausible single-page payload.
+ /// Default Value: 10485760 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_page_bytes")] + public long? MaxPageBytes { get; set; } + + /// + /// MIME types to skip in addition to always-skipped media types (image/*, video/*, audio/*).
+ /// Useful to skip e.g. application/zip if a site links to large archives. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("excluded_content_types")] + public global::System.Collections.Generic.IList? ExcludedContentTypes { get; set; } + + /// + /// Authentication configuration for connecting to a remote service. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.RemoteAuthJsonConverter))] + public global::Vectara.RemoteAuth? Auth { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// If true (default and strongly recommended), `robots.txt` rules and `Crawl-delay` directives are honored.
+ /// Set to false only if you have explicit authorization to crawl the target site without robots.txt
+ /// restrictions (e.g., your own domain).
+ /// Default Value: true + /// + /// + /// Maximum sustained requests per second per host.
+ /// Default Value: 2 + /// + /// + /// Maximum concurrent in-flight requests per host.
+ /// Default Value: 4 + /// + /// + /// Hard cap on the number of pages fetched per run. The default is a safety rail to prevent
+ /// unbounded crawls — both in BFS mode (high-branching-factor sites like wikis where `max_depth`
+ /// alone is not a meaningful bound) and in sitemap mode (a `<sitemap-index>` can chain
+ /// 50,000 child sitemaps × 50,000 URLs each per the sitemaps.org limits).
+ /// Default Value: 10000 + /// + /// + /// If true, pages are rendered with a headless browser (slower, but required for JavaScript-heavy SPAs).
+ /// Defaults to false; turn on if pages return empty content without rendering.
+ /// Default Value: false + /// + /// + /// User-Agent header sent with every request. Must not contain CR or LF.
+ /// Default Value: Vectara-Crawler/1.0 (+https://www.vectara.com/crawler) + /// + /// + /// Maximum page body bytes to download. Larger pages are truncated. The 64 KB floor
+ /// prevents accidentally capping every page below the size of a typical HTML document;
+ /// the 100 MiB ceiling is far above any plausible single-page payload.
+ /// Default Value: 10485760 + /// + /// + /// MIME types to skip in addition to always-skipped media types (image/*, video/*, audio/*).
+ /// Useful to skip e.g. application/zip if a site links to large archives. + /// + /// + /// Authentication configuration for connecting to a remote service. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BaseWebSource( + bool? respectRobotsTxt, + double? requestsPerSecond, + int? maxConcurrent, + int? maxPages, + bool? jsRendering, + string? userAgent, + long? maxPageBytes, + global::System.Collections.Generic.IList? excludedContentTypes, + global::Vectara.RemoteAuth? auth) + { + this.RespectRobotsTxt = respectRobotsTxt; + this.RequestsPerSecond = requestsPerSecond; + this.MaxConcurrent = maxConcurrent; + this.MaxPages = maxPages; + this.JsRendering = jsRendering; + this.UserAgent = userAgent; + this.MaxPageBytes = maxPageBytes; + this.ExcludedContentTypes = excludedContentTypes; + this.Auth = auth; + } + + /// + /// Initializes a new instance of the class. + /// + public BaseWebSource() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.ContextLimitExceededEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ContextLimitExceededEvent.g.cs index 98ff3fde..88db99a5 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.ContextLimitExceededEvent.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.ContextLimitExceededEvent.g.cs @@ -5,7 +5,7 @@ namespace Vectara { /// - /// A transient event indicating the current request exceeded the LLM's context limit.
+ /// A transient event indicating the current request exceeded the agent's context limit.
/// This event is not persisted to the session history. ///
public readonly partial struct ContextLimitExceededEvent : global::System.IEquatable diff --git a/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSource.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSource.Json.g.cs new file mode 100644 index 00000000..0fb34582 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct CrawlPagesSource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.CrawlPagesSource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CrawlPagesSource), + jsonSerializerContext) as global::Vectara.CrawlPagesSource?; + } + + /// + /// 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::Vectara.CrawlPagesSource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.CrawlPagesSource), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CrawlPagesSource?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSource.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSource.g.cs new file mode 100644 index 00000000..40513e7c --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSource.g.cs @@ -0,0 +1,297 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// Discover pages by breadth-first link-following starting from one or more seed URLs.
+ /// Per-URL change detection uses conditional GET (added in a follow-up PR). + ///
+ public readonly partial struct CrawlPagesSource : global::System.IEquatable + { + /// + /// Shared BFS knobs for crawl-mode page-source variants (CrawlPagesSource, SitemapCrawlPagesSource).
+ /// Depth and URL filters; seed lists differ per variant and live on the leaf types. + ///
+#if NET6_0_OR_GREATER + public global::Vectara.BaseCrawlPagesSource? Base { get; init; } +#else + public global::Vectara.BaseCrawlPagesSource? Base { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; + + /// + /// + /// + public bool TryPickBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.BaseCrawlPagesSource? value) + { + value = Base; + return IsBase; + } + + /// + /// + /// + public global::Vectara.BaseCrawlPagesSource PickBase() => IsBase + ? Base! + : throw new global::System.InvalidOperationException($"Expected union variant 'Base' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.CrawlPagesSourceVariant2? CrawlPagesSourceVariant2 { get; init; } +#else + public global::Vectara.CrawlPagesSourceVariant2? CrawlPagesSourceVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CrawlPagesSourceVariant2))] +#endif + public bool IsCrawlPagesSourceVariant2 => CrawlPagesSourceVariant2 != null; + + /// + /// + /// + public bool TryPickCrawlPagesSourceVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CrawlPagesSourceVariant2? value) + { + value = CrawlPagesSourceVariant2; + return IsCrawlPagesSourceVariant2; + } + + /// + /// + /// + public global::Vectara.CrawlPagesSourceVariant2 PickCrawlPagesSourceVariant2() => IsCrawlPagesSourceVariant2 + ? CrawlPagesSourceVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'CrawlPagesSourceVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CrawlPagesSource(global::Vectara.BaseCrawlPagesSource value) => new CrawlPagesSource((global::Vectara.BaseCrawlPagesSource?)value); + + /// + /// + /// + public static implicit operator global::Vectara.BaseCrawlPagesSource?(CrawlPagesSource @this) => @this.Base; + + /// + /// + /// + public CrawlPagesSource(global::Vectara.BaseCrawlPagesSource? value) + { + Base = value; + } + + /// + /// + /// + public static CrawlPagesSource FromBase(global::Vectara.BaseCrawlPagesSource? value) => new CrawlPagesSource(value); + + /// + /// + /// + public static implicit operator CrawlPagesSource(global::Vectara.CrawlPagesSourceVariant2 value) => new CrawlPagesSource((global::Vectara.CrawlPagesSourceVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CrawlPagesSourceVariant2?(CrawlPagesSource @this) => @this.CrawlPagesSourceVariant2; + + /// + /// + /// + public CrawlPagesSource(global::Vectara.CrawlPagesSourceVariant2? value) + { + CrawlPagesSourceVariant2 = value; + } + + /// + /// + /// + public static CrawlPagesSource FromCrawlPagesSourceVariant2(global::Vectara.CrawlPagesSourceVariant2? value) => new CrawlPagesSource(value); + + /// + /// + /// + public CrawlPagesSource( + global::Vectara.BaseCrawlPagesSource? @base, + global::Vectara.CrawlPagesSourceVariant2? crawlPagesSourceVariant2 + ) + { + Base = @base; + CrawlPagesSourceVariant2 = crawlPagesSourceVariant2; + } + + /// + /// + /// + public object? Object => + CrawlPagesSourceVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + CrawlPagesSourceVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsCrawlPagesSourceVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? crawlPagesSourceVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsCrawlPagesSourceVariant2 && crawlPagesSourceVariant2 != null) + { + return crawlPagesSourceVariant2(CrawlPagesSourceVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + + global::System.Action? crawlPagesSourceVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsCrawlPagesSourceVariant2) + { + crawlPagesSourceVariant2?.Invoke(CrawlPagesSourceVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? @base = null, + global::System.Action? crawlPagesSourceVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsCrawlPagesSourceVariant2) + { + crawlPagesSourceVariant2?.Invoke(CrawlPagesSourceVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::Vectara.BaseCrawlPagesSource), + CrawlPagesSourceVariant2, + typeof(global::Vectara.CrawlPagesSourceVariant2), + }; + 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(CrawlPagesSource other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CrawlPagesSourceVariant2, other.CrawlPagesSourceVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(CrawlPagesSource obj1, CrawlPagesSource obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CrawlPagesSource obj1, CrawlPagesSource obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CrawlPagesSource o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSourceVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSourceVariant2.Json.g.cs new file mode 100644 index 00000000..02e7ddf0 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSourceVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class CrawlPagesSourceVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.CrawlPagesSourceVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CrawlPagesSourceVariant2), + jsonSerializerContext) as global::Vectara.CrawlPagesSourceVariant2; + } + + /// + /// 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::Vectara.CrawlPagesSourceVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.CrawlPagesSourceVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CrawlPagesSourceVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSourceVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSourceVariant2.g.cs new file mode 100644 index 00000000..507e4dc4 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CrawlPagesSourceVariant2.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class CrawlPagesSourceVariant2 + { + /// + /// Default Value: crawl
+ /// Example: crawl + ///
+ /// "crawl" + /// crawl + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "crawl"; + + /// + /// Seed URLs for link-following crawl. BFS expands from these.
+ /// Example: [https://docs.example.com/] + ///
+ /// [https://docs.example.com/] + [global::System.Text.Json.Serialization.JsonPropertyName("urls")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Urls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Default Value: crawl
+ /// Example: crawl + /// + /// + /// Seed URLs for link-following crawl. BFS expands from these.
+ /// Example: [https://docs.example.com/] + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CrawlPagesSourceVariant2( + string type, + global::System.Collections.Generic.IList urls) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Urls = urls ?? throw new global::System.ArgumentNullException(nameof(urls)); + } + + /// + /// Initializes a new instance of the class. + /// + public CrawlPagesSourceVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreatePipelineDeadLetterEntryRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreatePipelineDeadLetterEntryRequest.g.cs index be0f1380..5f43e263 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.CreatePipelineDeadLetterEntryRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.CreatePipelineDeadLetterEntryRequest.g.cs @@ -13,7 +13,8 @@ public sealed partial class CreatePipelineDeadLetterEntryRequest /// /// The identifier for the source record to add. Format depends on connector type:
/// - S3: the object key (e.g. `legal/contracts/doc.pdf`)
- /// - SharePoint: the drive item ID + /// - SharePoint: the drive item ID
+ /// - Web: the canonicalized URL (e.g. `https://docs.example.com/page`) ///
[global::System.Text.Json.Serialization.JsonPropertyName("source_record_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -37,7 +38,8 @@ public sealed partial class CreatePipelineDeadLetterEntryRequest /// /// The identifier for the source record to add. Format depends on connector type:
/// - S3: the object key (e.g. `legal/contracts/doc.pdf`)
- /// - SharePoint: the drive item ID + /// - SharePoint: the drive item ID
+ /// - Web: the canonicalized URL (e.g. `https://docs.example.com/page`) /// /// /// Optional reason for manually adding this record. diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreatePipelineRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreatePipelineRequest.g.cs index 121a7cbf..456b4188 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.CreatePipelineRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.CreatePipelineRequest.g.cs @@ -33,9 +33,9 @@ public sealed partial class CreatePipelineRequest /// The source system to ingest data from. ///
[global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.S3SourceConfigurationJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.PipelineSourceJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Vectara.S3SourceConfiguration Source { get; set; } + public required global::Vectara.PipelineSource Source { get; set; } /// /// Defines when the pipeline runs. @@ -117,7 +117,7 @@ public sealed partial class CreatePipelineRequest #endif public CreatePipelineRequest( string name, - global::Vectara.S3SourceConfiguration source, + global::Vectara.PipelineSource source, global::Vectara.PipelineTrigger trigger, global::Vectara.PipelineTransform transform, string? key, diff --git a/src/libs/Vectara/Generated/Vectara.Models.GlossaryExpansionReminder.g.cs b/src/libs/Vectara/Generated/Vectara.Models.GlossaryExpansionReminder.g.cs index 608a0e7f..617e4825 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.GlossaryExpansionReminder.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.GlossaryExpansionReminder.g.cs @@ -6,7 +6,7 @@ namespace Vectara /// /// A reminder that expands terms, acronyms, and abbreviations in user messages using a glossary.
/// When attached to a step, user input is run through the glossary's lookup index and matching
- /// terms are expanded before the message reaches the LLM. + /// terms are expanded before the message reaches the agent. ///
public sealed partial class GlossaryExpansionReminder { diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineLambdaToolConfigurationVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineLambdaToolConfigurationVariant2.g.cs index 4c822129..3a41f9dc 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.InlineLambdaToolConfigurationVariant2.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineLambdaToolConfigurationVariant2.g.cs @@ -27,7 +27,7 @@ public sealed partial class InlineLambdaToolConfigurationVariant2 public required string ToolId { get; set; } /// - /// Optional hardcoded arguments that will be passed to the lambda function. When specified, these values will be used instead of allowing the LLM to fill in those parameters.
+ /// Optional hardcoded arguments that will be passed to the lambda function. When specified, these values will be used instead of allowing the agent to fill in those parameters.
/// Example: {"custom_param":"value"} ///
/// {"custom_param":"value"} @@ -52,7 +52,7 @@ public sealed partial class InlineLambdaToolConfigurationVariant2 /// Example: tol_123e4567-e89b-12d3-a456-426614174000 /// /// - /// Optional hardcoded arguments that will be passed to the lambda function. When specified, these values will be used instead of allowing the LLM to fill in those parameters.
+ /// Optional hardcoded arguments that will be passed to the lambda function. When specified, these values will be used instead of allowing the agent to fill in those parameters.
/// Example: {"custom_param":"value"} /// #if NET7_0_OR_GREATER diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineLambdaToolConfigurationVariant2ArgumentOverride.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineLambdaToolConfigurationVariant2ArgumentOverride.g.cs index 1f70a998..49fdd8f4 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.InlineLambdaToolConfigurationVariant2ArgumentOverride.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineLambdaToolConfigurationVariant2ArgumentOverride.g.cs @@ -4,7 +4,7 @@ namespace Vectara { /// - /// Optional hardcoded arguments that will be passed to the lambda function. When specified, these values will be used instead of allowing the LLM to fill in those parameters.
+ /// Optional hardcoded arguments that will be passed to the lambda function. When specified, these values will be used instead of allowing the agent to fill in those parameters.
/// Example: {"custom_param":"value"} ///
public sealed partial class InlineLambdaToolConfigurationVariant2ArgumentOverride diff --git a/src/libs/Vectara/Generated/Vectara.Models.InputMessageEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InputMessageEventVariant2.g.cs index f18d6f6a..518ca11e 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.InputMessageEventVariant2.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.InputMessageEventVariant2.g.cs @@ -26,6 +26,13 @@ public sealed partial class InputMessageEventVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Messages { get; set; } + /// + /// Per-produced-agent-message opaque platform-specific diff against the raw event payload, capturing the exact text sent to the model at emission time.
+ /// When present, the array length MUST equal `messages.length`; the platform throws on mismatch. When absent the platform reconstructs the rendering on read. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("message_diffs")] + public global::System.Collections.Generic.IList? MessageDiffs { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -43,15 +50,21 @@ public sealed partial class InputMessageEventVariant2 /// List of inputs that make up this message.
/// Example: [{"type":"text","content":"I need help with my widget installation"}] /// + /// + /// Per-produced-agent-message opaque platform-specific diff against the raw event payload, capturing the exact text sent to the model at emission time.
+ /// When present, the array length MUST equal `messages.length`; the platform throws on mismatch. When absent the platform reconstructs the rendering on read. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InputMessageEventVariant2( string type, - global::System.Collections.Generic.IList messages) + global::System.Collections.Generic.IList messages, + global::System.Collections.Generic.IList? messageDiffs) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); + this.MessageDiffs = messageDiffs; } /// diff --git a/src/libs/Vectara/Generated/Vectara.Models.NextStep.g.cs b/src/libs/Vectara/Generated/Vectara.Models.NextStep.g.cs index 0cc8a748..96485de7 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.NextStep.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.NextStep.g.cs @@ -42,8 +42,8 @@ public sealed partial class NextStep /// - `$.agent.metadata.<key>` — agent metadata fields
/// - `$.session.metadata.<key>` — session metadata fields
/// - `$.tools.<tool_config_name>.outputs.latest.<field>` — latest tool output fields
- /// - `$.output.text` — LLM text output (when output_parser is `default`)
- /// - `$.output.<field>` — LLM structured output fields (when output_parser is `structured`)
+ /// - `$.output.text` — agent text output (when output_parser is `default`)
+ /// - `$.output.<field>` — agent structured output fields (when output_parser is `structured`)
/// Example: get('$.output.intent') == 'sales' ///
/// get('$.output.intent') == 'sales' @@ -108,8 +108,8 @@ public sealed partial class NextStep /// - `$.agent.metadata.<key>` — agent metadata fields
/// - `$.session.metadata.<key>` — session metadata fields
/// - `$.tools.<tool_config_name>.outputs.latest.<field>` — latest tool output fields
- /// - `$.output.text` — LLM text output (when output_parser is `default`)
- /// - `$.output.<field>` — LLM structured output fields (when output_parser is `structured`)
+ /// - `$.output.text` — agent text output (when output_parser is `default`)
+ /// - `$.output.<field>` — agent structured output fields (when output_parser is `structured`)
/// Example: get('$.output.intent') == 'sales' /// #if NET7_0_OR_GREATER diff --git a/src/libs/Vectara/Generated/Vectara.Models.Pipeline.g.cs b/src/libs/Vectara/Generated/Vectara.Models.Pipeline.g.cs index 1e65b7c1..db4f84bf 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.Pipeline.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.Pipeline.g.cs @@ -47,9 +47,9 @@ public sealed partial class Pipeline /// The source system to ingest data from. ///
[global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.S3SourceConfigurationJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.PipelineSourceJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Vectara.S3SourceConfiguration Source { get; set; } + public required global::Vectara.PipelineSource Source { get; set; } /// /// Defines when the pipeline runs. @@ -189,7 +189,7 @@ public sealed partial class Pipeline public Pipeline( string key, string name, - global::Vectara.S3SourceConfiguration source, + global::Vectara.PipelineSource source, global::Vectara.PipelineTrigger trigger, global::Vectara.PipelineTransform transform, global::Vectara.PipelineSyncMode syncMode, diff --git a/src/libs/Vectara/Generated/Vectara.Models.PipelineDeadLetterEntry.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineDeadLetterEntry.g.cs index 48a42d6d..4eccabcb 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.PipelineDeadLetterEntry.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineDeadLetterEntry.g.cs @@ -23,7 +23,8 @@ public sealed partial class PipelineDeadLetterEntry /// /// The identifier for the source record. Format depends on connector type:
/// - S3: the object key (e.g. `legal/contracts/doc.pdf`)
- /// - SharePoint: the drive item ID + /// - SharePoint: the drive item ID
+ /// - Web: the canonicalized URL (e.g. `https://docs.example.com/page`) ///
[global::System.Text.Json.Serialization.JsonPropertyName("source_record_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -89,7 +90,8 @@ public sealed partial class PipelineDeadLetterEntry /// /// The identifier for the source record. Format depends on connector type:
/// - S3: the object key (e.g. `legal/contracts/doc.pdf`)
- /// - SharePoint: the drive item ID + /// - SharePoint: the drive item ID
+ /// - Web: the canonicalized URL (e.g. `https://docs.example.com/page`) /// /// /// The status of a dead letter entry. diff --git a/src/libs/Vectara/Generated/Vectara.Models.PipelineSource.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineSource.g.cs index 7070290b..41ddab76 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.PipelineSource.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineSource.g.cs @@ -50,6 +50,44 @@ public bool TryPickS3( public global::Vectara.S3SourceConfiguration PickS3() => IsS3 ? S3!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); + + /// + /// Configuration for ingesting pages from a website. Politeness, limits, and auth are configured
+ /// here; the `pages_source` field selects how URLs are discovered (sitemap, crawl, or both). + ///
+#if NET6_0_OR_GREATER + public global::Vectara.WebSourceConfiguration? Web { get; init; } +#else + public global::Vectara.WebSourceConfiguration? Web { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Web))] +#endif + public bool IsWeb => Web != null; + + /// + /// + /// + public bool TryPickWeb( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.WebSourceConfiguration? value) + { + value = Web; + return IsWeb; + } + + /// + /// + /// + public global::Vectara.WebSourceConfiguration PickWeb() => IsWeb + ? Web!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Web' but the value was {ToString()}."); /// /// /// @@ -73,23 +111,49 @@ public PipelineSource(global::Vectara.S3SourceConfiguration? value) ///
public static PipelineSource FromS3(global::Vectara.S3SourceConfiguration? value) => new PipelineSource(value); + /// + /// + /// + public static implicit operator PipelineSource(global::Vectara.WebSourceConfiguration value) => new PipelineSource((global::Vectara.WebSourceConfiguration?)value); + + /// + /// + /// + public static implicit operator global::Vectara.WebSourceConfiguration?(PipelineSource @this) => @this.Web; + + /// + /// + /// + public PipelineSource(global::Vectara.WebSourceConfiguration? value) + { + Web = value; + } + + /// + /// + /// + public static PipelineSource FromWeb(global::Vectara.WebSourceConfiguration? value) => new PipelineSource(value); + /// /// /// public PipelineSource( global::Vectara.PipelineSourceDiscriminatorType? type, - global::Vectara.S3SourceConfiguration? s3 + global::Vectara.S3SourceConfiguration? s3, + global::Vectara.WebSourceConfiguration? web ) { Type = type; S3 = s3; + Web = web; } /// /// /// public object? Object => + Web as object ?? S3 as object ; @@ -97,7 +161,8 @@ S3 as object /// ///
public override string? ToString() => - S3?.ToString() + S3?.ToString() ?? + Web?.ToString() ; /// @@ -105,7 +170,7 @@ S3 as object /// public bool Validate() { - return IsS3; + return IsS3 && !IsWeb || !IsS3 && IsWeb; } /// @@ -113,6 +178,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? s3 = null, + global::System.Func? web = null, bool validate = true) { if (validate) @@ -124,6 +190,10 @@ public bool Validate() { return s3(S3!); } + else if (IsWeb && web != null) + { + return web(Web!); + } return default(TResult); } @@ -133,6 +203,8 @@ public bool Validate() ///
public void Match( global::System.Action? s3 = null, + + global::System.Action? web = null, bool validate = true) { if (validate) @@ -144,6 +216,10 @@ public void Match( { s3?.Invoke(S3!); } + else if (IsWeb) + { + web?.Invoke(Web!); + } } /// @@ -151,6 +227,7 @@ public void Match( /// public void Switch( global::System.Action? s3 = null, + global::System.Action? web = null, bool validate = true) { if (validate) @@ -162,6 +239,10 @@ public void Switch( { s3?.Invoke(S3!); } + else if (IsWeb) + { + web?.Invoke(Web!); + } } /// @@ -173,6 +254,8 @@ public override int GetHashCode() { S3, typeof(global::Vectara.S3SourceConfiguration), + Web, + typeof(global::Vectara.WebSourceConfiguration), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -189,7 +272,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(PipelineSource other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(S3, other.S3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(S3, other.S3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Web, other.Web) ; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.PipelineSourceDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineSourceDiscriminatorType.g.cs index 5d3da86f..9acfd5d4 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.PipelineSourceDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineSourceDiscriminatorType.g.cs @@ -12,6 +12,10 @@ public enum PipelineSourceDiscriminatorType /// /// S3, + /// + /// + /// + Web, } /// @@ -27,6 +31,7 @@ public static string ToValueString(this PipelineSourceDiscriminatorType value) return value switch { PipelineSourceDiscriminatorType.S3 => "s3", + PipelineSourceDiscriminatorType.Web => "web", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -38,6 +43,7 @@ public static string ToValueString(this PipelineSourceDiscriminatorType value) return value switch { "s3" => PipelineSourceDiscriminatorType.S3, + "web" => PipelineSourceDiscriminatorType.Web, _ => null, }; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSource.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSource.Json.g.cs new file mode 100644 index 00000000..c840d2fa --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct SitemapCrawlPagesSource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.SitemapCrawlPagesSource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.SitemapCrawlPagesSource), + jsonSerializerContext) as global::Vectara.SitemapCrawlPagesSource?; + } + + /// + /// 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::Vectara.SitemapCrawlPagesSource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.SitemapCrawlPagesSource), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.SitemapCrawlPagesSource?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSource.g.cs b/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSource.g.cs new file mode 100644 index 00000000..6b34dece --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSource.g.cs @@ -0,0 +1,297 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// Read pages from sitemaps AND crawl outward via link-following. Sitemap entries themselves
+ /// serve as crawl seeds; `urls` is optional and provides additional explicit seeds. + ///
+ public readonly partial struct SitemapCrawlPagesSource : global::System.IEquatable + { + /// + /// Shared BFS knobs for crawl-mode page-source variants (CrawlPagesSource, SitemapCrawlPagesSource).
+ /// Depth and URL filters; seed lists differ per variant and live on the leaf types. + ///
+#if NET6_0_OR_GREATER + public global::Vectara.BaseCrawlPagesSource? Base { get; init; } +#else + public global::Vectara.BaseCrawlPagesSource? Base { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; + + /// + /// + /// + public bool TryPickBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.BaseCrawlPagesSource? value) + { + value = Base; + return IsBase; + } + + /// + /// + /// + public global::Vectara.BaseCrawlPagesSource PickBase() => IsBase + ? Base! + : throw new global::System.InvalidOperationException($"Expected union variant 'Base' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.SitemapCrawlPagesSourceVariant2? SitemapCrawlPagesSourceVariant2 { get; init; } +#else + public global::Vectara.SitemapCrawlPagesSourceVariant2? SitemapCrawlPagesSourceVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SitemapCrawlPagesSourceVariant2))] +#endif + public bool IsSitemapCrawlPagesSourceVariant2 => SitemapCrawlPagesSourceVariant2 != null; + + /// + /// + /// + public bool TryPickSitemapCrawlPagesSourceVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.SitemapCrawlPagesSourceVariant2? value) + { + value = SitemapCrawlPagesSourceVariant2; + return IsSitemapCrawlPagesSourceVariant2; + } + + /// + /// + /// + public global::Vectara.SitemapCrawlPagesSourceVariant2 PickSitemapCrawlPagesSourceVariant2() => IsSitemapCrawlPagesSourceVariant2 + ? SitemapCrawlPagesSourceVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'SitemapCrawlPagesSourceVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator SitemapCrawlPagesSource(global::Vectara.BaseCrawlPagesSource value) => new SitemapCrawlPagesSource((global::Vectara.BaseCrawlPagesSource?)value); + + /// + /// + /// + public static implicit operator global::Vectara.BaseCrawlPagesSource?(SitemapCrawlPagesSource @this) => @this.Base; + + /// + /// + /// + public SitemapCrawlPagesSource(global::Vectara.BaseCrawlPagesSource? value) + { + Base = value; + } + + /// + /// + /// + public static SitemapCrawlPagesSource FromBase(global::Vectara.BaseCrawlPagesSource? value) => new SitemapCrawlPagesSource(value); + + /// + /// + /// + public static implicit operator SitemapCrawlPagesSource(global::Vectara.SitemapCrawlPagesSourceVariant2 value) => new SitemapCrawlPagesSource((global::Vectara.SitemapCrawlPagesSourceVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.SitemapCrawlPagesSourceVariant2?(SitemapCrawlPagesSource @this) => @this.SitemapCrawlPagesSourceVariant2; + + /// + /// + /// + public SitemapCrawlPagesSource(global::Vectara.SitemapCrawlPagesSourceVariant2? value) + { + SitemapCrawlPagesSourceVariant2 = value; + } + + /// + /// + /// + public static SitemapCrawlPagesSource FromSitemapCrawlPagesSourceVariant2(global::Vectara.SitemapCrawlPagesSourceVariant2? value) => new SitemapCrawlPagesSource(value); + + /// + /// + /// + public SitemapCrawlPagesSource( + global::Vectara.BaseCrawlPagesSource? @base, + global::Vectara.SitemapCrawlPagesSourceVariant2? sitemapCrawlPagesSourceVariant2 + ) + { + Base = @base; + SitemapCrawlPagesSourceVariant2 = sitemapCrawlPagesSourceVariant2; + } + + /// + /// + /// + public object? Object => + SitemapCrawlPagesSourceVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + SitemapCrawlPagesSourceVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsSitemapCrawlPagesSourceVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? sitemapCrawlPagesSourceVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsSitemapCrawlPagesSourceVariant2 && sitemapCrawlPagesSourceVariant2 != null) + { + return sitemapCrawlPagesSourceVariant2(SitemapCrawlPagesSourceVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + + global::System.Action? sitemapCrawlPagesSourceVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsSitemapCrawlPagesSourceVariant2) + { + sitemapCrawlPagesSourceVariant2?.Invoke(SitemapCrawlPagesSourceVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? @base = null, + global::System.Action? sitemapCrawlPagesSourceVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsSitemapCrawlPagesSourceVariant2) + { + sitemapCrawlPagesSourceVariant2?.Invoke(SitemapCrawlPagesSourceVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::Vectara.BaseCrawlPagesSource), + SitemapCrawlPagesSourceVariant2, + typeof(global::Vectara.SitemapCrawlPagesSourceVariant2), + }; + 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(SitemapCrawlPagesSource other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SitemapCrawlPagesSourceVariant2, other.SitemapCrawlPagesSourceVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(SitemapCrawlPagesSource obj1, SitemapCrawlPagesSource obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(SitemapCrawlPagesSource obj1, SitemapCrawlPagesSource obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is SitemapCrawlPagesSource o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSourceVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSourceVariant2.Json.g.cs new file mode 100644 index 00000000..193a3d9a --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSourceVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class SitemapCrawlPagesSourceVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.SitemapCrawlPagesSourceVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.SitemapCrawlPagesSourceVariant2), + jsonSerializerContext) as global::Vectara.SitemapCrawlPagesSourceVariant2; + } + + /// + /// 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::Vectara.SitemapCrawlPagesSourceVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.SitemapCrawlPagesSourceVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.SitemapCrawlPagesSourceVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSourceVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSourceVariant2.g.cs new file mode 100644 index 00000000..2701dc29 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.SitemapCrawlPagesSourceVariant2.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class SitemapCrawlPagesSourceVariant2 + { + /// + /// Default Value: sitemap_crawl
+ /// Example: sitemap_crawl + ///
+ /// "sitemap_crawl" + /// sitemap_crawl + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "sitemap_crawl"; + + /// + /// Optional additional seed URLs. Sitemap entries are also used as crawl seeds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("urls")] + public global::System.Collections.Generic.IList? Urls { get; set; } + + /// + /// Sitemap URLs to read; their entries become the initial crawl seeds.
+ /// Example: [https://docs.example.com/sitemap.xml] + ///
+ /// [https://docs.example.com/sitemap.xml] + [global::System.Text.Json.Serialization.JsonPropertyName("sitemap_urls")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SitemapUrls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Default Value: sitemap_crawl
+ /// Example: sitemap_crawl + /// + /// + /// Sitemap URLs to read; their entries become the initial crawl seeds.
+ /// Example: [https://docs.example.com/sitemap.xml] + /// + /// + /// Optional additional seed URLs. Sitemap entries are also used as crawl seeds. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SitemapCrawlPagesSourceVariant2( + string type, + global::System.Collections.Generic.IList sitemapUrls, + global::System.Collections.Generic.IList? urls) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Urls = urls; + this.SitemapUrls = sitemapUrls ?? throw new global::System.ArgumentNullException(nameof(sitemapUrls)); + } + + /// + /// Initializes a new instance of the class. + /// + public SitemapCrawlPagesSourceVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.SitemapPagesSource.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.SitemapPagesSource.Json.g.cs new file mode 100644 index 00000000..c29ad474 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.SitemapPagesSource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class SitemapPagesSource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.SitemapPagesSource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.SitemapPagesSource), + jsonSerializerContext) as global::Vectara.SitemapPagesSource; + } + + /// + /// 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::Vectara.SitemapPagesSource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.SitemapPagesSource), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.SitemapPagesSource; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.SitemapPagesSource.g.cs b/src/libs/Vectara/Generated/Vectara.Models.SitemapPagesSource.g.cs new file mode 100644 index 00000000..1591fb8c --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.SitemapPagesSource.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// Read pages enumerated by one or more sitemaps (`sitemap.xml`, `sitemap-index.xml`, or gzipped
+ /// variants). Per-URL change detection uses the sitemap's `<lastmod>`. No link-following. + ///
+ public sealed partial class SitemapPagesSource + { + /// + /// Default Value: sitemap
+ /// Example: sitemap + ///
+ /// "sitemap" + /// sitemap + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "sitemap"; + + /// + /// Sitemap URLs to read. At least one is required.
+ /// Example: [https://docs.example.com/sitemap.xml] + ///
+ /// [https://docs.example.com/sitemap.xml] + [global::System.Text.Json.Serialization.JsonPropertyName("sitemap_urls")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SitemapUrls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Default Value: sitemap
+ /// Example: sitemap + /// + /// + /// Sitemap URLs to read. At least one is required.
+ /// Example: [https://docs.example.com/sitemap.xml] + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SitemapPagesSource( + string type, + global::System.Collections.Generic.IList sitemapUrls) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.SitemapUrls = sitemapUrls ?? throw new global::System.ArgumentNullException(nameof(sitemapUrls)); + } + + /// + /// Initializes a new instance of the class. + /// + public SitemapPagesSource() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.StepTransitionEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.StepTransitionEventVariant2.g.cs index 836eb97d..e37f458f 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.StepTransitionEventVariant2.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.StepTransitionEventVariant2.g.cs @@ -32,7 +32,7 @@ public sealed partial class StepTransitionEventVariant2 public required string ToStep { get; set; } /// - /// The handoff message content for the LLM. + /// The handoff message content for the agent. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] [global::System.Text.Json.Serialization.JsonRequired] @@ -58,7 +58,7 @@ public sealed partial class StepTransitionEventVariant2 /// The name of the step being transitioned to. /// /// - /// The handoff message content for the LLM. + /// The handoff message content for the agent. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Vectara/Generated/Vectara.Models.StreamingAgentOutputEnd.g.cs b/src/libs/Vectara/Generated/Vectara.Models.StreamingAgentOutputEnd.g.cs index f6d1d80b..bccfd288 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.StreamingAgentOutputEnd.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.StreamingAgentOutputEnd.g.cs @@ -20,7 +20,8 @@ public sealed partial class StreamingAgentOutputEnd public required string Type { get; set; } = "streaming_agent_output_end"; /// - /// The ID of the persisted AgentOutputEvent.
+ /// The ID of the persisted AgentOutputEvent for this streamed output.
+ /// Use this as the `since` cursor on a subsequent reconnect to resume after this output.
/// Example: aev_user_001 ///
/// aev_user_001 @@ -55,7 +56,8 @@ public sealed partial class StreamingAgentOutputEnd /// Example: 2024-01-15T10:35:00Z /// /// - /// The ID of the persisted AgentOutputEvent.
+ /// The ID of the persisted AgentOutputEvent for this streamed output.
+ /// Use this as the `since` cursor on a subsequent reconnect to resume after this output.
/// Example: aev_user_001 /// #if NET7_0_OR_GREATER diff --git a/src/libs/Vectara/Generated/Vectara.Models.StructuredOutputEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.StructuredOutputEvent.g.cs index 0b327b22..5958cb11 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.StructuredOutputEvent.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.StructuredOutputEvent.g.cs @@ -7,7 +7,7 @@ namespace Vectara /// /// An event representing a complete agent response with structured JSON content conforming to a schema.
/// This event is published instead of AgentOutputEvent when the agent's output_parser is configured
- /// with type "structured". It contains the LLM's final response parsed as validated JSON that
+ /// with type "structured". It contains the agent's final response parsed as validated JSON that
/// conforms to the schema specified in the StructuredOutputParser configuration.
/// When streaming is enabled, this event appears as a single complete event (not streamed in chunks)
/// after any tool interactions are complete. The content field contains the parsed JSON,
diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolBase.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolBase.g.cs index 82f5c68b..783914b0 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.ToolBase.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolBase.g.cs @@ -93,6 +93,46 @@ public sealed partial class ToolBase [global::System.Text.Json.Serialization.JsonRequired] public required object InputSchema { get; set; } + /// + /// The JSON schema that describes the structure of the tool's output. May be used by clients to
+ /// understand the shape of tool responses and to author `default_output_transform` jq expressions. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] + public object? OutputSchema { get; set; } + + /// + /// An optional jq expression applied to the tool's JSON output before it is returned to the LLM.
+ /// Use this to project, filter, or summarize tool output to keep responses concise and on-topic.
+ /// The expression operates on the tool's response JSON and the result replaces the original output.
+ /// If the expression fails to compile or evaluate at runtime, the tool call is reported to the LLM as
+ /// an error so the agent can react.
+ /// Examples:
+ /// - `.results | map({title, url})` — keep only title/url for each result
+ /// - `.items[0:5]` — first 5 items
+ /// - `del(.debug)` — drop a noisy field
+ /// Example: .results | map({title, url}) + ///
+ /// .results | map({title, url}) + [global::System.Text.Json.Serialization.JsonPropertyName("default_output_transform")] + public string? DefaultOutputTransform { get; set; } + + /// + /// Optional hardcoded arguments for tool calls. The key specifies the location in the tool arguments to overide, and the value specifies what to override with. The LLM will not be able to change the parameters, nor know those values exist within the tool.
+ /// The values can also be dynamic references to context values using $ref with dot notation path syntax:
+ /// - Static value: "fixed_value" or 123
+ /// - Dynamic reference: `{"$ref": "session.metadata.field_name"}`
+ /// References are resolved at runtime from context:
+ /// - session.metadata.* - Access session metadata fields
+ /// - agent.metadata.* - Access agent metadata fields
+ /// Example:
+ /// `{"query": {"$ref": ".session.metadata.query"}}`
+ /// If you want to have a real value `"$ref"` use `"$$ref"`, that is you can escape the first $ by using $$.
+ /// Example: {"max_results":10} + ///
+ /// {"max_results":10} + [global::System.Text.Json.Serialization.JsonPropertyName("default_argument_override")] + public object? DefaultArgumentOverride { get; set; } + /// /// Functional category of the tool (e.g., retrieval, artifacts, indexing, utilities, orchestration). /// @@ -178,6 +218,35 @@ public sealed partial class ToolBase /// /// Timestamp when the tool was last updated. /// + /// + /// The JSON schema that describes the structure of the tool's output. May be used by clients to
+ /// understand the shape of tool responses and to author `default_output_transform` jq expressions. + /// + /// + /// An optional jq expression applied to the tool's JSON output before it is returned to the LLM.
+ /// Use this to project, filter, or summarize tool output to keep responses concise and on-topic.
+ /// The expression operates on the tool's response JSON and the result replaces the original output.
+ /// If the expression fails to compile or evaluate at runtime, the tool call is reported to the LLM as
+ /// an error so the agent can react.
+ /// Examples:
+ /// - `.results | map({title, url})` — keep only title/url for each result
+ /// - `.items[0:5]` — first 5 items
+ /// - `del(.debug)` — drop a noisy field
+ /// Example: .results | map({title, url}) + /// + /// + /// Optional hardcoded arguments for tool calls. The key specifies the location in the tool arguments to overide, and the value specifies what to override with. The LLM will not be able to change the parameters, nor know those values exist within the tool.
+ /// The values can also be dynamic references to context values using $ref with dot notation path syntax:
+ /// - Static value: "fixed_value" or 123
+ /// - Dynamic reference: `{"$ref": "session.metadata.field_name"}`
+ /// References are resolved at runtime from context:
+ /// - session.metadata.* - Access session metadata fields
+ /// - agent.metadata.* - Access agent metadata fields
+ /// Example:
+ /// `{"query": {"$ref": ".session.metadata.query"}}`
+ /// If you want to have a real value `"$ref"` use `"$$ref"`, that is you can escape the first $ by using $$.
+ /// Example: {"max_results":10} + /// /// /// Functional category of the tool (e.g., retrieval, artifacts, indexing, utilities, orchestration). /// @@ -208,6 +277,9 @@ public ToolBase( bool? experimental, global::System.DateTime? createdAt, global::System.DateTime? updatedAt, + object? outputSchema, + string? defaultOutputTransform, + object? defaultArgumentOverride, string? category, string? lineage, string? version, @@ -224,6 +296,9 @@ public ToolBase( this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; this.InputSchema = inputSchema ?? throw new global::System.ArgumentNullException(nameof(inputSchema)); + this.OutputSchema = outputSchema; + this.DefaultOutputTransform = defaultOutputTransform; + this.DefaultArgumentOverride = defaultArgumentOverride; this.Category = category; this.Lineage = lineage; this.Version = version; diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolBaseDefaultArgumentOverride.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolBaseDefaultArgumentOverride.Json.g.cs new file mode 100644 index 00000000..b454a2a4 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolBaseDefaultArgumentOverride.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class ToolBaseDefaultArgumentOverride + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.ToolBaseDefaultArgumentOverride? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ToolBaseDefaultArgumentOverride), + jsonSerializerContext) as global::Vectara.ToolBaseDefaultArgumentOverride; + } + + /// + /// 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::Vectara.ToolBaseDefaultArgumentOverride? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.ToolBaseDefaultArgumentOverride), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ToolBaseDefaultArgumentOverride; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolBaseDefaultArgumentOverride.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolBaseDefaultArgumentOverride.g.cs new file mode 100644 index 00000000..045667c5 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolBaseDefaultArgumentOverride.g.cs @@ -0,0 +1,29 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// Optional hardcoded arguments for tool calls. The key specifies the location in the tool arguments to overide, and the value specifies what to override with. The LLM will not be able to change the parameters, nor know those values exist within the tool.
+ /// The values can also be dynamic references to context values using $ref with dot notation path syntax:
+ /// - Static value: "fixed_value" or 123
+ /// - Dynamic reference: `{"$ref": "session.metadata.field_name"}`
+ /// References are resolved at runtime from context:
+ /// - session.metadata.* - Access session metadata fields
+ /// - agent.metadata.* - Access agent metadata fields
+ /// Example:
+ /// `{"query": {"$ref": ".session.metadata.query"}}`
+ /// If you want to have a real value `"$ref"` use `"$$ref"`, that is you can escape the first $ by using $$.
+ /// Example: {"max_results":10} + ///
+ public sealed partial class ToolBaseDefaultArgumentOverride + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolBaseOutputSchema.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolBaseOutputSchema.Json.g.cs new file mode 100644 index 00000000..cf1d1235 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolBaseOutputSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class ToolBaseOutputSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.ToolBaseOutputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ToolBaseOutputSchema), + jsonSerializerContext) as global::Vectara.ToolBaseOutputSchema; + } + + /// + /// 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::Vectara.ToolBaseOutputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.ToolBaseOutputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ToolBaseOutputSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolBaseOutputSchema.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolBaseOutputSchema.g.cs new file mode 100644 index 00000000..23cb4d77 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolBaseOutputSchema.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// The JSON schema that describes the structure of the tool's output. May be used by clients to
+ /// understand the shape of tool responses and to author `default_output_transform` jq expressions. + ///
+ public sealed partial class ToolBaseOutputSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolInputEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolInputEventVariant2.g.cs index 51c97758..9b072644 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.ToolInputEventVariant2.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolInputEventVariant2.g.cs @@ -53,6 +53,14 @@ public sealed partial class ToolInputEventVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required object ToolInput { get; set; } + /// + /// Top-level field paths in `tool_input` whose values were filled by the tool configuration's argument overrides at emission time, not produced by the
+ /// agent. On replay these paths are stripped from the rendered tool call so the model sees only what it originally generated, regardless of how the tool
+ /// configuration's overrides have changed since. Paths support dot-notation (e.g. `config.auth.token`). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("argument_override_paths")] + public global::System.Collections.Generic.IList? ArgumentOverridePaths { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -82,6 +90,11 @@ public sealed partial class ToolInputEventVariant2 /// Input data for the tool.
/// Example: {"query":"weather in San Francisco"} /// + /// + /// Top-level field paths in `tool_input` whose values were filled by the tool configuration's argument overrides at emission time, not produced by the
+ /// agent. On replay these paths are stripped from the rendered tool call so the model sees only what it originally generated, regardless of how the tool
+ /// configuration's overrides have changed since. Paths support dot-notation (e.g. `config.auth.token`). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -90,13 +103,15 @@ public ToolInputEventVariant2( string toolCallId, string toolConfigurationName, string toolName, - object toolInput) + object toolInput, + global::System.Collections.Generic.IList? argumentOverridePaths) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.ToolCallId = toolCallId ?? throw new global::System.ArgumentNullException(nameof(toolCallId)); this.ToolConfigurationName = toolConfigurationName ?? throw new global::System.ArgumentNullException(nameof(toolConfigurationName)); this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName)); this.ToolInput = toolInput ?? throw new global::System.ArgumentNullException(nameof(toolInput)); + this.ArgumentOverridePaths = argumentOverridePaths; } /// diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineRequest.g.cs index 02802eef..3ab07066 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineRequest.g.cs @@ -26,8 +26,8 @@ public sealed partial class UpdatePipelineRequest /// Source configuration for partial updates. Only provided fields are changed; credentials are optional. /// [global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.UpdateS3SourceConfigurationJsonConverter))] - public global::Vectara.UpdateS3SourceConfiguration? Source { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.UpdatePipelineSourceJsonConverter))] + public global::Vectara.UpdatePipelineSource? Source { get; set; } /// /// Defines when the pipeline runs. @@ -101,7 +101,7 @@ public sealed partial class UpdatePipelineRequest public UpdatePipelineRequest( string? name, string? description, - global::Vectara.UpdateS3SourceConfiguration? source, + global::Vectara.UpdatePipelineSource? source, global::Vectara.PipelineTrigger? trigger, global::Vectara.PipelineTransform? transform, global::Vectara.PipelineSyncMode? syncMode, diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineSource.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineSource.g.cs index a26b51c5..75cb2223 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineSource.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineSource.g.cs @@ -50,6 +50,45 @@ public bool TryPickS3( public global::Vectara.UpdateS3SourceConfiguration PickS3() => IsS3 ? S3!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); + + /// + /// Partial update for a `web` source configuration. Top-level fields are merged into the existing
+ /// record; if `pages_source` is provided, the entire `pages_source` object is replaced (i.e.,
+ /// switching modes or changing per-mode fields requires a complete `pages_source` object). + ///
+#if NET6_0_OR_GREATER + public global::Vectara.UpdateWebSourceConfiguration? Web { get; init; } +#else + public global::Vectara.UpdateWebSourceConfiguration? Web { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Web))] +#endif + public bool IsWeb => Web != null; + + /// + /// + /// + public bool TryPickWeb( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.UpdateWebSourceConfiguration? value) + { + value = Web; + return IsWeb; + } + + /// + /// + /// + public global::Vectara.UpdateWebSourceConfiguration PickWeb() => IsWeb + ? Web!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Web' but the value was {ToString()}."); /// /// /// @@ -73,23 +112,49 @@ public UpdatePipelineSource(global::Vectara.UpdateS3SourceConfiguration? value) ///
public static UpdatePipelineSource FromS3(global::Vectara.UpdateS3SourceConfiguration? value) => new UpdatePipelineSource(value); + /// + /// + /// + public static implicit operator UpdatePipelineSource(global::Vectara.UpdateWebSourceConfiguration value) => new UpdatePipelineSource((global::Vectara.UpdateWebSourceConfiguration?)value); + + /// + /// + /// + public static implicit operator global::Vectara.UpdateWebSourceConfiguration?(UpdatePipelineSource @this) => @this.Web; + + /// + /// + /// + public UpdatePipelineSource(global::Vectara.UpdateWebSourceConfiguration? value) + { + Web = value; + } + + /// + /// + /// + public static UpdatePipelineSource FromWeb(global::Vectara.UpdateWebSourceConfiguration? value) => new UpdatePipelineSource(value); + /// /// /// public UpdatePipelineSource( global::Vectara.UpdatePipelineSourceDiscriminatorType? type, - global::Vectara.UpdateS3SourceConfiguration? s3 + global::Vectara.UpdateS3SourceConfiguration? s3, + global::Vectara.UpdateWebSourceConfiguration? web ) { Type = type; S3 = s3; + Web = web; } /// /// /// public object? Object => + Web as object ?? S3 as object ; @@ -97,7 +162,8 @@ S3 as object /// ///
public override string? ToString() => - S3?.ToString() + S3?.ToString() ?? + Web?.ToString() ; /// @@ -105,7 +171,7 @@ S3 as object /// public bool Validate() { - return IsS3; + return IsS3 && !IsWeb || !IsS3 && IsWeb; } /// @@ -113,6 +179,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? s3 = null, + global::System.Func? web = null, bool validate = true) { if (validate) @@ -124,6 +191,10 @@ public bool Validate() { return s3(S3!); } + else if (IsWeb && web != null) + { + return web(Web!); + } return default(TResult); } @@ -133,6 +204,8 @@ public bool Validate() ///
public void Match( global::System.Action? s3 = null, + + global::System.Action? web = null, bool validate = true) { if (validate) @@ -144,6 +217,10 @@ public void Match( { s3?.Invoke(S3!); } + else if (IsWeb) + { + web?.Invoke(Web!); + } } /// @@ -151,6 +228,7 @@ public void Match( /// public void Switch( global::System.Action? s3 = null, + global::System.Action? web = null, bool validate = true) { if (validate) @@ -162,6 +240,10 @@ public void Switch( { s3?.Invoke(S3!); } + else if (IsWeb) + { + web?.Invoke(Web!); + } } /// @@ -173,6 +255,8 @@ public override int GetHashCode() { S3, typeof(global::Vectara.UpdateS3SourceConfiguration), + Web, + typeof(global::Vectara.UpdateWebSourceConfiguration), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -189,7 +273,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(UpdatePipelineSource other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(S3, other.S3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(S3, other.S3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Web, other.Web) ; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineSourceDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineSourceDiscriminatorType.g.cs index 83b99086..f7eb783e 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineSourceDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdatePipelineSourceDiscriminatorType.g.cs @@ -12,6 +12,10 @@ public enum UpdatePipelineSourceDiscriminatorType /// /// S3, + /// + /// + /// + Web, } /// @@ -27,6 +31,7 @@ public static string ToValueString(this UpdatePipelineSourceDiscriminatorType va return value switch { UpdatePipelineSourceDiscriminatorType.S3 => "s3", + UpdatePipelineSourceDiscriminatorType.Web => "web", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -38,6 +43,7 @@ public static string ToValueString(this UpdatePipelineSourceDiscriminatorType va return value switch { "s3" => UpdatePipelineSourceDiscriminatorType.S3, + "web" => UpdatePipelineSourceDiscriminatorType.Web, _ => null, }; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfiguration.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfiguration.Json.g.cs new file mode 100644 index 00000000..58dd0d1e --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfiguration.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct UpdateWebSourceConfiguration + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.UpdateWebSourceConfiguration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.UpdateWebSourceConfiguration), + jsonSerializerContext) as global::Vectara.UpdateWebSourceConfiguration?; + } + + /// + /// 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::Vectara.UpdateWebSourceConfiguration? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.UpdateWebSourceConfiguration), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.UpdateWebSourceConfiguration?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfiguration.g.cs new file mode 100644 index 00000000..1b45167f --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfiguration.g.cs @@ -0,0 +1,298 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// Partial update for a `web` source configuration. Top-level fields are merged into the existing
+ /// record; if `pages_source` is provided, the entire `pages_source` object is replaced (i.e.,
+ /// switching modes or changing per-mode fields requires a complete `pages_source` object). + ///
+ public readonly partial struct UpdateWebSourceConfiguration : global::System.IEquatable + { + /// + /// Shared knobs for all web-based sources (sitemap, crawl, sitemap+crawl). Politeness, limits, auth.
+ /// Mode-specific fields (urls, sitemap_urls, BFS knobs, page count cap) live on the concrete subtypes. + ///
+#if NET6_0_OR_GREATER + public global::Vectara.BaseWebSource? Base { get; init; } +#else + public global::Vectara.BaseWebSource? Base { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; + + /// + /// + /// + public bool TryPickBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.BaseWebSource? value) + { + value = Base; + return IsBase; + } + + /// + /// + /// + public global::Vectara.BaseWebSource PickBase() => IsBase + ? Base! + : throw new global::System.InvalidOperationException($"Expected union variant 'Base' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.UpdateWebSourceConfigurationVariant2? UpdateWebSourceConfigurationVariant2 { get; init; } +#else + public global::Vectara.UpdateWebSourceConfigurationVariant2? UpdateWebSourceConfigurationVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UpdateWebSourceConfigurationVariant2))] +#endif + public bool IsUpdateWebSourceConfigurationVariant2 => UpdateWebSourceConfigurationVariant2 != null; + + /// + /// + /// + public bool TryPickUpdateWebSourceConfigurationVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.UpdateWebSourceConfigurationVariant2? value) + { + value = UpdateWebSourceConfigurationVariant2; + return IsUpdateWebSourceConfigurationVariant2; + } + + /// + /// + /// + public global::Vectara.UpdateWebSourceConfigurationVariant2 PickUpdateWebSourceConfigurationVariant2() => IsUpdateWebSourceConfigurationVariant2 + ? UpdateWebSourceConfigurationVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'UpdateWebSourceConfigurationVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator UpdateWebSourceConfiguration(global::Vectara.BaseWebSource value) => new UpdateWebSourceConfiguration((global::Vectara.BaseWebSource?)value); + + /// + /// + /// + public static implicit operator global::Vectara.BaseWebSource?(UpdateWebSourceConfiguration @this) => @this.Base; + + /// + /// + /// + public UpdateWebSourceConfiguration(global::Vectara.BaseWebSource? value) + { + Base = value; + } + + /// + /// + /// + public static UpdateWebSourceConfiguration FromBase(global::Vectara.BaseWebSource? value) => new UpdateWebSourceConfiguration(value); + + /// + /// + /// + public static implicit operator UpdateWebSourceConfiguration(global::Vectara.UpdateWebSourceConfigurationVariant2 value) => new UpdateWebSourceConfiguration((global::Vectara.UpdateWebSourceConfigurationVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.UpdateWebSourceConfigurationVariant2?(UpdateWebSourceConfiguration @this) => @this.UpdateWebSourceConfigurationVariant2; + + /// + /// + /// + public UpdateWebSourceConfiguration(global::Vectara.UpdateWebSourceConfigurationVariant2? value) + { + UpdateWebSourceConfigurationVariant2 = value; + } + + /// + /// + /// + public static UpdateWebSourceConfiguration FromUpdateWebSourceConfigurationVariant2(global::Vectara.UpdateWebSourceConfigurationVariant2? value) => new UpdateWebSourceConfiguration(value); + + /// + /// + /// + public UpdateWebSourceConfiguration( + global::Vectara.BaseWebSource? @base, + global::Vectara.UpdateWebSourceConfigurationVariant2? updateWebSourceConfigurationVariant2 + ) + { + Base = @base; + UpdateWebSourceConfigurationVariant2 = updateWebSourceConfigurationVariant2; + } + + /// + /// + /// + public object? Object => + UpdateWebSourceConfigurationVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + UpdateWebSourceConfigurationVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsUpdateWebSourceConfigurationVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? updateWebSourceConfigurationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsUpdateWebSourceConfigurationVariant2 && updateWebSourceConfigurationVariant2 != null) + { + return updateWebSourceConfigurationVariant2(UpdateWebSourceConfigurationVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + + global::System.Action? updateWebSourceConfigurationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsUpdateWebSourceConfigurationVariant2) + { + updateWebSourceConfigurationVariant2?.Invoke(UpdateWebSourceConfigurationVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? @base = null, + global::System.Action? updateWebSourceConfigurationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsUpdateWebSourceConfigurationVariant2) + { + updateWebSourceConfigurationVariant2?.Invoke(UpdateWebSourceConfigurationVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::Vectara.BaseWebSource), + UpdateWebSourceConfigurationVariant2, + typeof(global::Vectara.UpdateWebSourceConfigurationVariant2), + }; + 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(UpdateWebSourceConfiguration other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UpdateWebSourceConfigurationVariant2, other.UpdateWebSourceConfigurationVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(UpdateWebSourceConfiguration obj1, UpdateWebSourceConfiguration obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(UpdateWebSourceConfiguration obj1, UpdateWebSourceConfiguration obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is UpdateWebSourceConfiguration o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfigurationVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfigurationVariant2.Json.g.cs new file mode 100644 index 00000000..ffb16e60 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfigurationVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class UpdateWebSourceConfigurationVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.UpdateWebSourceConfigurationVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.UpdateWebSourceConfigurationVariant2), + jsonSerializerContext) as global::Vectara.UpdateWebSourceConfigurationVariant2; + } + + /// + /// 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::Vectara.UpdateWebSourceConfigurationVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.UpdateWebSourceConfigurationVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.UpdateWebSourceConfigurationVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfigurationVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfigurationVariant2.g.cs new file mode 100644 index 00000000..a6d5ab57 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdateWebSourceConfigurationVariant2.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class UpdateWebSourceConfigurationVariant2 + { + /// + /// Default Value: web
+ /// Example: web + ///
+ /// "web" + /// web + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "web"; + + /// + /// How a `web` source discovers URLs. Discriminated by `type`:
+ /// `sitemap` reads sitemap.xml only; `crawl` does BFS link-following from seed URLs;
+ /// `sitemap_crawl` reads a sitemap and crawls outward from its entries. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("pages_source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.WebPagesSourceJsonConverter))] + public global::Vectara.WebPagesSource? PagesSource { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Default Value: web
+ /// Example: web + /// + /// + /// How a `web` source discovers URLs. Discriminated by `type`:
+ /// `sitemap` reads sitemap.xml only; `crawl` does BFS link-following from seed URLs;
+ /// `sitemap_crawl` reads a sitemap and crawls outward from its entries. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateWebSourceConfigurationVariant2( + string type, + global::Vectara.WebPagesSource? pagesSource) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.PagesSource = pagesSource; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateWebSourceConfigurationVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.WebPagesSource.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSource.Json.g.cs new file mode 100644 index 00000000..faef2a3c --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct WebPagesSource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.WebPagesSource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.WebPagesSource), + jsonSerializerContext) as global::Vectara.WebPagesSource?; + } + + /// + /// 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::Vectara.WebPagesSource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.WebPagesSource), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.WebPagesSource?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.WebPagesSource.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSource.g.cs new file mode 100644 index 00000000..dcebd22c --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSource.g.cs @@ -0,0 +1,391 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// How a `web` source discovers URLs. Discriminated by `type`:
+ /// `sitemap` reads sitemap.xml only; `crawl` does BFS link-following from seed URLs;
+ /// `sitemap_crawl` reads a sitemap and crawls outward from its entries. + ///
+ public readonly partial struct WebPagesSource : global::System.IEquatable + { + /// + /// + /// + public global::Vectara.WebPagesSourceDiscriminatorType? Type { get; } + + /// + /// Read pages enumerated by one or more sitemaps (`sitemap.xml`, `sitemap-index.xml`, or gzipped
+ /// variants). Per-URL change detection uses the sitemap's `<lastmod>`. No link-following. + ///
+#if NET6_0_OR_GREATER + public global::Vectara.SitemapPagesSource? Sitemap { get; init; } +#else + public global::Vectara.SitemapPagesSource? Sitemap { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Sitemap))] +#endif + public bool IsSitemap => Sitemap != null; + + /// + /// + /// + public bool TryPickSitemap( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.SitemapPagesSource? value) + { + value = Sitemap; + return IsSitemap; + } + + /// + /// + /// + public global::Vectara.SitemapPagesSource PickSitemap() => IsSitemap + ? Sitemap! + : throw new global::System.InvalidOperationException($"Expected union variant 'Sitemap' but the value was {ToString()}."); + + /// + /// Discover pages by breadth-first link-following starting from one or more seed URLs.
+ /// Per-URL change detection uses conditional GET (added in a follow-up PR). + ///
+#if NET6_0_OR_GREATER + public global::Vectara.CrawlPagesSource? Crawl { get; init; } +#else + public global::Vectara.CrawlPagesSource? Crawl { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Crawl))] +#endif + public bool IsCrawl => Crawl != null; + + /// + /// + /// + public bool TryPickCrawl( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CrawlPagesSource? value) + { + value = Crawl; + return IsCrawl; + } + + /// + /// + /// + public global::Vectara.CrawlPagesSource PickCrawl() => IsCrawl + ? Crawl!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Crawl' but the value was {ToString()}."); + + /// + /// Read pages from sitemaps AND crawl outward via link-following. Sitemap entries themselves
+ /// serve as crawl seeds; `urls` is optional and provides additional explicit seeds. + ///
+#if NET6_0_OR_GREATER + public global::Vectara.SitemapCrawlPagesSource? SitemapCrawl { get; init; } +#else + public global::Vectara.SitemapCrawlPagesSource? SitemapCrawl { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SitemapCrawl))] +#endif + public bool IsSitemapCrawl => SitemapCrawl != null; + + /// + /// + /// + public bool TryPickSitemapCrawl( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.SitemapCrawlPagesSource? value) + { + value = SitemapCrawl; + return IsSitemapCrawl; + } + + /// + /// + /// + public global::Vectara.SitemapCrawlPagesSource PickSitemapCrawl() => IsSitemapCrawl + ? SitemapCrawl!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'SitemapCrawl' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator WebPagesSource(global::Vectara.SitemapPagesSource value) => new WebPagesSource((global::Vectara.SitemapPagesSource?)value); + + /// + /// + /// + public static implicit operator global::Vectara.SitemapPagesSource?(WebPagesSource @this) => @this.Sitemap; + + /// + /// + /// + public WebPagesSource(global::Vectara.SitemapPagesSource? value) + { + Sitemap = value; + } + + /// + /// + /// + public static WebPagesSource FromSitemap(global::Vectara.SitemapPagesSource? value) => new WebPagesSource(value); + + /// + /// + /// + public static implicit operator WebPagesSource(global::Vectara.CrawlPagesSource value) => new WebPagesSource((global::Vectara.CrawlPagesSource?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CrawlPagesSource?(WebPagesSource @this) => @this.Crawl; + + /// + /// + /// + public WebPagesSource(global::Vectara.CrawlPagesSource? value) + { + Crawl = value; + } + + /// + /// + /// + public static WebPagesSource FromCrawl(global::Vectara.CrawlPagesSource? value) => new WebPagesSource(value); + + /// + /// + /// + public static implicit operator WebPagesSource(global::Vectara.SitemapCrawlPagesSource value) => new WebPagesSource((global::Vectara.SitemapCrawlPagesSource?)value); + + /// + /// + /// + public static implicit operator global::Vectara.SitemapCrawlPagesSource?(WebPagesSource @this) => @this.SitemapCrawl; + + /// + /// + /// + public WebPagesSource(global::Vectara.SitemapCrawlPagesSource? value) + { + SitemapCrawl = value; + } + + /// + /// + /// + public static WebPagesSource FromSitemapCrawl(global::Vectara.SitemapCrawlPagesSource? value) => new WebPagesSource(value); + + /// + /// + /// + public WebPagesSource( + global::Vectara.WebPagesSourceDiscriminatorType? type, + global::Vectara.SitemapPagesSource? sitemap, + global::Vectara.CrawlPagesSource? crawl, + global::Vectara.SitemapCrawlPagesSource? sitemapCrawl + ) + { + Type = type; + + Sitemap = sitemap; + Crawl = crawl; + SitemapCrawl = sitemapCrawl; + } + + /// + /// + /// + public object? Object => + SitemapCrawl as object ?? + Crawl as object ?? + Sitemap as object + ; + + /// + /// + /// + public override string? ToString() => + Sitemap?.ToString() ?? + Crawl?.ToString() ?? + SitemapCrawl?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsSitemap && !IsCrawl && !IsSitemapCrawl || !IsSitemap && IsCrawl && !IsSitemapCrawl || !IsSitemap && !IsCrawl && IsSitemapCrawl; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? sitemap = null, + global::System.Func? crawl = null, + global::System.Func? sitemapCrawl = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSitemap && sitemap != null) + { + return sitemap(Sitemap!); + } + else if (IsCrawl && crawl != null) + { + return crawl(Crawl!); + } + else if (IsSitemapCrawl && sitemapCrawl != null) + { + return sitemapCrawl(SitemapCrawl!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? sitemap = null, + + global::System.Action? crawl = null, + + global::System.Action? sitemapCrawl = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSitemap) + { + sitemap?.Invoke(Sitemap!); + } + else if (IsCrawl) + { + crawl?.Invoke(Crawl!); + } + else if (IsSitemapCrawl) + { + sitemapCrawl?.Invoke(SitemapCrawl!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? sitemap = null, + global::System.Action? crawl = null, + global::System.Action? sitemapCrawl = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSitemap) + { + sitemap?.Invoke(Sitemap!); + } + else if (IsCrawl) + { + crawl?.Invoke(Crawl!); + } + else if (IsSitemapCrawl) + { + sitemapCrawl?.Invoke(SitemapCrawl!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Sitemap, + typeof(global::Vectara.SitemapPagesSource), + Crawl, + typeof(global::Vectara.CrawlPagesSource), + SitemapCrawl, + typeof(global::Vectara.SitemapCrawlPagesSource), + }; + 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(WebPagesSource other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Sitemap, other.Sitemap) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Crawl, other.Crawl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SitemapCrawl, other.SitemapCrawl) + ; + } + + /// + /// + /// + public static bool operator ==(WebPagesSource obj1, WebPagesSource obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(WebPagesSource obj1, WebPagesSource obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is WebPagesSource o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminator.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminator.Json.g.cs new file mode 100644 index 00000000..c212f104 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class WebPagesSourceDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.WebPagesSourceDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.WebPagesSourceDiscriminator), + jsonSerializerContext) as global::Vectara.WebPagesSourceDiscriminator; + } + + /// + /// 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::Vectara.WebPagesSourceDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.WebPagesSourceDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.WebPagesSourceDiscriminator; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminator.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminator.g.cs new file mode 100644 index 00000000..6b901ae3 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class WebPagesSourceDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.WebPagesSourceDiscriminatorTypeJsonConverter))] + public global::Vectara.WebPagesSourceDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WebPagesSourceDiscriminator( + global::Vectara.WebPagesSourceDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public WebPagesSourceDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminatorType.g.cs new file mode 100644 index 00000000..2032af8e --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.WebPagesSourceDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public enum WebPagesSourceDiscriminatorType + { + /// + /// + /// + Crawl, + /// + /// + /// + Sitemap, + /// + /// + /// + SitemapCrawl, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WebPagesSourceDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WebPagesSourceDiscriminatorType value) + { + return value switch + { + WebPagesSourceDiscriminatorType.Crawl => "crawl", + WebPagesSourceDiscriminatorType.Sitemap => "sitemap", + WebPagesSourceDiscriminatorType.SitemapCrawl => "sitemap_crawl", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WebPagesSourceDiscriminatorType? ToEnum(string value) + { + return value switch + { + "crawl" => WebPagesSourceDiscriminatorType.Crawl, + "sitemap" => WebPagesSourceDiscriminatorType.Sitemap, + "sitemap_crawl" => WebPagesSourceDiscriminatorType.SitemapCrawl, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfiguration.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfiguration.Json.g.cs new file mode 100644 index 00000000..17dfe449 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfiguration.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct WebSourceConfiguration + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.WebSourceConfiguration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.WebSourceConfiguration), + jsonSerializerContext) as global::Vectara.WebSourceConfiguration?; + } + + /// + /// 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::Vectara.WebSourceConfiguration? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.WebSourceConfiguration), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.WebSourceConfiguration?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfiguration.g.cs new file mode 100644 index 00000000..1c622d0d --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfiguration.g.cs @@ -0,0 +1,297 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// Configuration for ingesting pages from a website. Politeness, limits, and auth are configured
+ /// here; the `pages_source` field selects how URLs are discovered (sitemap, crawl, or both). + ///
+ public readonly partial struct WebSourceConfiguration : global::System.IEquatable + { + /// + /// Shared knobs for all web-based sources (sitemap, crawl, sitemap+crawl). Politeness, limits, auth.
+ /// Mode-specific fields (urls, sitemap_urls, BFS knobs, page count cap) live on the concrete subtypes. + ///
+#if NET6_0_OR_GREATER + public global::Vectara.BaseWebSource? Base { get; init; } +#else + public global::Vectara.BaseWebSource? Base { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; + + /// + /// + /// + public bool TryPickBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.BaseWebSource? value) + { + value = Base; + return IsBase; + } + + /// + /// + /// + public global::Vectara.BaseWebSource PickBase() => IsBase + ? Base! + : throw new global::System.InvalidOperationException($"Expected union variant 'Base' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.WebSourceConfigurationVariant2? WebSourceConfigurationVariant2 { get; init; } +#else + public global::Vectara.WebSourceConfigurationVariant2? WebSourceConfigurationVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSourceConfigurationVariant2))] +#endif + public bool IsWebSourceConfigurationVariant2 => WebSourceConfigurationVariant2 != null; + + /// + /// + /// + public bool TryPickWebSourceConfigurationVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.WebSourceConfigurationVariant2? value) + { + value = WebSourceConfigurationVariant2; + return IsWebSourceConfigurationVariant2; + } + + /// + /// + /// + public global::Vectara.WebSourceConfigurationVariant2 PickWebSourceConfigurationVariant2() => IsWebSourceConfigurationVariant2 + ? WebSourceConfigurationVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'WebSourceConfigurationVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator WebSourceConfiguration(global::Vectara.BaseWebSource value) => new WebSourceConfiguration((global::Vectara.BaseWebSource?)value); + + /// + /// + /// + public static implicit operator global::Vectara.BaseWebSource?(WebSourceConfiguration @this) => @this.Base; + + /// + /// + /// + public WebSourceConfiguration(global::Vectara.BaseWebSource? value) + { + Base = value; + } + + /// + /// + /// + public static WebSourceConfiguration FromBase(global::Vectara.BaseWebSource? value) => new WebSourceConfiguration(value); + + /// + /// + /// + public static implicit operator WebSourceConfiguration(global::Vectara.WebSourceConfigurationVariant2 value) => new WebSourceConfiguration((global::Vectara.WebSourceConfigurationVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.WebSourceConfigurationVariant2?(WebSourceConfiguration @this) => @this.WebSourceConfigurationVariant2; + + /// + /// + /// + public WebSourceConfiguration(global::Vectara.WebSourceConfigurationVariant2? value) + { + WebSourceConfigurationVariant2 = value; + } + + /// + /// + /// + public static WebSourceConfiguration FromWebSourceConfigurationVariant2(global::Vectara.WebSourceConfigurationVariant2? value) => new WebSourceConfiguration(value); + + /// + /// + /// + public WebSourceConfiguration( + global::Vectara.BaseWebSource? @base, + global::Vectara.WebSourceConfigurationVariant2? webSourceConfigurationVariant2 + ) + { + Base = @base; + WebSourceConfigurationVariant2 = webSourceConfigurationVariant2; + } + + /// + /// + /// + public object? Object => + WebSourceConfigurationVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + WebSourceConfigurationVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsWebSourceConfigurationVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? webSourceConfigurationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsWebSourceConfigurationVariant2 && webSourceConfigurationVariant2 != null) + { + return webSourceConfigurationVariant2(WebSourceConfigurationVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + + global::System.Action? webSourceConfigurationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsWebSourceConfigurationVariant2) + { + webSourceConfigurationVariant2?.Invoke(WebSourceConfigurationVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? @base = null, + global::System.Action? webSourceConfigurationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsWebSourceConfigurationVariant2) + { + webSourceConfigurationVariant2?.Invoke(WebSourceConfigurationVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::Vectara.BaseWebSource), + WebSourceConfigurationVariant2, + typeof(global::Vectara.WebSourceConfigurationVariant2), + }; + 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(WebSourceConfiguration other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSourceConfigurationVariant2, other.WebSourceConfigurationVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(WebSourceConfiguration obj1, WebSourceConfiguration obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(WebSourceConfiguration obj1, WebSourceConfiguration obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is WebSourceConfiguration o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfigurationVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfigurationVariant2.Json.g.cs new file mode 100644 index 00000000..c44798c0 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfigurationVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class WebSourceConfigurationVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Vectara.WebSourceConfigurationVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.WebSourceConfigurationVariant2), + jsonSerializerContext) as global::Vectara.WebSourceConfigurationVariant2; + } + + /// + /// 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::Vectara.WebSourceConfigurationVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Vectara.WebSourceConfigurationVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.WebSourceConfigurationVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfigurationVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfigurationVariant2.g.cs new file mode 100644 index 00000000..9abe4124 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.WebSourceConfigurationVariant2.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class WebSourceConfigurationVariant2 + { + /// + /// Default Value: web
+ /// Example: web + ///
+ /// "web" + /// web + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "web"; + + /// + /// How a `web` source discovers URLs. Discriminated by `type`:
+ /// `sitemap` reads sitemap.xml only; `crawl` does BFS link-following from seed URLs;
+ /// `sitemap_crawl` reads a sitemap and crawls outward from its entries. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("pages_source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.WebPagesSourceJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Vectara.WebPagesSource PagesSource { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Default Value: web
+ /// Example: web + /// + /// + /// How a `web` source discovers URLs. Discriminated by `type`:
+ /// `sitemap` reads sitemap.xml only; `crawl` does BFS link-following from seed URLs;
+ /// `sitemap_crawl` reads a sitemap and crawls outward from its entries. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WebSourceConfigurationVariant2( + string type, + global::Vectara.WebPagesSource pagesSource) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.PagesSource = pagesSource; + } + + /// + /// Initializes a new instance of the class. + /// + public WebSourceConfigurationVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.Create.g.cs b/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.Create.g.cs index 7f48a2e1..c7408f8b 100644 --- a/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.Create.g.cs +++ b/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.Create.g.cs @@ -664,7 +664,8 @@ partial void ProcessCreateResponseContent( /// /// The identifier for the source record to add. Format depends on connector type:
/// - S3: the object key (e.g. `legal/contracts/doc.pdf`)
- /// - SharePoint: the drive item ID + /// - SharePoint: the drive item ID
+ /// - Web: the canonicalized URL (e.g. `https://docs.example.com/page`) /// /// /// Optional reason for manually adding this record. diff --git a/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.List.g.cs b/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.List.g.cs index 826e082b..f4477fe2 100644 --- a/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.List.g.cs +++ b/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.List.g.cs @@ -49,6 +49,7 @@ partial void PrepareListArguments( ref global::Vectara.DeadLetterStatus? status, ref string? lastRunId, ref global::Vectara.DeadLetterOrigin? origin, + ref string? filter, ref int? limit, ref string? pageKey); partial void PrepareListRequest( @@ -60,6 +61,7 @@ partial void PrepareListRequest( global::Vectara.DeadLetterStatus? status, string? lastRunId, global::Vectara.DeadLetterOrigin? origin, + string? filter, int? limit, string? pageKey); partial void ProcessListResponse( @@ -91,6 +93,7 @@ partial void ProcessListResponseContent( /// /// How this dead letter was created. /// + /// /// /// Default Value: 10 /// @@ -105,6 +108,7 @@ partial void ProcessListResponseContent( global::Vectara.DeadLetterStatus? status = default, string? lastRunId = default, global::Vectara.DeadLetterOrigin? origin = default, + string? filter = default, int? limit = default, string? pageKey = default, global::Vectara.AutoSDKRequestOptions? requestOptions = default, @@ -117,6 +121,7 @@ partial void ProcessListResponseContent( status: status, lastRunId: lastRunId, origin: origin, + filter: filter, limit: limit, pageKey: pageKey, requestOptions: requestOptions, @@ -145,6 +150,7 @@ partial void ProcessListResponseContent( /// /// How this dead letter was created. /// + /// /// /// Default Value: 10 /// @@ -159,6 +165,7 @@ partial void ProcessListResponseContent( global::Vectara.DeadLetterStatus? status = default, string? lastRunId = default, global::Vectara.DeadLetterOrigin? origin = default, + string? filter = default, int? limit = default, string? pageKey = default, global::Vectara.AutoSDKRequestOptions? requestOptions = default, @@ -174,6 +181,7 @@ partial void ProcessListResponseContent( status: ref status, lastRunId: ref lastRunId, origin: ref origin, + filter: ref filter, limit: ref limit, pageKey: ref pageKey); @@ -207,6 +215,7 @@ partial void ProcessListResponseContent( .AddOptionalParameter("status", status?.ToValueString()) .AddOptionalParameter("last_run_id", lastRunId) .AddOptionalParameter("origin", origin?.ToValueString()) + .AddOptionalParameter("filter", filter) .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("page_key", pageKey) ; @@ -266,6 +275,7 @@ partial void ProcessListResponseContent( status: status, lastRunId: lastRunId, origin: origin, + filter: filter, limit: limit, pageKey: pageKey); diff --git a/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.g.cs b/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.g.cs index b7714e3c..98badac3 100644 --- a/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.PipelineDeadLetterEntriesClient.g.cs @@ -64,6 +64,27 @@ public PipelineDeadLetterEntriesClient( { } + /// + /// Creates a new instance of the PipelineDeadLetterEntriesClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public PipelineDeadLetterEntriesClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the PipelineDeadLetterEntriesClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.PipelineRunsClient.g.cs b/src/libs/Vectara/Generated/Vectara.PipelineRunsClient.g.cs index 6c55c250..08cd88a6 100644 --- a/src/libs/Vectara/Generated/Vectara.PipelineRunsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.PipelineRunsClient.g.cs @@ -64,6 +64,27 @@ public PipelineRunsClient( { } + /// + /// Creates a new instance of the PipelineRunsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public PipelineRunsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the PipelineRunsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.PipelinesClient.Create.g.cs b/src/libs/Vectara/Generated/Vectara.PipelinesClient.Create.g.cs index 9a837c42..d946b62c 100644 --- a/src/libs/Vectara/Generated/Vectara.PipelinesClient.Create.g.cs +++ b/src/libs/Vectara/Generated/Vectara.PipelinesClient.Create.g.cs @@ -638,7 +638,7 @@ partial void ProcessCreateResponseContent( /// public async global::System.Threading.Tasks.Task CreateAsync( string name, - global::Vectara.S3SourceConfiguration source, + global::Vectara.PipelineSource source, global::Vectara.PipelineTrigger trigger, global::Vectara.PipelineTransform transform, int? requestTimeout = default, diff --git a/src/libs/Vectara/Generated/Vectara.PipelinesClient.Replace.g.cs b/src/libs/Vectara/Generated/Vectara.PipelinesClient.Replace.g.cs index 2decdc2d..45a7d7ea 100644 --- a/src/libs/Vectara/Generated/Vectara.PipelinesClient.Replace.g.cs +++ b/src/libs/Vectara/Generated/Vectara.PipelinesClient.Replace.g.cs @@ -658,7 +658,7 @@ partial void ProcessReplaceResponseContent( public async global::System.Threading.Tasks.Task ReplaceAsync( string pipelineKey, string name, - global::Vectara.S3SourceConfiguration source, + global::Vectara.PipelineSource source, global::Vectara.PipelineTrigger trigger, global::Vectara.PipelineTransform transform, int? requestTimeout = default, diff --git a/src/libs/Vectara/Generated/Vectara.PipelinesClient.Update.g.cs b/src/libs/Vectara/Generated/Vectara.PipelinesClient.Update.g.cs index e524ab2a..c381e088 100644 --- a/src/libs/Vectara/Generated/Vectara.PipelinesClient.Update.g.cs +++ b/src/libs/Vectara/Generated/Vectara.PipelinesClient.Update.g.cs @@ -654,7 +654,7 @@ partial void ProcessUpdateResponseContent( int? requestTimeoutMillis = default, string? name = default, string? description = default, - global::Vectara.UpdateS3SourceConfiguration? source = default, + global::Vectara.UpdatePipelineSource? source = default, global::Vectara.PipelineTrigger? trigger = default, global::Vectara.PipelineTransform? transform = default, global::Vectara.PipelineSyncMode? syncMode = default, diff --git a/src/libs/Vectara/Generated/Vectara.PipelinesClient.g.cs b/src/libs/Vectara/Generated/Vectara.PipelinesClient.g.cs index cf412bb2..6a2292f9 100644 --- a/src/libs/Vectara/Generated/Vectara.PipelinesClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.PipelinesClient.g.cs @@ -64,6 +64,27 @@ public PipelinesClient( { } + /// + /// Creates a new instance of the PipelinesClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public PipelinesClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the PipelinesClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.QueriesClient.g.cs b/src/libs/Vectara/Generated/Vectara.QueriesClient.g.cs index afbe00ae..ddd1814d 100644 --- a/src/libs/Vectara/Generated/Vectara.QueriesClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.QueriesClient.g.cs @@ -64,6 +64,27 @@ public QueriesClient( { } + /// + /// Creates a new instance of the QueriesClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public QueriesClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the QueriesClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.QueryHistoryClient.g.cs b/src/libs/Vectara/Generated/Vectara.QueryHistoryClient.g.cs index 50815d76..77cdb5ec 100644 --- a/src/libs/Vectara/Generated/Vectara.QueryHistoryClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.QueryHistoryClient.g.cs @@ -64,6 +64,27 @@ public QueryHistoryClient( { } + /// + /// Creates a new instance of the QueryHistoryClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public QueryHistoryClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the QueryHistoryClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.RerankersClient.g.cs b/src/libs/Vectara/Generated/Vectara.RerankersClient.g.cs index 193315fc..d68f2ff8 100644 --- a/src/libs/Vectara/Generated/Vectara.RerankersClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.RerankersClient.g.cs @@ -64,6 +64,27 @@ public RerankersClient( { } + /// + /// Creates a new instance of the RerankersClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public RerankersClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the RerankersClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.TableExtractorsClient.g.cs b/src/libs/Vectara/Generated/Vectara.TableExtractorsClient.g.cs index 9495af00..3e9e57b1 100644 --- a/src/libs/Vectara/Generated/Vectara.TableExtractorsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.TableExtractorsClient.g.cs @@ -64,6 +64,27 @@ public TableExtractorsClient( { } + /// + /// Creates a new instance of the TableExtractorsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public TableExtractorsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the TableExtractorsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.ToolServersClient.g.cs b/src/libs/Vectara/Generated/Vectara.ToolServersClient.g.cs index 0c0a03e7..d560d6ea 100644 --- a/src/libs/Vectara/Generated/Vectara.ToolServersClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.ToolServersClient.g.cs @@ -64,6 +64,27 @@ public ToolServersClient( { } + /// + /// Creates a new instance of the ToolServersClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public ToolServersClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the ToolServersClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.ToolsClient.g.cs b/src/libs/Vectara/Generated/Vectara.ToolsClient.g.cs index dd08432c..e5afe726 100644 --- a/src/libs/Vectara/Generated/Vectara.ToolsClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.ToolsClient.g.cs @@ -64,6 +64,27 @@ public ToolsClient( { } + /// + /// Creates a new instance of the ToolsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public ToolsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the ToolsClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.UploadClient.g.cs b/src/libs/Vectara/Generated/Vectara.UploadClient.g.cs index 049167d3..653c05be 100644 --- a/src/libs/Vectara/Generated/Vectara.UploadClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.UploadClient.g.cs @@ -64,6 +64,27 @@ public UploadClient( { } + /// + /// Creates a new instance of the UploadClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public UploadClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the UploadClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.UsersClient.g.cs b/src/libs/Vectara/Generated/Vectara.UsersClient.g.cs index 7d4b0102..2f5e56b3 100644 --- a/src/libs/Vectara/Generated/Vectara.UsersClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.UsersClient.g.cs @@ -64,6 +64,27 @@ public UsersClient( { } + /// + /// Creates a new instance of the UsersClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public UsersClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the UsersClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/Generated/Vectara.VectaraClient.g.cs b/src/libs/Vectara/Generated/Vectara.VectaraClient.g.cs index 2e255007..e925eeae 100644 --- a/src/libs/Vectara/Generated/Vectara.VectaraClient.g.cs +++ b/src/libs/Vectara/Generated/Vectara.VectaraClient.g.cs @@ -399,6 +399,27 @@ public VectaraClient( { } + /// + /// Creates a new instance of the VectaraClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public VectaraClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Vectara.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + /// /// Creates a new instance of the VectaraClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Vectara/openapi.yaml b/src/libs/Vectara/openapi.yaml index 0cf8a6a1..9001e4de 100644 --- a/src/libs/Vectara/openapi.yaml +++ b/src/libs/Vectara/openapi.yaml @@ -11185,6 +11185,12 @@ paths: required: false schema: $ref: '#/components/schemas/DeadLetterOrigin' + - in: query + name: filter + description: A regex filter on the source record ID. Supports partial matching. + required: false + schema: + type: string - in: query name: limit description: The maximum number of dead letters to return. @@ -17686,6 +17692,19 @@ components: ' type: string + OutputTransform: + description: "An optional jq expression applied to the tool's JSON output before\ + \ it is returned to the LLM.\nUse this to project, filter, or summarize tool\ + \ output to keep responses concise and on-topic.\n\nThe expression operates\ + \ on the tool's response JSON and the result replaces the original output.\n\ + If the expression fails to compile or evaluate at runtime, the tool call is\ + \ reported to the LLM as\nan error so the agent can react.\n\nExamples:\n\ + \ - `.results | map({title, url})` \u2014 keep only title/url for each result\n\ + \ - `.items[0:5]` \u2014 first 5 items\n - `del(.debug)` \u2014 drop a noisy\ + \ field\n" + type: string + maxLength: 4096 + example: .results | map({title, url}) ToolBase: description: Base properties shared by all tool types. type: object @@ -17740,6 +17759,44 @@ components: tool. type: object additionalProperties: true + output_schema: + description: 'The JSON schema that describes the structure of the tool''s + output. May be used by clients to + + understand the shape of tool responses and to author `default_output_transform` + jq expressions. + + ' + type: object + additionalProperties: true + default_output_transform: + description: 'Default jq expression applied to this tool''s output when + a tool configuration does not + + specify its own `output_transform`. Tool configurations may override this + value. See + + `OutputTransform` for the expression semantics and error behavior. + + ' + $ref: '#/components/schemas/OutputTransform' + default_argument_override: + description: "Optional hardcoded arguments for tool calls. The key specifies\ + \ the location in the tool arguments to overide, and the value specifies\ + \ what to override with. The LLM will not be able to change the parameters,\ + \ nor know those values exist within the tool.\n\nThe values can also\ + \ be dynamic references to context values using $ref with dot notation\ + \ path syntax:\n- Static value: \"fixed_value\" or 123\n- Dynamic reference:\ + \ `{\"$ref\": \"session.metadata.field_name\"}`\n\nReferences are resolved\ + \ at runtime from context:\n- session.metadata.* - Access session metadata\ + \ fields\n- agent.metadata.* - Access agent metadata fields\n\nExample:\n\ + \ `{\"query\": {\"$ref\": \".session.metadata.query\"}}`\n\nIf you want\ + \ to have a real value `\"$ref\"` use `\"$$ref\"`, that is you can escape\ + \ the first $ by using $$." + type: object + additionalProperties: true + example: + max_results: 10 category: description: Functional category of the tool (e.g., retrieval, artifacts, indexing, utilities, orchestration). @@ -18954,26 +19011,13 @@ components: minLength: 1 maxLength: 50 example: Customer Support Agent - OutputTransform: - description: "An optional jq expression applied to the tool's JSON output before\ - \ it is returned to the LLM.\nUse this to project, filter, or summarize tool\ - \ output to keep responses concise and on-topic.\n\nThe expression operates\ - \ on the tool's response JSON and the result replaces the original output.\n\ - If the expression fails to compile or evaluate at runtime, the tool call is\ - \ reported to the LLM as\nan error so the agent can react.\n\nExamples:\n\ - \ - `.results | map({title, url})` \u2014 keep only title/url for each result\n\ - \ - `.items[0:5]` \u2014 first 5 items\n - `del(.debug)` \u2014 drop a noisy\ - \ field\n" - type: string - maxLength: 4096 - example: .results | map({title, url}) AgentToolConfigurationBase: description: Base properties shared by all inline tool configurations on an agent. type: object properties: description: - description: Optional override for the tool's description shown to the LLM. + description: Optional override for the tool's description shown to the agent. When set, replaces the description from the underlying tool definition. type: string example: Search the customer support knowledge base @@ -19200,11 +19244,11 @@ components: argument_override: description: Optional hardcoded arguments for the corpus search call such as the query. When specified, these values will be used instead of allowing - the LLM to fill in those parameters. + the agent to fill in those parameters. $ref: '#/components/schemas/CorporaSearchToolParameters' query_configuration: description: User-configurable settings for the corpus search that are - not exposed to the LLM. Supports dynamic references for runtime resolution + not exposed to the agent. Supports dynamic references for runtime resolution from session context. $ref: '#/components/schemas/AgentCorporaSearchQueryConfiguration' required: @@ -19273,7 +19317,7 @@ components: argument_override: description: Optional hardcoded arguments for the web search tool call such as limit etc. When specified, these values will be used instead - of allowing the LLM to fill in those parameters. + of allowing the agent to fill in those parameters. $ref: '#/components/schemas/WebSearchToolParameters' required: - type @@ -19356,7 +19400,7 @@ components: default: web_get argument_override: description: Optional hardcoded arguments for the web get tool call. When - specified, these values will be used instead of allowing the LLM to + specified, these values will be used instead of allowing the agent to fill in those parameters. $ref: '#/components/schemas/WebGetToolParameters' required: @@ -19381,7 +19425,7 @@ components: argument_override: description: Optional hardcoded arguments that will be passed to the lambda function. When specified, these values will be used instead of allowing - the LLM to fill in those parameters. + the agent to fill in those parameters. type: object additionalProperties: true example: @@ -19788,7 +19832,7 @@ components: Skills are defined at the agent level and can be filtered per step via allowed_skills. - The skill key and description are shown to the LLM in the system message; + The skill key and description are shown to the agent in its instructions; the full content is sent as a user message when the skill is invoked via the invoke_skill tool. @@ -20114,7 +20158,7 @@ components: When attached to a step, user input is run through the glossary''s lookup index and matching - terms are expanded before the message reaches the LLM. + terms are expanded before the message reaches the agent. ' type: object @@ -20163,8 +20207,8 @@ components: text\": \"...\" }\n}\n```\n\n- `$.agent.metadata.` \u2014 agent metadata\ \ fields\n- `$.session.metadata.` \u2014 session metadata fields\n\ - `$.tools..outputs.latest.` \u2014 latest tool\ - \ output fields\n- `$.output.text` \u2014 LLM text output (when output_parser\ - \ is `default`)\n- `$.output.` \u2014 LLM structured output fields\ + \ output fields\n- `$.output.text` \u2014 agent text output (when output_parser\ + \ is `default`)\n- `$.output.` \u2014 agent structured output fields\ \ (when output_parser is `structured`)\n" type: string example: get('$.output.intent') == 'sales' @@ -21428,6 +21472,19 @@ components: example: - type: text content: I need help with my widget installation + message_diffs: + description: 'Per-produced-agent-message opaque platform-specific diff + against the raw event payload, capturing the exact text sent to the + model at emission time. + + When present, the array length MUST equal `messages.length`; the platform + throws on mismatch. When absent the platform reconstructs the rendering + on read. + + ' + type: array + items: + type: string required: - type - messages @@ -21564,6 +21621,16 @@ components: filename: report.pdf mime_type: application/pdf size_bytes: 2048576 + agent_upload_message: + description: 'Frozen text of the single user-role agent message rendered + for this artifact upload at emission time, capturing the artifact metadata + and instruction + + block as one prompt. When absent the platform reconstructs the rendering + on read using current templates. + + ' + type: string required: - type - artifacts @@ -21600,6 +21667,22 @@ components: additionalProperties: true example: query: weather in San Francisco + argument_override_paths: + description: 'Top-level field paths in `tool_input` whose values were + filled by the tool configuration''s argument overrides at emission time, + not produced by the + + agent. On replay these paths are stripped from the rendered tool call + so the model sees only what it originally generated, regardless of how + the tool + + configuration''s overrides have changed since. Paths support dot-notation + (e.g. `config.auth.token`). + + ' + type: array + items: + type: string required: - type - tool_call_id @@ -21704,8 +21787,8 @@ components: This event is published instead of AgentOutputEvent when the agent''s output_parser is configured - with type "structured". It contains the LLM''s final response parsed as validated - JSON that + with type "structured". It contains the agent''s final response parsed as + validated JSON that conforms to the schema specified in the StructuredOutputParser configuration. @@ -21747,7 +21830,7 @@ components: ContextLimitExceededEvent: title: ContextLimitExceededEvent description: 'A transient event indicating the current request exceeded the - LLM''s context limit. + agent''s context limit. This event is not persisted to the session history. @@ -21885,7 +21968,7 @@ components: description: The name of the step being transitioned to. type: string content: - description: The handoff message content for the LLM. + description: The handoff message content for the agent. type: string required: - type @@ -22145,7 +22228,13 @@ components: default: streaming_agent_output_end example: streaming_agent_output_end event_id: - description: The ID of the persisted AgentOutputEvent. + description: 'The ID of the persisted AgentOutputEvent for this streamed + output. + + Use this as the `since` cursor on a subsequent reconnect to resume after + this output. + + ' type: string example: aev_user_001 created_at: @@ -23047,14 +23136,292 @@ components: - region - access_key_id - secret_access_key + BaseWebSource: + description: 'Shared knobs for all web-based sources (sitemap, crawl, sitemap+crawl). + Politeness, limits, auth. + + Mode-specific fields (urls, sitemap_urls, BFS knobs, page count cap) live + on the concrete subtypes. + + ' + type: object + properties: + respect_robots_txt: + description: 'If true (default and strongly recommended), `robots.txt` rules + and `Crawl-delay` directives are honored. + + Set to false only if you have explicit authorization to crawl the target + site without robots.txt + + restrictions (e.g., your own domain). + + ' + type: boolean + default: true + requests_per_second: + description: Maximum sustained requests per second per host. + type: number + format: double + minimum: 0.1 + maximum: 20 + default: 2 + max_concurrent: + description: Maximum concurrent in-flight requests per host. + type: integer + format: int32 + minimum: 1 + maximum: 8 + default: 4 + max_pages: + description: "Hard cap on the number of pages fetched per run. The default\ + \ is a safety rail to prevent\nunbounded crawls \u2014 both in BFS mode\ + \ (high-branching-factor sites like wikis where `max_depth`\nalone is\ + \ not a meaningful bound) and in sitemap mode (a `` can\ + \ chain\n50,000 child sitemaps \xD7 50,000 URLs each per the sitemaps.org\ + \ limits).\n" + type: integer + format: int32 + minimum: 1 + maximum: 1000000 + default: 10000 + js_rendering: + description: 'If true, pages are rendered with a headless browser (slower, + but required for JavaScript-heavy SPAs). + + Defaults to false; turn on if pages return empty content without rendering. + + ' + type: boolean + default: false + user_agent: + description: User-Agent header sent with every request. Must not contain + CR or LF. + type: string + maxLength: 256 + pattern: "^[^\r\n]*$" + default: Vectara-Crawler/1.0 (+https://www.vectara.com/crawler) + max_page_bytes: + description: 'Maximum page body bytes to download. Larger pages are truncated. + The 64 KB floor + + prevents accidentally capping every page below the size of a typical HTML + document; + + the 100 MiB ceiling is far above any plausible single-page payload. + + ' + type: integer + format: int64 + minimum: 65536 + maximum: 104857600 + default: 10485760 + excluded_content_types: + description: 'MIME types to skip in addition to always-skipped media types + (image/*, video/*, audio/*). + + Useful to skip e.g. application/zip if a site links to large archives. + + ' + type: array + maxItems: 50 + items: + type: string + maxLength: 255 + auth: + description: Authentication for the website. Omit for public sites. + $ref: '#/components/schemas/RemoteAuth' + WebUrl: + description: "An http(s) URL accepted by the Web crawler. Other schemes (file://,\ + \ gopher://, etc.) are rejected.\nThe scheme match is case-insensitive (RFC\ + \ 3986 \xA73.1).\n" + type: string + format: uri + maxLength: 2048 + pattern: ^[hH][tT][tT][pP][sS]?:// + SitemapPagesSource: + description: 'Read pages enumerated by one or more sitemaps (`sitemap.xml`, + `sitemap-index.xml`, or gzipped + + variants). Per-URL change detection uses the sitemap''s ``. No link-following. + + ' + x-vectaraParents: + - WebPagesSource + type: object + properties: + type: + type: string + default: sitemap + example: sitemap + sitemap_urls: + description: Sitemap URLs to read. At least one is required. + type: array + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/WebUrl' + example: + - https://docs.example.com/sitemap.xml + required: + - type + - sitemap_urls + BaseCrawlPagesSource: + description: 'Shared BFS knobs for crawl-mode page-source variants (CrawlPagesSource, + SitemapCrawlPagesSource). + + Depth and URL filters; seed lists differ per variant and live on the leaf + types. + + ' + type: object + properties: + max_depth: + description: Maximum link-following depth from each seed URL. + type: integer + format: int32 + minimum: 0 + maximum: 10 + default: 3 + same_domain_only: + description: If true, the crawler does not follow links outside the seed + URL's registered domain. + type: boolean + default: true + pos_regex: + description: Regex patterns; URLs must match at least one to be crawled. + Empty list = no positive filter. + type: array + maxItems: 100 + items: + type: string + maxLength: 1024 + neg_regex: + description: Regex patterns; URLs matching any are skipped. + type: array + maxItems: 100 + items: + type: string + maxLength: 1024 + CrawlPagesSource: + description: 'Discover pages by breadth-first link-following starting from one + or more seed URLs. + + Per-URL change detection uses conditional GET (added in a follow-up PR). + + ' + x-vectaraParents: + - WebPagesSource + allOf: + - $ref: '#/components/schemas/BaseCrawlPagesSource' + - type: object + properties: + type: + type: string + default: crawl + example: crawl + urls: + description: Seed URLs for link-following crawl. BFS expands from these. + type: array + minItems: 1 + maxItems: 1000 + items: + $ref: '#/components/schemas/WebUrl' + example: + - https://docs.example.com/ + required: + - type + - urls + SitemapCrawlPagesSource: + description: 'Read pages from sitemaps AND crawl outward via link-following. + Sitemap entries themselves + + serve as crawl seeds; `urls` is optional and provides additional explicit + seeds. + + ' + x-vectaraParents: + - WebPagesSource + allOf: + - $ref: '#/components/schemas/BaseCrawlPagesSource' + - type: object + properties: + type: + type: string + default: sitemap_crawl + example: sitemap_crawl + urls: + description: Optional additional seed URLs. Sitemap entries are also used + as crawl seeds. + type: array + minItems: 0 + maxItems: 1000 + items: + $ref: '#/components/schemas/WebUrl' + sitemap_urls: + description: Sitemap URLs to read; their entries become the initial crawl + seeds. + type: array + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/WebUrl' + example: + - https://docs.example.com/sitemap.xml + required: + - type + - sitemap_urls + WebPagesSource: + description: 'How a `web` source discovers URLs. Discriminated by `type`: + + `sitemap` reads sitemap.xml only; `crawl` does BFS link-following from seed + URLs; + + `sitemap_crawl` reads a sitemap and crawls outward from its entries. + + ' + discriminator: + propertyName: type + mapping: + sitemap: '#/components/schemas/SitemapPagesSource' + crawl: '#/components/schemas/CrawlPagesSource' + sitemap_crawl: '#/components/schemas/SitemapCrawlPagesSource' + oneOf: + - $ref: '#/components/schemas/SitemapPagesSource' + - $ref: '#/components/schemas/CrawlPagesSource' + - $ref: '#/components/schemas/SitemapCrawlPagesSource' + WebSourceConfiguration: + description: 'Configuration for ingesting pages from a website. Politeness, + limits, and auth are configured + + here; the `pages_source` field selects how URLs are discovered (sitemap, crawl, + or both). + + ' + x-vectaraParents: + - PipelineSource + allOf: + - $ref: '#/components/schemas/BaseWebSource' + - type: object + properties: + type: + type: string + default: web + example: web + pages_source: + $ref: '#/components/schemas/WebPagesSource' + required: + - type + - pages_source PipelineSource: description: The source system to ingest data from. discriminator: propertyName: type mapping: s3: '#/components/schemas/S3SourceConfiguration' + web: '#/components/schemas/WebSourceConfiguration' oneOf: - $ref: '#/components/schemas/S3SourceConfiguration' + - $ref: '#/components/schemas/WebSourceConfiguration' CronTriggerConfiguration: description: Run the pipeline on a cron schedule. type: object @@ -23391,6 +23758,31 @@ components: - UpdatePipelineSource allOf: - $ref: '#/components/schemas/BaseS3SourceConfiguration' + UpdateWebSourceConfiguration: + description: 'Partial update for a `web` source configuration. Top-level fields + are merged into the existing + + record; if `pages_source` is provided, the entire `pages_source` object is + replaced (i.e., + + switching modes or changing per-mode fields requires a complete `pages_source` + object). + + ' + x-vectaraParents: + - UpdatePipelineSource + allOf: + - $ref: '#/components/schemas/BaseWebSource' + - type: object + properties: + type: + type: string + default: web + example: web + pages_source: + $ref: '#/components/schemas/WebPagesSource' + required: + - type UpdatePipelineSource: description: Source configuration for partial updates. Only provided fields are changed; credentials are optional. @@ -23398,8 +23790,10 @@ components: propertyName: type mapping: s3: '#/components/schemas/UpdateS3SourceConfiguration' + web: '#/components/schemas/UpdateWebSourceConfiguration' oneOf: - $ref: '#/components/schemas/UpdateS3SourceConfiguration' + - $ref: '#/components/schemas/UpdateWebSourceConfiguration' UpdatePipelineRequest: description: Request to partially update an existing pipeline. Omitted fields are preserved. @@ -23545,6 +23939,8 @@ components: - SharePoint: the drive item ID + - Web: the canonicalized URL (e.g. `https://docs.example.com/page`) + ' type: string status: @@ -23612,6 +24008,8 @@ components: - SharePoint: the drive item ID + - Web: the canonicalized URL (e.g. `https://docs.example.com/page`) + ' type: string error_message: