From 60c6f10e3d4e8fda6bf9792d4d615fda9af62447 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 20 Apr 2026 21:53:00 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...JsonConverters.AgentToolConfiguration.g.cs | 15 + .../Vectara.JsonSerializerContext.g.cs | 1 + .../Vectara.JsonSerializerContextTypes.g.cs | 436 +++++++++--------- ...Vectara.Models.AgentToolConfiguration.g.cs | 54 ++- ...entToolConfigurationDiscriminatorType.g.cs | 6 + ...eArtifactCreateToolConfiguration.Json.g.cs | 92 ++++ ...InlineArtifactCreateToolConfiguration.g.cs | 74 +++ src/libs/Vectara/openapi.yaml | 19 + 8 files changed, 480 insertions(+), 217 deletions(-) create mode 100644 src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.Json.g.cs create mode 100644 src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.g.cs diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs index 93cd9a5d..61637ea8 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs @@ -84,6 +84,13 @@ public class AgentToolConfigurationJsonConverter : global::System.Text.Json.Seri throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.InlineArtifactGrepToolConfiguration)}"); artifactGrep = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.InlineArtifactCreateToolConfiguration? artifactCreate = default; + if (discriminator?.Type == global::Vectara.AgentToolConfigurationDiscriminatorType.ArtifactCreate) + { + 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 {nameof(global::Vectara.InlineArtifactCreateToolConfiguration)}"); + artifactCreate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Vectara.InlineImageReadToolConfiguration? imageRead = default; if (discriminator?.Type == global::Vectara.AgentToolConfigurationDiscriminatorType.ImageRead) { @@ -126,6 +133,8 @@ public class AgentToolConfigurationJsonConverter : global::System.Text.Json.Seri artifactGrep, + artifactCreate, + imageRead, documentConversion, @@ -199,6 +208,12 @@ public override void Write( 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); } + else if (value.IsArtifactCreate) + { + 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); + } else if (value.IsImageRead) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineImageReadToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs index 1f79f0ba..d790b22b 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs @@ -981,6 +981,7 @@ namespace Vectara [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineArtifactReadToolConfiguration))] [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.InlineArtifactCreateToolConfiguration))] [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))] diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs index 9cee9bcf..9e165563 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs @@ -1704,867 +1704,871 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Vectara.ImageReadToolParameters? Type419 { get; set; } + public global::Vectara.InlineArtifactCreateToolConfiguration? Type419 { get; set; } /// /// /// - public global::Vectara.ImageReadToolParametersDetail? Type420 { get; set; } + public global::Vectara.ImageReadToolParameters? Type420 { get; set; } /// /// /// - public global::Vectara.InlineImageReadToolConfiguration? Type421 { get; set; } + public global::Vectara.ImageReadToolParametersDetail? Type421 { get; set; } /// /// /// - public global::Vectara.DocumentConversionToolParameters? Type422 { get; set; } + public global::Vectara.InlineImageReadToolConfiguration? Type422 { get; set; } /// /// /// - public global::Vectara.DocumentConversionToolParametersOutputFormat? Type423 { get; set; } + public global::Vectara.DocumentConversionToolParameters? Type423 { get; set; } /// /// /// - public global::Vectara.InlineDocumentConversionToolConfiguration? Type424 { get; set; } + public global::Vectara.DocumentConversionToolParametersOutputFormat? Type424 { get; set; } /// /// /// - public global::Vectara.GetDocumentTextParameters? Type425 { get; set; } + public global::Vectara.InlineDocumentConversionToolConfiguration? Type425 { get; set; } /// /// /// - public global::Vectara.GetDocumentTextConfiguration? Type426 { get; set; } + public global::Vectara.GetDocumentTextParameters? Type426 { get; set; } /// /// /// - public global::Vectara.GetDocumentTextConfigurationMetadata? Type427 { get; set; } + public global::Vectara.GetDocumentTextConfiguration? Type427 { get; set; } /// /// /// - public global::Vectara.InlineGetDocumentTextToolConfiguration? Type428 { get; set; } + public global::Vectara.GetDocumentTextConfigurationMetadata? Type428 { get; set; } /// /// /// - public global::Vectara.AgentToolConfiguration? Type429 { get; set; } + public global::Vectara.InlineGetDocumentTextToolConfiguration? Type429 { get; set; } /// /// /// - public global::Vectara.AgentToolConfigurationDiscriminator? Type430 { get; set; } + public global::Vectara.AgentToolConfiguration? Type430 { get; set; } /// /// /// - public global::Vectara.AgentToolConfigurationDiscriminatorType? Type431 { get; set; } + public global::Vectara.AgentToolConfigurationDiscriminator? Type431 { get; set; } /// /// /// - public global::Vectara.AgentSkill? Type432 { get; set; } + public global::Vectara.AgentToolConfigurationDiscriminatorType? Type432 { get; set; } /// /// /// - public global::Vectara.RetryConfiguration? Type433 { get; set; } + public global::Vectara.AgentSkill? Type433 { get; set; } /// /// /// - public global::Vectara.AgentModel? Type434 { get; set; } + public global::Vectara.RetryConfiguration? Type434 { get; set; } /// /// /// - public global::Vectara.InstructionReference? Type435 { get; set; } + public global::Vectara.AgentModel? Type435 { get; set; } /// /// /// - public global::Vectara.ReferenceInstruction? Type436 { get; set; } + public global::Vectara.InstructionReference? Type436 { get; set; } /// /// /// - public global::Vectara.ReferenceInstructionVariant2? Type437 { get; set; } + public global::Vectara.ReferenceInstruction? Type437 { get; set; } /// /// /// - public global::Vectara.InlineInstruction? Type438 { get; set; } + public global::Vectara.ReferenceInstructionVariant2? Type438 { get; set; } /// /// /// - public global::Vectara.InlineInstructionVariant2? Type439 { get; set; } + public global::Vectara.InlineInstruction? Type439 { get; set; } /// /// /// - public global::Vectara.AgentStepInstruction? Type440 { get; set; } + public global::Vectara.InlineInstructionVariant2? Type440 { get; set; } /// /// /// - public global::Vectara.AgentStepInstructionDiscriminator? Type441 { get; set; } + public global::Vectara.AgentStepInstruction? Type441 { get; set; } /// /// /// - public global::Vectara.AgentStepInstructionDiscriminatorType? Type442 { get; set; } + public global::Vectara.AgentStepInstructionDiscriminator? Type442 { get; set; } /// /// /// - public global::Vectara.DefaultOutputParser? Type443 { get; set; } + public global::Vectara.AgentStepInstructionDiscriminatorType? Type443 { get; set; } /// /// /// - public global::Vectara.StructuredOutputParser? Type444 { get; set; } + public global::Vectara.DefaultOutputParser? Type444 { get; set; } /// /// /// - public global::Vectara.AgentOutputParser? Type445 { get; set; } + public global::Vectara.StructuredOutputParser? Type445 { get; set; } /// /// /// - public global::Vectara.AgentOutputParserDiscriminator? Type446 { get; set; } + public global::Vectara.AgentOutputParser? Type446 { get; set; } /// /// /// - public global::Vectara.AgentOutputParserDiscriminatorType? Type447 { get; set; } + public global::Vectara.AgentOutputParserDiscriminator? Type447 { get; set; } /// /// /// - public global::Vectara.TemplatedReminder? Type448 { get; set; } + public global::Vectara.AgentOutputParserDiscriminatorType? Type448 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type449 { get; set; } + public global::Vectara.TemplatedReminder? Type449 { get; set; } /// /// /// - public global::Vectara.TemplatedReminderHook? Type450 { get; set; } + public global::System.Collections.Generic.IList? Type450 { get; set; } /// /// /// - public global::Vectara.GlossaryExpansionReminder? Type451 { get; set; } + public global::Vectara.TemplatedReminderHook? Type451 { get; set; } /// /// /// - public global::Vectara.AgentStepReminder? Type452 { get; set; } + public global::Vectara.GlossaryExpansionReminder? Type452 { get; set; } /// /// /// - public global::Vectara.AgentStepReminderDiscriminator? Type453 { get; set; } + public global::Vectara.AgentStepReminder? Type453 { get; set; } /// /// /// - public global::Vectara.AgentStepReminderDiscriminatorType? Type454 { get; set; } + public global::Vectara.AgentStepReminderDiscriminator? Type454 { get; set; } /// /// /// - public global::Vectara.NextStep? Type455 { get; set; } + public global::Vectara.AgentStepReminderDiscriminatorType? Type455 { get; set; } /// /// /// - public global::Vectara.FirstAgentStep? Type456 { get; set; } + public global::Vectara.NextStep? Type456 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type457 { get; set; } + public global::Vectara.FirstAgentStep? Type457 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type458 { get; set; } + public global::System.Collections.Generic.IList? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type459 { get; set; } + public global::System.Collections.Generic.IList? Type459 { get; set; } /// /// /// - public global::Vectara.AgentStep? Type460 { get; set; } + public global::System.Collections.Generic.IList? Type460 { get; set; } /// /// /// - public global::Vectara.CompactionConfig? Type461 { get; set; } + public global::Vectara.AgentStep? Type461 { get; set; } /// /// /// - public global::Vectara.CompactionConfigToolEventPolicy? Type462 { get; set; } + public global::Vectara.CompactionConfig? Type462 { get; set; } /// /// /// - public global::Vectara.ToolOutputOffloadingConfiguration? Type463 { get; set; } + public global::Vectara.CompactionConfigToolEventPolicy? Type463 { get; set; } /// /// /// - public global::Vectara.Agent? Type464 { get; set; } + public global::Vectara.ToolOutputOffloadingConfiguration? Type464 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type465 { get; set; } + public global::Vectara.Agent? Type465 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type466 { get; set; } + public global::System.Collections.Generic.Dictionary? Type466 { get; set; } /// /// /// - public global::Vectara.ListAgentsResponse? Type467 { get; set; } + public global::System.Collections.Generic.Dictionary? Type467 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type468 { get; set; } + public global::Vectara.ListAgentsResponse? Type468 { get; set; } /// /// /// - public global::Vectara.CreateAgentRequest? Type469 { get; set; } + public global::System.Collections.Generic.IList? Type469 { get; set; } /// /// /// - public global::Vectara.UpdateFirstAgentStep? Type470 { get; set; } + public global::Vectara.CreateAgentRequest? Type470 { get; set; } /// /// /// - public global::Vectara.UpdateAgentStep? Type471 { get; set; } + public global::Vectara.UpdateFirstAgentStep? Type471 { get; set; } /// /// /// - public global::Vectara.UpdateAgentRequest? Type472 { get; set; } + public global::Vectara.UpdateAgentStep? Type472 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type473 { get; set; } + public global::Vectara.UpdateAgentRequest? Type473 { get; set; } /// /// /// - public global::Vectara.InputTokens? Type474 { get; set; } + public global::System.Collections.Generic.Dictionary? Type474 { get; set; } /// /// /// - public global::Vectara.OutputTokens? Type475 { get; set; } + public global::Vectara.InputTokens? Type475 { get; set; } /// /// /// - public global::Vectara.SessionContextUsage? Type476 { get; set; } + public global::Vectara.OutputTokens? Type476 { get; set; } /// /// /// - public global::Vectara.AgentSession? Type477 { get; set; } + public global::Vectara.SessionContextUsage? Type477 { get; set; } /// /// /// - public global::Vectara.ListAgentSessionsResponse? Type478 { get; set; } + public global::Vectara.AgentSession? Type478 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type479 { get; set; } + public global::Vectara.ListAgentSessionsResponse? Type479 { get; set; } /// /// /// - public global::Vectara.CreateAgentSessionRequest? Type480 { get; set; } + public global::System.Collections.Generic.IList? Type480 { get; set; } /// /// /// - public global::Vectara.CreateAgentSessionRequestFromSession? Type481 { get; set; } + public global::Vectara.CreateAgentSessionRequest? Type481 { get; set; } /// /// /// - public global::Vectara.UpdateAgentSessionRequest? Type482 { get; set; } + public global::Vectara.CreateAgentSessionRequestFromSession? Type482 { get; set; } /// /// /// - public global::Vectara.AgentEventBase? Type483 { get; set; } + public global::Vectara.UpdateAgentSessionRequest? Type483 { get; set; } /// /// /// - public global::Vectara.AgentTextInput? Type484 { get; set; } + public global::Vectara.AgentEventBase? Type484 { get; set; } /// /// /// - public global::Vectara.AgentSkillInput? Type485 { get; set; } + public global::Vectara.AgentTextInput? Type485 { get; set; } /// /// /// - public global::Vectara.AgentInput? Type486 { get; set; } + public global::Vectara.AgentSkillInput? Type486 { get; set; } /// /// /// - public global::Vectara.AgentInputDiscriminator? Type487 { get; set; } + public global::Vectara.AgentInput? Type487 { get; set; } /// /// /// - public global::Vectara.AgentInputDiscriminatorType? Type488 { get; set; } + public global::Vectara.AgentInputDiscriminator? Type488 { get; set; } /// /// /// - public global::Vectara.InputMessageEvent? Type489 { get; set; } + public global::Vectara.AgentInputDiscriminatorType? Type489 { get; set; } /// /// /// - public global::Vectara.InputMessageEventVariant2? Type490 { get; set; } + public global::Vectara.InputMessageEvent? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::Vectara.InputMessageEventVariant2? Type491 { get; set; } /// /// /// - public global::Vectara.SkillLoadEvent? Type492 { get; set; } + public global::System.Collections.Generic.IList? Type492 { get; set; } /// /// /// - public global::Vectara.SkillLoadEventVariant2? Type493 { get; set; } + public global::Vectara.SkillLoadEvent? Type493 { get; set; } /// /// /// - public global::Vectara.ArtifactReference? Type494 { get; set; } + public global::Vectara.SkillLoadEventVariant2? Type494 { get; set; } /// /// /// - public global::Vectara.ArtifactUploadEvent? Type495 { get; set; } + public global::Vectara.ArtifactReference? Type495 { get; set; } /// /// /// - public global::Vectara.ArtifactUploadEventVariant2? Type496 { get; set; } + public global::Vectara.ArtifactUploadEvent? Type496 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type497 { get; set; } + public global::Vectara.ArtifactUploadEventVariant2? Type497 { get; set; } /// /// /// - public global::Vectara.ToolInputEvent? Type498 { get; set; } + public global::System.Collections.Generic.IList? Type498 { get; set; } /// /// /// - public global::Vectara.ToolInputEventVariant2? Type499 { get; set; } + public global::Vectara.ToolInputEvent? Type499 { get; set; } /// /// /// - public global::Vectara.ToolOutputEvent? Type500 { get; set; } + public global::Vectara.ToolInputEventVariant2? Type500 { get; set; } /// /// /// - public global::Vectara.ToolOutputEventVariant2? Type501 { get; set; } + public global::Vectara.ToolOutputEvent? Type501 { get; set; } /// /// /// - public global::Vectara.ThinkingEvent? Type502 { get; set; } + public global::Vectara.ToolOutputEventVariant2? Type502 { get; set; } /// /// /// - public global::Vectara.ThinkingEventVariant2? Type503 { get; set; } + public global::Vectara.ThinkingEvent? Type503 { get; set; } /// /// /// - public global::Vectara.AgentOutputEvent? Type504 { get; set; } + public global::Vectara.ThinkingEventVariant2? Type504 { get; set; } /// /// /// - public global::Vectara.AgentOutputEventVariant2? Type505 { get; set; } + public global::Vectara.AgentOutputEvent? Type505 { get; set; } /// /// /// - public global::Vectara.StructuredOutputEvent? Type506 { get; set; } + public global::Vectara.AgentOutputEventVariant2? Type506 { get; set; } /// /// /// - public global::Vectara.StructuredOutputEventVariant2? Type507 { get; set; } + public global::Vectara.StructuredOutputEvent? Type507 { get; set; } /// /// /// - public global::Vectara.ContextLimitExceededEvent? Type508 { get; set; } + public global::Vectara.StructuredOutputEventVariant2? Type508 { get; set; } /// /// /// - public global::Vectara.ContextLimitExceededEventVariant2? Type509 { get; set; } + public global::Vectara.ContextLimitExceededEvent? Type509 { get; set; } /// /// /// - public global::Vectara.StepTransitionLimitExceededEvent? Type510 { get; set; } + public global::Vectara.ContextLimitExceededEventVariant2? Type510 { get; set; } /// /// /// - public global::Vectara.StepTransitionLimitExceededEventVariant2? Type511 { get; set; } + public global::Vectara.StepTransitionLimitExceededEvent? Type511 { get; set; } /// /// /// - public global::Vectara.SessionInterruptedEvent? Type512 { get; set; } + public global::Vectara.StepTransitionLimitExceededEventVariant2? Type512 { get; set; } /// /// /// - public global::Vectara.SessionInterruptedEventVariant2? Type513 { get; set; } + public global::Vectara.SessionInterruptedEvent? Type513 { get; set; } /// /// /// - public global::Vectara.ImageReadEvent? Type514 { get; set; } + public global::Vectara.SessionInterruptedEventVariant2? Type514 { get; set; } /// /// /// - public global::Vectara.ImageReadEventVariant2? Type515 { get; set; } + public global::Vectara.ImageReadEvent? Type515 { get; set; } /// /// /// - public global::Vectara.ImageReadEventVariant2Detail? Type516 { get; set; } + public global::Vectara.ImageReadEventVariant2? Type516 { get; set; } /// /// /// - public global::Vectara.StepTransitionEvent? Type517 { get; set; } + public global::Vectara.ImageReadEventVariant2Detail? Type517 { get; set; } /// /// /// - public global::Vectara.StepTransitionEventVariant2? Type518 { get; set; } + public global::Vectara.StepTransitionEvent? Type518 { get; set; } /// /// /// - public global::Vectara.CompactionEvent? Type519 { get; set; } + public global::Vectara.StepTransitionEventVariant2? Type519 { get; set; } /// /// /// - public global::Vectara.CompactionEventVariant2? Type520 { get; set; } + public global::Vectara.CompactionEvent? Type520 { get; set; } /// /// /// - public global::Vectara.AgentEvent? Type521 { get; set; } + public global::Vectara.CompactionEventVariant2? Type521 { get; set; } /// /// /// - public global::Vectara.AgentEventDiscriminator? Type522 { get; set; } + public global::Vectara.AgentEvent? Type522 { get; set; } /// /// /// - public global::Vectara.AgentEventDiscriminatorType? Type523 { get; set; } + public global::Vectara.AgentEventDiscriminator? Type523 { get; set; } /// /// /// - public global::Vectara.ListAgentEventsResponse? Type524 { get; set; } + public global::Vectara.AgentEventDiscriminatorType? Type524 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type525 { get; set; } + public global::Vectara.ListAgentEventsResponse? Type525 { get; set; } /// /// /// - public global::Vectara.CreateInputRequestBase? Type526 { get; set; } + public global::System.Collections.Generic.IList? Type526 { get; set; } /// /// /// - public global::Vectara.InputBehavior? Type527 { get; set; } + public global::Vectara.CreateInputRequestBase? Type527 { get; set; } /// /// /// - public global::Vectara.CreateInputMessageRequest? Type528 { get; set; } + public global::Vectara.InputBehavior? Type528 { get; set; } /// /// /// - public global::Vectara.CreateInputMessageRequestVariant2? Type529 { get; set; } + public global::Vectara.CreateInputMessageRequest? Type529 { get; set; } /// /// /// - public global::Vectara.CreateInterruptRequest? Type530 { get; set; } + public global::Vectara.CreateInputMessageRequestVariant2? Type530 { get; set; } /// /// /// - public global::Vectara.CreateInterruptRequestVariant2? Type531 { get; set; } + public global::Vectara.CreateInterruptRequest? Type531 { get; set; } /// /// /// - public global::Vectara.CreateCompactRequest? Type532 { get; set; } + public global::Vectara.CreateInterruptRequestVariant2? Type532 { get; set; } /// /// /// - public global::Vectara.CreateCompactRequestVariant2? Type533 { get; set; } + public global::Vectara.CreateCompactRequest? Type533 { get; set; } /// /// /// - public global::Vectara.CreateInputRequest? Type534 { get; set; } + public global::Vectara.CreateCompactRequestVariant2? Type534 { get; set; } /// /// /// - public global::Vectara.CreateInputRequestDiscriminator? Type535 { get; set; } + public global::Vectara.CreateInputRequest? Type535 { get; set; } /// /// /// - public global::Vectara.CreateInputRequestDiscriminatorType? Type536 { get; set; } + public global::Vectara.CreateInputRequestDiscriminator? Type536 { get; set; } /// /// /// - public global::Vectara.AgentResponse? Type537 { get; set; } + public global::Vectara.CreateInputRequestDiscriminatorType? Type537 { get; set; } /// /// /// - public global::Vectara.StreamingAgentOutput? Type538 { get; set; } + public global::Vectara.AgentResponse? Type538 { get; set; } /// /// /// - public global::Vectara.StreamingAgentOutputEnd? Type539 { get; set; } + public global::Vectara.StreamingAgentOutput? Type539 { get; set; } /// /// /// - public global::Vectara.StreamingThinking? Type540 { get; set; } + public global::Vectara.StreamingAgentOutputEnd? Type540 { get; set; } /// /// /// - public global::Vectara.StreamingThinkingEnd? Type541 { get; set; } + public global::Vectara.StreamingThinking? Type541 { get; set; } /// /// /// - public global::Vectara.ContextConsumedEvent? Type542 { get; set; } + public global::Vectara.StreamingThinkingEnd? Type542 { get; set; } /// /// /// - public global::Vectara.CompactionStartedEvent? Type543 { get; set; } + public global::Vectara.ContextConsumedEvent? Type543 { get; set; } /// /// /// - public global::Vectara.CompactionStartedEventVariant2? Type544 { get; set; } + public global::Vectara.CompactionStartedEvent? Type544 { get; set; } /// /// /// - public global::Vectara.AgentStreamedResponse? Type545 { get; set; } + public global::Vectara.CompactionStartedEventVariant2? Type545 { get; set; } /// /// /// - public global::Vectara.AgentStreamedResponseDiscriminator? Type546 { get; set; } + public global::Vectara.AgentStreamedResponse? Type546 { get; set; } /// /// /// - public global::Vectara.AgentStreamedResponseDiscriminatorType? Type547 { get; set; } + public global::Vectara.AgentStreamedResponseDiscriminator? Type547 { get; set; } /// /// /// - public global::Vectara.SessionArtifact? Type548 { get; set; } + public global::Vectara.AgentStreamedResponseDiscriminatorType? Type548 { get; set; } /// /// /// - public global::Vectara.ListSessionArtifactsResponse? Type549 { get; set; } + public global::Vectara.SessionArtifact? Type549 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type550 { get; set; } + public global::Vectara.ListSessionArtifactsResponse? Type550 { get; set; } /// /// /// - public global::Vectara.IntervalScheduleConfiguration? Type551 { get; set; } + public global::System.Collections.Generic.IList? Type551 { get; set; } /// /// /// - public global::Vectara.IntervalScheduleConfigurationType? Type552 { get; set; } + public global::Vectara.IntervalScheduleConfiguration? Type552 { get; set; } /// /// /// - public global::Vectara.CronScheduleConfiguration? Type553 { get; set; } + public global::Vectara.IntervalScheduleConfigurationType? Type553 { get; set; } /// /// /// - public global::Vectara.CronScheduleConfigurationType? Type554 { get; set; } + public global::Vectara.CronScheduleConfiguration? Type554 { get; set; } /// /// /// - public global::Vectara.ScheduleConfiguration? Type555 { get; set; } + public global::Vectara.CronScheduleConfigurationType? Type555 { get; set; } /// /// /// - public global::Vectara.AgentSchedule? Type556 { get; set; } + public global::Vectara.ScheduleConfiguration? Type556 { get; set; } /// /// /// - public global::Vectara.ListAgentSchedulesResponse? Type557 { get; set; } + public global::Vectara.AgentSchedule? Type557 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type558 { get; set; } + public global::Vectara.ListAgentSchedulesResponse? Type558 { get; set; } /// /// /// - public global::Vectara.CreateAgentScheduleRequest? Type559 { get; set; } + public global::System.Collections.Generic.IList? Type559 { get; set; } /// /// /// - public global::Vectara.UpdateAgentScheduleRequest? Type560 { get; set; } + public global::Vectara.CreateAgentScheduleRequest? Type560 { get; set; } /// /// /// - public global::Vectara.AgentScheduleExecution? Type561 { get; set; } + public global::Vectara.UpdateAgentScheduleRequest? Type561 { get; set; } /// /// /// - public global::Vectara.AgentScheduleExecutionStatus? Type562 { get; set; } + public global::Vectara.AgentScheduleExecution? Type562 { get; set; } /// /// /// - public global::Vectara.ListAgentScheduleExecutionsResponse? Type563 { get; set; } + public global::Vectara.AgentScheduleExecutionStatus? Type563 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type564 { get; set; } + public global::Vectara.ListAgentScheduleExecutionsResponse? Type564 { get; set; } /// /// /// - public global::Vectara.AgentIdentityMode? Type565 { get; set; } + public global::System.Collections.Generic.IList? Type565 { get; set; } /// /// /// - public global::Vectara.AgentIdentity? Type566 { get; set; } + public global::Vectara.AgentIdentityMode? Type566 { get; set; } /// /// /// - public global::Vectara.UpdateAgentIdentityRequest? Type567 { get; set; } + public global::Vectara.AgentIdentity? Type567 { get; set; } /// /// /// - public global::Vectara.PipelineStatus? Type568 { get; set; } + public global::Vectara.UpdateAgentIdentityRequest? Type568 { get; set; } /// /// /// - public global::Vectara.BaseS3SourceConfiguration? Type569 { get; set; } + public global::Vectara.PipelineStatus? Type569 { get; set; } /// /// /// - public global::Vectara.S3SourceConfiguration? Type570 { get; set; } + public global::Vectara.BaseS3SourceConfiguration? Type570 { get; set; } /// /// /// - public global::Vectara.PipelineSource? Type571 { get; set; } + public global::Vectara.S3SourceConfiguration? Type571 { get; set; } /// /// /// - public global::Vectara.PipelineSourceDiscriminator? Type572 { get; set; } + public global::Vectara.PipelineSource? Type572 { get; set; } /// /// /// - public global::Vectara.PipelineSourceDiscriminatorType? Type573 { get; set; } + public global::Vectara.PipelineSourceDiscriminator? Type573 { get; set; } /// /// /// - public global::Vectara.CronTriggerConfiguration? Type574 { get; set; } + public global::Vectara.PipelineSourceDiscriminatorType? Type574 { get; set; } /// /// /// - public global::Vectara.IntervalTriggerConfiguration? Type575 { get; set; } + public global::Vectara.CronTriggerConfiguration? Type575 { get; set; } /// /// /// - public global::Vectara.ManualTriggerConfiguration? Type576 { get; set; } + public global::Vectara.IntervalTriggerConfiguration? Type576 { get; set; } /// /// /// - public global::Vectara.PipelineTrigger? Type577 { get; set; } + public global::Vectara.ManualTriggerConfiguration? Type577 { get; set; } /// /// /// - public global::Vectara.PipelineTriggerDiscriminator? Type578 { get; set; } + public global::Vectara.PipelineTrigger? Type578 { get; set; } /// /// /// - public global::Vectara.PipelineTriggerDiscriminatorType? Type579 { get; set; } + public global::Vectara.PipelineTriggerDiscriminator? Type579 { get; set; } /// /// /// - public global::Vectara.ConditionVerification? Type580 { get; set; } + public global::Vectara.PipelineTriggerDiscriminatorType? Type580 { get; set; } /// /// /// - public global::Vectara.AgentVerification? Type581 { get; set; } + public global::Vectara.ConditionVerification? Type581 { get; set; } /// /// /// - public global::Vectara.PipelineVerification? Type582 { get; set; } + public global::Vectara.AgentVerification? Type582 { get; set; } /// /// /// - public global::Vectara.PipelineVerificationDiscriminator? Type583 { get; set; } + public global::Vectara.PipelineVerification? Type583 { get; set; } /// /// /// - public global::Vectara.PipelineVerificationDiscriminatorType? Type584 { get; set; } + public global::Vectara.PipelineVerificationDiscriminator? Type584 { get; set; } /// /// /// - public global::Vectara.AgentTransformConfiguration? Type585 { get; set; } + public global::Vectara.PipelineVerificationDiscriminatorType? Type585 { get; set; } /// /// /// - public global::Vectara.PipelineTransform? Type586 { get; set; } + public global::Vectara.AgentTransformConfiguration? Type586 { get; set; } /// /// /// - public global::Vectara.PipelineTransformDiscriminator? Type587 { get; set; } + public global::Vectara.PipelineTransform? Type587 { get; set; } /// /// /// - public global::Vectara.PipelineTransformDiscriminatorType? Type588 { get; set; } + public global::Vectara.PipelineTransformDiscriminator? Type588 { get; set; } /// /// /// - public global::Vectara.PipelineSyncMode? Type589 { get; set; } + public global::Vectara.PipelineTransformDiscriminatorType? Type589 { get; set; } /// /// /// - public global::Vectara.PipelineWatermark? Type590 { get; set; } + public global::Vectara.PipelineSyncMode? Type590 { get; set; } /// /// /// - public global::Vectara.Pipeline? Type591 { get; set; } + public global::Vectara.PipelineWatermark? Type591 { get; set; } /// /// /// - public global::Vectara.ListPipelinesResponse? Type592 { get; set; } + public global::Vectara.Pipeline? Type592 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type593 { get; set; } + public global::Vectara.ListPipelinesResponse? Type593 { get; set; } /// /// /// - public global::Vectara.CreatePipelineRequest? Type594 { get; set; } + public global::System.Collections.Generic.IList? Type594 { get; set; } /// /// /// - public global::Vectara.UpdateS3SourceConfiguration? Type595 { get; set; } + public global::Vectara.CreatePipelineRequest? Type595 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineSource? Type596 { get; set; } + public global::Vectara.UpdateS3SourceConfiguration? Type596 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineSourceDiscriminator? Type597 { get; set; } + public global::Vectara.UpdatePipelineSource? Type597 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineSourceDiscriminatorType? Type598 { get; set; } + public global::Vectara.UpdatePipelineSourceDiscriminator? Type598 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineRequest? Type599 { get; set; } + public global::Vectara.UpdatePipelineSourceDiscriminatorType? Type599 { get; set; } /// /// /// - public global::Vectara.PipelineRunStatus? Type600 { get; set; } + public global::Vectara.UpdatePipelineRequest? Type600 { get; set; } /// /// /// - public global::Vectara.PipelineRunTriggerType? Type601 { get; set; } + public global::Vectara.PipelineRunStatus? Type601 { get; set; } /// /// /// - public global::Vectara.PipelineRun? Type602 { get; set; } + public global::Vectara.PipelineRunTriggerType? Type602 { get; set; } /// /// /// - public global::Vectara.DeadLetterStatus? Type603 { get; set; } + public global::Vectara.PipelineRun? Type603 { get; set; } /// /// /// - public global::Vectara.DeadLetterOrigin? Type604 { get; set; } + public global::Vectara.DeadLetterStatus? Type604 { get; set; } /// /// /// - public global::Vectara.PipelineDeadLetterEntry? Type605 { get; set; } + public global::Vectara.DeadLetterOrigin? Type605 { get; set; } /// /// /// - public global::Vectara.ListPipelineDeadLetterEntriesResponse? Type606 { get; set; } + public global::Vectara.PipelineDeadLetterEntry? Type606 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type607 { get; set; } + public global::Vectara.ListPipelineDeadLetterEntriesResponse? Type607 { get; set; } /// /// /// - public global::Vectara.CreatePipelineDeadLetterEntryRequest? Type608 { get; set; } + public global::System.Collections.Generic.IList? Type608 { get; set; } /// /// /// - public global::Vectara.ProcessPipelineDeadLetterEntriesRequest? Type609 { get; set; } + public global::Vectara.CreatePipelineDeadLetterEntryRequest? Type609 { get; set; } /// /// /// - public global::Vectara.ListPipelineRunsResponse? Type610 { get; set; } + public global::Vectara.ProcessPipelineDeadLetterEntriesRequest? Type610 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type611 { get; set; } + public global::Vectara.ListPipelineRunsResponse? Type611 { get; set; } /// /// /// - public global::Vectara.Glossary? Type612 { get; set; } + public global::System.Collections.Generic.IList? Type612 { get; set; } /// /// /// - public global::Vectara.ListGlossariesResponse? Type613 { get; set; } + public global::Vectara.Glossary? Type613 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type614 { get; set; } + public global::Vectara.ListGlossariesResponse? Type614 { get; set; } /// /// /// - public global::Vectara.CreateGlossaryRequest? Type615 { get; set; } + public global::System.Collections.Generic.IList? Type615 { get; set; } /// /// /// - public global::Vectara.UpdateGlossaryRequest? Type616 { get; set; } + public global::Vectara.CreateGlossaryRequest? Type616 { get; set; } /// /// /// - public global::Vectara.GlossaryEntry? Type617 { get; set; } + public global::Vectara.UpdateGlossaryRequest? Type617 { get; set; } /// /// /// - public global::Vectara.GlossaryEntriesResponse? Type618 { get; set; } + public global::Vectara.GlossaryEntry? Type618 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type619 { get; set; } + public global::Vectara.GlossaryEntriesResponse? Type619 { get; set; } /// /// /// - public global::Vectara.UpsertGlossaryEntriesRequest? Type620 { get; set; } + public global::System.Collections.Generic.IList? Type620 { get; set; } /// /// /// - public global::Vectara.DeleteGlossaryEntriesRequest? Type621 { get; set; } + public global::Vectara.UpsertGlossaryEntriesRequest? Type621 { get; set; } /// /// /// - public global::Vectara.GetOAuthTokenRequest? Type622 { get; set; } + public global::Vectara.DeleteGlossaryEntriesRequest? Type622 { get; set; } /// /// /// - public global::Vectara.CreateCorpusDocumentWaitFor? Type623 { get; set; } + public global::Vectara.GetOAuthTokenRequest? Type623 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type624 { get; set; } + public global::Vectara.CreateCorpusDocumentWaitFor? Type624 { get; set; } /// /// /// - public global::Vectara.ListToolServersType? Type625 { get; set; } + public global::System.Collections.Generic.IList? Type625 { get; set; } /// /// /// - public global::Vectara.ListToolsType? Type626 { get; set; } + public global::Vectara.ListToolServersType? Type626 { get; set; } /// /// /// - public global::Vectara.ListInstructionsType? Type627 { get; set; } + public global::Vectara.ListToolsType? Type627 { get; set; } /// /// /// - public global::Vectara.ListSessionArtifactsSortBy? Type628 { get; set; } + public global::Vectara.ListInstructionsType? Type628 { get; set; } /// /// /// - public global::Vectara.ListSessionArtifactsOrderBy? Type629 { get; set; } + public global::Vectara.ListSessionArtifactsSortBy? Type629 { get; set; } /// /// /// - public global::Vectara.ListPipelinesSourceType? Type630 { get; set; } + public global::Vectara.ListSessionArtifactsOrderBy? Type630 { get; set; } /// /// /// - public global::Vectara.AllOf? Type631 { get; set; } + public global::Vectara.ListPipelinesSourceType? Type631 { get; set; } /// /// /// - public global::Vectara.CreateUserResponse2? Type632 { get; set; } + public global::Vectara.AllOf? Type632 { get; set; } /// /// /// - public global::Vectara.ResetUserPasswordResponse? Type633 { get; set; } + public global::Vectara.CreateUserResponse2? Type633 { get; set; } /// /// /// - public global::Vectara.GetTokenResponse? Type634 { get; set; } + public global::Vectara.ResetUserPasswordResponse? Type634 { get; set; } + /// + /// + /// + public global::Vectara.GetTokenResponse? Type635 { get; set; } /// /// diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfiguration.g.cs index f0b13a13..28484626 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfiguration.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfiguration.g.cs @@ -168,6 +168,23 @@ namespace Vectara #endif public bool IsArtifactGrep => ArtifactGrep != null; + /// + /// An artifact create tool configuration defined inline in the agent for creating artifacts from text or structured data content. + /// +#if NET6_0_OR_GREATER + public global::Vectara.InlineArtifactCreateToolConfiguration? ArtifactCreate { get; init; } +#else + public global::Vectara.InlineArtifactCreateToolConfiguration? ArtifactCreate { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ArtifactCreate))] +#endif + public bool IsArtifactCreate => ArtifactCreate != null; + /// /// An image read tool configuration defined inline in the agent for loading images into the conversation context. /// @@ -380,6 +397,24 @@ public AgentToolConfiguration(global::Vectara.InlineArtifactGrepToolConfiguratio ArtifactGrep = value; } + /// + /// + /// + public static implicit operator AgentToolConfiguration(global::Vectara.InlineArtifactCreateToolConfiguration value) => new AgentToolConfiguration((global::Vectara.InlineArtifactCreateToolConfiguration?)value); + + /// + /// + /// + public static implicit operator global::Vectara.InlineArtifactCreateToolConfiguration?(AgentToolConfiguration @this) => @this.ArtifactCreate; + + /// + /// + /// + public AgentToolConfiguration(global::Vectara.InlineArtifactCreateToolConfiguration? value) + { + ArtifactCreate = value; + } + /// /// /// @@ -448,6 +483,7 @@ public AgentToolConfiguration( global::Vectara.InlineSubAgentToolConfiguration? subAgent, global::Vectara.InlineArtifactReadToolConfiguration? artifactRead, global::Vectara.InlineArtifactGrepToolConfiguration? artifactGrep, + global::Vectara.InlineArtifactCreateToolConfiguration? artifactCreate, global::Vectara.InlineImageReadToolConfiguration? imageRead, global::Vectara.InlineDocumentConversionToolConfiguration? documentConversion, global::Vectara.InlineGetDocumentTextToolConfiguration? getDocumentText @@ -464,6 +500,7 @@ public AgentToolConfiguration( SubAgent = subAgent; ArtifactRead = artifactRead; ArtifactGrep = artifactGrep; + ArtifactCreate = artifactCreate; ImageRead = imageRead; DocumentConversion = documentConversion; GetDocumentText = getDocumentText; @@ -476,6 +513,7 @@ public AgentToolConfiguration( GetDocumentText as object ?? DocumentConversion as object ?? ImageRead as object ?? + ArtifactCreate as object ?? ArtifactGrep as object ?? ArtifactRead as object ?? SubAgent as object ?? @@ -500,6 +538,7 @@ DynamicVectara as object SubAgent?.ToString() ?? ArtifactRead?.ToString() ?? ArtifactGrep?.ToString() ?? + ArtifactCreate?.ToString() ?? ImageRead?.ToString() ?? DocumentConversion?.ToString() ?? GetDocumentText?.ToString() @@ -510,7 +549,7 @@ DynamicVectara as object /// public bool Validate() { - return IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && IsGetDocumentText; + return IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && IsArtifactCreate && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactRead && !IsArtifactGrep && !IsArtifactCreate && !IsImageRead && !IsDocumentConversion && IsGetDocumentText; } /// @@ -526,6 +565,7 @@ public bool Validate() global::System.Func? subAgent = null, global::System.Func? artifactRead = null, global::System.Func? artifactGrep = null, + global::System.Func? artifactCreate = null, global::System.Func? imageRead = null, global::System.Func? documentConversion = null, global::System.Func? getDocumentText = null, @@ -572,6 +612,10 @@ public bool Validate() { return artifactGrep(ArtifactGrep!); } + else if (IsArtifactCreate && artifactCreate != null) + { + return artifactCreate(ArtifactCreate!); + } else if (IsImageRead && imageRead != null) { return imageRead(ImageRead!); @@ -601,6 +645,7 @@ public void Match( global::System.Action? subAgent = null, global::System.Action? artifactRead = null, global::System.Action? artifactGrep = null, + global::System.Action? artifactCreate = null, global::System.Action? imageRead = null, global::System.Action? documentConversion = null, global::System.Action? getDocumentText = null, @@ -647,6 +692,10 @@ public void Match( { artifactGrep?.Invoke(ArtifactGrep!); } + else if (IsArtifactCreate) + { + artifactCreate?.Invoke(ArtifactCreate!); + } else if (IsImageRead) { imageRead?.Invoke(ImageRead!); @@ -686,6 +735,8 @@ public override int GetHashCode() typeof(global::Vectara.InlineArtifactReadToolConfiguration), ArtifactGrep, typeof(global::Vectara.InlineArtifactGrepToolConfiguration), + ArtifactCreate, + typeof(global::Vectara.InlineArtifactCreateToolConfiguration), ImageRead, typeof(global::Vectara.InlineImageReadToolConfiguration), DocumentConversion, @@ -717,6 +768,7 @@ public bool Equals(AgentToolConfiguration other) global::System.Collections.Generic.EqualityComparer.Default.Equals(SubAgent, other.SubAgent) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ArtifactRead, other.ArtifactRead) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ArtifactGrep, other.ArtifactGrep) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ArtifactCreate, other.ArtifactCreate) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageRead, other.ImageRead) && global::System.Collections.Generic.EqualityComparer.Default.Equals(DocumentConversion, other.DocumentConversion) && global::System.Collections.Generic.EqualityComparer.Default.Equals(GetDocumentText, other.GetDocumentText) diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationDiscriminatorType.g.cs index 348e4948..6502ccdc 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationDiscriminatorType.g.cs @@ -8,6 +8,10 @@ namespace Vectara /// public enum AgentToolConfigurationDiscriminatorType { + /// + /// + /// + ArtifactCreate, /// /// /// @@ -70,6 +74,7 @@ public static string ToValueString(this AgentToolConfigurationDiscriminatorType { return value switch { + AgentToolConfigurationDiscriminatorType.ArtifactCreate => "artifact_create", AgentToolConfigurationDiscriminatorType.ArtifactGrep => "artifact_grep", AgentToolConfigurationDiscriminatorType.ArtifactRead => "artifact_read", AgentToolConfigurationDiscriminatorType.CorporaSearch => "corpora_search", @@ -92,6 +97,7 @@ public static string ToValueString(this AgentToolConfigurationDiscriminatorType { return value switch { + "artifact_create" => AgentToolConfigurationDiscriminatorType.ArtifactCreate, "artifact_grep" => AgentToolConfigurationDiscriminatorType.ArtifactGrep, "artifact_read" => AgentToolConfigurationDiscriminatorType.ArtifactRead, "corpora_search" => AgentToolConfigurationDiscriminatorType.CorporaSearch, diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.Json.g.cs new file mode 100644 index 00000000..fcebef45 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class InlineArtifactCreateToolConfiguration + { + /// + /// 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.InlineArtifactCreateToolConfiguration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.InlineArtifactCreateToolConfiguration), + jsonSerializerContext) as global::Vectara.InlineArtifactCreateToolConfiguration; + } + + /// + /// 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.InlineArtifactCreateToolConfiguration? 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.InlineArtifactCreateToolConfiguration), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.InlineArtifactCreateToolConfiguration; + } + + /// + /// 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.InlineArtifactCreateToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.g.cs new file mode 100644 index 00000000..20a0ee4f --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineArtifactCreateToolConfiguration.g.cs @@ -0,0 +1,74 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// An artifact create tool configuration defined inline in the agent for creating artifacts from text or structured data content. + /// + public sealed partial class InlineArtifactCreateToolConfiguration + { + /// + /// 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"; + + /// + /// 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; } + + /// + /// 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 + /// + /// + /// 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] +#endif + public InlineArtifactCreateToolConfiguration( + string type, + string? descriptionTemplate) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.DescriptionTemplate = descriptionTemplate; + } + + /// + /// Initializes a new instance of the class. + /// + public InlineArtifactCreateToolConfiguration() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/openapi.yaml b/src/libs/Vectara/openapi.yaml index 86813303..3df449c1 100644 --- a/src/libs/Vectara/openapi.yaml +++ b/src/libs/Vectara/openapi.yaml @@ -18753,6 +18753,23 @@ components: - type x-vectaraParents: - AgentToolConfiguration + InlineArtifactCreateToolConfiguration: + title: InlineArtifactCreateToolConfiguration + description: An artifact create tool configuration defined inline in the agent + for creating artifacts from text or structured data content. + type: object + properties: + type: + type: string + description: The type of tool configuration, which is always 'artifact_create' + for inline artifact create tool configurations. + default: artifact_create + description_template: + $ref: '#/components/schemas/ToolDescriptionTemplate' + required: + - type + x-vectaraParents: + - AgentToolConfiguration ImageReadToolParameters: description: Configurable parameters for the image read tool. If not overridden, they will be required by the LLM to fill in. @@ -18909,6 +18926,7 @@ components: sub_agent: '#/components/schemas/InlineSubAgentToolConfiguration' artifact_read: '#/components/schemas/InlineArtifactReadToolConfiguration' artifact_grep: '#/components/schemas/InlineArtifactGrepToolConfiguration' + artifact_create: '#/components/schemas/InlineArtifactCreateToolConfiguration' image_read: '#/components/schemas/InlineImageReadToolConfiguration' document_conversion: '#/components/schemas/InlineDocumentConversionToolConfiguration' get_document_text: '#/components/schemas/InlineGetDocumentTextToolConfiguration' @@ -18922,6 +18940,7 @@ components: - $ref: '#/components/schemas/InlineSubAgentToolConfiguration' - $ref: '#/components/schemas/InlineArtifactReadToolConfiguration' - $ref: '#/components/schemas/InlineArtifactGrepToolConfiguration' + - $ref: '#/components/schemas/InlineArtifactCreateToolConfiguration' - $ref: '#/components/schemas/InlineImageReadToolConfiguration' - $ref: '#/components/schemas/InlineDocumentConversionToolConfiguration' - $ref: '#/components/schemas/InlineGetDocumentTextToolConfiguration'