diff --git a/src/libs/Vectara/Generated/Vectara.AgentsClient.Create.g.cs b/src/libs/Vectara/Generated/Vectara.AgentsClient.Create.g.cs
index 5610a6e0..4bb317c3 100644
--- a/src/libs/Vectara/Generated/Vectara.AgentsClient.Create.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.AgentsClient.Create.g.cs
@@ -688,18 +688,23 @@ partial void ProcessCreateResponseContent(
/// Configuration for automatic context compaction.
///
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CreateAsync(
string name,
- object toolConfigurations,
+ global::System.Collections.Generic.Dictionary toolConfigurations,
global::Vectara.AgentModel model,
int? requestTimeout = default,
int? requestTimeoutMillis = default,
diff --git a/src/libs/Vectara/Generated/Vectara.AgentsClient.Replace.g.cs b/src/libs/Vectara/Generated/Vectara.AgentsClient.Replace.g.cs
index 74322c80..5c6fc5d5 100644
--- a/src/libs/Vectara/Generated/Vectara.AgentsClient.Replace.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.AgentsClient.Replace.g.cs
@@ -676,11 +676,16 @@ partial void ProcessReplaceResponseContent(
/// Configuration for automatic context compaction.
///
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -688,7 +693,7 @@ partial void ProcessReplaceResponseContent(
public async global::System.Threading.Tasks.Task ReplaceAsync(
string agentKey,
string name,
- object toolConfigurations,
+ global::System.Collections.Generic.Dictionary toolConfigurations,
global::Vectara.AgentModel model,
int? requestTimeout = default,
int? requestTimeoutMillis = default,
diff --git a/src/libs/Vectara/Generated/Vectara.AgentsClient.Update.g.cs b/src/libs/Vectara/Generated/Vectara.AgentsClient.Update.g.cs
index 9795ac3c..b608f745 100644
--- a/src/libs/Vectara/Generated/Vectara.AgentsClient.Update.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.AgentsClient.Update.g.cs
@@ -666,11 +666,16 @@ partial void ProcessUpdateResponseContent(
/// Configuration for automatic context compaction.
///
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
///
/// A map of additional named steps keyed by step name for partial update.
@@ -687,7 +692,7 @@ partial void ProcessUpdateResponseContent(
int? requestTimeoutMillis = default,
string? name = default,
string? description = default,
- object? toolConfigurations = default,
+ global::System.Collections.Generic.Dictionary? toolConfigurations = default,
global::System.Collections.Generic.Dictionary? skills = default,
global::Vectara.AgentModel? model = default,
global::Vectara.UpdateFirstAgentStep? firstStep = default,
diff --git a/src/libs/Vectara/Generated/Vectara.IAgentsClient.Create.g.cs b/src/libs/Vectara/Generated/Vectara.IAgentsClient.Create.g.cs
index 62ba658e..3098470d 100644
--- a/src/libs/Vectara/Generated/Vectara.IAgentsClient.Create.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.IAgentsClient.Create.g.cs
@@ -166,18 +166,23 @@ public partial interface IAgentsClient
/// Configuration for automatic context compaction.
///
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CreateAsync(
string name,
- object toolConfigurations,
+ global::System.Collections.Generic.Dictionary toolConfigurations,
global::Vectara.AgentModel model,
int? requestTimeout = default,
int? requestTimeoutMillis = default,
diff --git a/src/libs/Vectara/Generated/Vectara.IAgentsClient.Replace.g.cs b/src/libs/Vectara/Generated/Vectara.IAgentsClient.Replace.g.cs
index c7b72077..1abe06e4 100644
--- a/src/libs/Vectara/Generated/Vectara.IAgentsClient.Replace.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.IAgentsClient.Replace.g.cs
@@ -111,11 +111,16 @@ public partial interface IAgentsClient
/// Configuration for automatic context compaction.
///
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -123,7 +128,7 @@ public partial interface IAgentsClient
global::System.Threading.Tasks.Task ReplaceAsync(
string agentKey,
string name,
- object toolConfigurations,
+ global::System.Collections.Generic.Dictionary toolConfigurations,
global::Vectara.AgentModel model,
int? requestTimeout = default,
int? requestTimeoutMillis = default,
diff --git a/src/libs/Vectara/Generated/Vectara.IAgentsClient.Update.g.cs b/src/libs/Vectara/Generated/Vectara.IAgentsClient.Update.g.cs
index 4922df2a..82b810ea 100644
--- a/src/libs/Vectara/Generated/Vectara.IAgentsClient.Update.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.IAgentsClient.Update.g.cs
@@ -101,11 +101,16 @@ public partial interface IAgentsClient
/// Configuration for automatic context compaction.
///
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
///
/// A map of additional named steps keyed by step name for partial update.
@@ -122,7 +127,7 @@ public partial interface IAgentsClient
int? requestTimeoutMillis = default,
string? name = default,
string? description = default,
- object? toolConfigurations = default,
+ global::System.Collections.Generic.Dictionary? toolConfigurations = default,
global::System.Collections.Generic.Dictionary? skills = default,
global::Vectara.AgentModel? model = default,
global::Vectara.UpdateFirstAgentStep? firstStep = default,
diff --git a/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.Process.g.cs b/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.Process.g.cs
index df435982..a218e212 100644
--- a/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.Process.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.IPipelineDeadLetterEntriesClient.Process.g.cs
@@ -62,7 +62,7 @@ public partial interface IPipelineDeadLetterEntriesClient
/// Specific source record IDs to process. If omitted, processes all matching dead letters.
///
///
- /// Only process dead letters from this specific run.
+ /// Only process dead letters whose `last_run_id` matches this value.
///
///
/// How this dead letter was created.
diff --git a/src/libs/Vectara/Generated/Vectara.IPipelineRunsClient.Cancel.g.cs b/src/libs/Vectara/Generated/Vectara.IPipelineRunsClient.Cancel.g.cs
new file mode 100644
index 00000000..7b74aa71
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.IPipelineRunsClient.Cancel.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace Vectara
+{
+ public partial interface IPipelineRunsClient
+ {
+ ///
+ /// Cancel pipeline run
+ /// Request cancellation of an in-progress pipeline run. The run is asked to stop at the next checkpoint; it may take a moment to transition to the cancelled state. Runs that have already completed, failed, or been cancelled cannot be cancelled again.
+ ///
+ ///
+ ///
+ ///
+ /// The unique key for the pipeline. Can be user-provided or auto-generated.
+ /// Example: sharepoint-legal-ingest
+ ///
+ ///
+ /// The unique identifier for a pipeline run.
+ /// Example: run_pip_abc_manual_550e8400
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CancelAsync(
+ string pipelineKey,
+ string runId,
+ int? requestTimeout = default,
+ int? requestTimeoutMillis = default,
+ global::Vectara.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Cancel pipeline run
+ /// Request cancellation of an in-progress pipeline run. The run is asked to stop at the next checkpoint; it may take a moment to transition to the cancelled state. Runs that have already completed, failed, or been cancelled cannot be cancelled again.
+ ///
+ ///
+ ///
+ ///
+ /// The unique key for the pipeline. Can be user-provided or auto-generated.
+ /// Example: sharepoint-legal-ingest
+ ///
+ ///
+ /// The unique identifier for a pipeline run.
+ /// Example: run_pip_abc_manual_550e8400
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CancelAsResponseAsync(
+ string pipelineKey,
+ string runId,
+ int? requestTimeout = default,
+ int? requestTimeoutMillis = default,
+ global::Vectara.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs
index 5f29d44d..e9c373df 100644
--- a/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs
@@ -156,81 +156,81 @@ public override void Write(
if (value.IsDynamicVectara)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineDynamicVectaraToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineDynamicVectaraToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineDynamicVectaraToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.DynamicVectara!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.DynamicVectara!.Value, typeInfo);
}
else if (value.IsMcp)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineMcpToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineMcpToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineMcpToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!.Value, typeInfo);
}
else if (value.IsCorporaSearch)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineCorporaSearchToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineCorporaSearchToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineCorporaSearchToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CorporaSearch!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.CorporaSearch!.Value, typeInfo);
}
else if (value.IsWebSearch)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineWebSearchToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineWebSearchToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineWebSearchToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!.Value, typeInfo);
}
else if (value.IsWebGet)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineWebGetToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineWebGetToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineWebGetToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebGet!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebGet!.Value, typeInfo);
}
else if (value.IsLambda)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineLambdaToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineLambdaToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineLambdaToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lambda!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lambda!.Value, typeInfo);
}
else if (value.IsSubAgent)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineSubAgentToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineSubAgentToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineSubAgentToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SubAgent!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.SubAgent!.Value, typeInfo);
}
else if (value.IsArtifactCreate)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactCreateToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactCreateToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactCreateToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ArtifactCreate!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ArtifactCreate!.Value, typeInfo);
}
else if (value.IsArtifactRead)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactReadToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactReadToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactReadToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ArtifactRead!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ArtifactRead!.Value, typeInfo);
}
else if (value.IsArtifactGrep)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactGrepToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactGrepToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactGrepToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ArtifactGrep!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ArtifactGrep!.Value, typeInfo);
}
else if (value.IsImageRead)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineImageReadToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineImageReadToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineImageReadToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageRead!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageRead!.Value, typeInfo);
}
else if (value.IsDocumentConversion)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineDocumentConversionToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineDocumentConversionToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineDocumentConversionToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.DocumentConversion!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.DocumentConversion!.Value, typeInfo);
}
else if (value.IsGetDocumentText)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineGetDocumentTextToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineGetDocumentTextToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineGetDocumentTextToolConfiguration).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GetDocumentText!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.GetDocumentText!.Value, typeInfo);
}
}
}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateOpenAILLMRequest.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateOpenAILLMRequest.g.cs
index 2ea78983..87797119 100644
--- a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateOpenAILLMRequest.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateOpenAILLMRequest.g.cs
@@ -44,6 +44,7 @@ public class CreateOpenAILLMRequestJsonConverter : global::System.Text.Json.Seri
if (__jsonProps.Contains("capabilities.tool_calling")) __score0++;
if (__jsonProps.Contains("description")) __score0++;
if (__jsonProps.Contains("headers")) __score0++;
+ if (__jsonProps.Contains("idle_timeout_seconds")) __score0++;
if (__jsonProps.Contains("model")) __score0++;
if (__jsonProps.Contains("name")) __score0++;
if (__jsonProps.Contains("test_model_parameters")) __score0++;
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateOpenAIResponsesLLMRequest.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateOpenAIResponsesLLMRequest.g.cs
index e20005bb..52db4d3a 100644
--- a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateOpenAIResponsesLLMRequest.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateOpenAIResponsesLLMRequest.g.cs
@@ -44,6 +44,7 @@ public class CreateOpenAIResponsesLLMRequestJsonConverter : global::System.Text.
if (__jsonProps.Contains("capabilities.tool_calling")) __score0++;
if (__jsonProps.Contains("description")) __score0++;
if (__jsonProps.Contains("headers")) __score0++;
+ if (__jsonProps.Contains("idle_timeout_seconds")) __score0++;
if (__jsonProps.Contains("model")) __score0++;
if (__jsonProps.Contains("name")) __score0++;
if (__jsonProps.Contains("test_model_parameters")) __score0++;
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineArtifactCreateToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineArtifactCreateToolConfiguration.g.cs
new file mode 100644
index 00000000..40295d91
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineArtifactCreateToolConfiguration.g.cs
@@ -0,0 +1,138 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineArtifactCreateToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineArtifactCreateToolConfiguration 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("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ 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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineArtifactCreateToolConfigurationVariant2? inlineArtifactCreateToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineArtifactCreateToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactCreateToolConfigurationVariant2).Name}");
+ inlineArtifactCreateToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineArtifactCreateToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactCreateToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactCreateToolConfigurationVariant2).Name}");
+ inlineArtifactCreateToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineArtifactCreateToolConfiguration(
+ agentBase,
+
+ inlineArtifactCreateToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineArtifactCreateToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineArtifactCreateToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactCreateToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactCreateToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineArtifactCreateToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineArtifactGrepToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineArtifactGrepToolConfiguration.g.cs
new file mode 100644
index 00000000..ab78c538
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineArtifactGrepToolConfiguration.g.cs
@@ -0,0 +1,149 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineArtifactGrepToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineArtifactGrepToolConfiguration 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);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("argument_override.artifact_id")) __score1++;
+ if (__jsonProps.Contains("argument_override.grep_options")) __score1++;
+ if (__jsonProps.Contains("argument_override.pattern")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineArtifactGrepToolConfigurationVariant2? inlineArtifactGrepToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineArtifactGrepToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactGrepToolConfigurationVariant2).Name}");
+ inlineArtifactGrepToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineArtifactGrepToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactGrepToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactGrepToolConfigurationVariant2).Name}");
+ inlineArtifactGrepToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineArtifactGrepToolConfiguration(
+ agentBase,
+
+ inlineArtifactGrepToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineArtifactGrepToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineArtifactGrepToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactGrepToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactGrepToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineArtifactGrepToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineArtifactReadToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineArtifactReadToolConfiguration.g.cs
new file mode 100644
index 00000000..e899266b
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineArtifactReadToolConfiguration.g.cs
@@ -0,0 +1,153 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineArtifactReadToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineArtifactReadToolConfiguration 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);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("argument_override.artifact_id")) __score1++;
+ if (__jsonProps.Contains("argument_override.encoding")) __score1++;
+ if (__jsonProps.Contains("argument_override.end_line")) __score1++;
+ if (__jsonProps.Contains("argument_override.start_line")) __score1++;
+ if (__jsonProps.Contains("tool_configuration")) __score1++;
+ if (__jsonProps.Contains("tool_configuration.max_lines")) __score1++;
+ if (__jsonProps.Contains("tool_configuration.max_size_bytes")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineArtifactReadToolConfigurationVariant2? inlineArtifactReadToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineArtifactReadToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactReadToolConfigurationVariant2).Name}");
+ inlineArtifactReadToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineArtifactReadToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactReadToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactReadToolConfigurationVariant2).Name}");
+ inlineArtifactReadToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineArtifactReadToolConfiguration(
+ agentBase,
+
+ inlineArtifactReadToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineArtifactReadToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineArtifactReadToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineArtifactReadToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineArtifactReadToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineArtifactReadToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineCorporaSearchToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineCorporaSearchToolConfiguration.g.cs
new file mode 100644
index 00000000..416ebfee
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineCorporaSearchToolConfiguration.g.cs
@@ -0,0 +1,151 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineCorporaSearchToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineCorporaSearchToolConfiguration 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);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("argument_override.query")) __score1++;
+ if (__jsonProps.Contains("query_configuration")) __score1++;
+ if (__jsonProps.Contains("query_configuration.generation")) __score1++;
+ if (__jsonProps.Contains("query_configuration.save_history")) __score1++;
+ if (__jsonProps.Contains("query_configuration.search")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineCorporaSearchToolConfigurationVariant2? inlineCorporaSearchToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineCorporaSearchToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineCorporaSearchToolConfigurationVariant2).Name}");
+ inlineCorporaSearchToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineCorporaSearchToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineCorporaSearchToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineCorporaSearchToolConfigurationVariant2).Name}");
+ inlineCorporaSearchToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineCorporaSearchToolConfiguration(
+ agentBase,
+
+ inlineCorporaSearchToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineCorporaSearchToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineCorporaSearchToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineCorporaSearchToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineCorporaSearchToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineCorporaSearchToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineDocumentConversionToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineDocumentConversionToolConfiguration.g.cs
new file mode 100644
index 00000000..ef2adeaf
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineDocumentConversionToolConfiguration.g.cs
@@ -0,0 +1,149 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineDocumentConversionToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineDocumentConversionToolConfiguration 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);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("argument_override.artifact_id")) __score1++;
+ if (__jsonProps.Contains("argument_override.description")) __score1++;
+ if (__jsonProps.Contains("argument_override.output_format")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineDocumentConversionToolConfigurationVariant2? inlineDocumentConversionToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineDocumentConversionToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineDocumentConversionToolConfigurationVariant2).Name}");
+ inlineDocumentConversionToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineDocumentConversionToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineDocumentConversionToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineDocumentConversionToolConfigurationVariant2).Name}");
+ inlineDocumentConversionToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineDocumentConversionToolConfiguration(
+ agentBase,
+
+ inlineDocumentConversionToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineDocumentConversionToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineDocumentConversionToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineDocumentConversionToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineDocumentConversionToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineDocumentConversionToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineDynamicVectaraToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineDynamicVectaraToolConfiguration.g.cs
new file mode 100644
index 00000000..c0469bdc
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineDynamicVectaraToolConfiguration.g.cs
@@ -0,0 +1,140 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineDynamicVectaraToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineDynamicVectaraToolConfiguration 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("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("tool_id")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineDynamicVectaraToolConfigurationVariant2? inlineDynamicVectaraToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineDynamicVectaraToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineDynamicVectaraToolConfigurationVariant2).Name}");
+ inlineDynamicVectaraToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineDynamicVectaraToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineDynamicVectaraToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineDynamicVectaraToolConfigurationVariant2).Name}");
+ inlineDynamicVectaraToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineDynamicVectaraToolConfiguration(
+ agentBase,
+
+ inlineDynamicVectaraToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineDynamicVectaraToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineDynamicVectaraToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineDynamicVectaraToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineDynamicVectaraToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineDynamicVectaraToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineGetDocumentTextToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineGetDocumentTextToolConfiguration.g.cs
new file mode 100644
index 00000000..914bb4b7
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineGetDocumentTextToolConfiguration.g.cs
@@ -0,0 +1,150 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineGetDocumentTextToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineGetDocumentTextToolConfiguration 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);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("argument_override.corpus_key")) __score1++;
+ if (__jsonProps.Contains("argument_override.document_id")) __score1++;
+ if (__jsonProps.Contains("tool_configuration")) __score1++;
+ if (__jsonProps.Contains("tool_configuration.metadata")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineGetDocumentTextToolConfigurationVariant2? inlineGetDocumentTextToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineGetDocumentTextToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineGetDocumentTextToolConfigurationVariant2).Name}");
+ inlineGetDocumentTextToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineGetDocumentTextToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineGetDocumentTextToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineGetDocumentTextToolConfigurationVariant2).Name}");
+ inlineGetDocumentTextToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineGetDocumentTextToolConfiguration(
+ agentBase,
+
+ inlineGetDocumentTextToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineGetDocumentTextToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineGetDocumentTextToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineGetDocumentTextToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineGetDocumentTextToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineGetDocumentTextToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineImageReadToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineImageReadToolConfiguration.g.cs
new file mode 100644
index 00000000..7becbfd8
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineImageReadToolConfiguration.g.cs
@@ -0,0 +1,148 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineImageReadToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineImageReadToolConfiguration 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);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("argument_override.artifact_id")) __score1++;
+ if (__jsonProps.Contains("argument_override.detail")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineImageReadToolConfigurationVariant2? inlineImageReadToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineImageReadToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineImageReadToolConfigurationVariant2).Name}");
+ inlineImageReadToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineImageReadToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineImageReadToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineImageReadToolConfigurationVariant2).Name}");
+ inlineImageReadToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineImageReadToolConfiguration(
+ agentBase,
+
+ inlineImageReadToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineImageReadToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineImageReadToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineImageReadToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineImageReadToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineImageReadToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineLambdaToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineLambdaToolConfiguration.g.cs
new file mode 100644
index 00000000..0109252c
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineLambdaToolConfiguration.g.cs
@@ -0,0 +1,140 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineLambdaToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineLambdaToolConfiguration 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("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("tool_id")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineLambdaToolConfigurationVariant2? inlineLambdaToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineLambdaToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineLambdaToolConfigurationVariant2).Name}");
+ inlineLambdaToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineLambdaToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineLambdaToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineLambdaToolConfigurationVariant2).Name}");
+ inlineLambdaToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineLambdaToolConfiguration(
+ agentBase,
+
+ inlineLambdaToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineLambdaToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineLambdaToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineLambdaToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineLambdaToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineLambdaToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineMcpToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineMcpToolConfiguration.g.cs
new file mode 100644
index 00000000..522002ca
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineMcpToolConfiguration.g.cs
@@ -0,0 +1,140 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineMcpToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineMcpToolConfiguration 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("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("tool_id")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineMcpToolConfigurationVariant2? inlineMcpToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineMcpToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineMcpToolConfigurationVariant2).Name}");
+ inlineMcpToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineMcpToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineMcpToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineMcpToolConfigurationVariant2).Name}");
+ inlineMcpToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineMcpToolConfiguration(
+ agentBase,
+
+ inlineMcpToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineMcpToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineMcpToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineMcpToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineMcpToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineMcpToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineSubAgentToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineSubAgentToolConfiguration.g.cs
new file mode 100644
index 00000000..9f66339f
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineSubAgentToolConfiguration.g.cs
@@ -0,0 +1,152 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineSubAgentToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineSubAgentToolConfiguration 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);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("argument_override.message")) __score1++;
+ if (__jsonProps.Contains("argument_override.session_tti_minutes")) __score1++;
+ if (__jsonProps.Contains("sub_agent_configuration")) __score1++;
+ if (__jsonProps.Contains("sub_agent_configuration.agent_key")) __score1++;
+ if (__jsonProps.Contains("sub_agent_configuration.session_metadata")) __score1++;
+ if (__jsonProps.Contains("sub_agent_configuration.session_mode")) __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.AgentToolConfigurationBase? @base = default;
+ global::Vectara.InlineSubAgentToolConfigurationVariant2? inlineSubAgentToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).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.InlineSubAgentToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineSubAgentToolConfigurationVariant2).Name}");
+ inlineSubAgentToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (@base == null && inlineSubAgentToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineSubAgentToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineSubAgentToolConfigurationVariant2).Name}");
+ inlineSubAgentToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineSubAgentToolConfiguration(
+ @base,
+
+ inlineSubAgentToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineSubAgentToolConfiguration 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.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo);
+ }
+ else if (value.IsInlineSubAgentToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineSubAgentToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineSubAgentToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineSubAgentToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineWebGetToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineWebGetToolConfiguration.g.cs
new file mode 100644
index 00000000..b9f0248e
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineWebGetToolConfiguration.g.cs
@@ -0,0 +1,156 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineWebGetToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineWebGetToolConfiguration 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);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("argument_override.body")) __score1++;
+ if (__jsonProps.Contains("argument_override.follow_redirects")) __score1++;
+ if (__jsonProps.Contains("argument_override.head_lines")) __score1++;
+ if (__jsonProps.Contains("argument_override.headers")) __score1++;
+ if (__jsonProps.Contains("argument_override.max_content_bytes")) __score1++;
+ if (__jsonProps.Contains("argument_override.method")) __score1++;
+ if (__jsonProps.Contains("argument_override.ssl_verify")) __score1++;
+ if (__jsonProps.Contains("argument_override.tail_lines")) __score1++;
+ if (__jsonProps.Contains("argument_override.timeout_seconds")) __score1++;
+ if (__jsonProps.Contains("argument_override.url")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineWebGetToolConfigurationVariant2? inlineWebGetToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineWebGetToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineWebGetToolConfigurationVariant2).Name}");
+ inlineWebGetToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineWebGetToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineWebGetToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineWebGetToolConfigurationVariant2).Name}");
+ inlineWebGetToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineWebGetToolConfiguration(
+ agentBase,
+
+ inlineWebGetToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineWebGetToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineWebGetToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineWebGetToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineWebGetToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineWebGetToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineWebSearchToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineWebSearchToolConfiguration.g.cs
new file mode 100644
index 00000000..ac88bf10
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineWebSearchToolConfiguration.g.cs
@@ -0,0 +1,151 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class InlineWebSearchToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.InlineWebSearchToolConfiguration 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);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("description")) __score0++;
+ if (__jsonProps.Contains("description_template")) __score0++;
+ if (__jsonProps.Contains("output_transform")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("argument_override")) __score1++;
+ if (__jsonProps.Contains("argument_override.exclude_domains")) __score1++;
+ if (__jsonProps.Contains("argument_override.include_domains")) __score1++;
+ if (__jsonProps.Contains("argument_override.limit")) __score1++;
+ if (__jsonProps.Contains("argument_override.provider")) __score1++;
+ if (__jsonProps.Contains("argument_override.query")) __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.AgentToolConfigurationBase? agentBase = default;
+ global::Vectara.InlineWebSearchToolConfigurationVariant2? inlineWebSearchToolConfigurationVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = 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.InlineWebSearchToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineWebSearchToolConfigurationVariant2).Name}");
+ inlineWebSearchToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (agentBase == null && inlineWebSearchToolConfigurationVariant2 == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineWebSearchToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineWebSearchToolConfigurationVariant2).Name}");
+ inlineWebSearchToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.InlineWebSearchToolConfiguration(
+ agentBase,
+
+ inlineWebSearchToolConfigurationVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.InlineWebSearchToolConfiguration 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.IsAgentBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentToolConfigurationBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentToolConfigurationBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo);
+ }
+ else if (value.IsInlineWebSearchToolConfigurationVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineWebSearchToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineWebSearchToolConfigurationVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineWebSearchToolConfigurationVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputOffloadingConfigurationMode.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputOffloadingConfigurationMode.g.cs
new file mode 100644
index 00000000..7dbc57c1
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputOffloadingConfigurationMode.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class ToolOutputOffloadingConfigurationModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.ToolOutputOffloadingConfigurationMode 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.ToolOutputOffloadingConfigurationModeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.ToolOutputOffloadingConfigurationMode)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.ToolOutputOffloadingConfigurationMode);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.ToolOutputOffloadingConfigurationMode value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Vectara.ToolOutputOffloadingConfigurationModeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputOffloadingConfigurationModeNullable.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputOffloadingConfigurationModeNullable.g.cs
new file mode 100644
index 00000000..ae418eb9
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputOffloadingConfigurationModeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class ToolOutputOffloadingConfigurationModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.ToolOutputOffloadingConfigurationMode? 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.ToolOutputOffloadingConfigurationModeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.ToolOutputOffloadingConfigurationMode)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.ToolOutputOffloadingConfigurationMode?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.ToolOutputOffloadingConfigurationMode? 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.ToolOutputOffloadingConfigurationModeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateOpenAILLMRequest.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateOpenAILLMRequest.g.cs
index dd30cb76..6743b6a7 100644
--- a/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateOpenAILLMRequest.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateOpenAILLMRequest.g.cs
@@ -45,6 +45,7 @@ public class UpdateOpenAILLMRequestJsonConverter : global::System.Text.Json.Seri
if (__jsonProps.Contains("description")) __score0++;
if (__jsonProps.Contains("enabled")) __score0++;
if (__jsonProps.Contains("headers")) __score0++;
+ if (__jsonProps.Contains("idle_timeout_seconds")) __score0++;
if (__jsonProps.Contains("model")) __score0++;
if (__jsonProps.Contains("test_model_parameters")) __score0++;
if (__jsonProps.Contains("uri")) __score0++;
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateOpenAIResponsesLLMRequest.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateOpenAIResponsesLLMRequest.g.cs
index d0e38f38..fc97490f 100644
--- a/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateOpenAIResponsesLLMRequest.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateOpenAIResponsesLLMRequest.g.cs
@@ -45,6 +45,7 @@ public class UpdateOpenAIResponsesLLMRequestJsonConverter : global::System.Text.
if (__jsonProps.Contains("description")) __score0++;
if (__jsonProps.Contains("enabled")) __score0++;
if (__jsonProps.Contains("headers")) __score0++;
+ if (__jsonProps.Contains("idle_timeout_seconds")) __score0++;
if (__jsonProps.Contains("model")) __score0++;
if (__jsonProps.Contains("test_model_parameters")) __score0++;
if (__jsonProps.Contains("uri")) __score0++;
diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs
index 6f78bd94..434053c7 100644
--- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs
@@ -269,6 +269,10 @@ namespace Vectara
typeof(global::Vectara.JsonConverters.CompactionConfigToolEventPolicyNullableJsonConverter),
+ typeof(global::Vectara.JsonConverters.ToolOutputOffloadingConfigurationModeJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.ToolOutputOffloadingConfigurationModeNullableJsonConverter),
+
typeof(global::Vectara.JsonConverters.AgentInputDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.AgentInputDiscriminatorTypeNullableJsonConverter),
@@ -523,6 +527,32 @@ namespace Vectara
typeof(global::Vectara.JsonConverters.UpdateInstructionRequestJsonConverter),
+ typeof(global::Vectara.JsonConverters.InlineDynamicVectaraToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineMcpToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineCorporaSearchToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineWebSearchToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineWebGetToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineLambdaToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineSubAgentToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineArtifactCreateToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineArtifactReadToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineArtifactGrepToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineImageReadToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineDocumentConversionToolConfigurationJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.InlineGetDocumentTextToolConfigurationJsonConverter),
+
typeof(global::Vectara.JsonConverters.AgentToolConfigurationJsonConverter),
typeof(global::Vectara.JsonConverters.ReferenceInstructionJsonConverter),
@@ -1033,8 +1063,11 @@ namespace Vectara
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateInstructionRequestDiscriminatorType), TypeInfoPropertyName = "UpdateInstructionRequestDiscriminatorType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.TestInstructionRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.TestInstructionResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineDynamicVectaraToolConfiguration))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineMcpToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentToolConfigurationBase))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineDynamicVectaraToolConfiguration), TypeInfoPropertyName = "InlineDynamicVectaraToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineDynamicVectaraToolConfigurationVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineMcpToolConfiguration), TypeInfoPropertyName = "InlineMcpToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineMcpToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CorporaSearchToolParameters))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.EagerReference))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentKeyedSearchCorpus))]
@@ -1042,39 +1075,50 @@ namespace Vectara
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentSearchCorporaParameters))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentCorporaSearchQueryConfiguration))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineCorporaSearchToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineCorporaSearchToolConfiguration), TypeInfoPropertyName = "InlineCorporaSearchToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineCorporaSearchToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WebSearchToolParameters))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WebSearchToolParametersProvider), TypeInfoPropertyName = "WebSearchToolParametersProvider2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineWebSearchToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineWebSearchToolConfiguration), TypeInfoPropertyName = "InlineWebSearchToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineWebSearchToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WebGetToolParameters))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WebGetToolParametersMethod), TypeInfoPropertyName = "WebGetToolParametersMethod2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.OneOf, global::Vectara.EagerReference>), TypeInfoPropertyName = "OneOfDictionaryStringStringEagerReference2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.OneOf), TypeInfoPropertyName = "OneOfBooleanEagerReference2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.OneOf), TypeInfoPropertyName = "OneOfInt32EagerReference2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.OneOf), TypeInfoPropertyName = "OneOfInt64EagerReference2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineWebGetToolConfiguration))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineLambdaToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineWebGetToolConfiguration), TypeInfoPropertyName = "InlineWebGetToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineWebGetToolConfigurationVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineLambdaToolConfiguration), TypeInfoPropertyName = "InlineLambdaToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineLambdaToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SubAgentToolParameters))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SubAgentSessionMode), TypeInfoPropertyName = "SubAgentSessionMode2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SubAgentConfiguration))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineSubAgentToolConfiguration))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactCreateToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineSubAgentToolConfiguration), TypeInfoPropertyName = "InlineSubAgentToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineSubAgentToolConfigurationVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactCreateToolConfiguration), TypeInfoPropertyName = "InlineArtifactCreateToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactCreateToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ArtifactReadToolParameters))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ArtifactReadToolParametersEncoding), TypeInfoPropertyName = "ArtifactReadToolParametersEncoding2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ArtifactReadConfiguration))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactReadToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactReadToolConfiguration), TypeInfoPropertyName = "InlineArtifactReadToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactReadToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ArtifactGrepToolParameters))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactGrepToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactGrepToolConfiguration), TypeInfoPropertyName = "InlineArtifactGrepToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactGrepToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ImageReadToolParameters))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ImageReadToolParametersDetail), TypeInfoPropertyName = "ImageReadToolParametersDetail2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineImageReadToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineImageReadToolConfiguration), TypeInfoPropertyName = "InlineImageReadToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineImageReadToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.DocumentConversionToolParameters))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.DocumentConversionToolParametersOutputFormat), TypeInfoPropertyName = "DocumentConversionToolParametersOutputFormat2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineDocumentConversionToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineDocumentConversionToolConfiguration), TypeInfoPropertyName = "InlineDocumentConversionToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineDocumentConversionToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.GetDocumentTextParameters))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.GetDocumentTextConfiguration))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.GetDocumentTextConfigurationMetadata))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineGetDocumentTextToolConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineGetDocumentTextToolConfiguration), TypeInfoPropertyName = "InlineGetDocumentTextToolConfiguration2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineGetDocumentTextToolConfigurationVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentToolConfiguration), TypeInfoPropertyName = "AgentToolConfiguration2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentToolConfigurationDiscriminator))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentToolConfigurationDiscriminatorType), TypeInfoPropertyName = "AgentToolConfigurationDiscriminatorType2")]
@@ -1110,7 +1154,9 @@ namespace Vectara
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CompactionConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CompactionConfigToolEventPolicy), TypeInfoPropertyName = "CompactionConfigToolEventPolicy2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ToolOutputOffloadingConfiguration))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ToolOutputOffloadingConfigurationMode), TypeInfoPropertyName = "ToolOutputOffloadingConfigurationMode2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.Agent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListAgentsResponse))]
diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs
index 23364c75..8d18547d 100644
--- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs
@@ -1584,1243 +1584,1307 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Vectara.InlineDynamicVectaraToolConfiguration? Type389 { get; set; }
+ public global::Vectara.AgentToolConfigurationBase? Type389 { get; set; }
///
///
///
- public global::Vectara.InlineMcpToolConfiguration? Type390 { get; set; }
+ public global::Vectara.InlineDynamicVectaraToolConfiguration? Type390 { get; set; }
///
///
///
- public global::Vectara.CorporaSearchToolParameters? Type391 { get; set; }
+ public global::Vectara.InlineDynamicVectaraToolConfigurationVariant2? Type391 { get; set; }
///
///
///
- public global::Vectara.EagerReference? Type392 { get; set; }
+ public global::Vectara.InlineMcpToolConfiguration? Type392 { get; set; }
///
///
///
- public global::Vectara.AgentKeyedSearchCorpus? Type393 { get; set; }
+ public global::Vectara.InlineMcpToolConfigurationVariant2? Type393 { get; set; }
///
///
///
- public global::Vectara.OneOf? Type394 { get; set; }
+ public global::Vectara.CorporaSearchToolParameters? Type394 { get; set; }
///
///
///
- public global::Vectara.AgentSearchCorporaParameters? Type395 { get; set; }
+ public global::Vectara.EagerReference? Type395 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type396 { get; set; }
+ public global::Vectara.AgentKeyedSearchCorpus? Type396 { get; set; }
///
///
///
- public global::Vectara.AgentCorporaSearchQueryConfiguration? Type397 { get; set; }
+ public global::Vectara.OneOf? Type397 { get; set; }
///
///
///
- public global::Vectara.InlineCorporaSearchToolConfiguration? Type398 { get; set; }
+ public global::Vectara.AgentSearchCorporaParameters? Type398 { get; set; }
///
///
///
- public global::Vectara.WebSearchToolParameters? Type399 { get; set; }
+ public global::System.Collections.Generic.IList? Type399 { get; set; }
///
///
///
- public global::Vectara.WebSearchToolParametersProvider? Type400 { get; set; }
+ public global::Vectara.AgentCorporaSearchQueryConfiguration? Type400 { get; set; }
///
///
///
- public global::Vectara.InlineWebSearchToolConfiguration? Type401 { get; set; }
+ public global::Vectara.InlineCorporaSearchToolConfiguration? Type401 { get; set; }
///
///
///
- public global::Vectara.WebGetToolParameters? Type402 { get; set; }
+ public global::Vectara.InlineCorporaSearchToolConfigurationVariant2? Type402 { get; set; }
///
///
///
- public global::Vectara.WebGetToolParametersMethod? Type403 { get; set; }
+ public global::Vectara.WebSearchToolParameters? Type403 { get; set; }
///
///
///
- public global::Vectara.OneOf, global::Vectara.EagerReference>? Type404 { get; set; }
+ public global::Vectara.WebSearchToolParametersProvider? Type404 { get; set; }
///
///
///
- public global::Vectara.OneOf? Type405 { get; set; }
+ public global::Vectara.InlineWebSearchToolConfiguration? Type405 { get; set; }
///
///
///
- public global::Vectara.OneOf? Type406 { get; set; }
+ public global::Vectara.InlineWebSearchToolConfigurationVariant2? Type406 { get; set; }
///
///
///
- public global::Vectara.OneOf? Type407 { get; set; }
+ public global::Vectara.WebGetToolParameters? Type407 { get; set; }
///
///
///
- public global::Vectara.InlineWebGetToolConfiguration? Type408 { get; set; }
+ public global::Vectara.WebGetToolParametersMethod? Type408 { get; set; }
///
///
///
- public global::Vectara.InlineLambdaToolConfiguration? Type409 { get; set; }
+ public global::Vectara.OneOf, global::Vectara.EagerReference>? Type409 { get; set; }
///
///
///
- public global::Vectara.SubAgentToolParameters? Type410 { get; set; }
+ public global::Vectara.OneOf? Type410 { get; set; }
///
///
///
- public global::Vectara.SubAgentSessionMode? Type411 { get; set; }
+ public global::Vectara.OneOf? Type411 { get; set; }
///
///
///
- public global::Vectara.SubAgentConfiguration? Type412 { get; set; }
+ public global::Vectara.OneOf? Type412 { get; set; }
///
///
///
- public global::Vectara.InlineSubAgentToolConfiguration? Type413 { get; set; }
+ public global::Vectara.InlineWebGetToolConfiguration? Type413 { get; set; }
///
///
///
- public global::Vectara.InlineArtifactCreateToolConfiguration? Type414 { get; set; }
+ public global::Vectara.InlineWebGetToolConfigurationVariant2? Type414 { get; set; }
///
///
///
- public global::Vectara.ArtifactReadToolParameters? Type415 { get; set; }
+ public global::Vectara.InlineLambdaToolConfiguration? Type415 { get; set; }
///
///
///
- public global::Vectara.ArtifactReadToolParametersEncoding? Type416 { get; set; }
+ public global::Vectara.InlineLambdaToolConfigurationVariant2? Type416 { get; set; }
///
///
///
- public global::Vectara.ArtifactReadConfiguration? Type417 { get; set; }
+ public global::Vectara.SubAgentToolParameters? Type417 { get; set; }
///
///
///
- public global::Vectara.InlineArtifactReadToolConfiguration? Type418 { get; set; }
+ public global::Vectara.SubAgentSessionMode? Type418 { get; set; }
///
///
///
- public global::Vectara.ArtifactGrepToolParameters? Type419 { get; set; }
+ public global::Vectara.SubAgentConfiguration? Type419 { get; set; }
///
///
///
- public global::Vectara.InlineArtifactGrepToolConfiguration? Type420 { get; set; }
+ public global::Vectara.InlineSubAgentToolConfiguration? Type420 { get; set; }
///
///
///
- public global::Vectara.ImageReadToolParameters? Type421 { get; set; }
+ public global::Vectara.InlineSubAgentToolConfigurationVariant2? Type421 { get; set; }
///
///
///
- public global::Vectara.ImageReadToolParametersDetail? Type422 { get; set; }
+ public global::Vectara.InlineArtifactCreateToolConfiguration? Type422 { get; set; }
///
///
///
- public global::Vectara.InlineImageReadToolConfiguration? Type423 { get; set; }
+ public global::Vectara.InlineArtifactCreateToolConfigurationVariant2? Type423 { get; set; }
///
///
///
- public global::Vectara.DocumentConversionToolParameters? Type424 { get; set; }
+ public global::Vectara.ArtifactReadToolParameters? Type424 { get; set; }
///
///
///
- public global::Vectara.DocumentConversionToolParametersOutputFormat? Type425 { get; set; }
+ public global::Vectara.ArtifactReadToolParametersEncoding? Type425 { get; set; }
///
///
///
- public global::Vectara.InlineDocumentConversionToolConfiguration? Type426 { get; set; }
+ public global::Vectara.ArtifactReadConfiguration? Type426 { get; set; }
///
///
///
- public global::Vectara.GetDocumentTextParameters? Type427 { get; set; }
+ public global::Vectara.InlineArtifactReadToolConfiguration? Type427 { get; set; }
///
///
///
- public global::Vectara.GetDocumentTextConfiguration? Type428 { get; set; }
+ public global::Vectara.InlineArtifactReadToolConfigurationVariant2? Type428 { get; set; }
///
///
///
- public global::Vectara.GetDocumentTextConfigurationMetadata? Type429 { get; set; }
+ public global::Vectara.ArtifactGrepToolParameters? Type429 { get; set; }
///
///
///
- public global::Vectara.InlineGetDocumentTextToolConfiguration? Type430 { get; set; }
+ public global::Vectara.InlineArtifactGrepToolConfiguration? Type430 { get; set; }
///
///
///
- public global::Vectara.AgentToolConfiguration? Type431 { get; set; }
+ public global::Vectara.InlineArtifactGrepToolConfigurationVariant2? Type431 { get; set; }
///
///
///
- public global::Vectara.AgentToolConfigurationDiscriminator? Type432 { get; set; }
+ public global::Vectara.ImageReadToolParameters? Type432 { get; set; }
///
///
///
- public global::Vectara.AgentToolConfigurationDiscriminatorType? Type433 { get; set; }
+ public global::Vectara.ImageReadToolParametersDetail? Type433 { get; set; }
///
///
///
- public global::Vectara.AgentSkill? Type434 { get; set; }
+ public global::Vectara.InlineImageReadToolConfiguration? Type434 { get; set; }
///
///
///
- public global::Vectara.RetryConfiguration? Type435 { get; set; }
+ public global::Vectara.InlineImageReadToolConfigurationVariant2? Type435 { get; set; }
///
///
///
- public global::Vectara.AgentModel? Type436 { get; set; }
+ public global::Vectara.DocumentConversionToolParameters? Type436 { get; set; }
///
///
///
- public global::Vectara.InstructionReference? Type437 { get; set; }
+ public global::Vectara.DocumentConversionToolParametersOutputFormat? Type437 { get; set; }
///
///
///
- public global::Vectara.ReferenceInstruction? Type438 { get; set; }
+ public global::Vectara.InlineDocumentConversionToolConfiguration? Type438 { get; set; }
///
///
///
- public global::Vectara.ReferenceInstructionVariant2? Type439 { get; set; }
+ public global::Vectara.InlineDocumentConversionToolConfigurationVariant2? Type439 { get; set; }
///
///
///
- public global::Vectara.InlineInstruction? Type440 { get; set; }
+ public global::Vectara.GetDocumentTextParameters? Type440 { get; set; }
///
///
///
- public global::Vectara.InlineInstructionVariant2? Type441 { get; set; }
+ public global::Vectara.GetDocumentTextConfiguration? Type441 { get; set; }
///
///
///
- public global::Vectara.AgentStepInstruction? Type442 { get; set; }
+ public global::Vectara.GetDocumentTextConfigurationMetadata? Type442 { get; set; }
///
///
///
- public global::Vectara.AgentStepInstructionDiscriminator? Type443 { get; set; }
+ public global::Vectara.InlineGetDocumentTextToolConfiguration? Type443 { get; set; }
///
///
///
- public global::Vectara.AgentStepInstructionDiscriminatorType? Type444 { get; set; }
+ public global::Vectara.InlineGetDocumentTextToolConfigurationVariant2? Type444 { get; set; }
///
///
///
- public global::Vectara.DefaultOutputParser? Type445 { get; set; }
+ public global::Vectara.AgentToolConfiguration? Type445 { get; set; }
///
///
///
- public global::Vectara.StructuredOutputParser? Type446 { get; set; }
+ public global::Vectara.AgentToolConfigurationDiscriminator? Type446 { get; set; }
///
///
///
- public global::Vectara.AgentOutputParser? Type447 { get; set; }
+ public global::Vectara.AgentToolConfigurationDiscriminatorType? Type447 { get; set; }
///
///
///
- public global::Vectara.AgentOutputParserDiscriminator? Type448 { get; set; }
+ public global::Vectara.AgentSkill? Type448 { get; set; }
///
///
///
- public global::Vectara.AgentOutputParserDiscriminatorType? Type449 { get; set; }
+ public global::Vectara.RetryConfiguration? Type449 { get; set; }
///
///
///
- public global::Vectara.TemplatedReminder? Type450 { get; set; }
+ public global::Vectara.AgentModel? Type450 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type451 { get; set; }
+ public global::Vectara.InstructionReference? Type451 { get; set; }
///
///
///
- public global::Vectara.TemplatedReminderHook? Type452 { get; set; }
+ public global::Vectara.ReferenceInstruction? Type452 { get; set; }
///
///
///
- public global::Vectara.GlossaryExpansionReminder? Type453 { get; set; }
+ public global::Vectara.ReferenceInstructionVariant2? Type453 { get; set; }
///
///
///
- public global::Vectara.AgentStepReminder? Type454 { get; set; }
+ public global::Vectara.InlineInstruction? Type454 { get; set; }
///
///
///
- public global::Vectara.AgentStepReminderDiscriminator? Type455 { get; set; }
+ public global::Vectara.InlineInstructionVariant2? Type455 { get; set; }
///
///
///
- public global::Vectara.AgentStepReminderDiscriminatorType? Type456 { get; set; }
+ public global::Vectara.AgentStepInstruction? Type456 { get; set; }
///
///
///
- public global::Vectara.NextStep? Type457 { get; set; }
+ public global::Vectara.AgentStepInstructionDiscriminator? Type457 { get; set; }
///
///
///
- public global::Vectara.FirstAgentStep? Type458 { get; set; }
+ public global::Vectara.AgentStepInstructionDiscriminatorType? Type458 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type459 { get; set; }
+ public global::Vectara.DefaultOutputParser? Type459 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type460 { get; set; }
+ public global::Vectara.StructuredOutputParser? Type460 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type461 { get; set; }
+ public global::Vectara.AgentOutputParser? Type461 { get; set; }
///
///
///
- public global::Vectara.AgentStep? Type462 { get; set; }
+ public global::Vectara.AgentOutputParserDiscriminator? Type462 { get; set; }
///
///
///
- public global::Vectara.CompactionConfig? Type463 { get; set; }
+ public global::Vectara.AgentOutputParserDiscriminatorType? Type463 { get; set; }
///
///
///
- public global::Vectara.CompactionConfigToolEventPolicy? Type464 { get; set; }
+ public global::Vectara.TemplatedReminder? Type464 { get; set; }
///
///
///
- public global::Vectara.ToolOutputOffloadingConfiguration? Type465 { get; set; }
+ public global::System.Collections.Generic.IList? Type465 { get; set; }
///
///
///
- public global::Vectara.Agent? Type466 { get; set; }
+ public global::Vectara.TemplatedReminderHook? Type466 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type467 { get; set; }
+ public global::Vectara.GlossaryExpansionReminder? Type467 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type468 { get; set; }
+ public global::Vectara.AgentStepReminder? Type468 { get; set; }
///
///
///
- public global::Vectara.ListAgentsResponse? Type469 { get; set; }
+ public global::Vectara.AgentStepReminderDiscriminator? Type469 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type470 { get; set; }
+ public global::Vectara.AgentStepReminderDiscriminatorType? Type470 { get; set; }
///
///
///
- public global::Vectara.CreateAgentRequest? Type471 { get; set; }
+ public global::Vectara.NextStep? Type471 { get; set; }
///
///
///
- public global::Vectara.UpdateFirstAgentStep? Type472 { get; set; }
+ public global::Vectara.FirstAgentStep? Type472 { get; set; }
///
///
///
- public global::Vectara.UpdateAgentStep? Type473 { get; set; }
+ public global::System.Collections.Generic.IList? Type473 { get; set; }
///
///
///
- public global::Vectara.UpdateAgentRequest? Type474 { get; set; }
+ public global::System.Collections.Generic.IList? Type474 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type475 { get; set; }
+ public global::System.Collections.Generic.IList? Type475 { get; set; }
///
///
///
- public global::Vectara.InputTokens? Type476 { get; set; }
+ public global::Vectara.AgentStep? Type476 { get; set; }
///
///
///
- public global::Vectara.OutputTokens? Type477 { get; set; }
+ public global::Vectara.CompactionConfig? Type477 { get; set; }
///
///
///
- public global::Vectara.SessionContextUsage? Type478 { get; set; }
+ public global::Vectara.CompactionConfigToolEventPolicy? Type478 { get; set; }
///
///
///
- public global::Vectara.AgentSession? Type479 { get; set; }
+ public global::Vectara.ToolOutputOffloadingConfiguration? Type479 { get; set; }
///
///
///
- public global::Vectara.ListAgentSessionsResponse? Type480 { get; set; }
+ public global::Vectara.ToolOutputOffloadingConfigurationMode? Type480 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type481 { get; set; }
+ public global::Vectara.Agent? Type481 { get; set; }
///
///
///
- public global::Vectara.CreateAgentSessionRequest? Type482 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type482 { get; set; }
///
///
///
- public global::Vectara.CreateAgentSessionRequestFromSession? Type483 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type483 { get; set; }
///
///
///
- public global::Vectara.UpdateAgentSessionRequest? Type484 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type484 { get; set; }
///
///
///
- public global::Vectara.AgentEventBase? Type485 { get; set; }
+ public global::Vectara.ListAgentsResponse? Type485 { get; set; }
///
///
///
- public global::Vectara.AgentTextInput? Type486 { get; set; }
+ public global::System.Collections.Generic.IList? Type486 { get; set; }
///
///
///
- public global::Vectara.AgentSkillInput? Type487 { get; set; }
+ public global::Vectara.CreateAgentRequest? Type487 { get; set; }
///
///
///
- public global::Vectara.AgentInput? Type488 { get; set; }
+ public global::Vectara.UpdateFirstAgentStep? Type488 { get; set; }
///
///
///
- public global::Vectara.AgentInputDiscriminator? Type489 { get; set; }
+ public global::Vectara.UpdateAgentStep? Type489 { get; set; }
///
///
///
- public global::Vectara.AgentInputDiscriminatorType? Type490 { get; set; }
+ public global::Vectara.UpdateAgentRequest? Type490 { get; set; }
///
///
///
- public global::Vectara.InputMessageEvent? Type491 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type491 { get; set; }
///
///
///
- public global::Vectara.InputMessageEventVariant2? Type492 { get; set; }
+ public global::Vectara.InputTokens? Type492 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type493 { get; set; }
+ public global::Vectara.OutputTokens? Type493 { get; set; }
///
///
///
- public global::Vectara.SkillLoadEvent? Type494 { get; set; }
+ public global::Vectara.SessionContextUsage? Type494 { get; set; }
///
///
///
- public global::Vectara.SkillLoadEventVariant2? Type495 { get; set; }
+ public global::Vectara.AgentSession? Type495 { get; set; }
///
///
///
- public global::Vectara.ArtifactReference? Type496 { get; set; }
+ public global::Vectara.ListAgentSessionsResponse? Type496 { get; set; }
///
///
///
- public global::Vectara.ArtifactUploadEvent? Type497 { get; set; }
+ public global::System.Collections.Generic.IList? Type497 { get; set; }
///
///
///
- public global::Vectara.ArtifactUploadEventVariant2? Type498 { get; set; }
+ public global::Vectara.CreateAgentSessionRequest? Type498 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type499 { get; set; }
+ public global::Vectara.CreateAgentSessionRequestFromSession? Type499 { get; set; }
///
///
///
- public global::Vectara.ToolInputEvent? Type500 { get; set; }
+ public global::Vectara.UpdateAgentSessionRequest? Type500 { get; set; }
///
///
///
- public global::Vectara.ToolInputEventVariant2? Type501 { get; set; }
+ public global::Vectara.AgentEventBase? Type501 { get; set; }
///
///
///
- public global::Vectara.ToolOutputEvent? Type502 { get; set; }
+ public global::Vectara.AgentTextInput? Type502 { get; set; }
///
///
///
- public global::Vectara.ToolOutputEventVariant2? Type503 { get; set; }
+ public global::Vectara.AgentSkillInput? Type503 { get; set; }
///
///
///
- public global::Vectara.ThinkingEvent? Type504 { get; set; }
+ public global::Vectara.AgentInput? Type504 { get; set; }
///
///
///
- public global::Vectara.ThinkingEventVariant2? Type505 { get; set; }
+ public global::Vectara.AgentInputDiscriminator? Type505 { get; set; }
///
///
///
- public global::Vectara.AgentOutputEvent? Type506 { get; set; }
+ public global::Vectara.AgentInputDiscriminatorType? Type506 { get; set; }
///
///
///
- public global::Vectara.AgentOutputEventVariant2? Type507 { get; set; }
+ public global::Vectara.InputMessageEvent? Type507 { get; set; }
///
///
///
- public global::Vectara.StructuredOutputEvent? Type508 { get; set; }
+ public global::Vectara.InputMessageEventVariant2? Type508 { get; set; }
///
///
///
- public global::Vectara.StructuredOutputEventVariant2? Type509 { get; set; }
+ public global::System.Collections.Generic.IList? Type509 { get; set; }
///
///
///
- public global::Vectara.ContextLimitExceededEvent? Type510 { get; set; }
+ public global::Vectara.SkillLoadEvent? Type510 { get; set; }
///
///
///
- public global::Vectara.ContextLimitExceededEventVariant2? Type511 { get; set; }
+ public global::Vectara.SkillLoadEventVariant2? Type511 { get; set; }
///
///
///
- public global::Vectara.StepTransitionLimitExceededEvent? Type512 { get; set; }
+ public global::Vectara.ArtifactReference? Type512 { get; set; }
///
///
///
- public global::Vectara.StepTransitionLimitExceededEventVariant2? Type513 { get; set; }
+ public global::Vectara.ArtifactUploadEvent? Type513 { get; set; }
///
///
///
- public global::Vectara.SessionInterruptedEvent? Type514 { get; set; }
+ public global::Vectara.ArtifactUploadEventVariant2? Type514 { get; set; }
///
///
///
- public global::Vectara.SessionInterruptedEventVariant2? Type515 { get; set; }
+ public global::System.Collections.Generic.IList? Type515 { get; set; }
///
///
///
- public global::Vectara.ImageReadEvent? Type516 { get; set; }
+ public global::Vectara.ToolInputEvent? Type516 { get; set; }
///
///
///
- public global::Vectara.ImageReadEventVariant2? Type517 { get; set; }
+ public global::Vectara.ToolInputEventVariant2? Type517 { get; set; }
///
///
///
- public global::Vectara.ImageReadEventVariant2Detail? Type518 { get; set; }
+ public global::Vectara.ToolOutputEvent? Type518 { get; set; }
///
///
///
- public global::Vectara.StepTransitionEvent? Type519 { get; set; }
+ public global::Vectara.ToolOutputEventVariant2? Type519 { get; set; }
///
///
///
- public global::Vectara.StepTransitionEventVariant2? Type520 { get; set; }
+ public global::Vectara.ThinkingEvent? Type520 { get; set; }
///
///
///
- public global::Vectara.CompactionEvent? Type521 { get; set; }
+ public global::Vectara.ThinkingEventVariant2? Type521 { get; set; }
///
///
///
- public global::Vectara.CompactionEventVariant2? Type522 { get; set; }
+ public global::Vectara.AgentOutputEvent? Type522 { get; set; }
///
///
///
- public global::Vectara.AgentEvent? Type523 { get; set; }
+ public global::Vectara.AgentOutputEventVariant2? Type523 { get; set; }
///
///
///
- public global::Vectara.AgentEventDiscriminator? Type524 { get; set; }
+ public global::Vectara.StructuredOutputEvent? Type524 { get; set; }
///
///
///
- public global::Vectara.AgentEventDiscriminatorType? Type525 { get; set; }
+ public global::Vectara.StructuredOutputEventVariant2? Type525 { get; set; }
///
///
///
- public global::Vectara.ListAgentEventsResponse? Type526 { get; set; }
+ public global::Vectara.ContextLimitExceededEvent? Type526 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type527 { get; set; }
+ public global::Vectara.ContextLimitExceededEventVariant2? Type527 { get; set; }
///
///
///
- public global::Vectara.CreateInputRequestBase? Type528 { get; set; }
+ public global::Vectara.StepTransitionLimitExceededEvent? Type528 { get; set; }
///
///
///
- public global::Vectara.InputBehavior? Type529 { get; set; }
+ public global::Vectara.StepTransitionLimitExceededEventVariant2? Type529 { get; set; }
///
///
///
- public global::Vectara.CreateInputMessageRequest? Type530 { get; set; }
+ public global::Vectara.SessionInterruptedEvent? Type530 { get; set; }
///
///
///
- public global::Vectara.CreateInputMessageRequestVariant2? Type531 { get; set; }
+ public global::Vectara.SessionInterruptedEventVariant2? Type531 { get; set; }
///
///
///
- public global::Vectara.CreateInterruptRequest? Type532 { get; set; }
+ public global::Vectara.ImageReadEvent? Type532 { get; set; }
///
///
///
- public global::Vectara.CreateInterruptRequestVariant2? Type533 { get; set; }
+ public global::Vectara.ImageReadEventVariant2? Type533 { get; set; }
///
///
///
- public global::Vectara.CreateCompactRequest? Type534 { get; set; }
+ public global::Vectara.ImageReadEventVariant2Detail? Type534 { get; set; }
///
///
///
- public global::Vectara.CreateCompactRequestVariant2? Type535 { get; set; }
+ public global::Vectara.StepTransitionEvent? Type535 { get; set; }
///
///
///
- public global::Vectara.CreateInputRequest? Type536 { get; set; }
+ public global::Vectara.StepTransitionEventVariant2? Type536 { get; set; }
///
///
///
- public global::Vectara.CreateInputRequestDiscriminator? Type537 { get; set; }
+ public global::Vectara.CompactionEvent? Type537 { get; set; }
///
///
///
- public global::Vectara.CreateInputRequestDiscriminatorType? Type538 { get; set; }
+ public global::Vectara.CompactionEventVariant2? Type538 { get; set; }
///
///
///
- public global::Vectara.AgentResponse? Type539 { get; set; }
+ public global::Vectara.AgentEvent? Type539 { get; set; }
///
///
///
- public global::Vectara.StreamingAgentOutput? Type540 { get; set; }
+ public global::Vectara.AgentEventDiscriminator? Type540 { get; set; }
///
///
///
- public global::Vectara.StreamingAgentOutputEnd? Type541 { get; set; }
+ public global::Vectara.AgentEventDiscriminatorType? Type541 { get; set; }
///
///
///
- public global::Vectara.StreamingThinking? Type542 { get; set; }
+ public global::Vectara.ListAgentEventsResponse? Type542 { get; set; }
///
///
///
- public global::Vectara.StreamingThinkingEnd? Type543 { get; set; }
+ public global::System.Collections.Generic.IList? Type543 { get; set; }
///
///
///
- public global::Vectara.ContextConsumedEvent? Type544 { get; set; }
+ public global::Vectara.CreateInputRequestBase? Type544 { get; set; }
///
///
///
- public global::Vectara.CompactionStartedEvent? Type545 { get; set; }
+ public global::Vectara.InputBehavior? Type545 { get; set; }
///
///
///
- public global::Vectara.CompactionStartedEventVariant2? Type546 { get; set; }
+ public global::Vectara.CreateInputMessageRequest? Type546 { get; set; }
///
///
///
- public global::Vectara.AgentStreamedResponse? Type547 { get; set; }
+ public global::Vectara.CreateInputMessageRequestVariant2? Type547 { get; set; }
///
///
///
- public global::Vectara.AgentStreamedResponseDiscriminator? Type548 { get; set; }
+ public global::Vectara.CreateInterruptRequest? Type548 { get; set; }
///
///
///
- public global::Vectara.AgentStreamedResponseDiscriminatorType? Type549 { get; set; }
+ public global::Vectara.CreateInterruptRequestVariant2? Type549 { get; set; }
///
///
///
- public global::Vectara.SessionArtifact? Type550 { get; set; }
+ public global::Vectara.CreateCompactRequest? Type550 { get; set; }
///
///
///
- public global::Vectara.ListSessionArtifactsResponse? Type551 { get; set; }
+ public global::Vectara.CreateCompactRequestVariant2? Type551 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type552 { get; set; }
+ public global::Vectara.CreateInputRequest? Type552 { get; set; }
///
///
///
- public global::Vectara.IntervalScheduleConfiguration? Type553 { get; set; }
+ public global::Vectara.CreateInputRequestDiscriminator? Type553 { get; set; }
///
///
///
- public global::Vectara.IntervalScheduleConfigurationType? Type554 { get; set; }
+ public global::Vectara.CreateInputRequestDiscriminatorType? Type554 { get; set; }
///
///
///
- public global::Vectara.CronScheduleConfiguration? Type555 { get; set; }
+ public global::Vectara.AgentResponse? Type555 { get; set; }
///
///
///
- public global::Vectara.CronScheduleConfigurationType? Type556 { get; set; }
+ public global::Vectara.StreamingAgentOutput? Type556 { get; set; }
///
///
///
- public global::Vectara.ScheduleConfiguration? Type557 { get; set; }
+ public global::Vectara.StreamingAgentOutputEnd? Type557 { get; set; }
///
///
///
- public global::Vectara.AgentSchedule? Type558 { get; set; }
+ public global::Vectara.StreamingThinking? Type558 { get; set; }
///
///
///
- public global::Vectara.ListAgentSchedulesResponse? Type559 { get; set; }
+ public global::Vectara.StreamingThinkingEnd? Type559 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type560 { get; set; }
+ public global::Vectara.ContextConsumedEvent? Type560 { get; set; }
///
///
///
- public global::Vectara.CreateAgentScheduleRequest? Type561 { get; set; }
+ public global::Vectara.CompactionStartedEvent? Type561 { get; set; }
///
///
///
- public global::Vectara.UpdateAgentScheduleRequest? Type562 { get; set; }
+ public global::Vectara.CompactionStartedEventVariant2? Type562 { get; set; }
///
///
///
- public global::Vectara.AgentScheduleExecution? Type563 { get; set; }
+ public global::Vectara.AgentStreamedResponse? Type563 { get; set; }
///
///
///
- public global::Vectara.AgentScheduleExecutionStatus? Type564 { get; set; }
+ public global::Vectara.AgentStreamedResponseDiscriminator? Type564 { get; set; }
///
///
///
- public global::Vectara.ListAgentScheduleExecutionsResponse? Type565 { get; set; }
+ public global::Vectara.AgentStreamedResponseDiscriminatorType? Type565 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type566 { get; set; }
+ public global::Vectara.SessionArtifact? Type566 { get; set; }
///
///
///
- public global::Vectara.AgentIdentityMode? Type567 { get; set; }
+ public global::Vectara.ListSessionArtifactsResponse? Type567 { get; set; }
///
///
///
- public global::Vectara.AgentIdentity? Type568 { get; set; }
+ public global::System.Collections.Generic.IList? Type568 { get; set; }
///
///
///
- public global::Vectara.UpdateAgentIdentityRequest? Type569 { get; set; }
+ public global::Vectara.IntervalScheduleConfiguration? Type569 { get; set; }
///
///
///
- public global::Vectara.SlackConnectorConfiguration? Type570 { get; set; }
+ public global::Vectara.IntervalScheduleConfigurationType? Type570 { get; set; }
///
///
///
- public global::Vectara.ConnectorConfiguration? Type571 { get; set; }
+ public global::Vectara.CronScheduleConfiguration? Type571 { get; set; }
///
///
///
- public global::Vectara.ConnectorConfigurationDiscriminator? Type572 { get; set; }
+ public global::Vectara.CronScheduleConfigurationType? Type572 { get; set; }
///
///
///
- public global::Vectara.ConnectorConfigurationDiscriminatorType? Type573 { get; set; }
+ public global::Vectara.ScheduleConfiguration? Type573 { get; set; }
///
///
///
- public global::Vectara.AgentConnector? Type574 { get; set; }
+ public global::Vectara.AgentSchedule? Type574 { get; set; }
///
///
///
- public global::Vectara.AgentConnectorType? Type575 { get; set; }
+ public global::Vectara.ListAgentSchedulesResponse? Type575 { get; set; }
///
///
///
- public global::Vectara.AgentConnectorStatus? Type576 { get; set; }
+ public global::System.Collections.Generic.IList? Type576 { get; set; }
///
///
///
- public global::Vectara.ListAgentConnectorsResponse? Type577 { get; set; }
+ public global::Vectara.CreateAgentScheduleRequest? Type577 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type578 { get; set; }
+ public global::Vectara.UpdateAgentScheduleRequest? Type578 { get; set; }
///
///
///
- public global::Vectara.CreateAgentConnectorRequest? Type579 { get; set; }
+ public global::Vectara.AgentScheduleExecution? Type579 { get; set; }
///
///
///
- public global::Vectara.CreateAgentConnectorRequestType? Type580 { get; set; }
+ public global::Vectara.AgentScheduleExecutionStatus? Type580 { get; set; }
///
///
///
- public global::Vectara.UpdateAgentConnectorRequest? Type581 { get; set; }
+ public global::Vectara.ListAgentScheduleExecutionsResponse? Type581 { get; set; }
///
///
///
- public global::Vectara.PipelineStatus? Type582 { get; set; }
+ public global::System.Collections.Generic.IList? Type582 { get; set; }
///
///
///
- public global::Vectara.BaseS3SourceConfiguration? Type583 { get; set; }
+ public global::Vectara.AgentIdentityMode? Type583 { get; set; }
///
///
///
- public global::Vectara.S3SourceConfiguration? Type584 { get; set; }
+ public global::Vectara.AgentIdentity? Type584 { get; set; }
///
///
///
- public global::Vectara.PipelineSource? Type585 { get; set; }
+ public global::Vectara.UpdateAgentIdentityRequest? Type585 { get; set; }
///
///
///
- public global::Vectara.PipelineSourceDiscriminator? Type586 { get; set; }
+ public global::Vectara.SlackConnectorConfiguration? Type586 { get; set; }
///
///
///
- public global::Vectara.PipelineSourceDiscriminatorType? Type587 { get; set; }
+ public global::Vectara.ConnectorConfiguration? Type587 { get; set; }
///
///
///
- public global::Vectara.CronTriggerConfiguration? Type588 { get; set; }
+ public global::Vectara.ConnectorConfigurationDiscriminator? Type588 { get; set; }
///
///
///
- public global::Vectara.IntervalTriggerConfiguration? Type589 { get; set; }
+ public global::Vectara.ConnectorConfigurationDiscriminatorType? Type589 { get; set; }
///
///
///
- public global::Vectara.ManualTriggerConfiguration? Type590 { get; set; }
+ public global::Vectara.AgentConnector? Type590 { get; set; }
///
///
///
- public global::Vectara.PipelineTrigger? Type591 { get; set; }
+ public global::Vectara.AgentConnectorType? Type591 { get; set; }
///
///
///
- public global::Vectara.PipelineTriggerDiscriminator? Type592 { get; set; }
+ public global::Vectara.AgentConnectorStatus? Type592 { get; set; }
///
///
///
- public global::Vectara.PipelineTriggerDiscriminatorType? Type593 { get; set; }
+ public global::Vectara.ListAgentConnectorsResponse? Type593 { get; set; }
///
///
///
- public global::Vectara.ConditionVerification? Type594 { get; set; }
+ public global::System.Collections.Generic.IList? Type594 { get; set; }
///
///
///
- public global::Vectara.AgentVerification? Type595 { get; set; }
+ public global::Vectara.CreateAgentConnectorRequest? Type595 { get; set; }
///
///
///
- public global::Vectara.PipelineVerification? Type596 { get; set; }
+ public global::Vectara.CreateAgentConnectorRequestType? Type596 { get; set; }
///
///
///
- public global::Vectara.PipelineVerificationDiscriminator? Type597 { get; set; }
+ public global::Vectara.UpdateAgentConnectorRequest? Type597 { get; set; }
///
///
///
- public global::Vectara.PipelineVerificationDiscriminatorType? Type598 { get; set; }
+ public global::Vectara.PipelineStatus? Type598 { get; set; }
///
///
///
- public global::Vectara.AgentTransformConfiguration? Type599 { get; set; }
+ public global::Vectara.BaseS3SourceConfiguration? Type599 { get; set; }
///
///
///
- public global::Vectara.PipelineTransform? Type600 { get; set; }
+ public global::Vectara.S3SourceConfiguration? Type600 { get; set; }
///
///
///
- public global::Vectara.PipelineTransformDiscriminator? Type601 { get; set; }
+ public global::Vectara.PipelineSource? Type601 { get; set; }
///
///
///
- public global::Vectara.PipelineTransformDiscriminatorType? Type602 { get; set; }
+ public global::Vectara.PipelineSourceDiscriminator? Type602 { get; set; }
///
///
///
- public global::Vectara.PipelineSyncMode? Type603 { get; set; }
+ public global::Vectara.PipelineSourceDiscriminatorType? Type603 { get; set; }
///
///
///
- public global::Vectara.PipelineWatermark? Type604 { get; set; }
+ public global::Vectara.CronTriggerConfiguration? Type604 { get; set; }
///
///
///
- public global::Vectara.Pipeline? Type605 { get; set; }
+ public global::Vectara.IntervalTriggerConfiguration? Type605 { get; set; }
///
///
///
- public global::Vectara.ListPipelinesResponse? Type606 { get; set; }
+ public global::Vectara.ManualTriggerConfiguration? Type606 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type607 { get; set; }
+ public global::Vectara.PipelineTrigger? Type607 { get; set; }
///
///
///
- public global::Vectara.CreatePipelineRequest? Type608 { get; set; }
+ public global::Vectara.PipelineTriggerDiscriminator? Type608 { get; set; }
///
///
///
- public global::Vectara.UpdateS3SourceConfiguration? Type609 { get; set; }
+ public global::Vectara.PipelineTriggerDiscriminatorType? Type609 { get; set; }
///
///
///
- public global::Vectara.UpdatePipelineSource? Type610 { get; set; }
+ public global::Vectara.ConditionVerification? Type610 { get; set; }
///
///
///
- public global::Vectara.UpdatePipelineSourceDiscriminator? Type611 { get; set; }
+ public global::Vectara.AgentVerification? Type611 { get; set; }
///
///
///
- public global::Vectara.UpdatePipelineSourceDiscriminatorType? Type612 { get; set; }
+ public global::Vectara.PipelineVerification? Type612 { get; set; }
///
///
///
- public global::Vectara.UpdatePipelineRequest? Type613 { get; set; }
+ public global::Vectara.PipelineVerificationDiscriminator? Type613 { get; set; }
///
///
///
- public global::Vectara.PipelineRunStatus? Type614 { get; set; }
+ public global::Vectara.PipelineVerificationDiscriminatorType? Type614 { get; set; }
///
///
///
- public global::Vectara.PipelineRunTriggerType? Type615 { get; set; }
+ public global::Vectara.AgentTransformConfiguration? Type615 { get; set; }
///
///
///
- public global::Vectara.PipelineRun? Type616 { get; set; }
+ public global::Vectara.PipelineTransform? Type616 { get; set; }
///
///
///
- public global::Vectara.DeadLetterStatus? Type617 { get; set; }
+ public global::Vectara.PipelineTransformDiscriminator? Type617 { get; set; }
///
///
///
- public global::Vectara.DeadLetterOrigin? Type618 { get; set; }
+ public global::Vectara.PipelineTransformDiscriminatorType? Type618 { get; set; }
///
///
///
- public global::Vectara.PipelineDeadLetterEntry? Type619 { get; set; }
+ public global::Vectara.PipelineSyncMode? Type619 { get; set; }
///
///
///
- public global::Vectara.ListPipelineDeadLetterEntriesResponse? Type620 { get; set; }
+ public global::Vectara.PipelineWatermark? Type620 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type621 { get; set; }
+ public global::Vectara.Pipeline? Type621 { get; set; }
///
///
///
- public global::Vectara.CreatePipelineDeadLetterEntryRequest? Type622 { get; set; }
+ public global::Vectara.ListPipelinesResponse? Type622 { get; set; }
///
///
///
- public global::Vectara.ProcessPipelineDeadLetterEntriesRequest? Type623 { get; set; }
+ public global::System.Collections.Generic.IList? Type623 { get; set; }
///
///
///
- public global::Vectara.ListPipelineRunsResponse? Type624 { get; set; }
+ public global::Vectara.CreatePipelineRequest? Type624 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type625 { get; set; }
+ public global::Vectara.UpdateS3SourceConfiguration? Type625 { get; set; }
///
///
///
- public global::Vectara.AgentTrace? Type626 { get; set; }
+ public global::Vectara.UpdatePipelineSource? Type626 { get; set; }
///
///
///
- public global::Vectara.AgentTraceStatus? Type627 { get; set; }
+ public global::Vectara.UpdatePipelineSourceDiscriminator? Type627 { get; set; }
///
///
///
- public global::Vectara.ListAgentTracesResponse? Type628 { get; set; }
+ public global::Vectara.UpdatePipelineSourceDiscriminatorType? Type628 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type629 { get; set; }
+ public global::Vectara.UpdatePipelineRequest? Type629 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpanStatus? Type630 { get; set; }
+ public global::Vectara.PipelineRunStatus? Type630 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpanBase? Type631 { get; set; }
+ public global::Vectara.PipelineRunTriggerType? Type631 { get; set; }
///
///
///
- public global::Vectara.AgentTraceInputFile? Type632 { get; set; }
+ public global::Vectara.PipelineRun? Type632 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentSpanAttributes? Type633 { get; set; }
+ public global::Vectara.DeadLetterStatus? Type633 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentSpanAttributesOutputType? Type634 { get; set; }
+ public global::Vectara.DeadLetterOrigin? Type634 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type635 { get; set; }
+ public global::Vectara.PipelineDeadLetterEntry? Type635 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentSpanContent? Type636 { get; set; }
+ public global::Vectara.ListPipelineDeadLetterEntriesResponse? Type636 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentTraceSpan? Type637 { get; set; }
+ public global::System.Collections.Generic.IList? Type637 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentTraceSpanVariant2? Type638 { get; set; }
+ public global::Vectara.CreatePipelineDeadLetterEntryRequest? Type638 { get; set; }
///
///
///
- public global::Vectara.ChatSpanAttributes? Type639 { get; set; }
+ public global::Vectara.ProcessPipelineDeadLetterEntriesRequest? Type639 { get; set; }
///
///
///
- public global::Vectara.ChatTraceSpan? Type640 { get; set; }
+ public global::Vectara.ListPipelineRunsResponse? Type640 { get; set; }
///
///
///
- public global::Vectara.ChatTraceSpanVariant2? Type641 { get; set; }
+ public global::System.Collections.Generic.IList? Type641 { get; set; }
///
///
///
- public global::Vectara.ExecuteToolSpanAttributes? Type642 { get; set; }
+ public global::Vectara.AgentTrace? Type642 { get; set; }
///
///
///
- public global::Vectara.ExecuteToolSpanContent? Type643 { get; set; }
+ public global::Vectara.AgentTraceStatus? Type643 { get; set; }
///
///
///
- public global::Vectara.ExecuteToolTraceSpan? Type644 { get; set; }
+ public global::Vectara.ListAgentTracesResponse? Type644 { get; set; }
///
///
///
- public global::Vectara.ExecuteToolTraceSpanVariant2? Type645 { get; set; }
+ public global::System.Collections.Generic.IList? Type645 { get; set; }
///
///
///
- public global::Vectara.ThinkingSpanContent? Type646 { get; set; }
+ public global::Vectara.AgentTraceSpanStatus? Type646 { get; set; }
///
///
///
- public global::Vectara.ThinkingTraceSpan? Type647 { get; set; }
+ public global::Vectara.AgentTraceSpanBase? Type647 { get; set; }
///
///
///
- public global::Vectara.ThinkingTraceSpanVariant2? Type648 { get; set; }
+ public global::Vectara.AgentTraceInputFile? Type648 { get; set; }
///
///
///
- public global::Vectara.OutputSpanContent? Type649 { get; set; }
+ public global::Vectara.InvokeAgentSpanAttributes? Type649 { get; set; }
///
///
///
- public global::Vectara.OutputTraceSpan? Type650 { get; set; }
+ public global::Vectara.InvokeAgentSpanAttributesOutputType? Type650 { get; set; }
///
///
///
- public global::Vectara.OutputTraceSpanVariant2? Type651 { get; set; }
+ public global::System.Collections.Generic.IList? Type651 { get; set; }
///
///
///
- public global::Vectara.GuardrailSpanAttributes? Type652 { get; set; }
+ public global::Vectara.InvokeAgentSpanContent? Type652 { get; set; }
///
///
///
- public global::Vectara.GuardrailSpanContent? Type653 { get; set; }
+ public global::Vectara.InvokeAgentTraceSpan? Type653 { get; set; }
///
///
///
- public global::Vectara.GuardrailTraceSpan? Type654 { get; set; }
+ public global::Vectara.InvokeAgentTraceSpanVariant2? Type654 { get; set; }
///
///
///
- public global::Vectara.GuardrailTraceSpanVariant2? Type655 { get; set; }
+ public global::Vectara.ChatSpanAttributes? Type655 { get; set; }
///
///
///
- public global::Vectara.StepTransitionSpanAttributes? Type656 { get; set; }
+ public global::Vectara.ChatTraceSpan? Type656 { get; set; }
///
///
///
- public global::Vectara.StepTransitionTraceSpan? Type657 { get; set; }
+ public global::Vectara.ChatTraceSpanVariant2? Type657 { get; set; }
///
///
///
- public global::Vectara.StepTransitionTraceSpanVariant2? Type658 { get; set; }
+ public global::Vectara.ExecuteToolSpanAttributes? Type658 { get; set; }
///
///
///
- public global::Vectara.ImageReadSpanAttributes? Type659 { get; set; }
+ public global::Vectara.ExecuteToolSpanContent? Type659 { get; set; }
///
///
///
- public global::Vectara.ImageReadTraceSpan? Type660 { get; set; }
+ public global::Vectara.ExecuteToolTraceSpan? Type660 { get; set; }
///
///
///
- public global::Vectara.ImageReadTraceSpanVariant2? Type661 { get; set; }
+ public global::Vectara.ExecuteToolTraceSpanVariant2? Type661 { get; set; }
///
///
///
- public global::Vectara.CompactionSpanAttributes? Type662 { get; set; }
+ public global::Vectara.ThinkingSpanContent? Type662 { get; set; }
///
///
///
- public global::Vectara.CompactionTraceSpan? Type663 { get; set; }
+ public global::Vectara.ThinkingTraceSpan? Type663 { get; set; }
///
///
///
- public global::Vectara.CompactionTraceSpanVariant2? Type664 { get; set; }
+ public global::Vectara.ThinkingTraceSpanVariant2? Type664 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpan? Type665 { get; set; }
+ public global::Vectara.OutputSpanContent? Type665 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpanDiscriminator? Type666 { get; set; }
+ public global::Vectara.OutputTraceSpan? Type666 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpanDiscriminatorOperation? Type667 { get; set; }
+ public global::Vectara.OutputTraceSpanVariant2? Type667 { get; set; }
///
///
///
- public global::Vectara.ListAgentTraceSpansResponse? Type668 { get; set; }
+ public global::Vectara.GuardrailSpanAttributes? Type668 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type669 { get; set; }
+ public global::Vectara.GuardrailSpanContent? Type669 { get; set; }
///
///
///
- public global::Vectara.Glossary? Type670 { get; set; }
+ public global::Vectara.GuardrailTraceSpan? Type670 { get; set; }
///
///
///
- public global::Vectara.ListGlossariesResponse? Type671 { get; set; }
+ public global::Vectara.GuardrailTraceSpanVariant2? Type671 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type672 { get; set; }
+ public global::Vectara.StepTransitionSpanAttributes? Type672 { get; set; }
///
///
///
- public global::Vectara.CreateGlossaryRequest? Type673 { get; set; }
+ public global::Vectara.StepTransitionTraceSpan? Type673 { get; set; }
///
///
///
- public global::Vectara.UpdateGlossaryRequest? Type674 { get; set; }
+ public global::Vectara.StepTransitionTraceSpanVariant2? Type674 { get; set; }
///
///
///
- public global::Vectara.GlossaryEntry? Type675 { get; set; }
+ public global::Vectara.ImageReadSpanAttributes? Type675 { get; set; }
///
///
///
- public global::Vectara.GlossaryEntriesResponse? Type676 { get; set; }
+ public global::Vectara.ImageReadTraceSpan? Type676 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type677 { get; set; }
+ public global::Vectara.ImageReadTraceSpanVariant2? Type677 { get; set; }
///
///
///
- public global::Vectara.UpsertGlossaryEntriesRequest? Type678 { get; set; }
+ public global::Vectara.CompactionSpanAttributes? Type678 { get; set; }
///
///
///
- public global::Vectara.DeleteGlossaryEntriesRequest? Type679 { get; set; }
+ public global::Vectara.CompactionTraceSpan? Type679 { get; set; }
///
///
///
- public global::Vectara.GetOAuthTokenRequest? Type680 { get; set; }
+ public global::Vectara.CompactionTraceSpanVariant2? Type680 { get; set; }
///
///
///
- public global::Vectara.CreateCorpusDocumentWaitFor? Type681 { get; set; }
+ public global::Vectara.AgentTraceSpan? Type681 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type682 { get; set; }
+ public global::Vectara.AgentTraceSpanDiscriminator? Type682 { get; set; }
///
///
///
- public global::Vectara.ListToolServersType? Type683 { get; set; }
+ public global::Vectara.AgentTraceSpanDiscriminatorOperation? Type683 { get; set; }
///
///
///
- public global::Vectara.ListToolsType? Type684 { get; set; }
+ public global::Vectara.ListAgentTraceSpansResponse? Type684 { get; set; }
///
///
///
- public global::Vectara.ListInstructionsType? Type685 { get; set; }
+ public global::System.Collections.Generic.IList? Type685 { get; set; }
///
///
///
- public global::Vectara.ListSessionArtifactsSortBy? Type686 { get; set; }
+ public global::Vectara.Glossary? Type686 { get; set; }
///
///
///
- public global::Vectara.ListSessionArtifactsOrderBy? Type687 { get; set; }
+ public global::Vectara.ListGlossariesResponse? Type687 { get; set; }
///
///
///
- public global::Vectara.ListAgentConnectorsType? Type688 { get; set; }
+ public global::System.Collections.Generic.IList? Type688 { get; set; }
///
///
///
- public global::Vectara.ListPipelinesSourceType? Type689 { get; set; }
+ public global::Vectara.CreateGlossaryRequest? Type689 { get; set; }
///
///
///
- public global::Vectara.ListTracesStatus? Type690 { get; set; }
+ public global::Vectara.UpdateGlossaryRequest? Type690 { get; set; }
///
///
///
- public global::Vectara.ListTracesErrorType? Type691 { get; set; }
+ public global::Vectara.GlossaryEntry? Type691 { get; set; }
///
///
///
- public global::Vectara.ListTracesOperation? Type692 { get; set; }
+ public global::Vectara.GlossaryEntriesResponse? Type692 { get; set; }
///
///
///
- public global::Vectara.ListTracesToolErrorType? Type693 { get; set; }
+ public global::System.Collections.Generic.IList? Type693 { get; set; }
///
///
///
- public global::Vectara.ListTraceSpansOperation? Type694 { get; set; }
+ public global::Vectara.UpsertGlossaryEntriesRequest? Type694 { get; set; }
///
///
///
- public global::Vectara.AllOf? Type695 { get; set; }
+ public global::Vectara.DeleteGlossaryEntriesRequest? Type695 { get; set; }
///
///
///
- public global::Vectara.CreateUserResponse2? Type696 { get; set; }
+ public global::Vectara.GetOAuthTokenRequest? Type696 { get; set; }
///
///
///
- public global::Vectara.ResetUserPasswordResponse? Type697 { get; set; }
+ public global::Vectara.CreateCorpusDocumentWaitFor? Type697 { get; set; }
///
///
///
- public global::Vectara.GetTokenResponse? Type698 { get; set; }
+ public global::System.Collections.Generic.IList? Type698 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListToolServersType? Type699 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListToolsType? Type700 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListInstructionsType? Type701 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListSessionArtifactsSortBy? Type702 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListSessionArtifactsOrderBy? Type703 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListAgentConnectorsType? Type704 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListPipelinesSourceType? Type705 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTracesStatus? Type706 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTracesErrorType? Type707 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTracesOperation? Type708 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTracesToolErrorType? Type709 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTraceSpansOperation? Type710 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.AllOf? Type711 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.CreateUserResponse2? Type712 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ResetUserPasswordResponse? Type713 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.GetTokenResponse? Type714 { get; set; }
///
///
diff --git a/src/libs/Vectara/Generated/Vectara.Models.Agent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.Agent.g.cs
index bb38c2df..06446815 100644
--- a/src/libs/Vectara/Generated/Vectara.Models.Agent.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.Models.Agent.g.cs
@@ -41,7 +41,7 @@ public sealed partial class Agent
/// {"customer_search":{"type":"corpora_search","argument_override":{"query":"customer support documentation"}}}
[global::System.Text.Json.Serialization.JsonPropertyName("tool_configurations")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required object ToolConfigurations { get; set; }
+ public required global::System.Collections.Generic.Dictionary ToolConfigurations { get; set; }
///
/// A map of skills available to the agent, keyed by skill name.
@@ -110,11 +110,16 @@ public sealed partial class Agent
public global::Vectara.CompactionConfig? Compaction { get; set; }
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
[global::System.Text.Json.Serialization.JsonPropertyName("tool_output_offloading")]
public global::Vectara.ToolOutputOffloadingConfiguration? ToolOutputOffloading { get; set; }
@@ -195,11 +200,16 @@ public sealed partial class Agent
/// Configuration for automatic context compaction.
///
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
///
/// Timestamp when the agent was created.
@@ -215,7 +225,7 @@ public sealed partial class Agent
public Agent(
string key,
string name,
- object toolConfigurations,
+ global::System.Collections.Generic.Dictionary toolConfigurations,
global::Vectara.AgentModel model,
global::Vectara.FirstAgentStep firstStep,
bool enabled,
diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationBase.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationBase.Json.g.cs
new file mode 100644
index 00000000..eab71148
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationBase.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public sealed partial class AgentToolConfigurationBase
+ {
+ ///
+ /// 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.AgentToolConfigurationBase? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.AgentToolConfigurationBase),
+ jsonSerializerContext) as global::Vectara.AgentToolConfigurationBase;
+ }
+
+ ///
+ /// 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.AgentToolConfigurationBase? 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.AgentToolConfigurationBase),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.AgentToolConfigurationBase;
+ }
+
+ ///
+ /// 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.AgentToolConfigurationBase.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationBase.g.cs
new file mode 100644
index 00000000..2b21a495
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationBase.g.cs
@@ -0,0 +1,103 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// Base properties shared by all inline tool configurations on an agent.
+ ///
+ 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.
+ /// Example: Search the customer support knowledge base
+ ///
+ /// Search the customer support knowledge base
+ [global::System.Text.Json.Serialization.JsonPropertyName("description")]
+ public string? Description { get; set; }
+
+ ///
+ /// Velocity template for generating dynamic tool descriptions. When set, this template is rendered at runtime to produce the tool description.
+ /// Available Velocity variables:
+ /// - `$agent.name` - Agent name
+ /// - `$agent.metadata` - Agent metadata map
+ /// - `$session.key` - Session key
+ /// - `$session.metadata` - Session metadata map
+ /// - `$currentDate` - Current date/time in ISO 8601 format (e.g., "2025-10-24T15:30:45Z")
+ /// Example: "Search tool configured for agent $agent.name on $currentDate"
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("description_template")]
+ public string? DescriptionTemplate { 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("output_transform")]
+ public string? OutputTransform { 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.
+ ///
+ ///
+ /// Optional override for the tool's description shown to the LLM. When set, replaces the description from the underlying tool definition.
+ /// Example: Search the customer support knowledge base
+ ///
+ ///
+ /// Velocity template for generating dynamic tool descriptions. When set, this template is rendered at runtime to produce the tool description.
+ /// Available Velocity variables:
+ /// - `$agent.name` - Agent name
+ /// - `$agent.metadata` - Agent metadata map
+ /// - `$session.key` - Session key
+ /// - `$session.metadata` - Session metadata map
+ /// - `$currentDate` - Current date/time in ISO 8601 format (e.g., "2025-10-24T15:30:45Z")
+ /// Example: "Search tool configured for agent $agent.name on $currentDate"
+ ///
+ ///
+ /// 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})
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public AgentToolConfigurationBase(
+ string? description,
+ string? descriptionTemplate,
+ string? outputTransform)
+ {
+ this.Description = description;
+ this.DescriptionTemplate = descriptionTemplate;
+ this.OutputTransform = outputTransform;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AgentToolConfigurationBase()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.ArtifactReference.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ArtifactReference.g.cs
index 6cf75b14..e318dd53 100644
--- a/src/libs/Vectara/Generated/Vectara.Models.ArtifactReference.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.Models.ArtifactReference.g.cs
@@ -7,7 +7,7 @@ namespace Vectara
/// Reference to an artifact stored in the agent session workspace.
/// Artifacts are files or documents that belong to a specific agent session, providing a persistent workspace where agents and users can share files throughout a conversation. When users upload files (such as PDFs, Word documents, PowerPoint presentations, or images) to an agent session, these files are stored as artifacts that remain available for the duration of the session.
/// **Session Binding**: Each artifact is scoped to a specific agent session and cannot be accessed from other sessions, ensuring data privacy and security.
- /// **Lifecycle**: Artifacts are created when users upload files via multipart requests or when agent tools generate new files (such as converting a PDF to markdown). Artifacts have a configurable time-to-live and are automatically removed when they expire or when the session is deleted. Size limits apply to individual artifacts and total session storage.
+ /// **Lifecycle**: Artifacts are created when users upload files via multipart requests or when agent tools generate new files (such as converting a PDF to markdown). Artifacts have a configurable time-to-live and are automatically removed when they expire or when the session is deleted. A per-artifact size limit applies to each upload.
/// **How Agents Use Artifacts**: Agent tools can read artifacts, process them, and create new derived artifacts. For example, the document conversion tool can take a PDF artifact, convert it to markdown, and store the result as a new artifact. This enables multi-step document processing workflows within a single session.
/// **Common Use Cases**: Upload a document for the agent to analyze, provide multiple reference files for context, enable the agent to convert between formats, or allow the agent to generate and store processed files for later retrieval.
///
diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateAgentRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateAgentRequest.g.cs
index 5618ddda..940d069c 100644
--- a/src/libs/Vectara/Generated/Vectara.Models.CreateAgentRequest.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.Models.CreateAgentRequest.g.cs
@@ -41,7 +41,7 @@ public sealed partial class CreateAgentRequest
/// {"customer_search":{"type":"corpora_search","argument_override":{"query":"customer support documentation"}}}
[global::System.Text.Json.Serialization.JsonPropertyName("tool_configurations")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required object ToolConfigurations { get; set; }
+ public required global::System.Collections.Generic.Dictionary ToolConfigurations { get; set; }
///
/// A map of skills available to the agent, keyed by skill name.
@@ -110,11 +110,16 @@ public sealed partial class CreateAgentRequest
public global::Vectara.CompactionConfig? Compaction { get; set; }
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
[global::System.Text.Json.Serialization.JsonPropertyName("tool_output_offloading")]
public global::Vectara.ToolOutputOffloadingConfiguration? ToolOutputOffloading { get; set; }
@@ -181,18 +186,23 @@ public sealed partial class CreateAgentRequest
/// Configuration for automatic context compaction.
///
///
- /// Configuration for offloading large tool outputs to artifacts.
- /// When tools produce outputs exceeding the size threshold, the output is stored
- /// as an artifact and replaced with a compact reference. The agent can then use
- /// artifact_read or artifact_grep to access the full content on demand.
- /// All fields are optional; omitted fields use model-inferred defaults.
+ /// Controls how large tool outputs are kept from overwhelming the agent context window.
+ /// Tool outputs are inspected as they are produced. A small output is always passed through
+ /// unchanged. A larger output is handled in one of two cases: when the output on its own is
+ /// big enough to dominate the context, or when adding it to the conversation would leave
+ /// too little room for the agent to continue. In either case the output is handled according
+ /// to `mode` — stored as an artifact and replaced with a compact reference, or truncated in
+ /// place with the head and tail preserved and the middle omitted. When stored as an artifact,
+ /// the agent is expected to have artifact_read, artifact_grep, or artifact_jq configured so
+ /// it can retrieve the full content on demand.
+ /// All fields are optional; omitted fields fall back to defaults.
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public CreateAgentRequest(
string name,
- object toolConfigurations,
+ global::System.Collections.Generic.Dictionary toolConfigurations,
global::Vectara.AgentModel model,
string? key,
string? description,
diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateAnthropicLLMRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateAnthropicLLMRequest.g.cs
index 67bb98ca..9f28aa20 100644
--- a/src/libs/Vectara/Generated/Vectara.Models.CreateAnthropicLLMRequest.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.Models.CreateAnthropicLLMRequest.g.cs
@@ -60,6 +60,14 @@ public sealed partial class CreateAnthropicLLMRequest
[global::System.Text.Json.Serialization.JsonPropertyName("headers")]
public global::System.Collections.Generic.Dictionary? Headers { get; set; }
+ ///
+ /// Maximum time in seconds the platform will wait for the model to send data before considering the connection stale and terminating it. For example, this is used as the SSE idle timeout during streaming — if no new server-sent events arrive within this window the stream is closed with an error. If unset, the platform falls back to its default read timeout for that provider (typically 60 seconds for OpenAI / Anthropic; provider SDK default for Vertex). On update, omit the field to leave the configured value unchanged or send an explicit null to clear it.
+ /// Example: 300
+ ///
+ /// 300
+ [global::System.Text.Json.Serialization.JsonPropertyName("idle_timeout_seconds")]
+ public int? IdleTimeoutSeconds { get; set; }
+
///
/// Any additional parameters that are required for the LLM during the test call.
///
@@ -67,7 +75,7 @@ public sealed partial class CreateAnthropicLLMRequest
public object? TestModelParameters { get; set; }
///
- /// Capabilities of a Large Language Model.
+ /// Capabilities of a Large Language Model. If not provided when creating an LLM, capabilities are automatically inferred from the model name and provider type. Any explicitly provided fields override the inferred defaults.
///
[global::System.Text.Json.Serialization.JsonPropertyName("capabilities")]
public global::Vectara.LLMCapabilities? Capabilities { get; set; }
@@ -105,11 +113,15 @@ public sealed partial class CreateAnthropicLLMRequest
///
/// Optional additional headers to send with the request
///
+ ///
+ /// Maximum time in seconds the platform will wait for the model to send data before considering the connection stale and terminating it. For example, this is used as the SSE idle timeout during streaming — if no new server-sent events arrive within this window the stream is closed with an error. If unset, the platform falls back to its default read timeout for that provider (typically 60 seconds for OpenAI / Anthropic; provider SDK default for Vertex). On update, omit the field to leave the configured value unchanged or send an explicit null to clear it.
+ /// Example: 300
+ ///
///
/// Any additional parameters that are required for the LLM during the test call.
///
///
- /// Capabilities of a Large Language Model.
+ /// Capabilities of a Large Language Model. If not provided when creating an LLM, capabilities are automatically inferred from the model name and provider type. Any explicitly provided fields override the inferred defaults.
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
@@ -122,6 +134,7 @@ public CreateAnthropicLLMRequest(
string? description,
string? uri,
global::System.Collections.Generic.Dictionary? headers,
+ int? idleTimeoutSeconds,
object? testModelParameters,
global::Vectara.LLMCapabilities? capabilities)
{
@@ -132,6 +145,7 @@ public CreateAnthropicLLMRequest(
this.Uri = uri;
this.Auth = auth;
this.Headers = headers;
+ this.IdleTimeoutSeconds = idleTimeoutSeconds;
this.TestModelParameters = testModelParameters;
this.Capabilities = capabilities;
}
diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateVertexAILLMRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateVertexAILLMRequest.g.cs
index 028d33aa..d3128cc0 100644
--- a/src/libs/Vectara/Generated/Vectara.Models.CreateVertexAILLMRequest.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.Models.CreateVertexAILLMRequest.g.cs
@@ -57,6 +57,14 @@ public sealed partial class CreateVertexAILLMRequest
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Vectara.VertexAiAuth Auth { get; set; }
+ ///
+ /// Maximum time in seconds the platform will wait for the model to send data before considering the connection stale and terminating it. For example, this is used as the SSE idle timeout during streaming — if no new server-sent events arrive within this window the stream is closed with an error. If unset, the platform falls back to its default read timeout for that provider (typically 60 seconds for OpenAI / Anthropic; provider SDK default for Vertex). On update, omit the field to leave the configured value unchanged or send an explicit null to clear it.
+ /// Example: 300
+ ///
+ /// 300
+ [global::System.Text.Json.Serialization.JsonPropertyName("idle_timeout_seconds")]
+ public int? IdleTimeoutSeconds { get; set; }
+
///
/// Any additional parameters that are required for the LLM during the test call.
///
@@ -64,7 +72,7 @@ public sealed partial class CreateVertexAILLMRequest
public object? TestModelParameters { get; set; }
///
- /// Capabilities of a Large Language Model.
+ /// Capabilities of a Large Language Model. If not provided when creating an LLM, capabilities are automatically inferred from the model name and provider type. Any explicitly provided fields override the inferred defaults.
///
[global::System.Text.Json.Serialization.JsonPropertyName("capabilities")]
public global::Vectara.LLMCapabilities? Capabilities { get; set; }
@@ -101,11 +109,15 @@ public sealed partial class CreateVertexAILLMRequest
///
/// Description of the LLM.
///
+ ///
+ /// Maximum time in seconds the platform will wait for the model to send data before considering the connection stale and terminating it. For example, this is used as the SSE idle timeout during streaming — if no new server-sent events arrive within this window the stream is closed with an error. If unset, the platform falls back to its default read timeout for that provider (typically 60 seconds for OpenAI / Anthropic; provider SDK default for Vertex). On update, omit the field to leave the configured value unchanged or send an explicit null to clear it.
+ /// Example: 300
+ ///
///
/// Any additional parameters that are required for the LLM during the test call.
///
///
- /// Capabilities of a Large Language Model.
+ /// Capabilities of a Large Language Model. If not provided when creating an LLM, capabilities are automatically inferred from the model name and provider type. Any explicitly provided fields override the inferred defaults.
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
@@ -117,6 +129,7 @@ public CreateVertexAILLMRequest(
string uri,
global::Vectara.VertexAiAuth auth,
string? description,
+ int? idleTimeoutSeconds,
object? testModelParameters,
global::Vectara.LLMCapabilities? capabilities)
{
@@ -126,6 +139,7 @@ public CreateVertexAILLMRequest(
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.Uri = uri ?? throw new global::System.ArgumentNullException(nameof(uri));
this.Auth = auth;
+ this.IdleTimeoutSeconds = idleTimeoutSeconds;
this.TestModelParameters = testModelParameters;
this.Capabilities = capabilities;
}
diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.Json.g.cs
index fcebef45..a83ef36f 100644
--- a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.Json.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.Json.g.cs
@@ -2,7 +2,7 @@
namespace Vectara
{
- public sealed partial class InlineArtifactCreateToolConfiguration
+ public readonly partial struct InlineArtifactCreateToolConfiguration
{
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -41,7 +41,7 @@ public string ToJson(
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Vectara.InlineArtifactCreateToolConfiguration),
- jsonSerializerContext) as global::Vectara.InlineArtifactCreateToolConfiguration;
+ jsonSerializerContext) as global::Vectara.InlineArtifactCreateToolConfiguration?;
}
///
@@ -70,7 +70,7 @@ public string ToJson(
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::Vectara.InlineArtifactCreateToolConfiguration),
- jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.InlineArtifactCreateToolConfiguration;
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.InlineArtifactCreateToolConfiguration?;
}
///
diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.g.cs
index 6874e8d7..8d086c3c 100644
--- a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.g.cs
@@ -1,3 +1,4 @@
+#pragma warning disable CS0618 // Type or member is obsolete
#nullable enable
@@ -6,69 +7,215 @@ namespace Vectara
///
/// An artifact create tool configuration defined inline in the agent for creating artifacts on-the-fly from text or structured data content.
///
- public sealed partial class InlineArtifactCreateToolConfiguration
+ public readonly partial struct InlineArtifactCreateToolConfiguration : global::System.IEquatable
{
///
- /// The type of tool configuration, which is always 'artifact_create' for inline artifact create tool configurations.
- /// Default Value: artifact_create
+ /// Base properties shared by all inline tool configurations on an agent.
///
- /// "artifact_create"
- [global::System.Text.Json.Serialization.JsonPropertyName("type")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string Type { get; set; } = "artifact_create";
+#if NET6_0_OR_GREATER
+ public global::Vectara.AgentToolConfigurationBase? AgentBase { get; init; }
+#else
+ public global::Vectara.AgentToolConfigurationBase? AgentBase { get; }
+#endif
///
- /// Velocity template for generating dynamic tool descriptions. When set, this template is rendered at runtime to produce the tool description.
- /// Available Velocity variables:
- /// - `$agent.name` - Agent name
- /// - `$agent.metadata` - Agent metadata map
- /// - `$session.key` - Session key
- /// - `$session.metadata` - Session metadata map
- /// - `$currentDate` - Current date/time in ISO 8601 format (e.g., "2025-10-24T15:30:45Z")
- /// Example: "Search tool configured for agent $agent.name on $currentDate"
+ ///
///
- [global::System.Text.Json.Serialization.JsonPropertyName("description_template")]
- public string? DescriptionTemplate { get; set; }
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentBase))]
+#endif
+ public bool IsAgentBase => AgentBase != null;
///
- /// 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();
+#if NET6_0_OR_GREATER
+ public global::Vectara.InlineArtifactCreateToolConfigurationVariant2? InlineArtifactCreateToolConfigurationVariant2 { get; init; }
+#else
+ public global::Vectara.InlineArtifactCreateToolConfigurationVariant2? InlineArtifactCreateToolConfigurationVariant2 { get; }
+#endif
///
- /// Initializes a new instance of the class.
+ ///
///
- ///
- /// The type of tool configuration, which is always 'artifact_create' for inline artifact create tool configurations.
- /// Default Value: artifact_create
- ///
- ///
- /// Velocity template for generating dynamic tool descriptions. When set, this template is rendered at runtime to produce the tool description.
- /// Available Velocity variables:
- /// - `$agent.name` - Agent name
- /// - `$agent.metadata` - Agent metadata map
- /// - `$session.key` - Session key
- /// - `$session.metadata` - Session metadata map
- /// - `$currentDate` - Current date/time in ISO 8601 format (e.g., "2025-10-24T15:30:45Z")
- /// Example: "Search tool configured for agent $agent.name on $currentDate"
- ///
-#if NET7_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InlineArtifactCreateToolConfigurationVariant2))]
#endif
+ public bool IsInlineArtifactCreateToolConfigurationVariant2 => InlineArtifactCreateToolConfigurationVariant2 != null;
+ ///
+ ///
+ ///
+ public static implicit operator InlineArtifactCreateToolConfiguration(global::Vectara.AgentToolConfigurationBase value) => new InlineArtifactCreateToolConfiguration((global::Vectara.AgentToolConfigurationBase?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.AgentToolConfigurationBase?(InlineArtifactCreateToolConfiguration @this) => @this.AgentBase;
+
+ ///
+ ///
+ ///
+ public InlineArtifactCreateToolConfiguration(global::Vectara.AgentToolConfigurationBase? value)
+ {
+ AgentBase = value;
+ }
+
+ ///
+ ///
+ ///
+ public static implicit operator InlineArtifactCreateToolConfiguration(global::Vectara.InlineArtifactCreateToolConfigurationVariant2 value) => new InlineArtifactCreateToolConfiguration((global::Vectara.InlineArtifactCreateToolConfigurationVariant2?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.InlineArtifactCreateToolConfigurationVariant2?(InlineArtifactCreateToolConfiguration @this) => @this.InlineArtifactCreateToolConfigurationVariant2;
+
+ ///
+ ///
+ ///
+ public InlineArtifactCreateToolConfiguration(global::Vectara.InlineArtifactCreateToolConfigurationVariant2? value)
+ {
+ InlineArtifactCreateToolConfigurationVariant2 = value;
+ }
+
+ ///
+ ///
+ ///
public InlineArtifactCreateToolConfiguration(
- string type,
- string? descriptionTemplate)
+ global::Vectara.AgentToolConfigurationBase? agentBase,
+ global::Vectara.InlineArtifactCreateToolConfigurationVariant2? inlineArtifactCreateToolConfigurationVariant2
+ )
+ {
+ AgentBase = agentBase;
+ InlineArtifactCreateToolConfigurationVariant2 = inlineArtifactCreateToolConfigurationVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public object? Object =>
+ InlineArtifactCreateToolConfigurationVariant2 as object ??
+ AgentBase as object
+ ;
+
+ ///
+ ///
+ ///
+ public override string? ToString() =>
+ AgentBase?.ToString() ??
+ InlineArtifactCreateToolConfigurationVariant2?.ToString()
+ ;
+
+ ///
+ ///
+ ///
+ public bool Validate()
+ {
+ return IsAgentBase && IsInlineArtifactCreateToolConfigurationVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public TResult? Match(
+ global::System.Func? agentBase = null,
+ global::System.Func? inlineArtifactCreateToolConfigurationVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsAgentBase && agentBase != null)
+ {
+ return agentBase(AgentBase!);
+ }
+ else if (IsInlineArtifactCreateToolConfigurationVariant2 && inlineArtifactCreateToolConfigurationVariant2 != null)
+ {
+ return inlineArtifactCreateToolConfigurationVariant2(InlineArtifactCreateToolConfigurationVariant2!);
+ }
+
+ return default(TResult);
+ }
+
+ ///
+ ///
+ ///
+ public void Match(
+ global::System.Action? agentBase = null,
+ global::System.Action? inlineArtifactCreateToolConfigurationVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsAgentBase)
+ {
+ agentBase?.Invoke(AgentBase!);
+ }
+ else if (IsInlineArtifactCreateToolConfigurationVariant2)
+ {
+ inlineArtifactCreateToolConfigurationVariant2?.Invoke(InlineArtifactCreateToolConfigurationVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public override int GetHashCode()
+ {
+ var fields = new object?[]
+ {
+ AgentBase,
+ typeof(global::Vectara.AgentToolConfigurationBase),
+ InlineArtifactCreateToolConfigurationVariant2,
+ typeof(global::Vectara.InlineArtifactCreateToolConfigurationVariant2),
+ };
+ 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(InlineArtifactCreateToolConfiguration other)
+ {
+ return
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentBase, other.AgentBase) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(InlineArtifactCreateToolConfigurationVariant2, other.InlineArtifactCreateToolConfigurationVariant2)
+ ;
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator ==(InlineArtifactCreateToolConfiguration obj1, InlineArtifactCreateToolConfiguration obj2)
+ {
+ return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2);
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator !=(InlineArtifactCreateToolConfiguration obj1, InlineArtifactCreateToolConfiguration obj2)
{
- this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
- this.DescriptionTemplate = descriptionTemplate;
+ return !(obj1 == obj2);
}
///
- /// Initializes a new instance of the class.
+ ///
///
- public InlineArtifactCreateToolConfiguration()
+ public override bool Equals(object? obj)
{
+ return obj is InlineArtifactCreateToolConfiguration o && Equals(o);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfigurationVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfigurationVariant2.Json.g.cs
new file mode 100644
index 00000000..80eaf2d8
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfigurationVariant2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public sealed partial class InlineArtifactCreateToolConfigurationVariant2
+ {
+ ///
+ /// 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.InlineArtifactCreateToolConfigurationVariant2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.InlineArtifactCreateToolConfigurationVariant2),
+ jsonSerializerContext) as global::Vectara.InlineArtifactCreateToolConfigurationVariant2;
+ }
+
+ ///
+ /// 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.InlineArtifactCreateToolConfigurationVariant2? 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.InlineArtifactCreateToolConfigurationVariant2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.InlineArtifactCreateToolConfigurationVariant2;
+ }
+
+ ///
+ /// 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.InlineArtifactCreateToolConfigurationVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfigurationVariant2.g.cs
new file mode 100644
index 00000000..bc2abba8
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfigurationVariant2.g.cs
@@ -0,0 +1,49 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ ///
+ ///
+ public sealed partial class InlineArtifactCreateToolConfigurationVariant2
+ {
+ ///
+ /// The type of tool configuration, which is always 'artifact_create' for inline artifact create tool configurations.
+ /// Default Value: artifact_create
+ ///
+ /// "artifact_create"
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Type { get; set; } = "artifact_create";
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// The type of tool configuration, which is always 'artifact_create' for inline artifact create tool configurations.
+ /// Default Value: artifact_create
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public InlineArtifactCreateToolConfigurationVariant2(
+ string type)
+ {
+ this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public InlineArtifactCreateToolConfigurationVariant2()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactGrepToolConfiguration.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactGrepToolConfiguration.Json.g.cs
index e2649bb8..dbf21db7 100644
--- a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactGrepToolConfiguration.Json.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactGrepToolConfiguration.Json.g.cs
@@ -2,7 +2,7 @@
namespace Vectara
{
- public sealed partial class InlineArtifactGrepToolConfiguration
+ public readonly partial struct InlineArtifactGrepToolConfiguration
{
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -41,7 +41,7 @@ public string ToJson(
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Vectara.InlineArtifactGrepToolConfiguration),
- jsonSerializerContext) as global::Vectara.InlineArtifactGrepToolConfiguration;
+ jsonSerializerContext) as global::Vectara.InlineArtifactGrepToolConfiguration?;
}
///
@@ -70,7 +70,7 @@ public string ToJson(
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::Vectara.InlineArtifactGrepToolConfiguration),
- jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.InlineArtifactGrepToolConfiguration;
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.InlineArtifactGrepToolConfiguration?;
}
///
diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactGrepToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactGrepToolConfiguration.g.cs
index f3cf10ca..6c533a9f 100644
--- a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactGrepToolConfiguration.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactGrepToolConfiguration.g.cs
@@ -1,3 +1,4 @@
+#pragma warning disable CS0618 // Type or member is obsolete
#nullable enable
@@ -6,80 +7,215 @@ namespace Vectara
///
/// An artifact grep tool configuration defined inline in the agent for searching through artifact content.
///
- public sealed partial class InlineArtifactGrepToolConfiguration
+ public readonly partial struct InlineArtifactGrepToolConfiguration : global::System.IEquatable
{
///
- /// The type of tool configuration, which is always 'artifact_grep' for inline artifact grep tool configurations.
- /// Default Value: artifact_grep
+ /// Base properties shared by all inline tool configurations on an agent.
///
- /// "artifact_grep"
- [global::System.Text.Json.Serialization.JsonPropertyName("type")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string Type { get; set; } = "artifact_grep";
+#if NET6_0_OR_GREATER
+ public global::Vectara.AgentToolConfigurationBase? AgentBase { get; init; }
+#else
+ public global::Vectara.AgentToolConfigurationBase? AgentBase { get; }
+#endif
///
- /// Velocity template for generating dynamic tool descriptions. When set, this template is rendered at runtime to produce the tool description.
- /// Available Velocity variables:
- /// - `$agent.name` - Agent name
- /// - `$agent.metadata` - Agent metadata map
- /// - `$session.key` - Session key
- /// - `$session.metadata` - Session metadata map
- /// - `$currentDate` - Current date/time in ISO 8601 format (e.g., "2025-10-24T15:30:45Z")
- /// Example: "Search tool configured for agent $agent.name on $currentDate"
+ ///
///
- [global::System.Text.Json.Serialization.JsonPropertyName("description_template")]
- public string? DescriptionTemplate { get; set; }
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentBase))]
+#endif
+ public bool IsAgentBase => AgentBase != null;
///
- /// Configurable parameters for the artifact grep tool. If not overridden, they will be required by the LLM to fill in.
+ ///
///
- [global::System.Text.Json.Serialization.JsonPropertyName("argument_override")]
- public global::Vectara.ArtifactGrepToolParameters? ArgumentOverride { get; set; }
+#if NET6_0_OR_GREATER
+ public global::Vectara.InlineArtifactGrepToolConfigurationVariant2? InlineArtifactGrepToolConfigurationVariant2 { get; init; }
+#else
+ public global::Vectara.InlineArtifactGrepToolConfigurationVariant2? InlineArtifactGrepToolConfigurationVariant2 { get; }
+#endif
///
- /// 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();
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InlineArtifactGrepToolConfigurationVariant2))]
+#endif
+ public bool IsInlineArtifactGrepToolConfigurationVariant2 => InlineArtifactGrepToolConfigurationVariant2 != null;
+ ///
+ ///
+ ///
+ public static implicit operator InlineArtifactGrepToolConfiguration(global::Vectara.AgentToolConfigurationBase value) => new InlineArtifactGrepToolConfiguration((global::Vectara.AgentToolConfigurationBase?)value);
///
- /// Initializes a new instance of the class.
+ ///
+ ///
+ public static implicit operator global::Vectara.AgentToolConfigurationBase?(InlineArtifactGrepToolConfiguration @this) => @this.AgentBase;
+
+ ///
+ ///
+ ///
+ public InlineArtifactGrepToolConfiguration(global::Vectara.AgentToolConfigurationBase? value)
+ {
+ AgentBase = value;
+ }
+
+ ///
+ ///
+ ///
+ public static implicit operator InlineArtifactGrepToolConfiguration(global::Vectara.InlineArtifactGrepToolConfigurationVariant2 value) => new InlineArtifactGrepToolConfiguration((global::Vectara.InlineArtifactGrepToolConfigurationVariant2?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.InlineArtifactGrepToolConfigurationVariant2?(InlineArtifactGrepToolConfiguration @this) => @this.InlineArtifactGrepToolConfigurationVariant2;
+
+ ///
+ ///
+ ///
+ public InlineArtifactGrepToolConfiguration(global::Vectara.InlineArtifactGrepToolConfigurationVariant2? value)
+ {
+ InlineArtifactGrepToolConfigurationVariant2 = value;
+ }
+
+ ///
+ ///
///
- ///
- /// The type of tool configuration, which is always 'artifact_grep' for inline artifact grep tool configurations.
- /// Default Value: artifact_grep
- ///
- ///
- /// Velocity template for generating dynamic tool descriptions. When set, this template is rendered at runtime to produce the tool description.
- /// Available Velocity variables:
- /// - `$agent.name` - Agent name
- /// - `$agent.metadata` - Agent metadata map
- /// - `$session.key` - Session key
- /// - `$session.metadata` - Session metadata map
- /// - `$currentDate` - Current date/time in ISO 8601 format (e.g., "2025-10-24T15:30:45Z")
- /// Example: "Search tool configured for agent $agent.name on $currentDate"
- ///
- ///
- /// Configurable parameters for the artifact grep tool. If not overridden, they will be required by the LLM to fill in.
- ///
-#if NET7_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
-#endif
public InlineArtifactGrepToolConfiguration(
- string type,
- string? descriptionTemplate,
- global::Vectara.ArtifactGrepToolParameters? argumentOverride)
+ global::Vectara.AgentToolConfigurationBase? agentBase,
+ global::Vectara.InlineArtifactGrepToolConfigurationVariant2? inlineArtifactGrepToolConfigurationVariant2
+ )
+ {
+ AgentBase = agentBase;
+ InlineArtifactGrepToolConfigurationVariant2 = inlineArtifactGrepToolConfigurationVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public object? Object =>
+ InlineArtifactGrepToolConfigurationVariant2 as object ??
+ AgentBase as object
+ ;
+
+ ///
+ ///
+ ///
+ public override string? ToString() =>
+ AgentBase?.ToString() ??
+ InlineArtifactGrepToolConfigurationVariant2?.ToString()
+ ;
+
+ ///
+ ///
+ ///
+ public bool Validate()
+ {
+ return IsAgentBase && IsInlineArtifactGrepToolConfigurationVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public TResult? Match(
+ global::System.Func? agentBase = null,
+ global::System.Func? inlineArtifactGrepToolConfigurationVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsAgentBase && agentBase != null)
+ {
+ return agentBase(AgentBase!);
+ }
+ else if (IsInlineArtifactGrepToolConfigurationVariant2 && inlineArtifactGrepToolConfigurationVariant2 != null)
+ {
+ return inlineArtifactGrepToolConfigurationVariant2(InlineArtifactGrepToolConfigurationVariant2!);
+ }
+
+ return default(TResult);
+ }
+
+ ///