diff --git a/src/libs/Vectara/Generated/Vectara.AgentAliasesSessionsClient.ListOutstandingClientToolCalls.g.cs b/src/libs/Vectara/Generated/Vectara.AgentAliasesSessionsClient.ListOutstandingClientToolCalls.g.cs new file mode 100644 index 00000000..80e9356a --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.AgentAliasesSessionsClient.ListOutstandingClientToolCalls.g.cs @@ -0,0 +1,568 @@ + +#nullable enable + +namespace Vectara +{ + public partial class AgentAliasesSessionsClient + { + + + private static readonly global::Vectara.EndPointSecurityRequirement s_ListOutstandingClientToolCallsSecurityRequirement0 = + new global::Vectara.EndPointSecurityRequirement + { + Authorizations = new global::Vectara.EndPointAuthorizationRequirement[] + { new global::Vectara.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "x-api-key", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + + private static readonly global::Vectara.EndPointSecurityRequirement s_ListOutstandingClientToolCallsSecurityRequirement1 = + new global::Vectara.EndPointSecurityRequirement + { + Authorizations = new global::Vectara.EndPointAuthorizationRequirement[] + { new global::Vectara.EndPointAuthorizationRequirement + { + Type = "OAuth2", + SchemeId = "OAuth2", + Location = "Header", + Name = "", + FriendlyName = "OAuth2", + }, + }, + }; + private static readonly global::Vectara.EndPointSecurityRequirement[] s_ListOutstandingClientToolCallsSecurityRequirements = + new global::Vectara.EndPointSecurityRequirement[] + { s_ListOutstandingClientToolCallsSecurityRequirement0, + s_ListOutstandingClientToolCallsSecurityRequirement1, + }; + partial void PrepareListOutstandingClientToolCallsArguments( + global::System.Net.Http.HttpClient httpClient, + ref int? requestTimeout, + ref int? requestTimeoutMillis, + ref string aliasKey, + ref string sessionKey); + partial void PrepareListOutstandingClientToolCallsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? requestTimeout, + int? requestTimeoutMillis, + string aliasKey, + string sessionKey); + partial void ProcessListOutstandingClientToolCallsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListOutstandingClientToolCallsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List outstanding client tool calls on alias-routed session
+ /// List the client tool calls a session originally created via this alias is currently waiting on the caller to fulfill. Each entry carries the fully materialized arguments to invoke the tool with; secret-derived values are returned unmasked because the caller needs them to execute the tool, so this endpoint is restricted to the same roles permitted to submit input to the session. Empty when the session is not parked on a client tool. See the agent-scoped endpoint for the full contract. + ///
+ /// + /// + /// + /// The unique key identifying an alias. Alias keys are independent of agent keys — the same string may exist as both an alias and an agent in a customer; calls to `/v2/agent_aliases/{key}/...` target the alias and calls to `/v2/agents/{key}/...` target the agent.
+ /// Example: support + /// + /// + /// A unique key that identifies an agent session.
+ /// Example: customer_support_chat + /// + /// 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 ListOutstandingClientToolCallsAsync( + string aliasKey, + string sessionKey, + int? requestTimeout = default, + int? requestTimeoutMillis = default, + global::Vectara.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListOutstandingClientToolCallsAsResponseAsync( + aliasKey: aliasKey, + sessionKey: sessionKey, + requestTimeout: requestTimeout, + requestTimeoutMillis: requestTimeoutMillis, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List outstanding client tool calls on alias-routed session
+ /// List the client tool calls a session originally created via this alias is currently waiting on the caller to fulfill. Each entry carries the fully materialized arguments to invoke the tool with; secret-derived values are returned unmasked because the caller needs them to execute the tool, so this endpoint is restricted to the same roles permitted to submit input to the session. Empty when the session is not parked on a client tool. See the agent-scoped endpoint for the full contract. + ///
+ /// + /// + /// + /// The unique key identifying an alias. Alias keys are independent of agent keys — the same string may exist as both an alias and an agent in a customer; calls to `/v2/agent_aliases/{key}/...` target the alias and calls to `/v2/agents/{key}/...` target the agent.
+ /// Example: support + /// + /// + /// A unique key that identifies an agent session.
+ /// Example: customer_support_chat + /// + /// 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> ListOutstandingClientToolCallsAsResponseAsync( + string aliasKey, + string sessionKey, + int? requestTimeout = default, + int? requestTimeoutMillis = default, + global::Vectara.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListOutstandingClientToolCallsArguments( + httpClient: HttpClient, + requestTimeout: ref requestTimeout, + requestTimeoutMillis: ref requestTimeoutMillis, + aliasKey: ref aliasKey, + sessionKey: ref sessionKey); + + + var __authorizations = global::Vectara.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListOutstandingClientToolCallsSecurityRequirements, + operationName: "ListOutstandingClientToolCallsAsync"); + + using var __timeoutCancellationTokenSource = global::Vectara.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Vectara.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Vectara.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Vectara.PathBuilder( + path: $"/v2/agent_aliases/{aliasKey}/sessions/{sessionKey}/outstanding_client_tool_calls", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Vectara.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + if (requestTimeout != default) + { + __httpRequest.Headers.TryAddWithoutValidation("Request-Timeout", requestTimeout.ToString()); + } + if (requestTimeoutMillis != default) + { + __httpRequest.Headers.TryAddWithoutValidation("Request-Timeout-Millis", requestTimeoutMillis.ToString()); + } + + global::Vectara.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListOutstandingClientToolCallsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + requestTimeout: requestTimeout, + requestTimeoutMillis: requestTimeoutMillis, + aliasKey: aliasKey!, + sessionKey: sessionKey!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Vectara.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agent_aliases/{aliasKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await global::Vectara.VectaraClient.AutoSDKOAuth2Helpers.SendAsync( + httpClient: HttpClient, + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + authorizations: __authorizations, + oAuth2Coordinator: AutoSDKOAuth2State, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Vectara.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agent_aliases/{aliasKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Vectara.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Vectara.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Vectara.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agent_aliases/{aliasKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Vectara.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListOutstandingClientToolCallsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agent_aliases/{aliasKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agent_aliases/{aliasKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Permissions do not allow reading this session. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Vectara.Error? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Vectara.Error.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Vectara.Error.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Vectara.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Alias or session not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Vectara.NotFoundError? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Vectara.NotFoundError.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Vectara.NotFoundError.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Vectara.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListOutstandingClientToolCallsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Vectara.OutstandingClientToolCallsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Vectara.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Vectara.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Vectara.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Vectara.OutstandingClientToolCallsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Vectara.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Vectara.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Vectara.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.AgentEventsClient.ListOutstandingClientToolCalls.g.cs b/src/libs/Vectara/Generated/Vectara.AgentEventsClient.ListOutstandingClientToolCalls.g.cs new file mode 100644 index 00000000..2683458d --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.AgentEventsClient.ListOutstandingClientToolCalls.g.cs @@ -0,0 +1,570 @@ + +#nullable enable + +namespace Vectara +{ + public partial class AgentEventsClient + { + + + private static readonly global::Vectara.EndPointSecurityRequirement s_ListOutstandingClientToolCallsSecurityRequirement0 = + new global::Vectara.EndPointSecurityRequirement + { + Authorizations = new global::Vectara.EndPointAuthorizationRequirement[] + { new global::Vectara.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "x-api-key", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + + private static readonly global::Vectara.EndPointSecurityRequirement s_ListOutstandingClientToolCallsSecurityRequirement1 = + new global::Vectara.EndPointSecurityRequirement + { + Authorizations = new global::Vectara.EndPointAuthorizationRequirement[] + { new global::Vectara.EndPointAuthorizationRequirement + { + Type = "OAuth2", + SchemeId = "OAuth2", + Location = "Header", + Name = "", + FriendlyName = "OAuth2", + }, + }, + }; + private static readonly global::Vectara.EndPointSecurityRequirement[] s_ListOutstandingClientToolCallsSecurityRequirements = + new global::Vectara.EndPointSecurityRequirement[] + { s_ListOutstandingClientToolCallsSecurityRequirement0, + s_ListOutstandingClientToolCallsSecurityRequirement1, + }; + partial void PrepareListOutstandingClientToolCallsArguments( + global::System.Net.Http.HttpClient httpClient, + ref int? requestTimeout, + ref int? requestTimeoutMillis, + ref string agentKey, + ref string sessionKey); + partial void PrepareListOutstandingClientToolCallsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? requestTimeout, + int? requestTimeoutMillis, + string agentKey, + string sessionKey); + partial void ProcessListOutstandingClientToolCallsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListOutstandingClientToolCallsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List outstanding client tool calls for an agent session
+ /// List the client tool calls the session is currently waiting on the caller to fulfill. Each entry carries the originating `tool_input` event ID, the tool name, and the fully materialized arguments to invoke the tool with. Secret-derived values are returned unmasked because the caller needs them to execute the tool, so this endpoint is restricted to the same roles permitted to submit input to the session.
+ /// Returns an empty list when the session is not parked on a client tool. The corresponding `client_tool_pending` event is delivered only on the live event stream and is not returned by `listAgentEvents`; this endpoint is the durable way to recover the pending calls after a reconnect. Submit one `tool_output` per returned `event_id` (via the create-input endpoint) to resume the session. + ///
+ /// + /// + /// + /// A unique key that identifies an agent.
+ /// Example: customer_support + /// + /// + /// A unique key that identifies an agent session.
+ /// Example: customer_support_chat + /// + /// 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 ListOutstandingClientToolCallsAsync( + string agentKey, + string sessionKey, + int? requestTimeout = default, + int? requestTimeoutMillis = default, + global::Vectara.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListOutstandingClientToolCallsAsResponseAsync( + agentKey: agentKey, + sessionKey: sessionKey, + requestTimeout: requestTimeout, + requestTimeoutMillis: requestTimeoutMillis, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List outstanding client tool calls for an agent session
+ /// List the client tool calls the session is currently waiting on the caller to fulfill. Each entry carries the originating `tool_input` event ID, the tool name, and the fully materialized arguments to invoke the tool with. Secret-derived values are returned unmasked because the caller needs them to execute the tool, so this endpoint is restricted to the same roles permitted to submit input to the session.
+ /// Returns an empty list when the session is not parked on a client tool. The corresponding `client_tool_pending` event is delivered only on the live event stream and is not returned by `listAgentEvents`; this endpoint is the durable way to recover the pending calls after a reconnect. Submit one `tool_output` per returned `event_id` (via the create-input endpoint) to resume the session. + ///
+ /// + /// + /// + /// A unique key that identifies an agent.
+ /// Example: customer_support + /// + /// + /// A unique key that identifies an agent session.
+ /// Example: customer_support_chat + /// + /// 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> ListOutstandingClientToolCallsAsResponseAsync( + string agentKey, + string sessionKey, + int? requestTimeout = default, + int? requestTimeoutMillis = default, + global::Vectara.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListOutstandingClientToolCallsArguments( + httpClient: HttpClient, + requestTimeout: ref requestTimeout, + requestTimeoutMillis: ref requestTimeoutMillis, + agentKey: ref agentKey, + sessionKey: ref sessionKey); + + + var __authorizations = global::Vectara.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListOutstandingClientToolCallsSecurityRequirements, + operationName: "ListOutstandingClientToolCallsAsync"); + + using var __timeoutCancellationTokenSource = global::Vectara.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Vectara.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Vectara.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Vectara.PathBuilder( + path: $"/v2/agents/{agentKey}/sessions/{sessionKey}/outstanding_client_tool_calls", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Vectara.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + if (requestTimeout != default) + { + __httpRequest.Headers.TryAddWithoutValidation("Request-Timeout", requestTimeout.ToString()); + } + if (requestTimeoutMillis != default) + { + __httpRequest.Headers.TryAddWithoutValidation("Request-Timeout-Millis", requestTimeoutMillis.ToString()); + } + + global::Vectara.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListOutstandingClientToolCallsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + requestTimeout: requestTimeout, + requestTimeoutMillis: requestTimeoutMillis, + agentKey: agentKey!, + sessionKey: sessionKey!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Vectara.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agents/{agentKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await global::Vectara.VectaraClient.AutoSDKOAuth2Helpers.SendAsync( + httpClient: HttpClient, + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + authorizations: __authorizations, + oAuth2Coordinator: AutoSDKOAuth2State, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Vectara.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agents/{agentKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Vectara.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Vectara.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Vectara.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agents/{agentKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Vectara.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListOutstandingClientToolCallsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agents/{agentKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListOutstandingClientToolCalls", + methodName: "ListOutstandingClientToolCallsAsync", + pathTemplate: "$\"/v2/agents/{agentKey}/sessions/{sessionKey}/outstanding_client_tool_calls\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Permissions do not allow reading this session. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Vectara.Error? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Vectara.Error.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Vectara.Error.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Vectara.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Agent or session not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Vectara.NotFoundError? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Vectara.NotFoundError.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Vectara.NotFoundError.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Vectara.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListOutstandingClientToolCallsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Vectara.OutstandingClientToolCallsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Vectara.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Vectara.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Vectara.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Vectara.OutstandingClientToolCallsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Vectara.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Vectara.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Vectara.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.IAgentAliasesSessionsClient.ListOutstandingClientToolCalls.g.cs b/src/libs/Vectara/Generated/Vectara.IAgentAliasesSessionsClient.ListOutstandingClientToolCalls.g.cs new file mode 100644 index 00000000..be23528b --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.IAgentAliasesSessionsClient.ListOutstandingClientToolCalls.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace Vectara +{ + public partial interface IAgentAliasesSessionsClient + { + /// + /// List outstanding client tool calls on alias-routed session
+ /// List the client tool calls a session originally created via this alias is currently waiting on the caller to fulfill. Each entry carries the fully materialized arguments to invoke the tool with; secret-derived values are returned unmasked because the caller needs them to execute the tool, so this endpoint is restricted to the same roles permitted to submit input to the session. Empty when the session is not parked on a client tool. See the agent-scoped endpoint for the full contract. + ///
+ /// + /// + /// + /// The unique key identifying an alias. Alias keys are independent of agent keys — the same string may exist as both an alias and an agent in a customer; calls to `/v2/agent_aliases/{key}/...` target the alias and calls to `/v2/agents/{key}/...` target the agent.
+ /// Example: support + /// + /// + /// A unique key that identifies an agent session.
+ /// Example: customer_support_chat + /// + /// 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 ListOutstandingClientToolCallsAsync( + string aliasKey, + string sessionKey, + int? requestTimeout = default, + int? requestTimeoutMillis = default, + global::Vectara.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List outstanding client tool calls on alias-routed session
+ /// List the client tool calls a session originally created via this alias is currently waiting on the caller to fulfill. Each entry carries the fully materialized arguments to invoke the tool with; secret-derived values are returned unmasked because the caller needs them to execute the tool, so this endpoint is restricted to the same roles permitted to submit input to the session. Empty when the session is not parked on a client tool. See the agent-scoped endpoint for the full contract. + ///
+ /// + /// + /// + /// The unique key identifying an alias. Alias keys are independent of agent keys — the same string may exist as both an alias and an agent in a customer; calls to `/v2/agent_aliases/{key}/...` target the alias and calls to `/v2/agents/{key}/...` target the agent.
+ /// Example: support + /// + /// + /// A unique key that identifies an agent session.
+ /// Example: customer_support_chat + /// + /// 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> ListOutstandingClientToolCallsAsResponseAsync( + string aliasKey, + string sessionKey, + 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.IAgentEventsClient.ListOutstandingClientToolCalls.g.cs b/src/libs/Vectara/Generated/Vectara.IAgentEventsClient.ListOutstandingClientToolCalls.g.cs new file mode 100644 index 00000000..d5e5cafd --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.IAgentEventsClient.ListOutstandingClientToolCalls.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +namespace Vectara +{ + public partial interface IAgentEventsClient + { + /// + /// List outstanding client tool calls for an agent session
+ /// List the client tool calls the session is currently waiting on the caller to fulfill. Each entry carries the originating `tool_input` event ID, the tool name, and the fully materialized arguments to invoke the tool with. Secret-derived values are returned unmasked because the caller needs them to execute the tool, so this endpoint is restricted to the same roles permitted to submit input to the session.
+ /// Returns an empty list when the session is not parked on a client tool. The corresponding `client_tool_pending` event is delivered only on the live event stream and is not returned by `listAgentEvents`; this endpoint is the durable way to recover the pending calls after a reconnect. Submit one `tool_output` per returned `event_id` (via the create-input endpoint) to resume the session. + ///
+ /// + /// + /// + /// A unique key that identifies an agent.
+ /// Example: customer_support + /// + /// + /// A unique key that identifies an agent session.
+ /// Example: customer_support_chat + /// + /// 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 ListOutstandingClientToolCallsAsync( + string agentKey, + string sessionKey, + int? requestTimeout = default, + int? requestTimeoutMillis = default, + global::Vectara.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List outstanding client tool calls for an agent session
+ /// List the client tool calls the session is currently waiting on the caller to fulfill. Each entry carries the originating `tool_input` event ID, the tool name, and the fully materialized arguments to invoke the tool with. Secret-derived values are returned unmasked because the caller needs them to execute the tool, so this endpoint is restricted to the same roles permitted to submit input to the session.
+ /// Returns an empty list when the session is not parked on a client tool. The corresponding `client_tool_pending` event is delivered only on the live event stream and is not returned by `listAgentEvents`; this endpoint is the durable way to recover the pending calls after a reconnect. Submit one `tool_output` per returned `event_id` (via the create-input endpoint) to resume the session. + ///
+ /// + /// + /// + /// A unique key that identifies an agent.
+ /// Example: customer_support + /// + /// + /// A unique key that identifies an agent session.
+ /// Example: customer_support_chat + /// + /// 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> ListOutstandingClientToolCallsAsResponseAsync( + string agentKey, + string sessionKey, + 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.AgentEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentEvent.g.cs index b4504c6a..38e95df7 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentEvent.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentEvent.g.cs @@ -98,6 +98,13 @@ public class AgentEventJsonConverter : global::System.Text.Json.Serialization.Js throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.SessionInterruptedEvent)}"); sessionInterrupted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.ClientToolPendingEvent? clientToolPending = default; + if (discriminator?.Type == global::Vectara.AgentEventDiscriminatorType.ClientToolPending) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolPendingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.ClientToolPendingEvent)}"); + clientToolPending = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Vectara.ImageReadEvent? imageRead = default; if (discriminator?.Type == global::Vectara.AgentEventDiscriminatorType.ImageRead) { @@ -144,6 +151,8 @@ public class AgentEventJsonConverter : global::System.Text.Json.Serialization.Js sessionInterrupted, + clientToolPending, + imageRead, stepTransition, @@ -229,6 +238,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.SessionInterruptedEvent).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInterrupted!.Value, typeInfo); } + else if (value.IsClientToolPending) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolPendingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolPendingEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientToolPending!.Value, typeInfo); + } else if (value.IsImageRead) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ImageReadEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentStreamedResponse.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentStreamedResponse.g.cs index e44256ee..45a2692f 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentStreamedResponse.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentStreamedResponse.g.cs @@ -126,6 +126,13 @@ public class AgentStreamedResponseJsonConverter : global::System.Text.Json.Seria throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.SessionInterruptedEvent)}"); sessionInterrupted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.ClientToolPendingEvent? clientToolPending = default; + if (discriminator?.Type == global::Vectara.AgentStreamedResponseDiscriminatorType.ClientToolPending) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolPendingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.ClientToolPendingEvent)}"); + clientToolPending = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Vectara.ImageReadEvent? imageRead = default; if (discriminator?.Type == global::Vectara.AgentStreamedResponseDiscriminatorType.ImageRead) { @@ -208,6 +215,8 @@ public class AgentStreamedResponseJsonConverter : global::System.Text.Json.Seria sessionInterrupted, + clientToolPending, + imageRead, stepTransition, @@ -325,6 +334,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.SessionInterruptedEvent).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInterrupted!.Value, typeInfo); } + else if (value.IsClientToolPending) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolPendingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolPendingEvent).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientToolPending!.Value, typeInfo); + } else if (value.IsImageRead) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ImageReadEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs index e9c373df..8bd1d309 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.AgentToolConfiguration.g.cs @@ -63,6 +63,13 @@ public class AgentToolConfigurationJsonConverter : global::System.Text.Json.Seri throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.InlineLambdaToolConfiguration)}"); lambda = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.InlineClientToolConfiguration? client = default; + if (discriminator?.Type == global::Vectara.AgentToolConfigurationDiscriminatorType.Client) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineClientToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.InlineClientToolConfiguration)}"); + client = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Vectara.InlineSubAgentToolConfiguration? subAgent = default; if (discriminator?.Type == global::Vectara.AgentToolConfigurationDiscriminatorType.SubAgent) { @@ -127,6 +134,8 @@ public class AgentToolConfigurationJsonConverter : global::System.Text.Json.Seri lambda, + client, + subAgent, artifactCreate, @@ -190,6 +199,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineLambdaToolConfiguration).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lambda!.Value, typeInfo); } + else if (value.IsClient) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineClientToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineClientToolConfiguration).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Client!.Value, typeInfo); + } else if (value.IsSubAgent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineSubAgentToolConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ClientTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ClientTool.g.cs new file mode 100644 index 00000000..7656ba69 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ClientTool.g.cs @@ -0,0 +1,159 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class ClientToolJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.ClientTool 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("category")) __score0++; + if (__jsonProps.Contains("created_at")) __score0++; + if (__jsonProps.Contains("default_argument_override")) __score0++; + if (__jsonProps.Contains("default_input_transform")) __score0++; + if (__jsonProps.Contains("default_output_transform")) __score0++; + if (__jsonProps.Contains("description")) __score0++; + if (__jsonProps.Contains("description_template")) __score0++; + if (__jsonProps.Contains("documentation")) __score0++; + if (__jsonProps.Contains("enabled")) __score0++; + if (__jsonProps.Contains("experimental")) __score0++; + if (__jsonProps.Contains("id")) __score0++; + if (__jsonProps.Contains("input_schema")) __score0++; + if (__jsonProps.Contains("lineage")) __score0++; + if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; + if (__jsonProps.Contains("title")) __score0++; + if (__jsonProps.Contains("tool_groups")) __score0++; + if (__jsonProps.Contains("updated_at")) __score0++; + if (__jsonProps.Contains("version")) __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.ToolBase? @base = default; + global::Vectara.ClientToolVariant2? clientToolVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ToolBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ToolBase).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.ClientToolVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolVariant2).Name}"); + clientToolVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && clientToolVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ToolBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ToolBase).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (@base == null && clientToolVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolVariant2).Name}"); + clientToolVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.ClientTool( + @base, + + clientToolVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.ClientTool 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.ToolBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ToolBase).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo); + } + else if (value.IsClientToolVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientToolVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ClientToolOutputRequest.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ClientToolOutputRequest.g.cs new file mode 100644 index 00000000..35d52a4f --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ClientToolOutputRequest.g.cs @@ -0,0 +1,142 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class ClientToolOutputRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.ClientToolOutputRequest 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("stream_response")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("tool_outputs")) __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.CreateInputRequestBase? createInputBase = default; + global::Vectara.ClientToolOutputRequestVariant2? clientToolOutputRequestVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateInputRequestBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateInputRequestBase).Name}"); + createInputBase = 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.ClientToolOutputRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolOutputRequestVariant2).Name}"); + clientToolOutputRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (createInputBase == null && clientToolOutputRequestVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateInputRequestBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateInputRequestBase).Name}"); + createInputBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (createInputBase == null && clientToolOutputRequestVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolOutputRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolOutputRequestVariant2).Name}"); + clientToolOutputRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.ClientToolOutputRequest( + createInputBase, + + clientToolOutputRequestVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.ClientToolOutputRequest 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.IsCreateInputBase) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateInputRequestBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateInputRequestBase).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateInputBase!, typeInfo); + } + else if (value.IsClientToolOutputRequestVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolOutputRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolOutputRequestVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientToolOutputRequestVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ClientToolPendingEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ClientToolPendingEvent.g.cs new file mode 100644 index 00000000..6d7338f3 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ClientToolPendingEvent.g.cs @@ -0,0 +1,144 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class ClientToolPendingEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.ClientToolPendingEvent 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("created_at")) __score0++; + if (__jsonProps.Contains("id")) __score0++; + if (__jsonProps.Contains("session_key")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("pending_calls")) __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.AgentEventBase? agentBase = default; + global::Vectara.ClientToolPendingEventVariant2? clientToolPendingEventVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentEventBase).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.ClientToolPendingEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolPendingEventVariant2).Name}"); + clientToolPendingEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (agentBase == null && clientToolPendingEventVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentEventBase).Name}"); + agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (agentBase == null && clientToolPendingEventVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolPendingEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolPendingEventVariant2).Name}"); + clientToolPendingEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.ClientToolPendingEvent( + agentBase, + + clientToolPendingEventVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.ClientToolPendingEvent 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.AgentEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentEventBase).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentBase!, typeInfo); + } + else if (value.IsClientToolPendingEventVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolPendingEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolPendingEventVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientToolPendingEventVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateInputRequest.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateInputRequest.g.cs index 939271e2..c111e885 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateInputRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateInputRequest.g.cs @@ -42,6 +42,13 @@ public class CreateInputRequestJsonConverter : global::System.Text.Json.Serializ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.CreateCompactRequest)}"); compact = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.ClientToolOutputRequest? toolOutput = default; + if (discriminator?.Type == global::Vectara.CreateInputRequestDiscriminatorType.ToolOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolOutputRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.ClientToolOutputRequest)}"); + toolOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Vectara.CreateInputRequest( discriminator?.Type, @@ -49,7 +56,9 @@ public class CreateInputRequestJsonConverter : global::System.Text.Json.Serializ interrupt, - compact + compact, + + toolOutput ); return __value; @@ -82,6 +91,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateCompactRequest).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compact!.Value, typeInfo); } + else if (value.IsToolOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientToolOutputRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientToolOutputRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolOutput!.Value, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputError.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputError.g.cs new file mode 100644 index 00000000..df7da7c5 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputError.g.cs @@ -0,0 +1,142 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class CreateToolOutputErrorJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.CreateToolOutputError 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("event_id")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("error")) __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.CreateToolOutputBase? @base = default; + global::Vectara.CreateToolOutputErrorVariant2? createToolOutputErrorVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputBase).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.CreateToolOutputErrorVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputErrorVariant2).Name}"); + createToolOutputErrorVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && createToolOutputErrorVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputBase).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (@base == null && createToolOutputErrorVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputErrorVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputErrorVariant2).Name}"); + createToolOutputErrorVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.CreateToolOutputError( + @base, + + createToolOutputErrorVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.CreateToolOutputError 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.CreateToolOutputBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputBase).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo); + } + else if (value.IsCreateToolOutputErrorVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputErrorVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputErrorVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateToolOutputErrorVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputRequest.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputRequest.g.cs new file mode 100644 index 00000000..6cfacc9c --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputRequest.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class CreateToolOutputRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.CreateToolOutputRequest Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputRequestDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.CreateToolOutputRequestDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Vectara.CreateToolOutputSuccess? success = default; + if (discriminator?.Type == global::Vectara.CreateToolOutputRequestDiscriminatorType.Success) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputSuccess), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.CreateToolOutputSuccess)}"); + success = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Vectara.CreateToolOutputError? error = default; + if (discriminator?.Type == global::Vectara.CreateToolOutputRequestDiscriminatorType.Error) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.CreateToolOutputError)}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Vectara.CreateToolOutputRequest( + discriminator?.Type, + success, + + error + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.CreateToolOutputRequest 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.IsSuccess) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputSuccess), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputSuccess).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Success!.Value, typeInfo); + } + else if (value.IsError) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputError).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorType.g.cs new file mode 100644 index 00000000..20f1b9be --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Vectara.JsonConverters +{ + /// + public sealed class CreateToolOutputRequestDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.CreateToolOutputRequestDiscriminatorType 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.CreateToolOutputRequestDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Vectara.CreateToolOutputRequestDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Vectara.CreateToolOutputRequestDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.CreateToolOutputRequestDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Vectara.CreateToolOutputRequestDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeNullable.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..12ff324b --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Vectara.JsonConverters +{ + /// + public sealed class CreateToolOutputRequestDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.CreateToolOutputRequestDiscriminatorType? 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.CreateToolOutputRequestDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Vectara.CreateToolOutputRequestDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Vectara.CreateToolOutputRequestDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.CreateToolOutputRequestDiscriminatorType? 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.CreateToolOutputRequestDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputSuccess.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputSuccess.g.cs new file mode 100644 index 00000000..efb8b099 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolOutputSuccess.g.cs @@ -0,0 +1,142 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class CreateToolOutputSuccessJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.CreateToolOutputSuccess 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("event_id")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("output")) __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.CreateToolOutputBase? @base = default; + global::Vectara.CreateToolOutputSuccessVariant2? createToolOutputSuccessVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputBase).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.CreateToolOutputSuccessVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputSuccessVariant2).Name}"); + createToolOutputSuccessVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && createToolOutputSuccessVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputBase).Name}"); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (@base == null && createToolOutputSuccessVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputSuccessVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputSuccessVariant2).Name}"); + createToolOutputSuccessVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.CreateToolOutputSuccess( + @base, + + createToolOutputSuccessVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.CreateToolOutputSuccess 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.CreateToolOutputBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputBase).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo); + } + else if (value.IsCreateToolOutputSuccessVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateToolOutputSuccessVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateToolOutputSuccessVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateToolOutputSuccessVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolRequest.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolRequest.g.cs index 5d005933..7cd0fd28 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.CreateToolRequest.g.cs @@ -28,10 +28,19 @@ public class CreateToolRequestJsonConverter : global::System.Text.Json.Serializa throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.CreateLambdaToolRequest)}"); lambda = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.CreateClientToolRequest? client = default; + if (discriminator?.Type == global::Vectara.CreateToolRequestDiscriminatorType.Client) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateClientToolRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.CreateClientToolRequest)}"); + client = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Vectara.CreateToolRequest( discriminator?.Type, - lambda + lambda, + + client ); return __value; @@ -52,6 +61,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateLambdaToolRequest).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lambda!, typeInfo); } + else if (value.IsClient) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.CreateClientToolRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.CreateClientToolRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Client!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineClientToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineClientToolConfiguration.g.cs new file mode 100644 index 00000000..1bb8b348 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.InlineClientToolConfiguration.g.cs @@ -0,0 +1,146 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Vectara.JsonConverters +{ + /// + public class InlineClientToolConfigurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Vectara.InlineClientToolConfiguration 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("input_transform")) __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.InlineClientToolConfigurationVariant2? inlineClientToolConfigurationVariant2 = 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.InlineClientToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineClientToolConfigurationVariant2).Name}"); + inlineClientToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (agentBase == null && inlineClientToolConfigurationVariant2 == 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) + { + } + } + + if (agentBase == null && inlineClientToolConfigurationVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineClientToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineClientToolConfigurationVariant2).Name}"); + inlineClientToolConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Vectara.InlineClientToolConfiguration( + agentBase, + + inlineClientToolConfigurationVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Vectara.InlineClientToolConfiguration 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.IsInlineClientToolConfigurationVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.InlineClientToolConfigurationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.InlineClientToolConfigurationVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InlineClientToolConfigurationVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.LambdaTool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.LambdaTool.g.cs index 96791674..acd51a0b 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.LambdaTool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.LambdaTool.g.cs @@ -62,7 +62,6 @@ public class LambdaToolJsonConverter : global::System.Text.Json.Serialization.Js if (__jsonProps.Contains("function_definition.validation_errors")) __score1++; if (__jsonProps.Contains("function_definition.validation_status")) __score1++; if (__jsonProps.Contains("language")) __score1++; - if (__jsonProps.Contains("output_schema")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.Tool.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.Tool.g.cs index b6115b93..383eab0f 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.Tool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.Tool.g.cs @@ -112,6 +112,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.GetDocumentTextTool)}"); getDocumentText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.ClientTool? client = default; + if (discriminator?.Type == global::Vectara.ToolDiscriminatorType.Client) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.ClientTool)}"); + client = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Vectara.Tool( discriminator?.Type, @@ -139,7 +146,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv documentConversion, - getDocumentText + getDocumentText, + + client ); return __value; @@ -232,6 +241,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.GetDocumentTextTool).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.GetDocumentText!.Value, typeInfo); } + else if (value.IsClient) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.ClientTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.ClientTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Client!.Value, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputEvent.g.cs index a9c166a7..22c0649a 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputEvent.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.ToolOutputEvent.g.cs @@ -33,6 +33,7 @@ public class ToolOutputEventJsonConverter : global::System.Text.Json.Serializati if (__jsonProps.Contains("session_key")) __score0++; var __score1 = 0; if (__jsonProps.Contains("error")) __score1++; + if (__jsonProps.Contains("resolved_argument_overrides")) __score1++; if (__jsonProps.Contains("tool_call_id")) __score1++; if (__jsonProps.Contains("tool_configuration_name")) __score1++; if (__jsonProps.Contains("tool_name")) __score1++; diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateToolRequest.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateToolRequest.g.cs index c2b34f01..47f45bfe 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateToolRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.UpdateToolRequest.g.cs @@ -35,12 +35,21 @@ public class UpdateToolRequestJsonConverter : global::System.Text.Json.Serializa throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.UpdateLambdaToolRequest)}"); lambda = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Vectara.UpdateClientToolRequest? client = default; + if (discriminator?.Type == global::Vectara.UpdateToolRequestDiscriminatorType.Client) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.UpdateClientToolRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.UpdateClientToolRequest)}"); + client = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Vectara.UpdateToolRequest( discriminator?.Type, mcp, - lambda + lambda, + + client ); return __value; @@ -67,6 +76,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.UpdateLambdaToolRequest).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lambda!, typeInfo); } + else if (value.IsClient) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.UpdateClientToolRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.UpdateClientToolRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Client!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs index adf67cd6..1dfdfb5e 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs @@ -301,6 +301,10 @@ namespace Vectara typeof(global::Vectara.JsonConverters.InputBehaviorNullableJsonConverter), + typeof(global::Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeJsonConverter), + + typeof(global::Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Vectara.JsonConverters.CreateInputRequestDiscriminatorTypeJsonConverter), typeof(global::Vectara.JsonConverters.CreateInputRequestDiscriminatorTypeNullableJsonConverter), @@ -581,6 +585,8 @@ namespace Vectara typeof(global::Vectara.JsonConverters.GetDocumentTextToolJsonConverter), + typeof(global::Vectara.JsonConverters.ClientToolJsonConverter), + typeof(global::Vectara.JsonConverters.ToolJsonConverter), typeof(global::Vectara.JsonConverters.CreateToolRequestJsonConverter), @@ -613,6 +619,8 @@ namespace Vectara typeof(global::Vectara.JsonConverters.InlineLambdaToolConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.InlineClientToolConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.InlineSubAgentToolConfigurationJsonConverter), typeof(global::Vectara.JsonConverters.InlineArtifactCreateToolConfigurationJsonConverter), @@ -663,6 +671,8 @@ namespace Vectara typeof(global::Vectara.JsonConverters.SessionInterruptedEventJsonConverter), + typeof(global::Vectara.JsonConverters.ClientToolPendingEventJsonConverter), + typeof(global::Vectara.JsonConverters.ImageReadEventJsonConverter), typeof(global::Vectara.JsonConverters.StepTransitionEventJsonConverter), @@ -677,6 +687,14 @@ namespace Vectara typeof(global::Vectara.JsonConverters.CreateCompactRequestJsonConverter), + typeof(global::Vectara.JsonConverters.CreateToolOutputSuccessJsonConverter), + + typeof(global::Vectara.JsonConverters.CreateToolOutputErrorJsonConverter), + + typeof(global::Vectara.JsonConverters.CreateToolOutputRequestJsonConverter), + + typeof(global::Vectara.JsonConverters.ClientToolOutputRequestJsonConverter), + typeof(global::Vectara.JsonConverters.CreateInputRequestJsonConverter), typeof(global::Vectara.JsonConverters.CompactionStartedEventJsonConverter), @@ -1040,6 +1058,7 @@ namespace Vectara [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.JsonSchemaDefinition))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.JsonSchemaDefinitionType), TypeInfoPropertyName = "JsonSchemaDefinitionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.JsonSchemaSpec))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ResponseFormat))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ResponseFormatType), TypeInfoPropertyName = "ResponseFormatType2")] @@ -1161,6 +1180,8 @@ namespace Vectara [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.DocumentConversionToolVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.GetDocumentTextTool), TypeInfoPropertyName = "GetDocumentTextTool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.GetDocumentTextToolVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ClientTool), TypeInfoPropertyName = "ClientTool2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ClientToolVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.Tool), TypeInfoPropertyName = "Tool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ToolDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ToolDiscriminatorType), TypeInfoPropertyName = "ToolDiscriminatorType2")] @@ -1168,6 +1189,7 @@ namespace Vectara [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateLambdaToolRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateLambdaToolRequestLanguage), TypeInfoPropertyName = "CreateLambdaToolRequestLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateClientToolRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolRequest), TypeInfoPropertyName = "CreateToolRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolRequestDiscriminatorType), TypeInfoPropertyName = "CreateToolRequestDiscriminatorType2")] @@ -1181,6 +1203,7 @@ namespace Vectara [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.TestLambdaToolResponseExecutionValidationResults))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateMcpToolRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateLambdaToolRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateClientToolRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateToolRequest), TypeInfoPropertyName = "UpdateToolRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateToolRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.UpdateToolRequestDiscriminatorType), TypeInfoPropertyName = "UpdateToolRequestDiscriminatorType2")] @@ -1249,6 +1272,8 @@ namespace Vectara [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.InlineClientToolConfiguration), TypeInfoPropertyName = "InlineClientToolConfiguration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.InlineClientToolConfigurationVariant2))] [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))] @@ -1310,13 +1335,6 @@ namespace Vectara [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentStep))] [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))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1616,6 +1634,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Vectara.JsonConverters.InputBehaviorNullableJsonConverter), + typeof(global::Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeJsonConverter), + + typeof(global::Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Vectara.JsonConverters.CreateInputRequestDiscriminatorTypeJsonConverter), typeof(global::Vectara.JsonConverters.CreateInputRequestDiscriminatorTypeNullableJsonConverter), @@ -1896,6 +1918,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Vectara.JsonConverters.GetDocumentTextToolJsonConverter), + typeof(global::Vectara.JsonConverters.ClientToolJsonConverter), + typeof(global::Vectara.JsonConverters.ToolJsonConverter), typeof(global::Vectara.JsonConverters.CreateToolRequestJsonConverter), @@ -1928,6 +1952,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Vectara.JsonConverters.InlineLambdaToolConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.InlineClientToolConfigurationJsonConverter), + typeof(global::Vectara.JsonConverters.InlineSubAgentToolConfigurationJsonConverter), typeof(global::Vectara.JsonConverters.InlineArtifactCreateToolConfigurationJsonConverter), @@ -1978,6 +2004,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Vectara.JsonConverters.SessionInterruptedEventJsonConverter), + typeof(global::Vectara.JsonConverters.ClientToolPendingEventJsonConverter), + typeof(global::Vectara.JsonConverters.ImageReadEventJsonConverter), typeof(global::Vectara.JsonConverters.StepTransitionEventJsonConverter), @@ -1992,6 +2020,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Vectara.JsonConverters.CreateCompactRequestJsonConverter), + typeof(global::Vectara.JsonConverters.CreateToolOutputSuccessJsonConverter), + + typeof(global::Vectara.JsonConverters.CreateToolOutputErrorJsonConverter), + + typeof(global::Vectara.JsonConverters.CreateToolOutputRequestJsonConverter), + + typeof(global::Vectara.JsonConverters.ClientToolOutputRequestJsonConverter), + typeof(global::Vectara.JsonConverters.CreateInputRequestJsonConverter), typeof(global::Vectara.JsonConverters.CompactionStartedEventJsonConverter), @@ -2132,6 +2168,13 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Vectara.JsonConverters.UnixTimestampJsonConverter), })] + [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))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateAgentRequest))] @@ -2180,6 +2223,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.StepTransitionLimitExceededEventVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SessionInterruptedEvent), TypeInfoPropertyName = "SessionInterruptedEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SessionInterruptedEventVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ClientToolPendingCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ClientToolPendingEvent), TypeInfoPropertyName = "ClientToolPendingEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ClientToolPendingEventVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ImageReadEvent), TypeInfoPropertyName = "ImageReadEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ImageReadEventVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ImageReadEventVariant2Detail), TypeInfoPropertyName = "ImageReadEventVariant2Detail2")] @@ -2200,9 +2247,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateInterruptRequestVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateCompactRequest), TypeInfoPropertyName = "CreateCompactRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateCompactRequestVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolOutputBase))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolOutputSuccess), TypeInfoPropertyName = "CreateToolOutputSuccess2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolOutputSuccessVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolOutputError), TypeInfoPropertyName = "CreateToolOutputError2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolOutputErrorVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolOutputRequest), TypeInfoPropertyName = "CreateToolOutputRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolOutputRequestDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateToolOutputRequestDiscriminatorType), TypeInfoPropertyName = "CreateToolOutputRequestDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ClientToolOutputRequest), TypeInfoPropertyName = "ClientToolOutputRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ClientToolOutputRequestVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateInputRequest), TypeInfoPropertyName = "CreateInputRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateInputRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.CreateInputRequestDiscriminatorType), TypeInfoPropertyName = "CreateInputRequestDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.MultipartInputEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.StreamingAgentOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.StreamingAgentOutputEnd))] @@ -2222,6 +2282,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentStreamedResponse), TypeInfoPropertyName = "AgentStreamedResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentStreamedResponseDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentStreamedResponseDiscriminatorType), TypeInfoPropertyName = "AgentStreamedResponseDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.OutstandingClientToolCallsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SessionArtifact))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListSessionArtifactsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -2505,6 +2566,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -2535,7 +2597,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -2748,6 +2813,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Vectara.JsonConverters.AgentEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.InputBehaviorJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.InputBehaviorNullableJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.CreateInputRequestDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.CreateInputRequestDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.ToolActivityEventDiscriminatorActivityTypeJsonConverter()); @@ -2888,6 +2955,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Vectara.JsonConverters.ImageReadToolJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.DocumentConversionToolJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.GetDocumentTextToolJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.ClientToolJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.ToolJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.CreateToolRequestJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.UpdateToolRequestJsonConverter()); @@ -2904,6 +2972,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Vectara.JsonConverters.WebGetAuthJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.InlineWebGetToolConfigurationJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.InlineLambdaToolConfigurationJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.InlineClientToolConfigurationJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.InlineSubAgentToolConfigurationJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.InlineArtifactCreateToolConfigurationJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.InlineArtifactReadToolConfigurationJsonConverter()); @@ -2929,6 +2998,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Vectara.JsonConverters.ContextLimitExceededEventJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.StepTransitionLimitExceededEventJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.SessionInterruptedEventJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.ClientToolPendingEventJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.ImageReadEventJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.StepTransitionEventJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.CompactionEventJsonConverter()); @@ -2936,6 +3006,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Vectara.JsonConverters.CreateInputMessageRequestJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.CreateInterruptRequestJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.CreateCompactRequestJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.CreateToolOutputSuccessJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.CreateToolOutputErrorJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.CreateToolOutputRequestJsonConverter()); + options.Converters.Add(new global::Vectara.JsonConverters.ClientToolOutputRequestJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.CreateInputRequestJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.CompactionStartedEventJsonConverter()); options.Converters.Add(new global::Vectara.JsonConverters.GenericToolActivityEventJsonConverter()); diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs index 7be6bab2..86bb2984 100644 --- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs +++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs @@ -912,2479 +912,2579 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Vectara.JsonSchemaSpec? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::Vectara.ResponseFormat? Type222 { get; set; } + public global::Vectara.JsonSchemaSpec? Type222 { get; set; } /// /// /// - public global::Vectara.ResponseFormatType? Type223 { get; set; } + public global::Vectara.ResponseFormat? Type223 { get; set; } /// /// /// - public global::Vectara.CreateChatCompletionRequest? Type224 { get; set; } + public global::Vectara.ResponseFormatType? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::Vectara.CreateChatCompletionRequest? Type225 { get; set; } /// /// /// - public global::Vectara.ChatCompletionResponseMessage? Type226 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::Vectara.ChatCompletionResponseChoice? Type227 { get; set; } + public global::Vectara.ChatCompletionResponseMessage? Type227 { get; set; } /// /// /// - public global::Vectara.CreateChatCompletionResponse? Type228 { get; set; } + public global::Vectara.ChatCompletionResponseChoice? Type228 { get; set; } /// /// /// - public global::Vectara.CreateChatCompletionResponseObject? Type229 { get; set; } + public global::Vectara.CreateChatCompletionResponse? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::Vectara.CreateChatCompletionResponseObject? Type230 { get; set; } /// /// /// - public global::Vectara.ChatCompletionStreamResponseDelta? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::Vectara.ChatCompletionStreamResponseChoice? Type232 { get; set; } + public global::Vectara.ChatCompletionStreamResponseDelta? Type232 { get; set; } /// /// /// - public global::Vectara.CreateChatCompletionStreamResponse? Type233 { get; set; } + public global::Vectara.ChatCompletionStreamResponseChoice? Type233 { get; set; } /// /// /// - public global::Vectara.CreateChatCompletionStreamResponseObject? Type234 { get; set; } + public global::Vectara.CreateChatCompletionStreamResponse? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::Vectara.CreateChatCompletionStreamResponseObject? Type235 { get; set; } /// /// /// - public global::Vectara.GenerationPresetOwnership? Type236 { get; set; } + public global::System.Collections.Generic.IList? Type236 { get; set; } /// /// /// - public global::Vectara.GenerationPreset? Type237 { get; set; } + public global::Vectara.GenerationPresetOwnership? Type237 { get; set; } /// /// /// - public global::Vectara.ListGenerationPresetsResponse? Type238 { get; set; } + public global::Vectara.GenerationPreset? Type238 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type239 { get; set; } + public global::Vectara.ListGenerationPresetsResponse? Type239 { get; set; } /// /// /// - public global::Vectara.CreateGenerationPresetRequest? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type240 { get; set; } /// /// /// - public global::Vectara.EvaluateFactualConsistencyRequest? Type241 { get; set; } + public global::Vectara.CreateGenerationPresetRequest? Type241 { get; set; } /// /// /// - public global::Vectara.EvaluateFactualConsistencyRequestModelParameters? Type242 { get; set; } + public global::Vectara.EvaluateFactualConsistencyRequest? Type242 { get; set; } /// /// /// - public global::Vectara.EvaluateFactualConsistencyResponse? Type243 { get; set; } + public global::Vectara.EvaluateFactualConsistencyRequestModelParameters? Type243 { get; set; } /// /// /// - public global::Vectara.Encoder? Type244 { get; set; } + public global::Vectara.EvaluateFactualConsistencyResponse? Type244 { get; set; } /// /// /// - public global::Vectara.ListEncodersResponse? Type245 { get; set; } + public global::Vectara.Encoder? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::Vectara.ListEncodersResponse? Type246 { get; set; } /// /// /// - public global::Vectara.CreateOpenAIEncoderRequest? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type247 { get; set; } /// /// /// - public global::Vectara.CreateEncoderRequest? Type248 { get; set; } + public global::Vectara.CreateOpenAIEncoderRequest? Type248 { get; set; } /// /// /// - public global::Vectara.CreateEncoderRequestDiscriminator? Type249 { get; set; } + public global::Vectara.CreateEncoderRequest? Type249 { get; set; } /// /// /// - public global::Vectara.CreateEncoderRequestDiscriminatorType? Type250 { get; set; } + public global::Vectara.CreateEncoderRequestDiscriminator? Type250 { get; set; } /// /// /// - public global::Vectara.Reranker? Type251 { get; set; } + public global::Vectara.CreateEncoderRequestDiscriminatorType? Type251 { get; set; } /// /// /// - public global::Vectara.ListRerankersResponse? Type252 { get; set; } + public global::Vectara.Reranker? Type252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type253 { get; set; } + public global::Vectara.ListRerankersResponse? Type253 { get; set; } /// /// /// - public global::Vectara.TableExtractor? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::Vectara.ListTableExtractorsResponse? Type255 { get; set; } + public global::Vectara.TableExtractor? Type255 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type256 { get; set; } + public global::Vectara.ListTableExtractorsResponse? Type256 { get; set; } /// /// /// - public global::Vectara.HallucinationCorrector? Type257 { get; set; } + public global::System.Collections.Generic.IList? Type257 { get; set; } /// /// /// - public global::Vectara.ListHallucinationCorrectorsResponse? Type258 { get; set; } + public global::Vectara.HallucinationCorrector? Type258 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type259 { get; set; } + public global::Vectara.ListHallucinationCorrectorsResponse? Type259 { get; set; } /// /// /// - public global::Vectara.HcmSourceDocument? Type260 { get; set; } + public global::System.Collections.Generic.IList? Type260 { get; set; } /// /// /// - public global::Vectara.HallucinationCorrectionRequest? Type261 { get; set; } + public global::Vectara.HcmSourceDocument? Type261 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type262 { get; set; } + public global::Vectara.HallucinationCorrectionRequest? Type262 { get; set; } /// /// /// - public global::Vectara.CorrectionItem? Type263 { get; set; } + public global::System.Collections.Generic.IList? Type263 { get; set; } /// /// /// - public global::Vectara.HallucinationCorrectionResponse? Type264 { get; set; } + public global::Vectara.CorrectionItem? Type264 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type265 { get; set; } + public global::Vectara.HallucinationCorrectionResponse? Type265 { get; set; } /// /// /// - public global::Vectara.JobState? Type266 { get; set; } + public global::System.Collections.Generic.IList? Type266 { get; set; } /// /// /// - public global::Vectara.Job? Type267 { get; set; } + public global::Vectara.JobState? Type267 { get; set; } /// /// /// - public global::Vectara.JobType? Type268 { get; set; } + public global::Vectara.Job? Type268 { get; set; } /// /// /// - public global::Vectara.ListJobsResponse? Type269 { get; set; } + public global::Vectara.JobType? Type269 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type270 { get; set; } + public global::Vectara.ListJobsResponse? Type270 { get; set; } /// /// /// - public global::Vectara.ApiRole? Type271 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::Vectara.CorpusRole? Type272 { get; set; } + public global::Vectara.ApiRole? Type272 { get; set; } /// /// /// - public global::Vectara.CorpusRoleRole? Type273 { get; set; } + public global::Vectara.CorpusRole? Type273 { get; set; } /// /// /// - public global::Vectara.AgentRole? Type274 { get; set; } + public global::Vectara.CorpusRoleRole? Type274 { get; set; } /// /// /// - public global::Vectara.AgentRoleRole? Type275 { get; set; } + public global::Vectara.AgentRole? Type275 { get; set; } /// /// /// - public global::Vectara.ApiOperationPolicy? Type276 { get; set; } + public global::Vectara.AgentRoleRole? Type276 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type277 { get; set; } + public global::Vectara.ApiOperationPolicy? Type277 { get; set; } /// /// /// - public global::Vectara.ApiPolicy? Type278 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type278 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type279 { get; set; } + public global::Vectara.ApiPolicy? Type279 { get; set; } /// /// /// - public global::Vectara.User? Type280 { get; set; } + public global::System.Collections.Generic.Dictionary? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::Vectara.User? Type281 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type282 { get; set; } + public global::System.Collections.Generic.IList? Type282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::System.Collections.Generic.IList? Type283 { get; set; } /// /// /// - public global::Vectara.ListUsersResponse? Type284 { get; set; } + public global::System.Collections.Generic.IList? Type284 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type285 { get; set; } + public global::Vectara.ListUsersResponse? Type285 { get; set; } /// /// /// - public global::Vectara.CreateUserRequest? Type286 { get; set; } + public global::System.Collections.Generic.IList? Type286 { get; set; } /// /// /// - public global::Vectara.UpdateUserRequest? Type287 { get; set; } + public global::Vectara.CreateUserRequest? Type287 { get; set; } /// /// /// - public global::Vectara.ApiKeyRole? Type288 { get; set; } + public global::Vectara.UpdateUserRequest? Type288 { get; set; } /// /// /// - public global::Vectara.ApiKey? Type289 { get; set; } + public global::Vectara.ApiKeyRole? Type289 { get; set; } /// /// /// - public global::Vectara.ListApiKeysResponse? Type290 { get; set; } + public global::Vectara.ApiKey? Type290 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type291 { get; set; } + public global::Vectara.ListApiKeysResponse? Type291 { get; set; } /// /// /// - public global::Vectara.CreateApiKeyRequest? Type292 { get; set; } + public global::System.Collections.Generic.IList? Type292 { get; set; } /// /// /// - public global::Vectara.UpdateApiKeyRequest? Type293 { get; set; } + public global::Vectara.CreateApiKeyRequest? Type293 { get; set; } /// /// /// - public global::Vectara.AppClient? Type294 { get; set; } + public global::Vectara.UpdateApiKeyRequest? Type294 { get; set; } /// /// /// - public global::Vectara.ListAppClientsResponse? Type295 { get; set; } + public global::Vectara.AppClient? Type295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type296 { get; set; } + public global::Vectara.ListAppClientsResponse? Type296 { get; set; } /// /// /// - public global::Vectara.CreateClientCredentialsRequest? Type297 { get; set; } + public global::System.Collections.Generic.IList? Type297 { get; set; } /// /// /// - public global::Vectara.CreateAppClientRequest? Type298 { get; set; } + public global::Vectara.CreateClientCredentialsRequest? Type298 { get; set; } /// /// /// - public global::Vectara.CreateAppClientRequestDiscriminator? Type299 { get; set; } + public global::Vectara.CreateAppClientRequest? Type299 { get; set; } /// /// /// - public global::Vectara.CreateAppClientRequestDiscriminatorType? Type300 { get; set; } + public global::Vectara.CreateAppClientRequestDiscriminator? Type300 { get; set; } /// /// /// - public global::Vectara.UpdateAppClientRequest? Type301 { get; set; } + public global::Vectara.CreateAppClientRequestDiscriminatorType? Type301 { get; set; } /// /// /// - public global::Vectara.ToolServerType? Type302 { get; set; } + public global::Vectara.UpdateAppClientRequest? Type302 { get; set; } /// /// /// - public global::Vectara.ToolServerTransport? Type303 { get; set; } + public global::Vectara.ToolServerType? Type303 { get; set; } /// /// /// - public global::Vectara.ToolServer? Type304 { get; set; } + public global::Vectara.ToolServerTransport? Type304 { get; set; } /// /// /// - public global::Vectara.ListToolServersResponse? Type305 { get; set; } + public global::Vectara.ToolServer? Type305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type306 { get; set; } + public global::Vectara.ListToolServersResponse? Type306 { get; set; } /// /// /// - public global::Vectara.CreateToolServerRequest? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::Vectara.UpdateToolServerRequest? Type308 { get; set; } + public global::Vectara.CreateToolServerRequest? Type308 { get; set; } /// /// /// - public global::Vectara.ToolBase? Type309 { get; set; } + public global::Vectara.UpdateToolServerRequest? Type309 { get; set; } /// /// /// - public global::Vectara.DynamicVectaraTool? Type310 { get; set; } + public global::Vectara.ToolBase? Type310 { get; set; } /// /// /// - public global::Vectara.DynamicVectaraToolVariant2? Type311 { get; set; } + public global::Vectara.DynamicVectaraTool? Type311 { get; set; } /// /// /// - public global::Vectara.McpToolAnnotations? Type312 { get; set; } + public global::Vectara.DynamicVectaraToolVariant2? Type312 { get; set; } /// /// /// - public global::Vectara.McpTool? Type313 { get; set; } + public global::Vectara.McpToolAnnotations? Type313 { get; set; } /// /// /// - public global::Vectara.McpToolVariant2? Type314 { get; set; } + public global::Vectara.McpTool? Type314 { get; set; } /// /// /// - public global::Vectara.CorporaSearchTool? Type315 { get; set; } + public global::Vectara.McpToolVariant2? Type315 { get; set; } /// /// /// - public global::Vectara.CorporaSearchToolVariant2? Type316 { get; set; } + public global::Vectara.CorporaSearchTool? Type316 { get; set; } /// /// /// - public global::Vectara.WebSearchTool? Type317 { get; set; } + public global::Vectara.CorporaSearchToolVariant2? Type317 { get; set; } /// /// /// - public global::Vectara.WebSearchToolVariant2? Type318 { get; set; } + public global::Vectara.WebSearchTool? Type318 { get; set; } /// /// /// - public global::Vectara.WebGetTool? Type319 { get; set; } + public global::Vectara.WebSearchToolVariant2? Type319 { get; set; } /// /// /// - public global::Vectara.WebGetToolVariant2? Type320 { get; set; } + public global::Vectara.WebGetTool? Type320 { get; set; } /// /// /// - public global::Vectara.ExecutionConfiguration? Type321 { get; set; } + public global::Vectara.WebGetToolVariant2? Type321 { get; set; } /// /// /// - public global::Vectara.FunctionDefinition? Type322 { get; set; } + public global::Vectara.ExecutionConfiguration? Type322 { get; set; } /// /// /// - public global::Vectara.FunctionDefinitionLanguage? Type323 { get; set; } + public global::Vectara.FunctionDefinition? Type323 { get; set; } /// /// /// - public global::Vectara.FunctionDefinitionValidationStatus? Type324 { get; set; } + public global::Vectara.FunctionDefinitionLanguage? Type324 { get; set; } /// /// /// - public global::Vectara.LambdaTool? Type325 { get; set; } + public global::Vectara.FunctionDefinitionValidationStatus? Type325 { get; set; } /// /// /// - public global::Vectara.LambdaToolVariant2? Type326 { get; set; } + public global::Vectara.LambdaTool? Type326 { get; set; } /// /// /// - public global::Vectara.LambdaToolVariant2Language? Type327 { get; set; } + public global::Vectara.LambdaToolVariant2? Type327 { get; set; } /// /// /// - public global::Vectara.SubAgentTool? Type328 { get; set; } + public global::Vectara.LambdaToolVariant2Language? Type328 { get; set; } /// /// /// - public global::Vectara.SubAgentToolVariant2? Type329 { get; set; } + public global::Vectara.SubAgentTool? Type329 { get; set; } /// /// /// - public global::Vectara.ArtifactCreateTool? Type330 { get; set; } + public global::Vectara.SubAgentToolVariant2? Type330 { get; set; } /// /// /// - public global::Vectara.ArtifactCreateToolVariant2? Type331 { get; set; } + public global::Vectara.ArtifactCreateTool? Type331 { get; set; } /// /// /// - public global::Vectara.ArtifactReadTool? Type332 { get; set; } + public global::Vectara.ArtifactCreateToolVariant2? Type332 { get; set; } /// /// /// - public global::Vectara.ArtifactReadToolVariant2? Type333 { get; set; } + public global::Vectara.ArtifactReadTool? Type333 { get; set; } /// /// /// - public global::Vectara.ArtifactGrepTool? Type334 { get; set; } + public global::Vectara.ArtifactReadToolVariant2? Type334 { get; set; } /// /// /// - public global::Vectara.ArtifactGrepToolVariant2? Type335 { get; set; } + public global::Vectara.ArtifactGrepTool? Type335 { get; set; } /// /// /// - public global::Vectara.ImageReadTool? Type336 { get; set; } + public global::Vectara.ArtifactGrepToolVariant2? Type336 { get; set; } /// /// /// - public global::Vectara.ImageReadToolVariant2? Type337 { get; set; } + public global::Vectara.ImageReadTool? Type337 { get; set; } /// /// /// - public global::Vectara.DocumentConversionTool? Type338 { get; set; } + public global::Vectara.ImageReadToolVariant2? Type338 { get; set; } /// /// /// - public global::Vectara.DocumentConversionToolVariant2? Type339 { get; set; } + public global::Vectara.DocumentConversionTool? Type339 { get; set; } /// /// /// - public global::Vectara.GetDocumentTextTool? Type340 { get; set; } + public global::Vectara.DocumentConversionToolVariant2? Type340 { get; set; } /// /// /// - public global::Vectara.GetDocumentTextToolVariant2? Type341 { get; set; } + public global::Vectara.GetDocumentTextTool? Type341 { get; set; } /// /// /// - public global::Vectara.Tool? Type342 { get; set; } + public global::Vectara.GetDocumentTextToolVariant2? Type342 { get; set; } /// /// /// - public global::Vectara.ToolDiscriminator? Type343 { get; set; } + public global::Vectara.ClientTool? Type343 { get; set; } /// /// /// - public global::Vectara.ToolDiscriminatorType? Type344 { get; set; } + public global::Vectara.ClientToolVariant2? Type344 { get; set; } /// /// /// - public global::Vectara.ListToolsResponse? Type345 { get; set; } + public global::Vectara.Tool? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::Vectara.ToolDiscriminator? Type346 { get; set; } /// /// /// - public global::Vectara.CreateLambdaToolRequest? Type347 { get; set; } + public global::Vectara.ToolDiscriminatorType? Type347 { get; set; } /// /// /// - public global::Vectara.CreateLambdaToolRequestLanguage? Type348 { get; set; } + public global::Vectara.ListToolsResponse? Type348 { get; set; } /// /// /// - public global::Vectara.CreateToolRequest? Type349 { get; set; } + public global::System.Collections.Generic.IList? Type349 { get; set; } /// /// /// - public global::Vectara.CreateToolRequestDiscriminator? Type350 { get; set; } + public global::Vectara.CreateLambdaToolRequest? Type350 { get; set; } /// /// /// - public global::Vectara.CreateToolRequestDiscriminatorType? Type351 { get; set; } + public global::Vectara.CreateLambdaToolRequestLanguage? Type351 { get; set; } /// /// /// - public global::Vectara.TestLambdaToolRequest? Type352 { get; set; } + public global::Vectara.CreateClientToolRequest? Type352 { get; set; } /// /// /// - public global::Vectara.TestLambdaToolRequestLanguage? Type353 { get; set; } + public global::Vectara.CreateToolRequest? Type353 { get; set; } /// /// /// - public global::Vectara.TestLambdaToolResponse? Type354 { get; set; } + public global::Vectara.CreateToolRequestDiscriminator? Type354 { get; set; } /// /// /// - public global::Vectara.TestLambdaToolResponseValidation? Type355 { get; set; } + public global::Vectara.CreateToolRequestDiscriminatorType? Type355 { get; set; } /// /// /// - public global::Vectara.TestLambdaToolResponseValidationStatus? Type356 { get; set; } + public global::Vectara.TestLambdaToolRequest? Type356 { get; set; } /// /// /// - public global::Vectara.TestLambdaToolResponseExecution? Type357 { get; set; } + public global::Vectara.TestLambdaToolRequestLanguage? Type357 { get; set; } /// /// /// - public global::Vectara.TestLambdaToolResponseExecutionError? Type358 { get; set; } + public global::Vectara.TestLambdaToolResponse? Type358 { get; set; } /// /// /// - public global::Vectara.TestLambdaToolResponseExecutionValidationResults? Type359 { get; set; } + public global::Vectara.TestLambdaToolResponseValidation? Type359 { get; set; } /// /// /// - public global::Vectara.UpdateMcpToolRequest? Type360 { get; set; } + public global::Vectara.TestLambdaToolResponseValidationStatus? Type360 { get; set; } /// /// /// - public global::Vectara.UpdateLambdaToolRequest? Type361 { get; set; } + public global::Vectara.TestLambdaToolResponseExecution? Type361 { get; set; } /// /// /// - public global::Vectara.UpdateToolRequest? Type362 { get; set; } + public global::Vectara.TestLambdaToolResponseExecutionError? Type362 { get; set; } /// /// /// - public global::Vectara.UpdateToolRequestDiscriminator? Type363 { get; set; } + public global::Vectara.TestLambdaToolResponseExecutionValidationResults? Type363 { get; set; } /// /// /// - public global::Vectara.UpdateToolRequestDiscriminatorType? Type364 { get; set; } + public global::Vectara.UpdateMcpToolRequest? Type364 { get; set; } /// /// /// - public global::Vectara.TestToolRequest? Type365 { get; set; } + public global::Vectara.UpdateLambdaToolRequest? Type365 { get; set; } /// /// /// - public global::Vectara.TestToolSuccessResponse? Type366 { get; set; } + public global::Vectara.UpdateClientToolRequest? Type366 { get; set; } /// /// /// - public global::Vectara.TestToolSuccessResponseValidationResults? Type367 { get; set; } + public global::Vectara.UpdateToolRequest? Type367 { get; set; } /// /// /// - public global::Vectara.TestToolErrorResponse? Type368 { get; set; } + public global::Vectara.UpdateToolRequestDiscriminator? Type368 { get; set; } /// /// /// - public global::Vectara.TestToolErrorResponseError? Type369 { get; set; } + public global::Vectara.UpdateToolRequestDiscriminatorType? Type369 { get; set; } /// /// /// - public global::Vectara.TestToolResponse? Type370 { get; set; } + public global::Vectara.TestToolRequest? Type370 { get; set; } /// /// /// - public global::Vectara.TestToolResponseDiscriminator? Type371 { get; set; } + public global::Vectara.TestToolSuccessResponse? Type371 { get; set; } /// /// /// - public global::Vectara.TestToolResponseDiscriminatorType? Type372 { get; set; } + public global::Vectara.TestToolSuccessResponseValidationResults? Type372 { get; set; } /// /// /// - public global::Vectara.TemplateType? Type373 { get; set; } + public global::Vectara.TestToolErrorResponse? Type373 { get; set; } /// /// /// - public global::Vectara.InitialInstruction? Type374 { get; set; } + public global::Vectara.TestToolErrorResponseError? Type374 { get; set; } /// /// /// - public global::Vectara.Instruction? Type375 { get; set; } + public global::Vectara.TestToolResponse? Type375 { get; set; } /// /// /// - public global::Vectara.InstructionDiscriminator? Type376 { get; set; } + public global::Vectara.TestToolResponseDiscriminator? Type376 { get; set; } /// /// /// - public global::Vectara.InstructionDiscriminatorType? Type377 { get; set; } + public global::Vectara.TestToolResponseDiscriminatorType? Type377 { get; set; } /// /// /// - public global::Vectara.ListInstructionsResponse? Type378 { get; set; } + public global::Vectara.TemplateType? Type378 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type379 { get; set; } + public global::Vectara.InitialInstruction? Type379 { get; set; } /// /// /// - public global::Vectara.InstructionRequestBase? Type380 { get; set; } + public global::Vectara.Instruction? Type380 { get; set; } /// /// /// - public global::Vectara.CreateInitialInstructionRequest? Type381 { get; set; } + public global::Vectara.InstructionDiscriminator? Type381 { get; set; } /// /// /// - public global::Vectara.CreateInitialInstructionRequestVariant2? Type382 { get; set; } + public global::Vectara.InstructionDiscriminatorType? Type382 { get; set; } /// /// /// - public global::Vectara.CreateInstructionRequest? Type383 { get; set; } + public global::Vectara.ListInstructionsResponse? Type383 { get; set; } /// /// /// - public global::Vectara.CreateInstructionRequestDiscriminator? Type384 { get; set; } + public global::System.Collections.Generic.IList? Type384 { get; set; } /// /// /// - public global::Vectara.CreateInstructionRequestDiscriminatorType? Type385 { get; set; } + public global::Vectara.InstructionRequestBase? Type385 { get; set; } /// /// /// - public global::Vectara.UpdateInitialInstructionRequest? Type386 { get; set; } + public global::Vectara.CreateInitialInstructionRequest? Type386 { get; set; } /// /// /// - public global::Vectara.UpdateInstructionRequest? Type387 { get; set; } + public global::Vectara.CreateInitialInstructionRequestVariant2? Type387 { get; set; } /// /// /// - public global::Vectara.UpdateInstructionRequestDiscriminator? Type388 { get; set; } + public global::Vectara.CreateInstructionRequest? Type388 { get; set; } /// /// /// - public global::Vectara.UpdateInstructionRequestDiscriminatorType? Type389 { get; set; } + public global::Vectara.CreateInstructionRequestDiscriminator? Type389 { get; set; } /// /// /// - public global::Vectara.TestInstructionRequest? Type390 { get; set; } + public global::Vectara.CreateInstructionRequestDiscriminatorType? Type390 { get; set; } /// /// /// - public global::Vectara.TestInstructionResponse? Type391 { get; set; } + public global::Vectara.UpdateInitialInstructionRequest? Type391 { get; set; } /// /// /// - public global::Vectara.AgentToolConfigurationBase? Type392 { get; set; } + public global::Vectara.UpdateInstructionRequest? Type392 { get; set; } /// /// /// - public global::Vectara.InlineDynamicVectaraToolConfiguration? Type393 { get; set; } + public global::Vectara.UpdateInstructionRequestDiscriminator? Type393 { get; set; } /// /// /// - public global::Vectara.InlineDynamicVectaraToolConfigurationVariant2? Type394 { get; set; } + public global::Vectara.UpdateInstructionRequestDiscriminatorType? Type394 { get; set; } /// /// /// - public global::Vectara.InlineMcpToolConfiguration? Type395 { get; set; } + public global::Vectara.TestInstructionRequest? Type395 { get; set; } /// /// /// - public global::Vectara.InlineMcpToolConfigurationVariant2? Type396 { get; set; } + public global::Vectara.TestInstructionResponse? Type396 { get; set; } /// /// /// - public global::Vectara.CorporaSearchToolParameters? Type397 { get; set; } + public global::Vectara.AgentToolConfigurationBase? Type397 { get; set; } /// /// /// - public global::Vectara.EagerReference? Type398 { get; set; } + public global::Vectara.InlineDynamicVectaraToolConfiguration? Type398 { get; set; } /// /// /// - public global::Vectara.AgentKeyedSearchCorpus? Type399 { get; set; } + public global::Vectara.InlineDynamicVectaraToolConfigurationVariant2? Type399 { get; set; } /// /// /// - public global::Vectara.OneOf? Type400 { get; set; } + public global::Vectara.InlineMcpToolConfiguration? Type400 { get; set; } /// /// /// - public global::Vectara.AgentSearchCorporaParameters? Type401 { get; set; } + public global::Vectara.InlineMcpToolConfigurationVariant2? Type401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type402 { get; set; } + public global::Vectara.CorporaSearchToolParameters? Type402 { get; set; } /// /// /// - public global::Vectara.AgentCorporaSearchQueryConfiguration? Type403 { get; set; } + public global::Vectara.EagerReference? Type403 { get; set; } /// /// /// - public global::Vectara.InlineCorporaSearchToolConfiguration? Type404 { get; set; } + public global::Vectara.AgentKeyedSearchCorpus? Type404 { get; set; } /// /// /// - public global::Vectara.InlineCorporaSearchToolConfigurationVariant2? Type405 { get; set; } + public global::Vectara.OneOf? Type405 { get; set; } /// /// /// - public global::Vectara.WebSearchToolParameters? Type406 { get; set; } + public global::Vectara.AgentSearchCorporaParameters? Type406 { get; set; } /// /// /// - public global::Vectara.WebSearchToolParametersProvider? Type407 { get; set; } + public global::System.Collections.Generic.IList? Type407 { get; set; } /// /// /// - public global::Vectara.InlineWebSearchToolConfiguration? Type408 { get; set; } + public global::Vectara.AgentCorporaSearchQueryConfiguration? Type408 { get; set; } /// /// /// - public global::Vectara.InlineWebSearchToolConfigurationVariant2? Type409 { get; set; } + public global::Vectara.InlineCorporaSearchToolConfiguration? Type409 { get; set; } /// /// /// - public global::Vectara.WebGetHeaderValue? Type410 { get; set; } + public global::Vectara.InlineCorporaSearchToolConfigurationVariant2? Type410 { get; set; } /// /// /// - public global::Vectara.WebGetHeadersMap? Type411 { get; set; } + public global::Vectara.WebSearchToolParameters? Type411 { get; set; } /// /// /// - public global::Vectara.WebGetNoAuth? Type412 { get; set; } + public global::Vectara.WebSearchToolParametersProvider? Type412 { get; set; } /// /// /// - public global::Vectara.WebGetBearerAuth? Type413 { get; set; } + public global::Vectara.InlineWebSearchToolConfiguration? Type413 { get; set; } /// /// /// - public global::Vectara.WebGetHeaderAuth? Type414 { get; set; } + public global::Vectara.InlineWebSearchToolConfigurationVariant2? Type414 { get; set; } /// /// /// - public global::Vectara.WebGetOAuthClientCredentialsAuth? Type415 { get; set; } + public global::Vectara.WebGetHeaderValue? Type415 { get; set; } /// /// /// - public global::Vectara.WebGetOAuthRefreshTokenAuth? Type416 { get; set; } + public global::Vectara.WebGetHeadersMap? Type416 { get; set; } /// /// /// - public global::Vectara.WebGetAuth? Type417 { get; set; } + public global::Vectara.WebGetNoAuth? Type417 { get; set; } /// /// /// - public global::Vectara.WebGetAuthDiscriminator? Type418 { get; set; } + public global::Vectara.WebGetBearerAuth? Type418 { get; set; } /// /// /// - public global::Vectara.WebGetAuthDiscriminatorType? Type419 { get; set; } + public global::Vectara.WebGetHeaderAuth? Type419 { get; set; } /// /// /// - public global::Vectara.WebGetToolParameters? Type420 { get; set; } + public global::Vectara.WebGetOAuthClientCredentialsAuth? Type420 { get; set; } /// /// /// - public global::Vectara.WebGetToolParametersMethod? Type421 { get; set; } + public global::Vectara.WebGetOAuthRefreshTokenAuth? Type421 { get; set; } /// /// /// - public global::Vectara.OneOf? Type422 { get; set; } + public global::Vectara.WebGetAuth? Type422 { get; set; } /// /// /// - public global::Vectara.OneOf? Type423 { get; set; } + public global::Vectara.WebGetAuthDiscriminator? Type423 { get; set; } /// /// /// - public global::Vectara.OneOf? Type424 { get; set; } + public global::Vectara.WebGetAuthDiscriminatorType? Type424 { get; set; } /// /// /// - public global::Vectara.OneOf? Type425 { get; set; } + public global::Vectara.WebGetToolParameters? Type425 { get; set; } /// /// /// - public global::Vectara.InlineWebGetToolConfiguration? Type426 { get; set; } + public global::Vectara.WebGetToolParametersMethod? Type426 { get; set; } /// /// /// - public global::Vectara.InlineWebGetToolConfigurationVariant2? Type427 { get; set; } + public global::Vectara.OneOf? Type427 { get; set; } /// /// /// - public global::Vectara.InlineLambdaToolConfiguration? Type428 { get; set; } + public global::Vectara.OneOf? Type428 { get; set; } /// /// /// - public global::Vectara.InlineLambdaToolConfigurationVariant2? Type429 { get; set; } + public global::Vectara.OneOf? Type429 { get; set; } /// /// /// - public global::Vectara.SubAgentToolParameters? Type430 { get; set; } + public global::Vectara.OneOf? Type430 { get; set; } /// /// /// - public global::Vectara.SubAgentSessionMode? Type431 { get; set; } + public global::Vectara.InlineWebGetToolConfiguration? Type431 { get; set; } /// /// /// - public global::Vectara.SubAgentConfiguration? Type432 { get; set; } + public global::Vectara.InlineWebGetToolConfigurationVariant2? Type432 { get; set; } /// /// /// - public global::Vectara.InlineSubAgentToolConfiguration? Type433 { get; set; } + public global::Vectara.InlineLambdaToolConfiguration? Type433 { get; set; } /// /// /// - public global::Vectara.InlineSubAgentToolConfigurationVariant2? Type434 { get; set; } + public global::Vectara.InlineLambdaToolConfigurationVariant2? Type434 { get; set; } /// /// /// - public global::Vectara.InlineArtifactCreateToolConfiguration? Type435 { get; set; } + public global::Vectara.InlineClientToolConfiguration? Type435 { get; set; } /// /// /// - public global::Vectara.InlineArtifactCreateToolConfigurationVariant2? Type436 { get; set; } + public global::Vectara.InlineClientToolConfigurationVariant2? Type436 { get; set; } /// /// /// - public global::Vectara.ArtifactReadToolParameters? Type437 { get; set; } + public global::Vectara.SubAgentToolParameters? Type437 { get; set; } /// /// /// - public global::Vectara.ArtifactReadToolParametersEncoding? Type438 { get; set; } + public global::Vectara.SubAgentSessionMode? Type438 { get; set; } /// /// /// - public global::Vectara.ArtifactReadConfiguration? Type439 { get; set; } + public global::Vectara.SubAgentConfiguration? Type439 { get; set; } /// /// /// - public global::Vectara.InlineArtifactReadToolConfiguration? Type440 { get; set; } + public global::Vectara.InlineSubAgentToolConfiguration? Type440 { get; set; } /// /// /// - public global::Vectara.InlineArtifactReadToolConfigurationVariant2? Type441 { get; set; } + public global::Vectara.InlineSubAgentToolConfigurationVariant2? Type441 { get; set; } /// /// /// - public global::Vectara.ArtifactGrepToolParameters? Type442 { get; set; } + public global::Vectara.InlineArtifactCreateToolConfiguration? Type442 { get; set; } /// /// /// - public global::Vectara.InlineArtifactGrepToolConfiguration? Type443 { get; set; } + public global::Vectara.InlineArtifactCreateToolConfigurationVariant2? Type443 { get; set; } /// /// /// - public global::Vectara.InlineArtifactGrepToolConfigurationVariant2? Type444 { get; set; } + public global::Vectara.ArtifactReadToolParameters? Type444 { get; set; } /// /// /// - public global::Vectara.ImageReadToolParameters? Type445 { get; set; } + public global::Vectara.ArtifactReadToolParametersEncoding? Type445 { get; set; } /// /// /// - public global::Vectara.ImageReadToolParametersDetail? Type446 { get; set; } + public global::Vectara.ArtifactReadConfiguration? Type446 { get; set; } /// /// /// - public global::Vectara.InlineImageReadToolConfiguration? Type447 { get; set; } + public global::Vectara.InlineArtifactReadToolConfiguration? Type447 { get; set; } /// /// /// - public global::Vectara.InlineImageReadToolConfigurationVariant2? Type448 { get; set; } + public global::Vectara.InlineArtifactReadToolConfigurationVariant2? Type448 { get; set; } /// /// /// - public global::Vectara.DocumentConversionToolParameters? Type449 { get; set; } + public global::Vectara.ArtifactGrepToolParameters? Type449 { get; set; } /// /// /// - public global::Vectara.DocumentConversionToolParametersOutputFormat? Type450 { get; set; } + public global::Vectara.InlineArtifactGrepToolConfiguration? Type450 { get; set; } /// /// /// - public global::Vectara.InlineDocumentConversionToolConfiguration? Type451 { get; set; } + public global::Vectara.InlineArtifactGrepToolConfigurationVariant2? Type451 { get; set; } /// /// /// - public global::Vectara.InlineDocumentConversionToolConfigurationVariant2? Type452 { get; set; } + public global::Vectara.ImageReadToolParameters? Type452 { get; set; } /// /// /// - public global::Vectara.GetDocumentTextParameters? Type453 { get; set; } + public global::Vectara.ImageReadToolParametersDetail? Type453 { get; set; } /// /// /// - public global::Vectara.GetDocumentTextConfiguration? Type454 { get; set; } + public global::Vectara.InlineImageReadToolConfiguration? Type454 { get; set; } /// /// /// - public global::Vectara.GetDocumentTextConfigurationMetadata? Type455 { get; set; } + public global::Vectara.InlineImageReadToolConfigurationVariant2? Type455 { get; set; } /// /// /// - public global::Vectara.InlineGetDocumentTextToolConfiguration? Type456 { get; set; } + public global::Vectara.DocumentConversionToolParameters? Type456 { get; set; } /// /// /// - public global::Vectara.InlineGetDocumentTextToolConfigurationVariant2? Type457 { get; set; } + public global::Vectara.DocumentConversionToolParametersOutputFormat? Type457 { get; set; } /// /// /// - public global::Vectara.AgentToolConfiguration? Type458 { get; set; } + public global::Vectara.InlineDocumentConversionToolConfiguration? Type458 { get; set; } /// /// /// - public global::Vectara.AgentToolConfigurationDiscriminator? Type459 { get; set; } + public global::Vectara.InlineDocumentConversionToolConfigurationVariant2? Type459 { get; set; } /// /// /// - public global::Vectara.AgentToolConfigurationDiscriminatorType? Type460 { get; set; } + public global::Vectara.GetDocumentTextParameters? Type460 { get; set; } /// /// /// - public global::Vectara.AgentSkill? Type461 { get; set; } + public global::Vectara.GetDocumentTextConfiguration? Type461 { get; set; } /// /// /// - public global::Vectara.RetryConfiguration? Type462 { get; set; } + public global::Vectara.GetDocumentTextConfigurationMetadata? Type462 { get; set; } /// /// /// - public global::Vectara.AgentModel? Type463 { get; set; } + public global::Vectara.InlineGetDocumentTextToolConfiguration? Type463 { get; set; } /// /// /// - public global::Vectara.InstructionReference? Type464 { get; set; } + public global::Vectara.InlineGetDocumentTextToolConfigurationVariant2? Type464 { get; set; } /// /// /// - public global::Vectara.ReferenceInstruction? Type465 { get; set; } + public global::Vectara.AgentToolConfiguration? Type465 { get; set; } /// /// /// - public global::Vectara.ReferenceInstructionVariant2? Type466 { get; set; } + public global::Vectara.AgentToolConfigurationDiscriminator? Type466 { get; set; } /// /// /// - public global::Vectara.InlineInstruction? Type467 { get; set; } + public global::Vectara.AgentToolConfigurationDiscriminatorType? Type467 { get; set; } /// /// /// - public global::Vectara.InlineInstructionVariant2? Type468 { get; set; } + public global::Vectara.AgentSkill? Type468 { get; set; } /// /// /// - public global::Vectara.AgentStepInstruction? Type469 { get; set; } + public global::Vectara.RetryConfiguration? Type469 { get; set; } /// /// /// - public global::Vectara.AgentStepInstructionDiscriminator? Type470 { get; set; } + public global::Vectara.AgentModel? Type470 { get; set; } /// /// /// - public global::Vectara.AgentStepInstructionDiscriminatorType? Type471 { get; set; } + public global::Vectara.InstructionReference? Type471 { get; set; } /// /// /// - public global::Vectara.DefaultOutputParser? Type472 { get; set; } + public global::Vectara.ReferenceInstruction? Type472 { get; set; } /// /// /// - public global::Vectara.StructuredOutputParser? Type473 { get; set; } + public global::Vectara.ReferenceInstructionVariant2? Type473 { get; set; } /// /// /// - public global::Vectara.AgentOutputParser? Type474 { get; set; } + public global::Vectara.InlineInstruction? Type474 { get; set; } /// /// /// - public global::Vectara.AgentOutputParserDiscriminator? Type475 { get; set; } + public global::Vectara.InlineInstructionVariant2? Type475 { get; set; } /// /// /// - public global::Vectara.AgentOutputParserDiscriminatorType? Type476 { get; set; } + public global::Vectara.AgentStepInstruction? Type476 { get; set; } /// /// /// - public global::Vectara.TemplatedReminder? Type477 { get; set; } + public global::Vectara.AgentStepInstructionDiscriminator? Type477 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type478 { get; set; } + public global::Vectara.AgentStepInstructionDiscriminatorType? Type478 { get; set; } /// /// /// - public global::Vectara.TemplatedReminderHook? Type479 { get; set; } + public global::Vectara.DefaultOutputParser? Type479 { get; set; } /// /// /// - public global::Vectara.GlossaryExpansionReminder? Type480 { get; set; } + public global::Vectara.StructuredOutputParser? Type480 { get; set; } /// /// /// - public global::Vectara.AgentStepReminder? Type481 { get; set; } + public global::Vectara.AgentOutputParser? Type481 { get; set; } /// /// /// - public global::Vectara.AgentStepReminderDiscriminator? Type482 { get; set; } + public global::Vectara.AgentOutputParserDiscriminator? Type482 { get; set; } /// /// /// - public global::Vectara.AgentStepReminderDiscriminatorType? Type483 { get; set; } + public global::Vectara.AgentOutputParserDiscriminatorType? Type483 { get; set; } /// /// /// - public global::Vectara.NextStep? Type484 { get; set; } + public global::Vectara.TemplatedReminder? Type484 { get; set; } /// /// /// - public global::Vectara.FirstAgentStep? Type485 { get; set; } + public global::System.Collections.Generic.IList? Type485 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type486 { get; set; } + public global::Vectara.TemplatedReminderHook? Type486 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type487 { get; set; } + public global::Vectara.GlossaryExpansionReminder? Type487 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type488 { get; set; } + public global::Vectara.AgentStepReminder? Type488 { get; set; } /// /// /// - public global::Vectara.AgentStep? Type489 { get; set; } + public global::Vectara.AgentStepReminderDiscriminator? Type489 { get; set; } /// /// /// - public global::Vectara.CompactionConfig? Type490 { get; set; } + public global::Vectara.AgentStepReminderDiscriminatorType? Type490 { get; set; } /// /// /// - public global::Vectara.CompactionConfigToolEventPolicy? Type491 { get; set; } + public global::Vectara.NextStep? Type491 { get; set; } /// /// /// - public global::Vectara.ToolOutputOffloadingConfiguration? Type492 { get; set; } + public global::Vectara.FirstAgentStep? Type492 { get; set; } /// /// /// - public global::Vectara.ToolOutputOffloadingConfigurationMode? Type493 { get; set; } + public global::System.Collections.Generic.IList? Type493 { get; set; } /// /// /// - public global::Vectara.Agent? Type494 { get; set; } + public global::System.Collections.Generic.IList? Type494 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type495 { get; set; } + public global::System.Collections.Generic.IList? Type495 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type496 { get; set; } + public global::Vectara.AgentStep? Type496 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type497 { get; set; } + public global::Vectara.CompactionConfig? Type497 { get; set; } /// /// /// - public global::Vectara.ListAgentsResponse? Type498 { get; set; } + public global::Vectara.CompactionConfigToolEventPolicy? Type498 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type499 { get; set; } + public global::Vectara.ToolOutputOffloadingConfiguration? Type499 { get; set; } /// /// /// - public global::Vectara.CreateAgentRequest? Type500 { get; set; } + public global::Vectara.ToolOutputOffloadingConfigurationMode? Type500 { get; set; } /// /// /// - public global::Vectara.UpdateFirstAgentStep? Type501 { get; set; } + public global::Vectara.Agent? Type501 { get; set; } /// /// /// - public global::Vectara.UpdateAgentStep? Type502 { get; set; } + public global::System.Collections.Generic.Dictionary? Type502 { get; set; } /// /// /// - public global::Vectara.UpdateAgentRequest? Type503 { get; set; } + public global::System.Collections.Generic.Dictionary? Type503 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type504 { get; set; } + public global::System.Collections.Generic.Dictionary? Type504 { get; set; } /// /// /// - public global::Vectara.InputTokens? Type505 { get; set; } + public global::Vectara.ListAgentsResponse? Type505 { get; set; } /// /// /// - public global::Vectara.OutputTokens? Type506 { get; set; } + public global::System.Collections.Generic.IList? Type506 { get; set; } /// /// /// - public global::Vectara.SessionContextUsage? Type507 { get; set; } + public global::Vectara.CreateAgentRequest? Type507 { get; set; } /// /// /// - public global::Vectara.AgentSession? Type508 { get; set; } + public global::Vectara.UpdateFirstAgentStep? Type508 { get; set; } /// /// /// - public global::Vectara.ListAgentSessionsResponse? Type509 { get; set; } + public global::Vectara.UpdateAgentStep? Type509 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type510 { get; set; } + public global::Vectara.UpdateAgentRequest? Type510 { get; set; } /// /// /// - public global::Vectara.CreateAgentSessionRequest? Type511 { get; set; } + public global::System.Collections.Generic.Dictionary? Type511 { get; set; } /// /// /// - public global::Vectara.CreateAgentSessionRequestFromSession? Type512 { get; set; } + public global::Vectara.InputTokens? Type512 { get; set; } /// /// /// - public global::Vectara.UpdateAgentSessionRequest? Type513 { get; set; } + public global::Vectara.OutputTokens? Type513 { get; set; } /// /// /// - public global::Vectara.AgentEventBase? Type514 { get; set; } + public global::Vectara.SessionContextUsage? Type514 { get; set; } /// /// /// - public global::Vectara.AgentTextInput? Type515 { get; set; } + public global::Vectara.AgentSession? Type515 { get; set; } /// /// /// - public global::Vectara.AgentSkillInput? Type516 { get; set; } + public global::Vectara.ListAgentSessionsResponse? Type516 { get; set; } /// /// /// - public global::Vectara.AgentInput? Type517 { get; set; } + public global::System.Collections.Generic.IList? Type517 { get; set; } /// /// /// - public global::Vectara.AgentInputDiscriminator? Type518 { get; set; } + public global::Vectara.CreateAgentSessionRequest? Type518 { get; set; } /// /// /// - public global::Vectara.AgentInputDiscriminatorType? Type519 { get; set; } + public global::Vectara.CreateAgentSessionRequestFromSession? Type519 { get; set; } /// /// /// - public global::Vectara.InputMessageEvent? Type520 { get; set; } + public global::Vectara.UpdateAgentSessionRequest? Type520 { get; set; } /// /// /// - public global::Vectara.InputMessageEventVariant2? Type521 { get; set; } + public global::Vectara.AgentEventBase? Type521 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type522 { get; set; } + public global::Vectara.AgentTextInput? Type522 { get; set; } /// /// /// - public global::Vectara.SkillLoadEvent? Type523 { get; set; } + public global::Vectara.AgentSkillInput? Type523 { get; set; } /// /// /// - public global::Vectara.SkillLoadEventVariant2? Type524 { get; set; } + public global::Vectara.AgentInput? Type524 { get; set; } /// /// /// - public global::Vectara.ArtifactReference? Type525 { get; set; } + public global::Vectara.AgentInputDiscriminator? Type525 { get; set; } /// /// /// - public global::Vectara.ArtifactUploadEvent? Type526 { get; set; } + public global::Vectara.AgentInputDiscriminatorType? Type526 { get; set; } /// /// /// - public global::Vectara.ArtifactUploadEventVariant2? Type527 { get; set; } + public global::Vectara.InputMessageEvent? Type527 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type528 { get; set; } + public global::Vectara.InputMessageEventVariant2? Type528 { get; set; } /// /// /// - public global::Vectara.ToolInputEvent? Type529 { get; set; } + public global::System.Collections.Generic.IList? Type529 { get; set; } /// /// /// - public global::Vectara.ToolInputEventVariant2? Type530 { get; set; } + public global::Vectara.SkillLoadEvent? Type530 { get; set; } /// /// /// - public global::Vectara.ToolOutputEvent? Type531 { get; set; } + public global::Vectara.SkillLoadEventVariant2? Type531 { get; set; } /// /// /// - public global::Vectara.ToolOutputEventVariant2? Type532 { get; set; } + public global::Vectara.ArtifactReference? Type532 { get; set; } /// /// /// - public global::Vectara.ThinkingEvent? Type533 { get; set; } + public global::Vectara.ArtifactUploadEvent? Type533 { get; set; } /// /// /// - public global::Vectara.ThinkingEventVariant2? Type534 { get; set; } + public global::Vectara.ArtifactUploadEventVariant2? Type534 { get; set; } /// /// /// - public global::Vectara.AgentOutputEvent? Type535 { get; set; } + public global::System.Collections.Generic.IList? Type535 { get; set; } /// /// /// - public global::Vectara.AgentOutputEventVariant2? Type536 { get; set; } + public global::Vectara.ToolInputEvent? Type536 { get; set; } /// /// /// - public global::Vectara.StructuredOutputEvent? Type537 { get; set; } + public global::Vectara.ToolInputEventVariant2? Type537 { get; set; } /// /// /// - public global::Vectara.StructuredOutputEventVariant2? Type538 { get; set; } + public global::Vectara.ToolOutputEvent? Type538 { get; set; } /// /// /// - public global::Vectara.ContextLimitExceededEvent? Type539 { get; set; } + public global::Vectara.ToolOutputEventVariant2? Type539 { get; set; } /// /// /// - public global::Vectara.ContextLimitExceededEventVariant2? Type540 { get; set; } + public global::Vectara.ThinkingEvent? Type540 { get; set; } /// /// /// - public global::Vectara.StepTransitionLimitExceededEvent? Type541 { get; set; } + public global::Vectara.ThinkingEventVariant2? Type541 { get; set; } /// /// /// - public global::Vectara.StepTransitionLimitExceededEventVariant2? Type542 { get; set; } + public global::Vectara.AgentOutputEvent? Type542 { get; set; } /// /// /// - public global::Vectara.SessionInterruptedEvent? Type543 { get; set; } + public global::Vectara.AgentOutputEventVariant2? Type543 { get; set; } /// /// /// - public global::Vectara.SessionInterruptedEventVariant2? Type544 { get; set; } + public global::Vectara.StructuredOutputEvent? Type544 { get; set; } /// /// /// - public global::Vectara.ImageReadEvent? Type545 { get; set; } + public global::Vectara.StructuredOutputEventVariant2? Type545 { get; set; } /// /// /// - public global::Vectara.ImageReadEventVariant2? Type546 { get; set; } + public global::Vectara.ContextLimitExceededEvent? Type546 { get; set; } /// /// /// - public global::Vectara.ImageReadEventVariant2Detail? Type547 { get; set; } + public global::Vectara.ContextLimitExceededEventVariant2? Type547 { get; set; } /// /// /// - public global::Vectara.StepTransitionEvent? Type548 { get; set; } + public global::Vectara.StepTransitionLimitExceededEvent? Type548 { get; set; } /// /// /// - public global::Vectara.StepTransitionEventVariant2? Type549 { get; set; } + public global::Vectara.StepTransitionLimitExceededEventVariant2? Type549 { get; set; } /// /// /// - public global::Vectara.CompactionEvent? Type550 { get; set; } + public global::Vectara.SessionInterruptedEvent? Type550 { get; set; } /// /// /// - public global::Vectara.CompactionEventVariant2? Type551 { get; set; } + public global::Vectara.SessionInterruptedEventVariant2? Type551 { get; set; } /// /// /// - public global::Vectara.AgentEvent? Type552 { get; set; } + public global::Vectara.ClientToolPendingCall? Type552 { get; set; } /// /// /// - public global::Vectara.AgentEventDiscriminator? Type553 { get; set; } + public global::Vectara.ClientToolPendingEvent? Type553 { get; set; } /// /// /// - public global::Vectara.AgentEventDiscriminatorType? Type554 { get; set; } + public global::Vectara.ClientToolPendingEventVariant2? Type554 { get; set; } /// /// /// - public global::Vectara.ListAgentEventsResponse? Type555 { get; set; } + public global::System.Collections.Generic.IList? Type555 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type556 { get; set; } + public global::Vectara.ImageReadEvent? Type556 { get; set; } /// /// /// - public global::Vectara.CreateInputRequestBase? Type557 { get; set; } + public global::Vectara.ImageReadEventVariant2? Type557 { get; set; } /// /// /// - public global::Vectara.InputBehavior? Type558 { get; set; } + public global::Vectara.ImageReadEventVariant2Detail? Type558 { get; set; } /// /// /// - public global::Vectara.CreateInputMessageRequest? Type559 { get; set; } + public global::Vectara.StepTransitionEvent? Type559 { get; set; } /// /// /// - public global::Vectara.CreateInputMessageRequestVariant2? Type560 { get; set; } + public global::Vectara.StepTransitionEventVariant2? Type560 { get; set; } /// /// /// - public global::Vectara.CreateInterruptRequest? Type561 { get; set; } + public global::Vectara.CompactionEvent? Type561 { get; set; } /// /// /// - public global::Vectara.CreateInterruptRequestVariant2? Type562 { get; set; } + public global::Vectara.CompactionEventVariant2? Type562 { get; set; } /// /// /// - public global::Vectara.CreateCompactRequest? Type563 { get; set; } + public global::Vectara.AgentEvent? Type563 { get; set; } /// /// /// - public global::Vectara.CreateCompactRequestVariant2? Type564 { get; set; } + public global::Vectara.AgentEventDiscriminator? Type564 { get; set; } /// /// /// - public global::Vectara.CreateInputRequest? Type565 { get; set; } + public global::Vectara.AgentEventDiscriminatorType? Type565 { get; set; } /// /// /// - public global::Vectara.CreateInputRequestDiscriminator? Type566 { get; set; } + public global::Vectara.ListAgentEventsResponse? Type566 { get; set; } /// /// /// - public global::Vectara.CreateInputRequestDiscriminatorType? Type567 { get; set; } + public global::System.Collections.Generic.IList? Type567 { get; set; } /// /// /// - public global::Vectara.AgentResponse? Type568 { get; set; } + public global::Vectara.CreateInputRequestBase? Type568 { get; set; } /// /// /// - public global::Vectara.StreamingAgentOutput? Type569 { get; set; } + public global::Vectara.InputBehavior? Type569 { get; set; } /// /// /// - public global::Vectara.StreamingAgentOutputEnd? Type570 { get; set; } + public global::Vectara.CreateInputMessageRequest? Type570 { get; set; } /// /// /// - public global::Vectara.StreamingThinking? Type571 { get; set; } + public global::Vectara.CreateInputMessageRequestVariant2? Type571 { get; set; } /// /// /// - public global::Vectara.StreamingThinkingEnd? Type572 { get; set; } + public global::Vectara.CreateInterruptRequest? Type572 { get; set; } /// /// /// - public global::Vectara.ContextConsumedEvent? Type573 { get; set; } + public global::Vectara.CreateInterruptRequestVariant2? Type573 { get; set; } /// /// /// - public global::Vectara.CompactionStartedEvent? Type574 { get; set; } + public global::Vectara.CreateCompactRequest? Type574 { get; set; } /// /// /// - public global::Vectara.CompactionStartedEventVariant2? Type575 { get; set; } + public global::Vectara.CreateCompactRequestVariant2? Type575 { get; set; } /// /// /// - public global::Vectara.ToolActivityEventBase? Type576 { get; set; } + public global::Vectara.CreateToolOutputBase? Type576 { get; set; } /// /// /// - public global::Vectara.GenericToolActivityEvent? Type577 { get; set; } + public global::Vectara.CreateToolOutputSuccess? Type577 { get; set; } /// /// /// - public global::Vectara.GenericToolActivityEventVariant2? Type578 { get; set; } + public global::Vectara.CreateToolOutputSuccessVariant2? Type578 { get; set; } /// /// /// - public global::Vectara.SubAgentToolActivityEvent? Type579 { get; set; } + public global::Vectara.CreateToolOutputError? Type579 { get; set; } /// /// /// - public global::Vectara.SubAgentToolActivityEventVariant2? Type580 { get; set; } + public global::Vectara.CreateToolOutputErrorVariant2? Type580 { get; set; } /// /// /// - public global::Vectara.ToolActivityEvent? Type581 { get; set; } + public global::Vectara.CreateToolOutputRequest? Type581 { get; set; } /// /// /// - public global::Vectara.ToolActivityEventDiscriminator? Type582 { get; set; } + public global::Vectara.CreateToolOutputRequestDiscriminator? Type582 { get; set; } /// /// /// - public global::Vectara.ToolActivityEventDiscriminatorActivityType? Type583 { get; set; } + public global::Vectara.CreateToolOutputRequestDiscriminatorType? Type583 { get; set; } /// /// /// - public global::Vectara.AgentStreamedResponse? Type584 { get; set; } + public global::Vectara.ClientToolOutputRequest? Type584 { get; set; } /// /// /// - public global::Vectara.AgentStreamedResponseDiscriminator? Type585 { get; set; } + public global::Vectara.ClientToolOutputRequestVariant2? Type585 { get; set; } /// /// /// - public global::Vectara.AgentStreamedResponseDiscriminatorType? Type586 { get; set; } + public global::System.Collections.Generic.IList? Type586 { get; set; } /// /// /// - public global::Vectara.SessionArtifact? Type587 { get; set; } + public global::Vectara.CreateInputRequest? Type587 { get; set; } /// /// /// - public global::Vectara.ListSessionArtifactsResponse? Type588 { get; set; } + public global::Vectara.CreateInputRequestDiscriminator? Type588 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type589 { get; set; } + public global::Vectara.CreateInputRequestDiscriminatorType? Type589 { get; set; } /// /// /// - public global::Vectara.IntervalScheduleConfiguration? Type590 { get; set; } + public global::Vectara.MultipartInputEvent? Type590 { get; set; } /// /// /// - public global::Vectara.IntervalScheduleConfigurationType? Type591 { get; set; } + public global::System.Collections.Generic.IList? Type591 { get; set; } /// /// /// - public global::Vectara.CronScheduleConfiguration? Type592 { get; set; } + public global::Vectara.AgentResponse? Type592 { get; set; } /// /// /// - public global::Vectara.CronScheduleConfigurationType? Type593 { get; set; } + public global::Vectara.StreamingAgentOutput? Type593 { get; set; } /// /// /// - public global::Vectara.ScheduleConfiguration? Type594 { get; set; } + public global::Vectara.StreamingAgentOutputEnd? Type594 { get; set; } /// /// /// - public global::Vectara.AgentSchedule? Type595 { get; set; } + public global::Vectara.StreamingThinking? Type595 { get; set; } /// /// /// - public global::Vectara.ListAgentSchedulesResponse? Type596 { get; set; } + public global::Vectara.StreamingThinkingEnd? Type596 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type597 { get; set; } + public global::Vectara.ContextConsumedEvent? Type597 { get; set; } /// /// /// - public global::Vectara.CreateAgentScheduleRequest? Type598 { get; set; } + public global::Vectara.CompactionStartedEvent? Type598 { get; set; } /// /// /// - public global::Vectara.UpdateAgentScheduleRequest? Type599 { get; set; } + public global::Vectara.CompactionStartedEventVariant2? Type599 { get; set; } /// /// /// - public global::Vectara.AgentScheduleExecution? Type600 { get; set; } + public global::Vectara.ToolActivityEventBase? Type600 { get; set; } /// /// /// - public global::Vectara.AgentScheduleExecutionStatus? Type601 { get; set; } + public global::Vectara.GenericToolActivityEvent? Type601 { get; set; } /// /// /// - public global::Vectara.ListAgentScheduleExecutionsResponse? Type602 { get; set; } + public global::Vectara.GenericToolActivityEventVariant2? Type602 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type603 { get; set; } + public global::Vectara.SubAgentToolActivityEvent? Type603 { get; set; } /// /// /// - public global::Vectara.AgentIdentityMode? Type604 { get; set; } + public global::Vectara.SubAgentToolActivityEventVariant2? Type604 { get; set; } /// /// /// - public global::Vectara.AgentIdentity? Type605 { get; set; } + public global::Vectara.ToolActivityEvent? Type605 { get; set; } /// /// /// - public global::Vectara.UpdateAgentIdentityRequest? Type606 { get; set; } + public global::Vectara.ToolActivityEventDiscriminator? Type606 { get; set; } /// /// /// - public global::Vectara.AgentSecrets? Type607 { get; set; } + public global::Vectara.ToolActivityEventDiscriminatorActivityType? Type607 { get; set; } /// /// /// - public global::Vectara.ReplaceAgentSecretsRequest? Type608 { get; set; } + public global::Vectara.AgentStreamedResponse? Type608 { get; set; } /// /// /// - public global::Vectara.UpdateAgentSecretsRequest? Type609 { get; set; } + public global::Vectara.AgentStreamedResponseDiscriminator? Type609 { get; set; } /// /// /// - public global::Vectara.SlackConnectorConfiguration? Type610 { get; set; } + public global::Vectara.AgentStreamedResponseDiscriminatorType? Type610 { get; set; } /// /// /// - public global::Vectara.ConnectorConfiguration? Type611 { get; set; } + public global::Vectara.OutstandingClientToolCallsResponse? Type611 { get; set; } /// /// /// - public global::Vectara.ConnectorConfigurationDiscriminator? Type612 { get; set; } + public global::Vectara.SessionArtifact? Type612 { get; set; } /// /// /// - public global::Vectara.ConnectorConfigurationDiscriminatorType? Type613 { get; set; } + public global::Vectara.ListSessionArtifactsResponse? Type613 { get; set; } /// /// /// - public global::Vectara.AgentConnector? Type614 { get; set; } + public global::System.Collections.Generic.IList? Type614 { get; set; } /// /// /// - public global::Vectara.AgentConnectorType? Type615 { get; set; } + public global::Vectara.IntervalScheduleConfiguration? Type615 { get; set; } /// /// /// - public global::Vectara.AgentConnectorStatus? Type616 { get; set; } + public global::Vectara.IntervalScheduleConfigurationType? Type616 { get; set; } /// /// /// - public global::Vectara.ListAgentConnectorsResponse? Type617 { get; set; } + public global::Vectara.CronScheduleConfiguration? Type617 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type618 { get; set; } + public global::Vectara.CronScheduleConfigurationType? Type618 { get; set; } /// /// /// - public global::Vectara.CreateAgentConnectorRequest? Type619 { get; set; } + public global::Vectara.ScheduleConfiguration? Type619 { get; set; } /// /// /// - public global::Vectara.CreateAgentConnectorRequestType? Type620 { get; set; } + public global::Vectara.AgentSchedule? Type620 { get; set; } /// /// /// - public global::Vectara.UpdateAgentConnectorRequest? Type621 { get; set; } + public global::Vectara.ListAgentSchedulesResponse? Type621 { get; set; } /// /// /// - public global::Vectara.SingleRuleTargets? Type622 { get; set; } + public global::System.Collections.Generic.IList? Type622 { get; set; } /// /// /// - public global::Vectara.WeightedTarget? Type623 { get; set; } + public global::Vectara.CreateAgentScheduleRequest? Type623 { get; set; } /// /// /// - public global::Vectara.WeightedRuleTargets? Type624 { get; set; } + public global::Vectara.UpdateAgentScheduleRequest? Type624 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type625 { get; set; } + public global::Vectara.AgentScheduleExecution? Type625 { get; set; } /// /// /// - public global::Vectara.RuleTargets? Type626 { get; set; } + public global::Vectara.AgentScheduleExecutionStatus? Type626 { get; set; } /// /// /// - public global::Vectara.RuleTargetsDiscriminator? Type627 { get; set; } + public global::Vectara.ListAgentScheduleExecutionsResponse? Type627 { get; set; } /// /// /// - public global::Vectara.RuleTargetsDiscriminatorType? Type628 { get; set; } + public global::System.Collections.Generic.IList? Type628 { get; set; } /// /// /// - public global::Vectara.AliasRule? Type629 { get; set; } + public global::Vectara.AgentIdentityMode? Type629 { get; set; } /// /// /// - public global::Vectara.RoutedAliasPolicy? Type630 { get; set; } + public global::Vectara.AgentIdentity? Type630 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type631 { get; set; } + public global::Vectara.UpdateAgentIdentityRequest? Type631 { get; set; } /// /// /// - public global::Vectara.AliasPolicy? Type632 { get; set; } + public global::Vectara.AgentSecrets? Type632 { get; set; } /// /// /// - public global::Vectara.AliasPolicyDiscriminator? Type633 { get; set; } + public global::Vectara.ReplaceAgentSecretsRequest? Type633 { get; set; } /// /// /// - public global::Vectara.AliasPolicyDiscriminatorType? Type634 { get; set; } + public global::Vectara.UpdateAgentSecretsRequest? Type634 { get; set; } /// /// /// - public global::Vectara.AgentAlias? Type635 { get; set; } + public global::Vectara.SlackConnectorConfiguration? Type635 { get; set; } /// /// /// - public global::Vectara.ListAgentAliasesResponse? Type636 { get; set; } + public global::Vectara.ConnectorConfiguration? Type636 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type637 { get; set; } + public global::Vectara.ConnectorConfigurationDiscriminator? Type637 { get; set; } /// /// /// - public global::Vectara.CreateAgentAliasRequest? Type638 { get; set; } + public global::Vectara.ConnectorConfigurationDiscriminatorType? Type638 { get; set; } /// /// /// - public global::Vectara.UpdateAgentAliasRequest? Type639 { get; set; } + public global::Vectara.AgentConnector? Type639 { get; set; } /// /// /// - public global::Vectara.ReplaceAliasPolicyRequest? Type640 { get; set; } + public global::Vectara.AgentConnectorType? Type640 { get; set; } /// /// /// - public global::Vectara.PipelineStatus? Type641 { get; set; } + public global::Vectara.AgentConnectorStatus? Type641 { get; set; } /// /// /// - public global::Vectara.BaseS3SourceConfiguration? Type642 { get; set; } + public global::Vectara.ListAgentConnectorsResponse? Type642 { get; set; } /// /// /// - public global::Vectara.S3SourceConfiguration? Type643 { get; set; } + public global::System.Collections.Generic.IList? Type643 { get; set; } /// /// /// - public global::Vectara.SharedGoogleDriveScope? Type644 { get; set; } + public global::Vectara.CreateAgentConnectorRequest? Type644 { get; set; } /// /// /// - public global::Vectara.MyGoogleDriveScope? Type645 { get; set; } + public global::Vectara.CreateAgentConnectorRequestType? Type645 { get; set; } /// /// /// - public global::Vectara.GoogleDriveScope? Type646 { get; set; } + public global::Vectara.UpdateAgentConnectorRequest? Type646 { get; set; } /// /// /// - public global::Vectara.GoogleDriveScopeDiscriminator? Type647 { get; set; } + public global::Vectara.SingleRuleTargets? Type647 { get; set; } /// /// /// - public global::Vectara.GoogleDriveScopeDiscriminatorType? Type648 { get; set; } + public global::Vectara.WeightedTarget? Type648 { get; set; } /// /// /// - public global::Vectara.BaseGoogleDriveSourceConfiguration? Type649 { get; set; } + public global::Vectara.WeightedRuleTargets? Type649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type650 { get; set; } + public global::System.Collections.Generic.IList? Type650 { get; set; } /// /// /// - public global::Vectara.GoogleDriveSourceConfiguration? Type651 { get; set; } + public global::Vectara.RuleTargets? Type651 { get; set; } /// /// /// - public global::Vectara.BaseWebSource? Type652 { get; set; } + public global::Vectara.RuleTargetsDiscriminator? Type652 { get; set; } /// /// /// - public global::Vectara.SitemapPagesSource? Type653 { get; set; } + public global::Vectara.RuleTargetsDiscriminatorType? Type653 { get; set; } /// /// /// - public global::Vectara.BaseCrawlPagesSource? Type654 { get; set; } + public global::Vectara.AliasRule? Type654 { get; set; } /// /// /// - public global::Vectara.CrawlPagesSource? Type655 { get; set; } + public global::Vectara.RoutedAliasPolicy? Type655 { get; set; } /// /// /// - public global::Vectara.CrawlPagesSourceVariant2? Type656 { get; set; } + public global::System.Collections.Generic.IList? Type656 { get; set; } /// /// /// - public global::Vectara.SitemapCrawlPagesSource? Type657 { get; set; } + public global::Vectara.AliasPolicy? Type657 { get; set; } /// /// /// - public global::Vectara.SitemapCrawlPagesSourceVariant2? Type658 { get; set; } + public global::Vectara.AliasPolicyDiscriminator? Type658 { get; set; } /// /// /// - public global::Vectara.WebPagesSource? Type659 { get; set; } + public global::Vectara.AliasPolicyDiscriminatorType? Type659 { get; set; } /// /// /// - public global::Vectara.WebPagesSourceDiscriminator? Type660 { get; set; } + public global::Vectara.AgentAlias? Type660 { get; set; } /// /// /// - public global::Vectara.WebPagesSourceDiscriminatorType? Type661 { get; set; } + public global::Vectara.ListAgentAliasesResponse? Type661 { get; set; } /// /// /// - public global::Vectara.WebSourceConfiguration? Type662 { get; set; } + public global::System.Collections.Generic.IList? Type662 { get; set; } /// /// /// - public global::Vectara.WebSourceConfigurationVariant2? Type663 { get; set; } + public global::Vectara.CreateAgentAliasRequest? Type663 { get; set; } /// /// /// - public global::Vectara.PipelineSource? Type664 { get; set; } + public global::Vectara.UpdateAgentAliasRequest? Type664 { get; set; } /// /// /// - public global::Vectara.PipelineSourceDiscriminator? Type665 { get; set; } + public global::Vectara.ReplaceAliasPolicyRequest? Type665 { get; set; } /// /// /// - public global::Vectara.PipelineSourceDiscriminatorType? Type666 { get; set; } + public global::Vectara.PipelineStatus? Type666 { get; set; } /// /// /// - public global::Vectara.CronTriggerConfiguration? Type667 { get; set; } + public global::Vectara.BaseS3SourceConfiguration? Type667 { get; set; } /// /// /// - public global::Vectara.IntervalTriggerConfiguration? Type668 { get; set; } + public global::Vectara.S3SourceConfiguration? Type668 { get; set; } /// /// /// - public global::Vectara.ManualTriggerConfiguration? Type669 { get; set; } + public global::Vectara.SharedGoogleDriveScope? Type669 { get; set; } /// /// /// - public global::Vectara.PipelineTrigger? Type670 { get; set; } + public global::Vectara.MyGoogleDriveScope? Type670 { get; set; } /// /// /// - public global::Vectara.PipelineTriggerDiscriminator? Type671 { get; set; } + public global::Vectara.GoogleDriveScope? Type671 { get; set; } /// /// /// - public global::Vectara.PipelineTriggerDiscriminatorType? Type672 { get; set; } + public global::Vectara.GoogleDriveScopeDiscriminator? Type672 { get; set; } /// /// /// - public global::Vectara.ConditionVerification? Type673 { get; set; } + public global::Vectara.GoogleDriveScopeDiscriminatorType? Type673 { get; set; } /// /// /// - public global::Vectara.AgentVerification? Type674 { get; set; } + public global::Vectara.BaseGoogleDriveSourceConfiguration? Type674 { get; set; } /// /// /// - public global::Vectara.PipelineVerification? Type675 { get; set; } + public global::System.Collections.Generic.IList? Type675 { get; set; } /// /// /// - public global::Vectara.PipelineVerificationDiscriminator? Type676 { get; set; } + public global::Vectara.GoogleDriveSourceConfiguration? Type676 { get; set; } /// /// /// - public global::Vectara.PipelineVerificationDiscriminatorType? Type677 { get; set; } + public global::Vectara.BaseWebSource? Type677 { get; set; } /// /// /// - public global::Vectara.AgentTransformConfiguration? Type678 { get; set; } + public global::Vectara.SitemapPagesSource? Type678 { get; set; } /// /// /// - public global::Vectara.PipelineTransform? Type679 { get; set; } + public global::Vectara.BaseCrawlPagesSource? Type679 { get; set; } /// /// /// - public global::Vectara.PipelineTransformDiscriminator? Type680 { get; set; } + public global::Vectara.CrawlPagesSource? Type680 { get; set; } /// /// /// - public global::Vectara.PipelineTransformDiscriminatorType? Type681 { get; set; } + public global::Vectara.CrawlPagesSourceVariant2? Type681 { get; set; } /// /// /// - public global::Vectara.PipelineSyncMode? Type682 { get; set; } + public global::Vectara.SitemapCrawlPagesSource? Type682 { get; set; } /// /// /// - public global::Vectara.PipelineWatermark? Type683 { get; set; } + public global::Vectara.SitemapCrawlPagesSourceVariant2? Type683 { get; set; } /// /// /// - public global::Vectara.Pipeline? Type684 { get; set; } + public global::Vectara.WebPagesSource? Type684 { get; set; } /// /// /// - public global::Vectara.ListPipelinesResponse? Type685 { get; set; } + public global::Vectara.WebPagesSourceDiscriminator? Type685 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type686 { get; set; } + public global::Vectara.WebPagesSourceDiscriminatorType? Type686 { get; set; } /// /// /// - public global::Vectara.CreatePipelineRequest? Type687 { get; set; } + public global::Vectara.WebSourceConfiguration? Type687 { get; set; } /// /// /// - public global::Vectara.UpdateS3SourceConfiguration? Type688 { get; set; } + public global::Vectara.WebSourceConfigurationVariant2? Type688 { get; set; } /// /// /// - public global::Vectara.UpdateGoogleDriveSourceConfiguration? Type689 { get; set; } + public global::Vectara.PipelineSource? Type689 { get; set; } /// /// /// - public global::Vectara.UpdateWebSourceConfiguration? Type690 { get; set; } + public global::Vectara.PipelineSourceDiscriminator? Type690 { get; set; } /// /// /// - public global::Vectara.UpdateWebSourceConfigurationVariant2? Type691 { get; set; } + public global::Vectara.PipelineSourceDiscriminatorType? Type691 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineSource? Type692 { get; set; } + public global::Vectara.CronTriggerConfiguration? Type692 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineSourceDiscriminator? Type693 { get; set; } + public global::Vectara.IntervalTriggerConfiguration? Type693 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineSourceDiscriminatorType? Type694 { get; set; } + public global::Vectara.ManualTriggerConfiguration? Type694 { get; set; } /// /// /// - public global::Vectara.UpdatePipelineRequest? Type695 { get; set; } + public global::Vectara.PipelineTrigger? Type695 { get; set; } /// /// /// - public global::Vectara.PipelineRunStatus? Type696 { get; set; } + public global::Vectara.PipelineTriggerDiscriminator? Type696 { get; set; } /// /// /// - public global::Vectara.PipelineRunTriggerType? Type697 { get; set; } + public global::Vectara.PipelineTriggerDiscriminatorType? Type697 { get; set; } /// /// /// - public global::Vectara.PipelineRun? Type698 { get; set; } + public global::Vectara.ConditionVerification? Type698 { get; set; } /// /// /// - public global::Vectara.DeadLetterStatus? Type699 { get; set; } + public global::Vectara.AgentVerification? Type699 { get; set; } /// /// /// - public global::Vectara.DeadLetterOrigin? Type700 { get; set; } + public global::Vectara.PipelineVerification? Type700 { get; set; } /// /// /// - public global::Vectara.PipelineDeadLetterEntry? Type701 { get; set; } + public global::Vectara.PipelineVerificationDiscriminator? Type701 { get; set; } /// /// /// - public global::Vectara.ListPipelineDeadLetterEntriesResponse? Type702 { get; set; } + public global::Vectara.PipelineVerificationDiscriminatorType? Type702 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type703 { get; set; } + public global::Vectara.AgentTransformConfiguration? Type703 { get; set; } /// /// /// - public global::Vectara.CreatePipelineDeadLetterEntryRequest? Type704 { get; set; } + public global::Vectara.PipelineTransform? Type704 { get; set; } /// /// /// - public global::Vectara.ProcessPipelineDeadLetterEntriesRequest? Type705 { get; set; } + public global::Vectara.PipelineTransformDiscriminator? Type705 { get; set; } /// /// /// - public global::Vectara.ListPipelineRunsResponse? Type706 { get; set; } + public global::Vectara.PipelineTransformDiscriminatorType? Type706 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type707 { get; set; } + public global::Vectara.PipelineSyncMode? Type707 { get; set; } /// /// /// - public global::Vectara.PipelineRunEventType? Type708 { get; set; } + public global::Vectara.PipelineWatermark? Type708 { get; set; } /// /// /// - public global::Vectara.SortOrder? Type709 { get; set; } + public global::Vectara.Pipeline? Type709 { get; set; } /// /// /// - public global::Vectara.PipelineRunEventBase? Type710 { get; set; } + public global::Vectara.ListPipelinesResponse? Type710 { get; set; } /// /// /// - public global::Vectara.RunStartedEvent? Type711 { get; set; } + public global::System.Collections.Generic.IList? Type711 { get; set; } /// /// /// - public global::Vectara.RunStartedEventVariant2? Type712 { get; set; } + public global::Vectara.CreatePipelineRequest? Type712 { get; set; } /// /// /// - public global::Vectara.RunCompletedEventStatus? Type713 { get; set; } + public global::Vectara.UpdateS3SourceConfiguration? Type713 { get; set; } /// /// /// - public global::Vectara.RunCompletedEvent? Type714 { get; set; } + public global::Vectara.UpdateGoogleDriveSourceConfiguration? Type714 { get; set; } /// /// /// - public global::Vectara.RunCompletedEventVariant2? Type715 { get; set; } + public global::Vectara.UpdateWebSourceConfiguration? Type715 { get; set; } /// /// /// - public global::Vectara.RecordProcessingEventStatus? Type716 { get; set; } + public global::Vectara.UpdateWebSourceConfigurationVariant2? Type716 { get; set; } /// /// /// - public global::Vectara.RecordProcessingEvent? Type717 { get; set; } + public global::Vectara.UpdatePipelineSource? Type717 { get; set; } /// /// /// - public global::Vectara.RecordProcessingEventVariant2? Type718 { get; set; } + public global::Vectara.UpdatePipelineSourceDiscriminator? Type718 { get; set; } /// /// /// - public global::Vectara.WatermarkAdvancedEvent? Type719 { get; set; } + public global::Vectara.UpdatePipelineSourceDiscriminatorType? Type719 { get; set; } /// /// /// - public global::Vectara.WatermarkAdvancedEventVariant2? Type720 { get; set; } + public global::Vectara.UpdatePipelineRequest? Type720 { get; set; } /// /// /// - public global::Vectara.PipelineRunEvent? Type721 { get; set; } + public global::Vectara.PipelineRunStatus? Type721 { get; set; } /// /// /// - public global::Vectara.PipelineRunEventDiscriminator? Type722 { get; set; } + public global::Vectara.PipelineRunTriggerType? Type722 { get; set; } /// /// /// - public global::Vectara.PipelineRunEventDiscriminatorType? Type723 { get; set; } + public global::Vectara.PipelineRun? Type723 { get; set; } /// /// /// - public global::Vectara.ListPipelineRunEventsResponse? Type724 { get; set; } + public global::Vectara.DeadLetterStatus? Type724 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type725 { get; set; } + public global::Vectara.DeadLetterOrigin? Type725 { get; set; } /// /// /// - public global::Vectara.MetricDescriptorBase? Type726 { get; set; } + public global::Vectara.PipelineDeadLetterEntry? Type726 { get; set; } /// /// /// - public global::Vectara.CounterMetricDescriptor? Type727 { get; set; } + public global::Vectara.ListPipelineDeadLetterEntriesResponse? Type727 { get; set; } /// /// /// - public global::Vectara.CounterMetricDescriptorVariant2? Type728 { get; set; } + public global::System.Collections.Generic.IList? Type728 { get; set; } /// /// /// - public global::Vectara.GaugeMetricDescriptor? Type729 { get; set; } + public global::Vectara.CreatePipelineDeadLetterEntryRequest? Type729 { get; set; } /// /// /// - public global::Vectara.GaugeMetricDescriptorVariant2? Type730 { get; set; } + public global::Vectara.ProcessPipelineDeadLetterEntriesRequest? Type730 { get; set; } /// /// /// - public global::Vectara.PercentileEntry? Type731 { get; set; } + public global::Vectara.ListPipelineRunsResponse? Type731 { get; set; } /// /// /// - public global::Vectara.PercentilesMetricDescriptor? Type732 { get; set; } + public global::System.Collections.Generic.IList? Type732 { get; set; } /// /// /// - public global::Vectara.PercentilesMetricDescriptorVariant2? Type733 { get; set; } + public global::Vectara.PipelineRunEventType? Type733 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type734 { get; set; } + public global::Vectara.SortOrder? Type734 { get; set; } /// /// /// - public global::Vectara.DistributionBinDescriptor? Type735 { get; set; } + public global::Vectara.PipelineRunEventBase? Type735 { get; set; } /// /// /// - public global::Vectara.DistributionMetricDescriptor? Type736 { get; set; } + public global::Vectara.RunStartedEvent? Type736 { get; set; } /// /// /// - public global::Vectara.DistributionMetricDescriptorVariant2? Type737 { get; set; } + public global::Vectara.RunStartedEventVariant2? Type737 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type738 { get; set; } + public global::Vectara.RunCompletedEventStatus? Type738 { get; set; } /// /// /// - public global::Vectara.MetricDescriptor? Type739 { get; set; } + public global::Vectara.RunCompletedEvent? Type739 { get; set; } /// /// /// - public global::Vectara.MetricDescriptorDiscriminator? Type740 { get; set; } + public global::Vectara.RunCompletedEventVariant2? Type740 { get; set; } /// /// /// - public global::Vectara.MetricDescriptorDiscriminatorKind? Type741 { get; set; } + public global::Vectara.RecordProcessingEventStatus? Type741 { get; set; } /// /// /// - public global::Vectara.ListMetricsResponse? Type742 { get; set; } + public global::Vectara.RecordProcessingEvent? Type742 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type743 { get; set; } + public global::Vectara.RecordProcessingEventVariant2? Type743 { get; set; } /// /// /// - public global::Vectara.MetricSeriesBase? Type744 { get; set; } + public global::Vectara.WatermarkAdvancedEvent? Type744 { get; set; } /// /// /// - public global::Vectara.ScalarMetricPoint? Type745 { get; set; } + public global::Vectara.WatermarkAdvancedEventVariant2? Type745 { get; set; } /// /// /// - public global::Vectara.CounterMetricSeries? Type746 { get; set; } + public global::Vectara.PipelineRunEvent? Type746 { get; set; } /// /// /// - public global::Vectara.CounterMetricSeriesVariant2? Type747 { get; set; } + public global::Vectara.PipelineRunEventDiscriminator? Type747 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type748 { get; set; } + public global::Vectara.PipelineRunEventDiscriminatorType? Type748 { get; set; } /// /// /// - public global::Vectara.GaugeMetricSeries? Type749 { get; set; } + public global::Vectara.ListPipelineRunEventsResponse? Type749 { get; set; } /// /// /// - public global::Vectara.GaugeMetricSeriesVariant2? Type750 { get; set; } + public global::System.Collections.Generic.IList? Type750 { get; set; } /// /// /// - public global::Vectara.PercentilesMetricPoint? Type751 { get; set; } + public global::Vectara.MetricDescriptorBase? Type751 { get; set; } /// /// /// - public global::Vectara.PercentilesMetricSeries? Type752 { get; set; } + public global::Vectara.CounterMetricDescriptor? Type752 { get; set; } /// /// /// - public global::Vectara.PercentilesMetricSeriesVariant2? Type753 { get; set; } + public global::Vectara.CounterMetricDescriptorVariant2? Type753 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type754 { get; set; } + public global::Vectara.GaugeMetricDescriptor? Type754 { get; set; } /// /// /// - public global::Vectara.HistogramBin? Type755 { get; set; } + public global::Vectara.GaugeMetricDescriptorVariant2? Type755 { get; set; } /// /// /// - public global::Vectara.DistributionMetricPoint? Type756 { get; set; } + public global::Vectara.PercentileEntry? Type756 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type757 { get; set; } + public global::Vectara.PercentilesMetricDescriptor? Type757 { get; set; } /// /// /// - public global::Vectara.DistributionMetricSeries? Type758 { get; set; } + public global::Vectara.PercentilesMetricDescriptorVariant2? Type758 { get; set; } /// /// /// - public global::Vectara.DistributionMetricSeriesVariant2? Type759 { get; set; } + public global::System.Collections.Generic.IList? Type759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type760 { get; set; } + public global::Vectara.DistributionBinDescriptor? Type760 { get; set; } /// /// /// - public global::Vectara.MetricSeries? Type761 { get; set; } + public global::Vectara.DistributionMetricDescriptor? Type761 { get; set; } /// /// /// - public global::Vectara.MetricSeriesDiscriminator? Type762 { get; set; } + public global::Vectara.DistributionMetricDescriptorVariant2? Type762 { get; set; } /// /// /// - public global::Vectara.MetricSeriesDiscriminatorKind? Type763 { get; set; } + public global::System.Collections.Generic.IList? Type763 { get; set; } /// /// /// - public global::Vectara.AgentTrace? Type764 { get; set; } + public global::Vectara.MetricDescriptor? Type764 { get; set; } /// /// /// - public global::Vectara.AgentTraceStatus? Type765 { get; set; } + public global::Vectara.MetricDescriptorDiscriminator? Type765 { get; set; } /// /// /// - public global::Vectara.ListAgentTracesResponse? Type766 { get; set; } + public global::Vectara.MetricDescriptorDiscriminatorKind? Type766 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type767 { get; set; } + public global::Vectara.ListMetricsResponse? Type767 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpanStatus? Type768 { get; set; } + public global::System.Collections.Generic.IList? Type768 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpanBase? Type769 { get; set; } + public global::Vectara.MetricSeriesBase? Type769 { get; set; } /// /// /// - public global::Vectara.AgentTraceInputFile? Type770 { get; set; } + public global::Vectara.ScalarMetricPoint? Type770 { get; set; } /// /// /// - public global::Vectara.InvokeAgentSpanAttributes? Type771 { get; set; } + public global::Vectara.CounterMetricSeries? Type771 { get; set; } /// /// /// - public global::Vectara.InvokeAgentSpanAttributesOutputType? Type772 { get; set; } + public global::Vectara.CounterMetricSeriesVariant2? Type772 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type773 { get; set; } + public global::System.Collections.Generic.IList? Type773 { get; set; } /// /// /// - public global::Vectara.InvokeAgentSpanContent? Type774 { get; set; } + public global::Vectara.GaugeMetricSeries? Type774 { get; set; } /// /// /// - public global::Vectara.InvokeAgentTraceSpan? Type775 { get; set; } + public global::Vectara.GaugeMetricSeriesVariant2? Type775 { get; set; } /// /// /// - public global::Vectara.InvokeAgentTraceSpanVariant2? Type776 { get; set; } + public global::Vectara.PercentilesMetricPoint? Type776 { get; set; } /// /// /// - public global::Vectara.ChatSpanAttributes? Type777 { get; set; } + public global::Vectara.PercentilesMetricSeries? Type777 { get; set; } /// /// /// - public global::Vectara.ChatTraceSpan? Type778 { get; set; } + public global::Vectara.PercentilesMetricSeriesVariant2? Type778 { get; set; } /// /// /// - public global::Vectara.ChatTraceSpanVariant2? Type779 { get; set; } + public global::System.Collections.Generic.IList? Type779 { get; set; } /// /// /// - public global::Vectara.ExecuteToolSpanAttributes? Type780 { get; set; } + public global::Vectara.HistogramBin? Type780 { get; set; } /// /// /// - public global::Vectara.ExecuteToolSpanContent? Type781 { get; set; } + public global::Vectara.DistributionMetricPoint? Type781 { get; set; } /// /// /// - public global::Vectara.ExecuteToolTraceSpan? Type782 { get; set; } + public global::System.Collections.Generic.IList? Type782 { get; set; } /// /// /// - public global::Vectara.ExecuteToolTraceSpanVariant2? Type783 { get; set; } + public global::Vectara.DistributionMetricSeries? Type783 { get; set; } /// /// /// - public global::Vectara.ThinkingSpanContent? Type784 { get; set; } + public global::Vectara.DistributionMetricSeriesVariant2? Type784 { get; set; } /// /// /// - public global::Vectara.ThinkingTraceSpan? Type785 { get; set; } + public global::System.Collections.Generic.IList? Type785 { get; set; } /// /// /// - public global::Vectara.ThinkingTraceSpanVariant2? Type786 { get; set; } + public global::Vectara.MetricSeries? Type786 { get; set; } /// /// /// - public global::Vectara.OutputSpanContent? Type787 { get; set; } + public global::Vectara.MetricSeriesDiscriminator? Type787 { get; set; } /// /// /// - public global::Vectara.OutputTraceSpan? Type788 { get; set; } + public global::Vectara.MetricSeriesDiscriminatorKind? Type788 { get; set; } /// /// /// - public global::Vectara.OutputTraceSpanVariant2? Type789 { get; set; } + public global::Vectara.AgentTrace? Type789 { get; set; } /// /// /// - public global::Vectara.GuardrailSpanAttributes? Type790 { get; set; } + public global::Vectara.AgentTraceStatus? Type790 { get; set; } /// /// /// - public global::Vectara.GuardrailSpanContent? Type791 { get; set; } + public global::Vectara.ListAgentTracesResponse? Type791 { get; set; } /// /// /// - public global::Vectara.GuardrailTraceSpan? Type792 { get; set; } + public global::System.Collections.Generic.IList? Type792 { get; set; } /// /// /// - public global::Vectara.GuardrailTraceSpanVariant2? Type793 { get; set; } + public global::Vectara.AgentTraceSpanStatus? Type793 { get; set; } /// /// /// - public global::Vectara.StepTransitionSpanAttributes? Type794 { get; set; } + public global::Vectara.AgentTraceSpanBase? Type794 { get; set; } /// /// /// - public global::Vectara.StepTransitionTraceSpan? Type795 { get; set; } + public global::Vectara.AgentTraceInputFile? Type795 { get; set; } /// /// /// - public global::Vectara.StepTransitionTraceSpanVariant2? Type796 { get; set; } + public global::Vectara.InvokeAgentSpanAttributes? Type796 { get; set; } /// /// /// - public global::Vectara.ImageReadSpanAttributes? Type797 { get; set; } + public global::Vectara.InvokeAgentSpanAttributesOutputType? Type797 { get; set; } /// /// /// - public global::Vectara.ImageReadTraceSpan? Type798 { get; set; } + public global::System.Collections.Generic.IList? Type798 { get; set; } /// /// /// - public global::Vectara.ImageReadTraceSpanVariant2? Type799 { get; set; } + public global::Vectara.InvokeAgentSpanContent? Type799 { get; set; } /// /// /// - public global::Vectara.CompactionSpanAttributes? Type800 { get; set; } + public global::Vectara.InvokeAgentTraceSpan? Type800 { get; set; } /// /// /// - public global::Vectara.CompactionTraceSpan? Type801 { get; set; } + public global::Vectara.InvokeAgentTraceSpanVariant2? Type801 { get; set; } /// /// /// - public global::Vectara.CompactionTraceSpanVariant2? Type802 { get; set; } + public global::Vectara.ChatSpanAttributes? Type802 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpan? Type803 { get; set; } + public global::Vectara.ChatTraceSpan? Type803 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpanDiscriminator? Type804 { get; set; } + public global::Vectara.ChatTraceSpanVariant2? Type804 { get; set; } /// /// /// - public global::Vectara.AgentTraceSpanDiscriminatorOperation? Type805 { get; set; } + public global::Vectara.ExecuteToolSpanAttributes? Type805 { get; set; } /// /// /// - public global::Vectara.ListAgentTraceSpansResponse? Type806 { get; set; } + public global::Vectara.ExecuteToolSpanContent? Type806 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type807 { get; set; } + public global::Vectara.ExecuteToolTraceSpan? Type807 { get; set; } /// /// /// - public global::Vectara.Glossary? Type808 { get; set; } + public global::Vectara.ExecuteToolTraceSpanVariant2? Type808 { get; set; } /// /// /// - public global::Vectara.ListGlossariesResponse? Type809 { get; set; } + public global::Vectara.ThinkingSpanContent? Type809 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type810 { get; set; } + public global::Vectara.ThinkingTraceSpan? Type810 { get; set; } /// /// /// - public global::Vectara.CreateGlossaryRequest? Type811 { get; set; } + public global::Vectara.ThinkingTraceSpanVariant2? Type811 { get; set; } /// /// /// - public global::Vectara.UpdateGlossaryRequest? Type812 { get; set; } + public global::Vectara.OutputSpanContent? Type812 { get; set; } /// /// /// - public global::Vectara.GlossaryEntry? Type813 { get; set; } + public global::Vectara.OutputTraceSpan? Type813 { get; set; } /// /// /// - public global::Vectara.GlossaryEntriesResponse? Type814 { get; set; } + public global::Vectara.OutputTraceSpanVariant2? Type814 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type815 { get; set; } + public global::Vectara.GuardrailSpanAttributes? Type815 { get; set; } /// /// /// - public global::Vectara.UpsertGlossaryEntriesRequest? Type816 { get; set; } + public global::Vectara.GuardrailSpanContent? Type816 { get; set; } /// /// /// - public global::Vectara.DeleteGlossaryEntriesRequest? Type817 { get; set; } + public global::Vectara.GuardrailTraceSpan? Type817 { get; set; } /// /// /// - public global::Vectara.GetOAuthTokenRequest? Type818 { get; set; } + public global::Vectara.GuardrailTraceSpanVariant2? Type818 { get; set; } /// /// /// - public global::Vectara.CreateCorpusDocumentWaitFor? Type819 { get; set; } + public global::Vectara.StepTransitionSpanAttributes? Type819 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type820 { get; set; } + public global::Vectara.StepTransitionTraceSpan? Type820 { get; set; } /// /// /// - public global::Vectara.ListToolServersType? Type821 { get; set; } + public global::Vectara.StepTransitionTraceSpanVariant2? Type821 { get; set; } /// /// /// - public global::Vectara.ListToolsType? Type822 { get; set; } + public global::Vectara.ImageReadSpanAttributes? Type822 { get; set; } /// /// /// - public global::Vectara.ListInstructionsType? Type823 { get; set; } + public global::Vectara.ImageReadTraceSpan? Type823 { get; set; } /// /// /// - public global::Vectara.ListSessionArtifactsSortBy? Type824 { get; set; } + public global::Vectara.ImageReadTraceSpanVariant2? Type824 { get; set; } /// /// /// - public global::Vectara.ListSessionArtifactsOrderBy? Type825 { get; set; } + public global::Vectara.CompactionSpanAttributes? Type825 { get; set; } /// /// /// - public global::Vectara.ListAgentConnectorsType? Type826 { get; set; } + public global::Vectara.CompactionTraceSpan? Type826 { get; set; } /// /// /// - public global::Vectara.ListAliasRoutedSessionArtifactsSortBy? Type827 { get; set; } + public global::Vectara.CompactionTraceSpanVariant2? Type827 { get; set; } /// /// /// - public global::Vectara.ListAliasRoutedSessionArtifactsOrderBy? Type828 { get; set; } + public global::Vectara.AgentTraceSpan? Type828 { get; set; } /// /// /// - public global::Vectara.ListPipelinesSourceType? Type829 { get; set; } + public global::Vectara.AgentTraceSpanDiscriminator? Type829 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type830 { get; set; } + public global::Vectara.AgentTraceSpanDiscriminatorOperation? Type830 { get; set; } /// /// /// - public global::Vectara.ListTracesStatus? Type831 { get; set; } + public global::Vectara.ListAgentTraceSpansResponse? Type831 { get; set; } /// /// /// - public global::Vectara.ListTracesErrorType? Type832 { get; set; } + public global::System.Collections.Generic.IList? Type832 { get; set; } /// /// /// - public global::Vectara.ListTracesOperation? Type833 { get; set; } + public global::Vectara.Glossary? Type833 { get; set; } /// /// /// - public global::Vectara.ListTracesToolErrorType? Type834 { get; set; } + public global::Vectara.ListGlossariesResponse? Type834 { get; set; } /// /// /// - public global::Vectara.ListTraceSpansOperation? Type835 { get; set; } + public global::System.Collections.Generic.IList? Type835 { get; set; } /// /// /// - public global::Vectara.AllOf? Type836 { get; set; } + public global::Vectara.CreateGlossaryRequest? Type836 { get; set; } /// /// /// - public global::Vectara.CreateUserResponse2? Type837 { get; set; } + public global::Vectara.UpdateGlossaryRequest? Type837 { get; set; } /// /// /// - public global::Vectara.ResetUserPasswordResponse? Type838 { get; set; } + public global::Vectara.GlossaryEntry? Type838 { get; set; } /// /// /// - public global::Vectara.GetTokenResponse? Type839 { get; set; } + public global::Vectara.GlossaryEntriesResponse? Type839 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type840 { get; set; } + /// + /// + /// + public global::Vectara.UpsertGlossaryEntriesRequest? Type841 { get; set; } + /// + /// + /// + public global::Vectara.DeleteGlossaryEntriesRequest? Type842 { get; set; } + /// + /// + /// + public global::Vectara.GetOAuthTokenRequest? Type843 { get; set; } + /// + /// + /// + public global::Vectara.CreateCorpusDocumentWaitFor? Type844 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type845 { get; set; } + /// + /// + /// + public global::Vectara.ListToolServersType? Type846 { get; set; } + /// + /// + /// + public global::Vectara.ListToolsType? Type847 { get; set; } + /// + /// + /// + public global::Vectara.ListInstructionsType? Type848 { get; set; } + /// + /// + /// + public global::Vectara.ListSessionArtifactsSortBy? Type849 { get; set; } + /// + /// + /// + public global::Vectara.ListSessionArtifactsOrderBy? Type850 { get; set; } + /// + /// + /// + public global::Vectara.ListAgentConnectorsType? Type851 { get; set; } + /// + /// + /// + public global::Vectara.ListAliasRoutedSessionArtifactsSortBy? Type852 { get; set; } + /// + /// + /// + public global::Vectara.ListAliasRoutedSessionArtifactsOrderBy? Type853 { get; set; } + /// + /// + /// + public global::Vectara.ListPipelinesSourceType? Type854 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type855 { get; set; } + /// + /// + /// + public global::Vectara.ListTracesStatus? Type856 { get; set; } + /// + /// + /// + public global::Vectara.ListTracesErrorType? Type857 { get; set; } + /// + /// + /// + public global::Vectara.ListTracesOperation? Type858 { get; set; } + /// + /// + /// + public global::Vectara.ListTracesToolErrorType? Type859 { get; set; } + /// + /// + /// + public global::Vectara.ListTraceSpansOperation? Type860 { get; set; } + /// + /// + /// + public global::Vectara.AllOf? Type861 { get; set; } + /// + /// + /// + public global::Vectara.CreateUserResponse2? Type862 { get; set; } + /// + /// + /// + public global::Vectara.ResetUserPasswordResponse? Type863 { get; set; } + /// + /// + /// + public global::Vectara.GetTokenResponse? Type864 { get; set; } /// /// @@ -3509,230 +3609,246 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType31 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType32 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType33 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentEvent.g.cs index 77d6d8d0..04e68ab7 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentEvent.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentEvent.g.cs @@ -434,6 +434,50 @@ public bool TryPickSessionInterrupted( ? SessionInterrupted!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInterrupted' but the value was {ToString()}."); + /// + /// Signals that the agent is waiting for the client to deliver outputs for the listed client tool
+ /// calls before it continues. Not persisted to session history. Resume by submitting a `tool_output`
+ /// input containing one entry per `event_id` in `pending_calls`.
+ /// Only client tools awaiting output are listed. Each call carries its fully materialized arguments —
+ /// the agent-supplied arguments already merged with the tool configuration's argument overrides and
+ /// literals, with `$ref`s resolved against the session — so the client can dispatch the call without
+ /// cross-referencing the corresponding `tool_input` event. Secret-derived values are delivered unmasked
+ /// because the client needs them to execute the tool. + ///
+#if NET6_0_OR_GREATER + public global::Vectara.ClientToolPendingEvent? ClientToolPending { get; init; } +#else + public global::Vectara.ClientToolPendingEvent? ClientToolPending { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ClientToolPending))] +#endif + public bool IsClientToolPending => ClientToolPending != null; + + /// + /// + /// + public bool TryPickClientToolPending( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.ClientToolPendingEvent? value) + { + value = ClientToolPending; + return IsClientToolPending; + } + + /// + /// + /// + public global::Vectara.ClientToolPendingEvent PickClientToolPending() => IsClientToolPending + ? ClientToolPending!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ClientToolPending' but the value was {ToString()}."); + /// /// An event representing an image being loaded into the conversation context for viewing and analysis. /// @@ -797,6 +841,29 @@ public AgentEvent(global::Vectara.SessionInterruptedEvent? value) ///
public static AgentEvent FromSessionInterrupted(global::Vectara.SessionInterruptedEvent? value) => new AgentEvent(value); + /// + /// + /// + public static implicit operator AgentEvent(global::Vectara.ClientToolPendingEvent value) => new AgentEvent((global::Vectara.ClientToolPendingEvent?)value); + + /// + /// + /// + public static implicit operator global::Vectara.ClientToolPendingEvent?(AgentEvent @this) => @this.ClientToolPending; + + /// + /// + /// + public AgentEvent(global::Vectara.ClientToolPendingEvent? value) + { + ClientToolPending = value; + } + + /// + /// + /// + public static AgentEvent FromClientToolPending(global::Vectara.ClientToolPendingEvent? value) => new AgentEvent(value); + /// /// /// @@ -882,6 +949,7 @@ public AgentEvent( global::Vectara.ContextLimitExceededEvent? contextLimitExceeded, global::Vectara.StepTransitionLimitExceededEvent? stepTransitionLimitExceeded, global::Vectara.SessionInterruptedEvent? sessionInterrupted, + global::Vectara.ClientToolPendingEvent? clientToolPending, global::Vectara.ImageReadEvent? imageRead, global::Vectara.StepTransitionEvent? stepTransition, global::Vectara.CompactionEvent? compaction @@ -900,6 +968,7 @@ public AgentEvent( ContextLimitExceeded = contextLimitExceeded; StepTransitionLimitExceeded = stepTransitionLimitExceeded; SessionInterrupted = sessionInterrupted; + ClientToolPending = clientToolPending; ImageRead = imageRead; StepTransition = stepTransition; Compaction = compaction; @@ -912,6 +981,7 @@ public AgentEvent( Compaction as object ?? StepTransition as object ?? ImageRead as object ?? + ClientToolPending as object ?? SessionInterrupted as object ?? StepTransitionLimitExceeded as object ?? ContextLimitExceeded as object ?? @@ -940,6 +1010,7 @@ InputMessage as object ContextLimitExceeded?.ToString() ?? StepTransitionLimitExceeded?.ToString() ?? SessionInterrupted?.ToString() ?? + ClientToolPending?.ToString() ?? ImageRead?.ToString() ?? StepTransition?.ToString() ?? Compaction?.ToString() @@ -950,7 +1021,7 @@ InputMessage as object /// public bool Validate() { - return IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && IsCompaction; + return IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && IsClientToolPending && !IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && IsImageRead && !IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && IsStepTransition && !IsCompaction || !IsInputMessage && !IsSkillLoad && !IsArtifactUpload && !IsToolInput && !IsToolOutput && !IsThinking && !IsAgentOutput && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && IsCompaction; } /// @@ -968,6 +1039,7 @@ public bool Validate() global::System.Func? contextLimitExceeded = null, global::System.Func? stepTransitionLimitExceeded = null, global::System.Func? sessionInterrupted = null, + global::System.Func? clientToolPending = null, global::System.Func? imageRead = null, global::System.Func? stepTransition = null, global::System.Func? compaction = null, @@ -1022,6 +1094,10 @@ public bool Validate() { return sessionInterrupted(SessionInterrupted!); } + else if (IsClientToolPending && clientToolPending != null) + { + return clientToolPending(ClientToolPending!); + } else if (IsImageRead && imageRead != null) { return imageRead(ImageRead!); @@ -1064,6 +1140,8 @@ public void Match( global::System.Action? sessionInterrupted = null, + global::System.Action? clientToolPending = null, + global::System.Action? imageRead = null, global::System.Action? stepTransition = null, @@ -1120,6 +1198,10 @@ public void Match( { sessionInterrupted?.Invoke(SessionInterrupted!); } + else if (IsClientToolPending) + { + clientToolPending?.Invoke(ClientToolPending!); + } else if (IsImageRead) { imageRead?.Invoke(ImageRead!); @@ -1149,6 +1231,7 @@ public void Switch( global::System.Action? contextLimitExceeded = null, global::System.Action? stepTransitionLimitExceeded = null, global::System.Action? sessionInterrupted = null, + global::System.Action? clientToolPending = null, global::System.Action? imageRead = null, global::System.Action? stepTransition = null, global::System.Action? compaction = null, @@ -1203,6 +1286,10 @@ public void Switch( { sessionInterrupted?.Invoke(SessionInterrupted!); } + else if (IsClientToolPending) + { + clientToolPending?.Invoke(ClientToolPending!); + } else if (IsImageRead) { imageRead?.Invoke(ImageRead!); @@ -1246,6 +1333,8 @@ public override int GetHashCode() typeof(global::Vectara.StepTransitionLimitExceededEvent), SessionInterrupted, typeof(global::Vectara.SessionInterruptedEvent), + ClientToolPending, + typeof(global::Vectara.ClientToolPendingEvent), ImageRead, typeof(global::Vectara.ImageReadEvent), StepTransition, @@ -1279,6 +1368,7 @@ public bool Equals(AgentEvent other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextLimitExceeded, other.ContextLimitExceeded) && global::System.Collections.Generic.EqualityComparer.Default.Equals(StepTransitionLimitExceeded, other.StepTransitionLimitExceeded) && global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionInterrupted, other.SessionInterrupted) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ClientToolPending, other.ClientToolPending) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageRead, other.ImageRead) && global::System.Collections.Generic.EqualityComparer.Default.Equals(StepTransition, other.StepTransition) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Compaction, other.Compaction) diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentEventDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentEventDiscriminatorType.g.cs index 5f07a7cb..82e4f8f0 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentEventDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentEventDiscriminatorType.g.cs @@ -19,6 +19,10 @@ public enum AgentEventDiscriminatorType /// /// /// + ClientToolPending, + /// + /// + /// Compaction, /// /// @@ -80,6 +84,7 @@ public static string ToValueString(this AgentEventDiscriminatorType value) { AgentEventDiscriminatorType.AgentOutput => "agent_output", AgentEventDiscriminatorType.ArtifactUpload => "artifact_upload", + AgentEventDiscriminatorType.ClientToolPending => "client_tool_pending", AgentEventDiscriminatorType.Compaction => "compaction", AgentEventDiscriminatorType.ContextLimitExceeded => "context_limit_exceeded", AgentEventDiscriminatorType.ImageRead => "image_read", @@ -104,6 +109,7 @@ public static string ToValueString(this AgentEventDiscriminatorType value) { "agent_output" => AgentEventDiscriminatorType.AgentOutput, "artifact_upload" => AgentEventDiscriminatorType.ArtifactUpload, + "client_tool_pending" => AgentEventDiscriminatorType.ClientToolPending, "compaction" => AgentEventDiscriminatorType.Compaction, "context_limit_exceeded" => AgentEventDiscriminatorType.ContextLimitExceeded, "image_read" => AgentEventDiscriminatorType.ImageRead, diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponse.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponse.g.cs index 826a0acc..31d085d3 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponse.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponse.g.cs @@ -582,6 +582,50 @@ public bool TryPickSessionInterrupted( ? SessionInterrupted!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInterrupted' but the value was {ToString()}."); + /// + /// Signals that the agent is waiting for the client to deliver outputs for the listed client tool
+ /// calls before it continues. Not persisted to session history. Resume by submitting a `tool_output`
+ /// input containing one entry per `event_id` in `pending_calls`.
+ /// Only client tools awaiting output are listed. Each call carries its fully materialized arguments —
+ /// the agent-supplied arguments already merged with the tool configuration's argument overrides and
+ /// literals, with `$ref`s resolved against the session — so the client can dispatch the call without
+ /// cross-referencing the corresponding `tool_input` event. Secret-derived values are delivered unmasked
+ /// because the client needs them to execute the tool. + ///
+#if NET6_0_OR_GREATER + public global::Vectara.ClientToolPendingEvent? ClientToolPending { get; init; } +#else + public global::Vectara.ClientToolPendingEvent? ClientToolPending { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ClientToolPending))] +#endif + public bool IsClientToolPending => ClientToolPending != null; + + /// + /// + /// + public bool TryPickClientToolPending( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.ClientToolPendingEvent? value) + { + value = ClientToolPending; + return IsClientToolPending; + } + + /// + /// + /// + public global::Vectara.ClientToolPendingEvent PickClientToolPending() => IsClientToolPending + ? ClientToolPending!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ClientToolPending' but the value was {ToString()}."); + /// /// An event representing an image being loaded into the conversation context for viewing and analysis. /// @@ -1185,6 +1229,29 @@ public AgentStreamedResponse(global::Vectara.SessionInterruptedEvent? value) ///
public static AgentStreamedResponse FromSessionInterrupted(global::Vectara.SessionInterruptedEvent? value) => new AgentStreamedResponse(value); + /// + /// + /// + public static implicit operator AgentStreamedResponse(global::Vectara.ClientToolPendingEvent value) => new AgentStreamedResponse((global::Vectara.ClientToolPendingEvent?)value); + + /// + /// + /// + public static implicit operator global::Vectara.ClientToolPendingEvent?(AgentStreamedResponse @this) => @this.ClientToolPending; + + /// + /// + /// + public AgentStreamedResponse(global::Vectara.ClientToolPendingEvent? value) + { + ClientToolPending = value; + } + + /// + /// + /// + public static AgentStreamedResponse FromClientToolPending(global::Vectara.ClientToolPendingEvent? value) => new AgentStreamedResponse(value); + /// /// /// @@ -1366,6 +1433,7 @@ public AgentStreamedResponse( global::Vectara.ContextLimitExceededEvent? contextLimitExceeded, global::Vectara.StepTransitionLimitExceededEvent? stepTransitionLimitExceeded, global::Vectara.SessionInterruptedEvent? sessionInterrupted, + global::Vectara.ClientToolPendingEvent? clientToolPending, global::Vectara.ImageReadEvent? imageRead, global::Vectara.StepTransitionEvent? stepTransition, global::Vectara.ContextConsumedEvent? contextConsumed, @@ -1392,6 +1460,7 @@ public AgentStreamedResponse( ContextLimitExceeded = contextLimitExceeded; StepTransitionLimitExceeded = stepTransitionLimitExceeded; SessionInterrupted = sessionInterrupted; + ClientToolPending = clientToolPending; ImageRead = imageRead; StepTransition = stepTransition; ContextConsumed = contextConsumed; @@ -1412,6 +1481,7 @@ CompactionStarted as object ?? ContextConsumed as object ?? StepTransition as object ?? ImageRead as object ?? + ClientToolPending as object ?? SessionInterrupted as object ?? StepTransitionLimitExceeded as object ?? ContextLimitExceeded as object ?? @@ -1448,6 +1518,7 @@ SkillLoad as object ContextLimitExceeded?.ToString() ?? StepTransitionLimitExceeded?.ToString() ?? SessionInterrupted?.ToString() ?? + ClientToolPending?.ToString() ?? ImageRead?.ToString() ?? StepTransition?.ToString() ?? ContextConsumed?.ToString() ?? @@ -1462,7 +1533,7 @@ SkillLoad as object ///
public bool Validate() { - return IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && IsEnd; + return IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && IsCompactionStarted && !IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && IsCompaction && !IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && IsError && !IsEnd || !IsSkillLoad && !IsThinking && !IsArtifactUpload && !IsInputMessage && !IsStreamingAgentOutput && !IsStreamingAgentOutputEnd && !IsStreamingThinking && !IsStreamingThinkingEnd && !IsToolInput && !IsToolOutput && !IsToolActivity && !IsStructuredOutput && !IsContextLimitExceeded && !IsStepTransitionLimitExceeded && !IsSessionInterrupted && !IsClientToolPending && !IsImageRead && !IsStepTransition && !IsContextConsumed && !IsCompactionStarted && !IsCompaction && !IsError && IsEnd; } /// @@ -1484,6 +1555,7 @@ public bool Validate() global::System.Func? contextLimitExceeded = null, global::System.Func? stepTransitionLimitExceeded = null, global::System.Func? sessionInterrupted = null, + global::System.Func? clientToolPending = null, global::System.Func? imageRead = null, global::System.Func? stepTransition = null, global::System.Func? contextConsumed = null, @@ -1558,6 +1630,10 @@ public bool Validate() { return sessionInterrupted(SessionInterrupted!); } + else if (IsClientToolPending && clientToolPending != null) + { + return clientToolPending(ClientToolPending!); + } else if (IsImageRead && imageRead != null) { return imageRead(ImageRead!); @@ -1624,6 +1700,8 @@ public void Match( global::System.Action? sessionInterrupted = null, + global::System.Action? clientToolPending = null, + global::System.Action? imageRead = null, global::System.Action? stepTransition = null, @@ -1704,6 +1782,10 @@ public void Match( { sessionInterrupted?.Invoke(SessionInterrupted!); } + else if (IsClientToolPending) + { + clientToolPending?.Invoke(ClientToolPending!); + } else if (IsImageRead) { imageRead?.Invoke(ImageRead!); @@ -1753,6 +1835,7 @@ public void Switch( global::System.Action? contextLimitExceeded = null, global::System.Action? stepTransitionLimitExceeded = null, global::System.Action? sessionInterrupted = null, + global::System.Action? clientToolPending = null, global::System.Action? imageRead = null, global::System.Action? stepTransition = null, global::System.Action? contextConsumed = null, @@ -1827,6 +1910,10 @@ public void Switch( { sessionInterrupted?.Invoke(SessionInterrupted!); } + else if (IsClientToolPending) + { + clientToolPending?.Invoke(ClientToolPending!); + } else if (IsImageRead) { imageRead?.Invoke(ImageRead!); @@ -1894,6 +1981,8 @@ public override int GetHashCode() typeof(global::Vectara.StepTransitionLimitExceededEvent), SessionInterrupted, typeof(global::Vectara.SessionInterruptedEvent), + ClientToolPending, + typeof(global::Vectara.ClientToolPendingEvent), ImageRead, typeof(global::Vectara.ImageReadEvent), StepTransition, @@ -1939,6 +2028,7 @@ public bool Equals(AgentStreamedResponse other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextLimitExceeded, other.ContextLimitExceeded) && global::System.Collections.Generic.EqualityComparer.Default.Equals(StepTransitionLimitExceeded, other.StepTransitionLimitExceeded) && global::System.Collections.Generic.EqualityComparer.Default.Equals(SessionInterrupted, other.SessionInterrupted) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ClientToolPending, other.ClientToolPending) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageRead, other.ImageRead) && global::System.Collections.Generic.EqualityComparer.Default.Equals(StepTransition, other.StepTransition) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextConsumed, other.ContextConsumed) && diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponseDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponseDiscriminatorType.g.cs index 4c4992e8..fba1e730 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponseDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentStreamedResponseDiscriminatorType.g.cs @@ -15,6 +15,10 @@ public enum AgentStreamedResponseDiscriminatorType /// /// /// + ClientToolPending, + /// + /// + /// Compaction, /// /// @@ -111,6 +115,7 @@ public static string ToValueString(this AgentStreamedResponseDiscriminatorType v return value switch { AgentStreamedResponseDiscriminatorType.ArtifactUpload => "artifact_upload", + AgentStreamedResponseDiscriminatorType.ClientToolPending => "client_tool_pending", AgentStreamedResponseDiscriminatorType.Compaction => "compaction", AgentStreamedResponseDiscriminatorType.CompactionStarted => "compaction_started", AgentStreamedResponseDiscriminatorType.ContextConsumed => "context_consumed", @@ -143,6 +148,7 @@ public static string ToValueString(this AgentStreamedResponseDiscriminatorType v return value switch { "artifact_upload" => AgentStreamedResponseDiscriminatorType.ArtifactUpload, + "client_tool_pending" => AgentStreamedResponseDiscriminatorType.ClientToolPending, "compaction" => AgentStreamedResponseDiscriminatorType.Compaction, "compaction_started" => AgentStreamedResponseDiscriminatorType.CompactionStarted, "context_consumed" => AgentStreamedResponseDiscriminatorType.ContextConsumed, diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfiguration.g.cs index f0c96b12..b41f1c9a 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfiguration.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfiguration.g.cs @@ -237,6 +237,43 @@ public bool TryPickLambda( ? Lambda!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'Lambda' but the value was {ToString()}."); + /// + /// A client tool configuration defined inline in the agent. When invoked, the agent emits a `tool_input` event and waits for the calling client to submit a matching tool output via `createAgentInput`. + /// +#if NET6_0_OR_GREATER + public global::Vectara.InlineClientToolConfiguration? Client { get; init; } +#else + public global::Vectara.InlineClientToolConfiguration? Client { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Client))] +#endif + public bool IsClient => Client != null; + + /// + /// + /// + public bool TryPickClient( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.InlineClientToolConfiguration? value) + { + value = Client; + return IsClient; + } + + /// + /// + /// + public global::Vectara.InlineClientToolConfiguration PickClient() => IsClient + ? Client!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Client' but the value was {ToString()}."); + /// /// A sub-agent tool configuration defined inline in the agent for invoking specialized sub-agents. /// @@ -633,6 +670,29 @@ public AgentToolConfiguration(global::Vectara.InlineLambdaToolConfiguration? val /// public static AgentToolConfiguration FromLambda(global::Vectara.InlineLambdaToolConfiguration? value) => new AgentToolConfiguration(value); + /// + /// + /// + public static implicit operator AgentToolConfiguration(global::Vectara.InlineClientToolConfiguration value) => new AgentToolConfiguration((global::Vectara.InlineClientToolConfiguration?)value); + + /// + /// + /// + public static implicit operator global::Vectara.InlineClientToolConfiguration?(AgentToolConfiguration @this) => @this.Client; + + /// + /// + /// + public AgentToolConfiguration(global::Vectara.InlineClientToolConfiguration? value) + { + Client = value; + } + + /// + /// + /// + public static AgentToolConfiguration FromClient(global::Vectara.InlineClientToolConfiguration? value) => new AgentToolConfiguration(value); + /// /// /// @@ -805,6 +865,7 @@ public AgentToolConfiguration( global::Vectara.InlineWebSearchToolConfiguration? webSearch, global::Vectara.InlineWebGetToolConfiguration? webGet, global::Vectara.InlineLambdaToolConfiguration? lambda, + global::Vectara.InlineClientToolConfiguration? client, global::Vectara.InlineSubAgentToolConfiguration? subAgent, global::Vectara.InlineArtifactCreateToolConfiguration? artifactCreate, global::Vectara.InlineArtifactReadToolConfiguration? artifactRead, @@ -822,6 +883,7 @@ public AgentToolConfiguration( WebSearch = webSearch; WebGet = webGet; Lambda = lambda; + Client = client; SubAgent = subAgent; ArtifactCreate = artifactCreate; ArtifactRead = artifactRead; @@ -842,6 +904,7 @@ ArtifactGrep as object ?? ArtifactRead as object ?? ArtifactCreate as object ?? SubAgent as object ?? + Client as object ?? Lambda as object ?? WebGet as object ?? WebSearch as object ?? @@ -860,6 +923,7 @@ DynamicVectara as object WebSearch?.ToString() ?? WebGet?.ToString() ?? Lambda?.ToString() ?? + Client?.ToString() ?? SubAgent?.ToString() ?? ArtifactCreate?.ToString() ?? ArtifactRead?.ToString() ?? @@ -874,7 +938,7 @@ DynamicVectara as object /// public bool Validate() { - return IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && IsGetDocumentText; + return IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsClient && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && IsGetDocumentText; } /// @@ -887,6 +951,7 @@ public bool Validate() global::System.Func? webSearch = null, global::System.Func? webGet = null, global::System.Func? lambda = null, + global::System.Func? client = null, global::System.Func? subAgent = null, global::System.Func? artifactCreate = null, global::System.Func? artifactRead = null, @@ -925,6 +990,10 @@ public bool Validate() { return lambda(Lambda!); } + else if (IsClient && client != null) + { + return client(Client!); + } else if (IsSubAgent && subAgent != null) { return subAgent(SubAgent!); @@ -973,6 +1042,8 @@ public void Match( global::System.Action? lambda = null, + global::System.Action? client = null, + global::System.Action? subAgent = null, global::System.Action? artifactCreate = null, @@ -1017,6 +1088,10 @@ public void Match( { lambda?.Invoke(Lambda!); } + else if (IsClient) + { + client?.Invoke(Client!); + } else if (IsSubAgent) { subAgent?.Invoke(SubAgent!); @@ -1057,6 +1132,7 @@ public void Switch( global::System.Action? webSearch = null, global::System.Action? webGet = null, global::System.Action? lambda = null, + global::System.Action? client = null, global::System.Action? subAgent = null, global::System.Action? artifactCreate = null, global::System.Action? artifactRead = null, @@ -1095,6 +1171,10 @@ public void Switch( { lambda?.Invoke(Lambda!); } + else if (IsClient) + { + client?.Invoke(Client!); + } else if (IsSubAgent) { subAgent?.Invoke(SubAgent!); @@ -1144,6 +1224,8 @@ public override int GetHashCode() typeof(global::Vectara.InlineWebGetToolConfiguration), Lambda, typeof(global::Vectara.InlineLambdaToolConfiguration), + Client, + typeof(global::Vectara.InlineClientToolConfiguration), SubAgent, typeof(global::Vectara.InlineSubAgentToolConfiguration), ArtifactCreate, @@ -1180,6 +1262,7 @@ public bool Equals(AgentToolConfiguration other) global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearch, other.WebSearch) && global::System.Collections.Generic.EqualityComparer.Default.Equals(WebGet, other.WebGet) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Lambda, other.Lambda) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Client, other.Client) && global::System.Collections.Generic.EqualityComparer.Default.Equals(SubAgent, other.SubAgent) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ArtifactCreate, other.ArtifactCreate) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ArtifactRead, other.ArtifactRead) && diff --git a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationDiscriminatorType.g.cs index 6502ccdc..8f1a1448 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.AgentToolConfigurationDiscriminatorType.g.cs @@ -23,6 +23,10 @@ public enum AgentToolConfigurationDiscriminatorType /// /// /// + Client, + /// + /// + /// CorporaSearch, /// /// @@ -77,6 +81,7 @@ public static string ToValueString(this AgentToolConfigurationDiscriminatorType AgentToolConfigurationDiscriminatorType.ArtifactCreate => "artifact_create", AgentToolConfigurationDiscriminatorType.ArtifactGrep => "artifact_grep", AgentToolConfigurationDiscriminatorType.ArtifactRead => "artifact_read", + AgentToolConfigurationDiscriminatorType.Client => "client", AgentToolConfigurationDiscriminatorType.CorporaSearch => "corpora_search", AgentToolConfigurationDiscriminatorType.DocumentConversion => "document_conversion", AgentToolConfigurationDiscriminatorType.DynamicVectara => "dynamic_vectara", @@ -100,6 +105,7 @@ public static string ToValueString(this AgentToolConfigurationDiscriminatorType "artifact_create" => AgentToolConfigurationDiscriminatorType.ArtifactCreate, "artifact_grep" => AgentToolConfigurationDiscriminatorType.ArtifactGrep, "artifact_read" => AgentToolConfigurationDiscriminatorType.ArtifactRead, + "client" => AgentToolConfigurationDiscriminatorType.Client, "corpora_search" => AgentToolConfigurationDiscriminatorType.CorporaSearch, "document_conversion" => AgentToolConfigurationDiscriminatorType.DocumentConversion, "dynamic_vectara" => AgentToolConfigurationDiscriminatorType.DynamicVectara, diff --git a/src/libs/Vectara/Generated/Vectara.Models.ClientTool.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientTool.Json.g.cs new file mode 100644 index 00000000..0a9042ba --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientTool.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct ClientTool + { + /// + /// 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.ClientTool? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ClientTool), + jsonSerializerContext) as global::Vectara.ClientTool?; + } + + /// + /// 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.ClientTool? 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.ClientTool), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ClientTool?; + } + + /// + /// 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.ClientTool.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientTool.g.cs new file mode 100644 index 00000000..97dd8877 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientTool.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// A tool whose execution is performed by the calling client. When invoked, the platform emits a `tool_input` event with the tool call arguments. The client submits the result as a `tool_output` input via `createAgentInput`. + /// + public readonly partial struct ClientTool : global::System.IEquatable + { + /// + /// Base properties shared by all tool types. + /// +#if NET6_0_OR_GREATER + public global::Vectara.ToolBase? Base { get; init; } +#else + public global::Vectara.ToolBase? Base { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; + + /// + /// + /// + public bool TryPickBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.ToolBase? value) + { + value = Base; + return IsBase; + } + + /// + /// + /// + public global::Vectara.ToolBase PickBase() => IsBase + ? Base! + : throw new global::System.InvalidOperationException($"Expected union variant 'Base' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.ClientToolVariant2? ClientToolVariant2 { get; init; } +#else + public global::Vectara.ClientToolVariant2? ClientToolVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ClientToolVariant2))] +#endif + public bool IsClientToolVariant2 => ClientToolVariant2 != null; + + /// + /// + /// + public bool TryPickClientToolVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.ClientToolVariant2? value) + { + value = ClientToolVariant2; + return IsClientToolVariant2; + } + + /// + /// + /// + public global::Vectara.ClientToolVariant2 PickClientToolVariant2() => IsClientToolVariant2 + ? ClientToolVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'ClientToolVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ClientTool(global::Vectara.ToolBase value) => new ClientTool((global::Vectara.ToolBase?)value); + + /// + /// + /// + public static implicit operator global::Vectara.ToolBase?(ClientTool @this) => @this.Base; + + /// + /// + /// + public ClientTool(global::Vectara.ToolBase? value) + { + Base = value; + } + + /// + /// + /// + public static ClientTool FromBase(global::Vectara.ToolBase? value) => new ClientTool(value); + + /// + /// + /// + public static implicit operator ClientTool(global::Vectara.ClientToolVariant2 value) => new ClientTool((global::Vectara.ClientToolVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.ClientToolVariant2?(ClientTool @this) => @this.ClientToolVariant2; + + /// + /// + /// + public ClientTool(global::Vectara.ClientToolVariant2? value) + { + ClientToolVariant2 = value; + } + + /// + /// + /// + public static ClientTool FromClientToolVariant2(global::Vectara.ClientToolVariant2? value) => new ClientTool(value); + + /// + /// + /// + public ClientTool( + global::Vectara.ToolBase? @base, + global::Vectara.ClientToolVariant2? clientToolVariant2 + ) + { + Base = @base; + ClientToolVariant2 = clientToolVariant2; + } + + /// + /// + /// + public object? Object => + ClientToolVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + ClientToolVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsClientToolVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? clientToolVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsClientToolVariant2 && clientToolVariant2 != null) + { + return clientToolVariant2(ClientToolVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + + global::System.Action? clientToolVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsClientToolVariant2) + { + clientToolVariant2?.Invoke(ClientToolVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? @base = null, + global::System.Action? clientToolVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsClientToolVariant2) + { + clientToolVariant2?.Invoke(ClientToolVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::Vectara.ToolBase), + ClientToolVariant2, + typeof(global::Vectara.ClientToolVariant2), + }; + 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(ClientTool other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ClientToolVariant2, other.ClientToolVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ClientTool obj1, ClientTool obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ClientTool obj1, ClientTool obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ClientTool o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequest.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequest.Json.g.cs new file mode 100644 index 00000000..d427d738 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct ClientToolOutputRequest + { + /// + /// 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.ClientToolOutputRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ClientToolOutputRequest), + jsonSerializerContext) as global::Vectara.ClientToolOutputRequest?; + } + + /// + /// 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.ClientToolOutputRequest? 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.ClientToolOutputRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ClientToolOutputRequest?; + } + + /// + /// 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.ClientToolOutputRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequest.g.cs new file mode 100644 index 00000000..7befebcf --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequest.g.cs @@ -0,0 +1,296 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// Delivers outputs for `tool_input` events emitted by a prior client tool invocation. Submit one
+ /// entry per pending event ID listed in the `client_tool_pending` event. + ///
+ public readonly partial struct ClientToolOutputRequest : global::System.IEquatable + { + /// + /// Base properties shared by all input request types. + /// +#if NET6_0_OR_GREATER + public global::Vectara.CreateInputRequestBase? CreateInputBase { get; init; } +#else + public global::Vectara.CreateInputRequestBase? CreateInputBase { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateInputBase))] +#endif + public bool IsCreateInputBase => CreateInputBase != null; + + /// + /// + /// + public bool TryPickCreateInputBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CreateInputRequestBase? value) + { + value = CreateInputBase; + return IsCreateInputBase; + } + + /// + /// + /// + public global::Vectara.CreateInputRequestBase PickCreateInputBase() => IsCreateInputBase + ? CreateInputBase! + : throw new global::System.InvalidOperationException($"Expected union variant 'CreateInputBase' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.ClientToolOutputRequestVariant2? ClientToolOutputRequestVariant2 { get; init; } +#else + public global::Vectara.ClientToolOutputRequestVariant2? ClientToolOutputRequestVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ClientToolOutputRequestVariant2))] +#endif + public bool IsClientToolOutputRequestVariant2 => ClientToolOutputRequestVariant2 != null; + + /// + /// + /// + public bool TryPickClientToolOutputRequestVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.ClientToolOutputRequestVariant2? value) + { + value = ClientToolOutputRequestVariant2; + return IsClientToolOutputRequestVariant2; + } + + /// + /// + /// + public global::Vectara.ClientToolOutputRequestVariant2 PickClientToolOutputRequestVariant2() => IsClientToolOutputRequestVariant2 + ? ClientToolOutputRequestVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'ClientToolOutputRequestVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ClientToolOutputRequest(global::Vectara.CreateInputRequestBase value) => new ClientToolOutputRequest((global::Vectara.CreateInputRequestBase?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CreateInputRequestBase?(ClientToolOutputRequest @this) => @this.CreateInputBase; + + /// + /// + /// + public ClientToolOutputRequest(global::Vectara.CreateInputRequestBase? value) + { + CreateInputBase = value; + } + + /// + /// + /// + public static ClientToolOutputRequest FromCreateInputBase(global::Vectara.CreateInputRequestBase? value) => new ClientToolOutputRequest(value); + + /// + /// + /// + public static implicit operator ClientToolOutputRequest(global::Vectara.ClientToolOutputRequestVariant2 value) => new ClientToolOutputRequest((global::Vectara.ClientToolOutputRequestVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.ClientToolOutputRequestVariant2?(ClientToolOutputRequest @this) => @this.ClientToolOutputRequestVariant2; + + /// + /// + /// + public ClientToolOutputRequest(global::Vectara.ClientToolOutputRequestVariant2? value) + { + ClientToolOutputRequestVariant2 = value; + } + + /// + /// + /// + public static ClientToolOutputRequest FromClientToolOutputRequestVariant2(global::Vectara.ClientToolOutputRequestVariant2? value) => new ClientToolOutputRequest(value); + + /// + /// + /// + public ClientToolOutputRequest( + global::Vectara.CreateInputRequestBase? createInputBase, + global::Vectara.ClientToolOutputRequestVariant2? clientToolOutputRequestVariant2 + ) + { + CreateInputBase = createInputBase; + ClientToolOutputRequestVariant2 = clientToolOutputRequestVariant2; + } + + /// + /// + /// + public object? Object => + ClientToolOutputRequestVariant2 as object ?? + CreateInputBase as object + ; + + /// + /// + /// + public override string? ToString() => + CreateInputBase?.ToString() ?? + ClientToolOutputRequestVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCreateInputBase && IsClientToolOutputRequestVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? createInputBase = null, + global::System.Func? clientToolOutputRequestVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateInputBase && createInputBase != null) + { + return createInputBase(CreateInputBase!); + } + else if (IsClientToolOutputRequestVariant2 && clientToolOutputRequestVariant2 != null) + { + return clientToolOutputRequestVariant2(ClientToolOutputRequestVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? createInputBase = null, + + global::System.Action? clientToolOutputRequestVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateInputBase) + { + createInputBase?.Invoke(CreateInputBase!); + } + else if (IsClientToolOutputRequestVariant2) + { + clientToolOutputRequestVariant2?.Invoke(ClientToolOutputRequestVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? createInputBase = null, + global::System.Action? clientToolOutputRequestVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateInputBase) + { + createInputBase?.Invoke(CreateInputBase!); + } + else if (IsClientToolOutputRequestVariant2) + { + clientToolOutputRequestVariant2?.Invoke(ClientToolOutputRequestVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CreateInputBase, + typeof(global::Vectara.CreateInputRequestBase), + ClientToolOutputRequestVariant2, + typeof(global::Vectara.ClientToolOutputRequestVariant2), + }; + 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(ClientToolOutputRequest other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateInputBase, other.CreateInputBase) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ClientToolOutputRequestVariant2, other.ClientToolOutputRequestVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ClientToolOutputRequest obj1, ClientToolOutputRequest obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ClientToolOutputRequest obj1, ClientToolOutputRequest obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ClientToolOutputRequest o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequestVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequestVariant2.Json.g.cs new file mode 100644 index 00000000..bcaf89f4 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequestVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class ClientToolOutputRequestVariant2 + { + /// + /// 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.ClientToolOutputRequestVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ClientToolOutputRequestVariant2), + jsonSerializerContext) as global::Vectara.ClientToolOutputRequestVariant2; + } + + /// + /// 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.ClientToolOutputRequestVariant2? 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.ClientToolOutputRequestVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ClientToolOutputRequestVariant2; + } + + /// + /// 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.ClientToolOutputRequestVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequestVariant2.g.cs new file mode 100644 index 00000000..bcc84fc5 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolOutputRequestVariant2.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class ClientToolOutputRequestVariant2 + { + /// + /// Always `tool_output`. Identifies this input as a client tool output submission.
+ /// Default Value: tool_output + ///
+ /// "tool_output" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "tool_output"; + + /// + /// The tool outputs to deliver, one per pending client tool call. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_outputs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ToolOutputs { 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. + /// + /// + /// Always `tool_output`. Identifies this input as a client tool output submission.
+ /// Default Value: tool_output + /// + /// + /// The tool outputs to deliver, one per pending client tool call. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ClientToolOutputRequestVariant2( + string type, + global::System.Collections.Generic.IList toolOutputs) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.ToolOutputs = toolOutputs ?? throw new global::System.ArgumentNullException(nameof(toolOutputs)); + } + + /// + /// Initializes a new instance of the class. + /// + public ClientToolOutputRequestVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCall.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCall.Json.g.cs new file mode 100644 index 00000000..e16d2a5a --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCall.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class ClientToolPendingCall + { + /// + /// 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.ClientToolPendingCall? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ClientToolPendingCall), + jsonSerializerContext) as global::Vectara.ClientToolPendingCall; + } + + /// + /// 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.ClientToolPendingCall? 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.ClientToolPendingCall), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ClientToolPendingCall; + } + + /// + /// 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.ClientToolPendingCall.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCall.g.cs new file mode 100644 index 00000000..a3aaa754 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCall.g.cs @@ -0,0 +1,101 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// A single client tool call awaiting output, with its fully materialized arguments. + /// + public sealed partial class ClientToolPendingCall + { + /// + /// The `tool_input` event this call corresponds to. Submit the matching `tool_output` with this `event_id`.
+ /// Example: aev_3Kx9QpVn2mZr8YbLc5TdWe + ///
+ /// aev_3Kx9QpVn2mZr8YbLc5TdWe + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { get; set; } + + /// + /// The name of the tool configuration being invoked, as defined in the agent's tool_configurations map.
+ /// Example: notify_slack + ///
+ /// notify_slack + [global::System.Text.Json.Serialization.JsonPropertyName("tool_configuration_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolConfigurationName { get; set; } + + /// + /// Name of the tool being called.
+ /// Example: notify_slack + ///
+ /// notify_slack + [global::System.Text.Json.Serialization.JsonPropertyName("tool_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolName { get; set; } + + /// + /// The fully materialized arguments for this call: the agent-supplied arguments merged with the tool
+ /// configuration's argument overrides and literals, with `$ref`s resolved against the session. Secret-derived
+ /// values are delivered unmasked because the client needs them to execute the tool. This is exactly what the
+ /// client should execute the tool with.
+ /// Example: {"channel":"support","message":"Ticket escalated"} + ///
+ /// {"channel":"support","message":"Ticket escalated"} + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Arguments { 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 `tool_input` event this call corresponds to. Submit the matching `tool_output` with this `event_id`.
+ /// Example: aev_3Kx9QpVn2mZr8YbLc5TdWe + /// + /// + /// The name of the tool configuration being invoked, as defined in the agent's tool_configurations map.
+ /// Example: notify_slack + /// + /// + /// Name of the tool being called.
+ /// Example: notify_slack + /// + /// + /// The fully materialized arguments for this call: the agent-supplied arguments merged with the tool
+ /// configuration's argument overrides and literals, with `$ref`s resolved against the session. Secret-derived
+ /// values are delivered unmasked because the client needs them to execute the tool. This is exactly what the
+ /// client should execute the tool with.
+ /// Example: {"channel":"support","message":"Ticket escalated"} + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ClientToolPendingCall( + string eventId, + string toolConfigurationName, + string toolName, + object arguments) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + this.ToolConfigurationName = toolConfigurationName ?? throw new global::System.ArgumentNullException(nameof(toolConfigurationName)); + this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName)); + this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); + } + + /// + /// Initializes a new instance of the class. + /// + public ClientToolPendingCall() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.LambdaToolVariant2OutputSchema.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCallArguments.Json.g.cs similarity index 85% rename from src/libs/Vectara/Generated/Vectara.Models.LambdaToolVariant2OutputSchema.Json.g.cs rename to src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCallArguments.Json.g.cs index 4206df90..064b8660 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.LambdaToolVariant2OutputSchema.Json.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCallArguments.Json.g.cs @@ -2,7 +2,7 @@ namespace Vectara { - public sealed partial class LambdaToolVariant2OutputSchema + public sealed partial class ClientToolPendingCallArguments { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Vectara.LambdaToolVariant2OutputSchema? FromJson( + public static global::Vectara.ClientToolPendingCallArguments? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Vectara.LambdaToolVariant2OutputSchema), - jsonSerializerContext) as global::Vectara.LambdaToolVariant2OutputSchema; + typeof(global::Vectara.ClientToolPendingCallArguments), + jsonSerializerContext) as global::Vectara.ClientToolPendingCallArguments; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Vectara.LambdaToolVariant2OutputSchema? FromJson( + public static global::Vectara.ClientToolPendingCallArguments? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Vectara.LambdaToolVariant2OutputSchema), - jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.LambdaToolVariant2OutputSchema; + typeof(global::Vectara.ClientToolPendingCallArguments), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ClientToolPendingCallArguments; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCallArguments.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCallArguments.g.cs new file mode 100644 index 00000000..4d6dcea2 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingCallArguments.g.cs @@ -0,0 +1,23 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// The fully materialized arguments for this call: the agent-supplied arguments merged with the tool
+ /// configuration's argument overrides and literals, with `$ref`s resolved against the session. Secret-derived
+ /// values are delivered unmasked because the client needs them to execute the tool. This is exactly what the
+ /// client should execute the tool with.
+ /// Example: {"channel":"support","message":"Ticket escalated"} + ///
+ public sealed partial class ClientToolPendingCallArguments + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEvent.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEvent.Json.g.cs new file mode 100644 index 00000000..223e304e --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEvent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct ClientToolPendingEvent + { + /// + /// 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.ClientToolPendingEvent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ClientToolPendingEvent), + jsonSerializerContext) as global::Vectara.ClientToolPendingEvent?; + } + + /// + /// 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.ClientToolPendingEvent? 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.ClientToolPendingEvent), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ClientToolPendingEvent?; + } + + /// + /// 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.ClientToolPendingEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEvent.g.cs new file mode 100644 index 00000000..536c38f0 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEvent.g.cs @@ -0,0 +1,302 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// Signals that the agent is waiting for the client to deliver outputs for the listed client tool
+ /// calls before it continues. Not persisted to session history. Resume by submitting a `tool_output`
+ /// input containing one entry per `event_id` in `pending_calls`.
+ /// Only client tools awaiting output are listed. Each call carries its fully materialized arguments —
+ /// the agent-supplied arguments already merged with the tool configuration's argument overrides and
+ /// literals, with `$ref`s resolved against the session — so the client can dispatch the call without
+ /// cross-referencing the corresponding `tool_input` event. Secret-derived values are delivered unmasked
+ /// because the client needs them to execute the tool. + ///
+ public readonly partial struct ClientToolPendingEvent : global::System.IEquatable + { + /// + /// Base properties shared by all agent event types. + /// +#if NET6_0_OR_GREATER + public global::Vectara.AgentEventBase? AgentBase { get; init; } +#else + public global::Vectara.AgentEventBase? AgentBase { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentBase))] +#endif + public bool IsAgentBase => AgentBase != null; + + /// + /// + /// + public bool TryPickAgentBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.AgentEventBase? value) + { + value = AgentBase; + return IsAgentBase; + } + + /// + /// + /// + public global::Vectara.AgentEventBase PickAgentBase() => IsAgentBase + ? AgentBase! + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentBase' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.ClientToolPendingEventVariant2? ClientToolPendingEventVariant2 { get; init; } +#else + public global::Vectara.ClientToolPendingEventVariant2? ClientToolPendingEventVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ClientToolPendingEventVariant2))] +#endif + public bool IsClientToolPendingEventVariant2 => ClientToolPendingEventVariant2 != null; + + /// + /// + /// + public bool TryPickClientToolPendingEventVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.ClientToolPendingEventVariant2? value) + { + value = ClientToolPendingEventVariant2; + return IsClientToolPendingEventVariant2; + } + + /// + /// + /// + public global::Vectara.ClientToolPendingEventVariant2 PickClientToolPendingEventVariant2() => IsClientToolPendingEventVariant2 + ? ClientToolPendingEventVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'ClientToolPendingEventVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ClientToolPendingEvent(global::Vectara.AgentEventBase value) => new ClientToolPendingEvent((global::Vectara.AgentEventBase?)value); + + /// + /// + /// + public static implicit operator global::Vectara.AgentEventBase?(ClientToolPendingEvent @this) => @this.AgentBase; + + /// + /// + /// + public ClientToolPendingEvent(global::Vectara.AgentEventBase? value) + { + AgentBase = value; + } + + /// + /// + /// + public static ClientToolPendingEvent FromAgentBase(global::Vectara.AgentEventBase? value) => new ClientToolPendingEvent(value); + + /// + /// + /// + public static implicit operator ClientToolPendingEvent(global::Vectara.ClientToolPendingEventVariant2 value) => new ClientToolPendingEvent((global::Vectara.ClientToolPendingEventVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.ClientToolPendingEventVariant2?(ClientToolPendingEvent @this) => @this.ClientToolPendingEventVariant2; + + /// + /// + /// + public ClientToolPendingEvent(global::Vectara.ClientToolPendingEventVariant2? value) + { + ClientToolPendingEventVariant2 = value; + } + + /// + /// + /// + public static ClientToolPendingEvent FromClientToolPendingEventVariant2(global::Vectara.ClientToolPendingEventVariant2? value) => new ClientToolPendingEvent(value); + + /// + /// + /// + public ClientToolPendingEvent( + global::Vectara.AgentEventBase? agentBase, + global::Vectara.ClientToolPendingEventVariant2? clientToolPendingEventVariant2 + ) + { + AgentBase = agentBase; + ClientToolPendingEventVariant2 = clientToolPendingEventVariant2; + } + + /// + /// + /// + public object? Object => + ClientToolPendingEventVariant2 as object ?? + AgentBase as object + ; + + /// + /// + /// + public override string? ToString() => + AgentBase?.ToString() ?? + ClientToolPendingEventVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsAgentBase && IsClientToolPendingEventVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? agentBase = null, + global::System.Func? clientToolPendingEventVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAgentBase && agentBase != null) + { + return agentBase(AgentBase!); + } + else if (IsClientToolPendingEventVariant2 && clientToolPendingEventVariant2 != null) + { + return clientToolPendingEventVariant2(ClientToolPendingEventVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? agentBase = null, + + global::System.Action? clientToolPendingEventVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAgentBase) + { + agentBase?.Invoke(AgentBase!); + } + else if (IsClientToolPendingEventVariant2) + { + clientToolPendingEventVariant2?.Invoke(ClientToolPendingEventVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? agentBase = null, + global::System.Action? clientToolPendingEventVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAgentBase) + { + agentBase?.Invoke(AgentBase!); + } + else if (IsClientToolPendingEventVariant2) + { + clientToolPendingEventVariant2?.Invoke(ClientToolPendingEventVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + AgentBase, + typeof(global::Vectara.AgentEventBase), + ClientToolPendingEventVariant2, + typeof(global::Vectara.ClientToolPendingEventVariant2), + }; + 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(ClientToolPendingEvent other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentBase, other.AgentBase) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ClientToolPendingEventVariant2, other.ClientToolPendingEventVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ClientToolPendingEvent obj1, ClientToolPendingEvent obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ClientToolPendingEvent obj1, ClientToolPendingEvent obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ClientToolPendingEvent o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEventVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEventVariant2.Json.g.cs new file mode 100644 index 00000000..cd17d47e --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEventVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class ClientToolPendingEventVariant2 + { + /// + /// 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.ClientToolPendingEventVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ClientToolPendingEventVariant2), + jsonSerializerContext) as global::Vectara.ClientToolPendingEventVariant2; + } + + /// + /// 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.ClientToolPendingEventVariant2? 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.ClientToolPendingEventVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ClientToolPendingEventVariant2; + } + + /// + /// 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.ClientToolPendingEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEventVariant2.g.cs new file mode 100644 index 00000000..d3abfedd --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolPendingEventVariant2.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class ClientToolPendingEventVariant2 + { + /// + /// The type of event.
+ /// Default Value: client_tool_pending + ///
+ /// "client_tool_pending" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "client_tool_pending"; + + /// + /// The client tool calls awaiting output, one entry per outstanding call. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pending_calls")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList PendingCalls { 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 event.
+ /// Default Value: client_tool_pending + /// + /// + /// The client tool calls awaiting output, one entry per outstanding call. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ClientToolPendingEventVariant2( + string type, + global::System.Collections.Generic.IList pendingCalls) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.PendingCalls = pendingCalls ?? throw new global::System.ArgumentNullException(nameof(pendingCalls)); + } + + /// + /// Initializes a new instance of the class. + /// + public ClientToolPendingEventVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.ClientToolVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolVariant2.Json.g.cs new file mode 100644 index 00000000..9ca83478 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class ClientToolVariant2 + { + /// + /// 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.ClientToolVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ClientToolVariant2), + jsonSerializerContext) as global::Vectara.ClientToolVariant2; + } + + /// + /// 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.ClientToolVariant2? 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.ClientToolVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ClientToolVariant2; + } + + /// + /// 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.ClientToolVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ClientToolVariant2.g.cs new file mode 100644 index 00000000..414e34bd --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ClientToolVariant2.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class ClientToolVariant2 + { + /// + /// This should always be `client`.
+ /// Default Value: client
+ /// Example: client + ///
+ /// "client" + /// client + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "client"; + + /// + /// 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. + /// + /// + /// This should always be `client`.
+ /// Default Value: client
+ /// Example: client + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ClientToolVariant2( + string type) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + } + + /// + /// Initializes a new instance of the class. + /// + public ClientToolVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateClientToolRequest.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateClientToolRequest.Json.g.cs new file mode 100644 index 00000000..1e6ca9b7 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateClientToolRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class CreateClientToolRequest + { + /// + /// 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.CreateClientToolRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateClientToolRequest), + jsonSerializerContext) as global::Vectara.CreateClientToolRequest; + } + + /// + /// 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.CreateClientToolRequest? 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.CreateClientToolRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateClientToolRequest; + } + + /// + /// 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.CreateClientToolRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateClientToolRequest.g.cs new file mode 100644 index 00000000..1b9af006 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateClientToolRequest.g.cs @@ -0,0 +1,125 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// Request to create a new client tool. When invoked, the platform emits a `tool_input` event; the client performs the work and submits a `tool_output` input via `createAgentInput`. + /// + public sealed partial class CreateClientToolRequest + { + /// + /// This should always be `client`.
+ /// Default Value: client
+ /// Example: client + ///
+ /// "client" + /// client + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "client"; + + /// + /// The unique name of the tool.
+ /// Example: collect_signature + ///
+ /// collect_signature + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Human-readable title of the tool displayed in the UI.
+ /// Example: Collect Customer Signature + ///
+ /// Collect Customer Signature + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// A detailed description of what the tool does, when the agent should invoke it, and what the expected output represents.
+ /// Example: Prompts the user to e-sign a document. Returns the signed document URL once the user completes signing. + ///
+ /// Prompts the user to e-sign a document. Returns the signed document URL once the user completes signing. + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { get; set; } + + /// + /// JSON Schema describing the arguments the LLM should produce when invoking this tool. These arguments are forwarded verbatim to the client in the `tool_input` event.
+ /// Example: {"type":"object","properties":{"document_url":{"type":"string","description":"URL of the document to be signed."}},"required":["document_url"]} + ///
+ /// {"type":"object","properties":{"document_url":{"type":"string","description":"URL of the document to be signed."}},"required":["document_url"]} + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public global::Vectara.JsonSchemaDefinition? InputSchema { get; set; } + + /// + /// Optional JSON Schema describing the structure the client must submit as the tool output. When set, submitted outputs are validated against this schema before being returned to the agent.
+ /// Example: {"type":"object","properties":{"signed_document_url":{"type":"string"}},"required":["signed_document_url"]} + ///
+ /// {"type":"object","properties":{"signed_document_url":{"type":"string"}},"required":["signed_document_url"]} + [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] + public global::Vectara.JsonSchemaDefinition? OutputSchema { 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. + /// + /// + /// This should always be `client`.
+ /// Default Value: client
+ /// Example: client + /// + /// + /// The unique name of the tool.
+ /// Example: collect_signature + /// + /// + /// A detailed description of what the tool does, when the agent should invoke it, and what the expected output represents.
+ /// Example: Prompts the user to e-sign a document. Returns the signed document URL once the user completes signing. + /// + /// + /// Human-readable title of the tool displayed in the UI.
+ /// Example: Collect Customer Signature + /// + /// + /// JSON Schema describing the arguments the LLM should produce when invoking this tool. These arguments are forwarded verbatim to the client in the `tool_input` event.
+ /// Example: {"type":"object","properties":{"document_url":{"type":"string","description":"URL of the document to be signed."}},"required":["document_url"]} + /// + /// + /// Optional JSON Schema describing the structure the client must submit as the tool output. When set, submitted outputs are validated against this schema before being returned to the agent.
+ /// Example: {"type":"object","properties":{"signed_document_url":{"type":"string"}},"required":["signed_document_url"]} + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateClientToolRequest( + string type, + string name, + string description, + string? title, + global::Vectara.JsonSchemaDefinition? inputSchema, + global::Vectara.JsonSchemaDefinition? outputSchema) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Title = title; + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.InputSchema = inputSchema; + this.OutputSchema = outputSchema; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateClientToolRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateInputRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateInputRequest.g.cs index 89de1f5d..196bfb71 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.CreateInputRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateInputRequest.g.cs @@ -125,6 +125,44 @@ public bool TryPickCompact( public global::Vectara.CreateCompactRequest PickCompact() => IsCompact ? Compact!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'Compact' but the value was {ToString()}."); + + /// + /// Delivers outputs for `tool_input` events emitted by a prior client tool invocation. Submit one
+ /// entry per pending event ID listed in the `client_tool_pending` event. + ///
+#if NET6_0_OR_GREATER + public global::Vectara.ClientToolOutputRequest? ToolOutput { get; init; } +#else + public global::Vectara.ClientToolOutputRequest? ToolOutput { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolOutput))] +#endif + public bool IsToolOutput => ToolOutput != null; + + /// + /// + /// + public bool TryPickToolOutput( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.ClientToolOutputRequest? value) + { + value = ToolOutput; + return IsToolOutput; + } + + /// + /// + /// + public global::Vectara.ClientToolOutputRequest PickToolOutput() => IsToolOutput + ? ToolOutput!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ToolOutput' but the value was {ToString()}."); /// /// /// @@ -194,6 +232,29 @@ public CreateInputRequest(global::Vectara.CreateCompactRequest? value) ///
public static CreateInputRequest FromCompact(global::Vectara.CreateCompactRequest? value) => new CreateInputRequest(value); + /// + /// + /// + public static implicit operator CreateInputRequest(global::Vectara.ClientToolOutputRequest value) => new CreateInputRequest((global::Vectara.ClientToolOutputRequest?)value); + + /// + /// + /// + public static implicit operator global::Vectara.ClientToolOutputRequest?(CreateInputRequest @this) => @this.ToolOutput; + + /// + /// + /// + public CreateInputRequest(global::Vectara.ClientToolOutputRequest? value) + { + ToolOutput = value; + } + + /// + /// + /// + public static CreateInputRequest FromToolOutput(global::Vectara.ClientToolOutputRequest? value) => new CreateInputRequest(value); + /// /// /// @@ -201,7 +262,8 @@ public CreateInputRequest( global::Vectara.CreateInputRequestDiscriminatorType? type, global::Vectara.CreateInputMessageRequest? inputMessage, global::Vectara.CreateInterruptRequest? interrupt, - global::Vectara.CreateCompactRequest? compact + global::Vectara.CreateCompactRequest? compact, + global::Vectara.ClientToolOutputRequest? toolOutput ) { Type = type; @@ -209,12 +271,14 @@ public CreateInputRequest( InputMessage = inputMessage; Interrupt = interrupt; Compact = compact; + ToolOutput = toolOutput; } /// /// /// public object? Object => + ToolOutput as object ?? Compact as object ?? Interrupt as object ?? InputMessage as object @@ -226,7 +290,8 @@ InputMessage as object public override string? ToString() => InputMessage?.ToString() ?? Interrupt?.ToString() ?? - Compact?.ToString() + Compact?.ToString() ?? + ToolOutput?.ToString() ; /// @@ -234,7 +299,7 @@ InputMessage as object /// public bool Validate() { - return IsInputMessage && !IsInterrupt && !IsCompact || !IsInputMessage && IsInterrupt && !IsCompact || !IsInputMessage && !IsInterrupt && IsCompact; + return IsInputMessage && !IsInterrupt && !IsCompact && !IsToolOutput || !IsInputMessage && IsInterrupt && !IsCompact && !IsToolOutput || !IsInputMessage && !IsInterrupt && IsCompact && !IsToolOutput || !IsInputMessage && !IsInterrupt && !IsCompact && IsToolOutput; } /// @@ -244,6 +309,7 @@ public bool Validate() global::System.Func? inputMessage = null, global::System.Func? interrupt = null, global::System.Func? compact = null, + global::System.Func? toolOutput = null, bool validate = true) { if (validate) @@ -263,6 +329,10 @@ public bool Validate() { return compact(Compact!); } + else if (IsToolOutput && toolOutput != null) + { + return toolOutput(ToolOutput!); + } return default(TResult); } @@ -276,6 +346,8 @@ public void Match( global::System.Action? interrupt = null, global::System.Action? compact = null, + + global::System.Action? toolOutput = null, bool validate = true) { if (validate) @@ -295,6 +367,10 @@ public void Match( { compact?.Invoke(Compact!); } + else if (IsToolOutput) + { + toolOutput?.Invoke(ToolOutput!); + } } /// @@ -304,6 +380,7 @@ public void Switch( global::System.Action? inputMessage = null, global::System.Action? interrupt = null, global::System.Action? compact = null, + global::System.Action? toolOutput = null, bool validate = true) { if (validate) @@ -323,6 +400,10 @@ public void Switch( { compact?.Invoke(Compact!); } + else if (IsToolOutput) + { + toolOutput?.Invoke(ToolOutput!); + } } /// @@ -338,6 +419,8 @@ public override int GetHashCode() typeof(global::Vectara.CreateInterruptRequest), Compact, typeof(global::Vectara.CreateCompactRequest), + ToolOutput, + typeof(global::Vectara.ClientToolOutputRequest), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -356,7 +439,8 @@ public bool Equals(CreateInputRequest other) return global::System.Collections.Generic.EqualityComparer.Default.Equals(InputMessage, other.InputMessage) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Interrupt, other.Interrupt) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Compact, other.Compact) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Compact, other.Compact) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolOutput, other.ToolOutput) ; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateInputRequestDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateInputRequestDiscriminatorType.g.cs index d8e35f31..1b729ebe 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.CreateInputRequestDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateInputRequestDiscriminatorType.g.cs @@ -20,6 +20,10 @@ public enum CreateInputRequestDiscriminatorType /// /// Interrupt, + /// + /// + /// + ToolOutput, } /// @@ -37,6 +41,7 @@ public static string ToValueString(this CreateInputRequestDiscriminatorType valu CreateInputRequestDiscriminatorType.Compact => "compact", CreateInputRequestDiscriminatorType.InputMessage => "input_message", CreateInputRequestDiscriminatorType.Interrupt => "interrupt", + CreateInputRequestDiscriminatorType.ToolOutput => "tool_output", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -50,6 +55,7 @@ public static string ToValueString(this CreateInputRequestDiscriminatorType valu "compact" => CreateInputRequestDiscriminatorType.Compact, "input_message" => CreateInputRequestDiscriminatorType.InputMessage, "interrupt" => CreateInputRequestDiscriminatorType.Interrupt, + "tool_output" => CreateInputRequestDiscriminatorType.ToolOutput, _ => null, }; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateLambdaToolRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateLambdaToolRequest.g.cs index cf129f0d..a99e6b01 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.CreateLambdaToolRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateLambdaToolRequest.g.cs @@ -35,8 +35,7 @@ public sealed partial class CreateLambdaToolRequest /// /// Customer Score Calculator [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } + public string? Title { get; set; } /// /// A detailed description of what the function does, when to use it, and what it returns.
@@ -185,10 +184,6 @@ public sealed partial class CreateLambdaToolRequest /// The unique name of the tool (used as the function identifier).
/// Example: calculate_customer_score /// - /// - /// Human-readable title of the tool displayed in the UI.
- /// Example: Customer Score Calculator - /// /// /// A detailed description of what the function does, when to use it, and what it returns.
/// Example: Calculate a customer score based on order history and revenue. Returns a score between 0-100. @@ -288,6 +283,10 @@ public sealed partial class CreateLambdaToolRequest /// score = (order_count * 10 + total_revenue * 0.1) / days_active
/// return {'score': round(score, 2)} /// + /// + /// Human-readable title of the tool displayed in the UI.
+ /// Example: Customer Score Calculator + /// /// /// The programming language. Currently only 'python' (Python 3.12) is supported.
/// Default Value: python
@@ -302,15 +301,15 @@ public sealed partial class CreateLambdaToolRequest public CreateLambdaToolRequest( string type, string name, - string title, string description, string code, + string? title, global::Vectara.CreateLambdaToolRequestLanguage? language, global::Vectara.ExecutionConfiguration? executionConfiguration) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.Title = title; this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); this.Language = language; this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputBase.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputBase.Json.g.cs new file mode 100644 index 00000000..b9796dcf --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputBase.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class CreateToolOutputBase + { + /// + /// 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.CreateToolOutputBase? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateToolOutputBase), + jsonSerializerContext) as global::Vectara.CreateToolOutputBase; + } + + /// + /// 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.CreateToolOutputBase? 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.CreateToolOutputBase), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateToolOutputBase; + } + + /// + /// 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.CreateToolOutputBase.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputBase.g.cs new file mode 100644 index 00000000..46e7c976 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputBase.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// Base properties shared by client tool output submissions. + /// + public sealed partial class CreateToolOutputBase + { + /// + /// The `tool_input` event this output responds to.
+ /// Example: aev_3Kx9QpVn2mZr8YbLc5TdWe + ///
+ /// aev_3Kx9QpVn2mZr8YbLc5TdWe + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventId { 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 `tool_input` event this output responds to.
+ /// Example: aev_3Kx9QpVn2mZr8YbLc5TdWe + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateToolOutputBase( + string eventId) + { + this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateToolOutputBase() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputError.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputError.Json.g.cs new file mode 100644 index 00000000..14353321 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputError.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct CreateToolOutputError + { + /// + /// 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.CreateToolOutputError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateToolOutputError), + jsonSerializerContext) as global::Vectara.CreateToolOutputError?; + } + + /// + /// 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.CreateToolOutputError? 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.CreateToolOutputError), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateToolOutputError?; + } + + /// + /// 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.CreateToolOutputError.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputError.g.cs new file mode 100644 index 00000000..882008c0 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputError.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// An error reported by the client for a tool call. Surfaced to the agent as a tool execution error. + /// + public readonly partial struct CreateToolOutputError : global::System.IEquatable + { + /// + /// Base properties shared by client tool output submissions. + /// +#if NET6_0_OR_GREATER + public global::Vectara.CreateToolOutputBase? Base { get; init; } +#else + public global::Vectara.CreateToolOutputBase? Base { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; + + /// + /// + /// + public bool TryPickBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CreateToolOutputBase? value) + { + value = Base; + return IsBase; + } + + /// + /// + /// + public global::Vectara.CreateToolOutputBase PickBase() => IsBase + ? Base! + : throw new global::System.InvalidOperationException($"Expected union variant 'Base' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.CreateToolOutputErrorVariant2? CreateToolOutputErrorVariant2 { get; init; } +#else + public global::Vectara.CreateToolOutputErrorVariant2? CreateToolOutputErrorVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateToolOutputErrorVariant2))] +#endif + public bool IsCreateToolOutputErrorVariant2 => CreateToolOutputErrorVariant2 != null; + + /// + /// + /// + public bool TryPickCreateToolOutputErrorVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CreateToolOutputErrorVariant2? value) + { + value = CreateToolOutputErrorVariant2; + return IsCreateToolOutputErrorVariant2; + } + + /// + /// + /// + public global::Vectara.CreateToolOutputErrorVariant2 PickCreateToolOutputErrorVariant2() => IsCreateToolOutputErrorVariant2 + ? CreateToolOutputErrorVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'CreateToolOutputErrorVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CreateToolOutputError(global::Vectara.CreateToolOutputBase value) => new CreateToolOutputError((global::Vectara.CreateToolOutputBase?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CreateToolOutputBase?(CreateToolOutputError @this) => @this.Base; + + /// + /// + /// + public CreateToolOutputError(global::Vectara.CreateToolOutputBase? value) + { + Base = value; + } + + /// + /// + /// + public static CreateToolOutputError FromBase(global::Vectara.CreateToolOutputBase? value) => new CreateToolOutputError(value); + + /// + /// + /// + public static implicit operator CreateToolOutputError(global::Vectara.CreateToolOutputErrorVariant2 value) => new CreateToolOutputError((global::Vectara.CreateToolOutputErrorVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CreateToolOutputErrorVariant2?(CreateToolOutputError @this) => @this.CreateToolOutputErrorVariant2; + + /// + /// + /// + public CreateToolOutputError(global::Vectara.CreateToolOutputErrorVariant2? value) + { + CreateToolOutputErrorVariant2 = value; + } + + /// + /// + /// + public static CreateToolOutputError FromCreateToolOutputErrorVariant2(global::Vectara.CreateToolOutputErrorVariant2? value) => new CreateToolOutputError(value); + + /// + /// + /// + public CreateToolOutputError( + global::Vectara.CreateToolOutputBase? @base, + global::Vectara.CreateToolOutputErrorVariant2? createToolOutputErrorVariant2 + ) + { + Base = @base; + CreateToolOutputErrorVariant2 = createToolOutputErrorVariant2; + } + + /// + /// + /// + public object? Object => + CreateToolOutputErrorVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + CreateToolOutputErrorVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsCreateToolOutputErrorVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? createToolOutputErrorVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsCreateToolOutputErrorVariant2 && createToolOutputErrorVariant2 != null) + { + return createToolOutputErrorVariant2(CreateToolOutputErrorVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + + global::System.Action? createToolOutputErrorVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsCreateToolOutputErrorVariant2) + { + createToolOutputErrorVariant2?.Invoke(CreateToolOutputErrorVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? @base = null, + global::System.Action? createToolOutputErrorVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsCreateToolOutputErrorVariant2) + { + createToolOutputErrorVariant2?.Invoke(CreateToolOutputErrorVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::Vectara.CreateToolOutputBase), + CreateToolOutputErrorVariant2, + typeof(global::Vectara.CreateToolOutputErrorVariant2), + }; + 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(CreateToolOutputError other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateToolOutputErrorVariant2, other.CreateToolOutputErrorVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(CreateToolOutputError obj1, CreateToolOutputError obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateToolOutputError obj1, CreateToolOutputError obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateToolOutputError o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2.Json.g.cs new file mode 100644 index 00000000..1af33bec --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class CreateToolOutputErrorVariant2 + { + /// + /// 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.CreateToolOutputErrorVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateToolOutputErrorVariant2), + jsonSerializerContext) as global::Vectara.CreateToolOutputErrorVariant2; + } + + /// + /// 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.CreateToolOutputErrorVariant2? 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.CreateToolOutputErrorVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateToolOutputErrorVariant2; + } + + /// + /// 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.CreateToolOutputErrorVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2.g.cs new file mode 100644 index 00000000..457d9393 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class CreateToolOutputErrorVariant2 + { + /// + /// Always `error`. Indicates the client tool call failed.
+ /// Default Value: error + ///
+ /// "error" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "error"; + + /// + /// Error returned to the agent. May be a string message or a structured object. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Error { 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. + /// + /// + /// Always `error`. Indicates the client tool call failed.
+ /// Default Value: error + /// + /// + /// Error returned to the agent. May be a string message or a structured object. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateToolOutputErrorVariant2( + string type, + object error) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateToolOutputErrorVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2Error.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2Error.Json.g.cs new file mode 100644 index 00000000..9e79505d --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2Error.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class CreateToolOutputErrorVariant2Error + { + /// + /// 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.CreateToolOutputErrorVariant2Error? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateToolOutputErrorVariant2Error), + jsonSerializerContext) as global::Vectara.CreateToolOutputErrorVariant2Error; + } + + /// + /// 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.CreateToolOutputErrorVariant2Error? 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.CreateToolOutputErrorVariant2Error), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateToolOutputErrorVariant2Error; + } + + /// + /// 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.CreateToolOutputErrorVariant2Error.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2Error.g.cs new file mode 100644 index 00000000..43374d8b --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputErrorVariant2Error.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// Error returned to the agent. May be a string message or a structured object. + /// + public sealed partial class CreateToolOutputErrorVariant2Error + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequest.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequest.Json.g.cs new file mode 100644 index 00000000..1938ed64 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct CreateToolOutputRequest + { + /// + /// 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.CreateToolOutputRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateToolOutputRequest), + jsonSerializerContext) as global::Vectara.CreateToolOutputRequest?; + } + + /// + /// 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.CreateToolOutputRequest? 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.CreateToolOutputRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateToolOutputRequest?; + } + + /// + /// 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.CreateToolOutputRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequest.g.cs new file mode 100644 index 00000000..89e75aa4 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequest.g.cs @@ -0,0 +1,303 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// Delivers the result of a client tool call identified by its `tool_input` event ID. + /// + public readonly partial struct CreateToolOutputRequest : global::System.IEquatable + { + /// + /// + /// + public global::Vectara.CreateToolOutputRequestDiscriminatorType? Type { get; } + + /// + /// A successful client tool output to be returned to the agent. + /// +#if NET6_0_OR_GREATER + public global::Vectara.CreateToolOutputSuccess? Success { get; init; } +#else + public global::Vectara.CreateToolOutputSuccess? Success { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Success))] +#endif + public bool IsSuccess => Success != null; + + /// + /// + /// + public bool TryPickSuccess( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CreateToolOutputSuccess? value) + { + value = Success; + return IsSuccess; + } + + /// + /// + /// + public global::Vectara.CreateToolOutputSuccess PickSuccess() => IsSuccess + ? Success!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Success' but the value was {ToString()}."); + + /// + /// An error reported by the client for a tool call. Surfaced to the agent as a tool execution error. + /// +#if NET6_0_OR_GREATER + public global::Vectara.CreateToolOutputError? Error { get; init; } +#else + public global::Vectara.CreateToolOutputError? Error { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Error))] +#endif + public bool IsError => Error != null; + + /// + /// + /// + public bool TryPickError( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CreateToolOutputError? value) + { + value = Error; + return IsError; + } + + /// + /// + /// + public global::Vectara.CreateToolOutputError PickError() => IsError + ? Error!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CreateToolOutputRequest(global::Vectara.CreateToolOutputSuccess value) => new CreateToolOutputRequest((global::Vectara.CreateToolOutputSuccess?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CreateToolOutputSuccess?(CreateToolOutputRequest @this) => @this.Success; + + /// + /// + /// + public CreateToolOutputRequest(global::Vectara.CreateToolOutputSuccess? value) + { + Success = value; + } + + /// + /// + /// + public static CreateToolOutputRequest FromSuccess(global::Vectara.CreateToolOutputSuccess? value) => new CreateToolOutputRequest(value); + + /// + /// + /// + public static implicit operator CreateToolOutputRequest(global::Vectara.CreateToolOutputError value) => new CreateToolOutputRequest((global::Vectara.CreateToolOutputError?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CreateToolOutputError?(CreateToolOutputRequest @this) => @this.Error; + + /// + /// + /// + public CreateToolOutputRequest(global::Vectara.CreateToolOutputError? value) + { + Error = value; + } + + /// + /// + /// + public static CreateToolOutputRequest FromError(global::Vectara.CreateToolOutputError? value) => new CreateToolOutputRequest(value); + + /// + /// + /// + public CreateToolOutputRequest( + global::Vectara.CreateToolOutputRequestDiscriminatorType? type, + global::Vectara.CreateToolOutputSuccess? success, + global::Vectara.CreateToolOutputError? error + ) + { + Type = type; + + Success = success; + Error = error; + } + + /// + /// + /// + public object? Object => + Error as object ?? + Success as object + ; + + /// + /// + /// + public override string? ToString() => + Success?.ToString() ?? + Error?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsSuccess && !IsError || !IsSuccess && IsError; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? success = null, + global::System.Func? error = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSuccess && success != null) + { + return success(Success!); + } + else if (IsError && error != null) + { + return error(Error!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? success = null, + + global::System.Action? error = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSuccess) + { + success?.Invoke(Success!); + } + else if (IsError) + { + error?.Invoke(Error!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? success = null, + global::System.Action? error = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsSuccess) + { + success?.Invoke(Success!); + } + else if (IsError) + { + error?.Invoke(Error!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Success, + typeof(global::Vectara.CreateToolOutputSuccess), + Error, + typeof(global::Vectara.CreateToolOutputError), + }; + 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(CreateToolOutputRequest other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Success, other.Success) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Error, other.Error) + ; + } + + /// + /// + /// + public static bool operator ==(CreateToolOutputRequest obj1, CreateToolOutputRequest obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateToolOutputRequest obj1, CreateToolOutputRequest obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateToolOutputRequest o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequestDiscriminator.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequestDiscriminator.Json.g.cs new file mode 100644 index 00000000..e8d07882 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequestDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class CreateToolOutputRequestDiscriminator + { + /// + /// 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.CreateToolOutputRequestDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateToolOutputRequestDiscriminator), + jsonSerializerContext) as global::Vectara.CreateToolOutputRequestDiscriminator; + } + + /// + /// 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.CreateToolOutputRequestDiscriminator? 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.CreateToolOutputRequestDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateToolOutputRequestDiscriminator; + } + + /// + /// 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.CreateToolOutputRequestDiscriminator.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequestDiscriminator.g.cs new file mode 100644 index 00000000..167a8293 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequestDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class CreateToolOutputRequestDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.CreateToolOutputRequestDiscriminatorTypeJsonConverter))] + public global::Vectara.CreateToolOutputRequestDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateToolOutputRequestDiscriminator( + global::Vectara.CreateToolOutputRequestDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateToolOutputRequestDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequestDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequestDiscriminatorType.g.cs new file mode 100644 index 00000000..53a67517 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputRequestDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public enum CreateToolOutputRequestDiscriminatorType + { + /// + /// + /// + Error, + /// + /// + /// + Success, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateToolOutputRequestDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateToolOutputRequestDiscriminatorType value) + { + return value switch + { + CreateToolOutputRequestDiscriminatorType.Error => "error", + CreateToolOutputRequestDiscriminatorType.Success => "success", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateToolOutputRequestDiscriminatorType? ToEnum(string value) + { + return value switch + { + "error" => CreateToolOutputRequestDiscriminatorType.Error, + "success" => CreateToolOutputRequestDiscriminatorType.Success, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccess.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccess.Json.g.cs new file mode 100644 index 00000000..245043bd --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccess.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct CreateToolOutputSuccess + { + /// + /// 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.CreateToolOutputSuccess? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateToolOutputSuccess), + jsonSerializerContext) as global::Vectara.CreateToolOutputSuccess?; + } + + /// + /// 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.CreateToolOutputSuccess? 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.CreateToolOutputSuccess), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateToolOutputSuccess?; + } + + /// + /// 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.CreateToolOutputSuccess.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccess.g.cs new file mode 100644 index 00000000..2153464a --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccess.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// A successful client tool output to be returned to the agent. + /// + public readonly partial struct CreateToolOutputSuccess : global::System.IEquatable + { + /// + /// Base properties shared by client tool output submissions. + /// +#if NET6_0_OR_GREATER + public global::Vectara.CreateToolOutputBase? Base { get; init; } +#else + public global::Vectara.CreateToolOutputBase? Base { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; + + /// + /// + /// + public bool TryPickBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CreateToolOutputBase? value) + { + value = Base; + return IsBase; + } + + /// + /// + /// + public global::Vectara.CreateToolOutputBase PickBase() => IsBase + ? Base! + : throw new global::System.InvalidOperationException($"Expected union variant 'Base' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.CreateToolOutputSuccessVariant2? CreateToolOutputSuccessVariant2 { get; init; } +#else + public global::Vectara.CreateToolOutputSuccessVariant2? CreateToolOutputSuccessVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateToolOutputSuccessVariant2))] +#endif + public bool IsCreateToolOutputSuccessVariant2 => CreateToolOutputSuccessVariant2 != null; + + /// + /// + /// + public bool TryPickCreateToolOutputSuccessVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CreateToolOutputSuccessVariant2? value) + { + value = CreateToolOutputSuccessVariant2; + return IsCreateToolOutputSuccessVariant2; + } + + /// + /// + /// + public global::Vectara.CreateToolOutputSuccessVariant2 PickCreateToolOutputSuccessVariant2() => IsCreateToolOutputSuccessVariant2 + ? CreateToolOutputSuccessVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'CreateToolOutputSuccessVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CreateToolOutputSuccess(global::Vectara.CreateToolOutputBase value) => new CreateToolOutputSuccess((global::Vectara.CreateToolOutputBase?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CreateToolOutputBase?(CreateToolOutputSuccess @this) => @this.Base; + + /// + /// + /// + public CreateToolOutputSuccess(global::Vectara.CreateToolOutputBase? value) + { + Base = value; + } + + /// + /// + /// + public static CreateToolOutputSuccess FromBase(global::Vectara.CreateToolOutputBase? value) => new CreateToolOutputSuccess(value); + + /// + /// + /// + public static implicit operator CreateToolOutputSuccess(global::Vectara.CreateToolOutputSuccessVariant2 value) => new CreateToolOutputSuccess((global::Vectara.CreateToolOutputSuccessVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CreateToolOutputSuccessVariant2?(CreateToolOutputSuccess @this) => @this.CreateToolOutputSuccessVariant2; + + /// + /// + /// + public CreateToolOutputSuccess(global::Vectara.CreateToolOutputSuccessVariant2? value) + { + CreateToolOutputSuccessVariant2 = value; + } + + /// + /// + /// + public static CreateToolOutputSuccess FromCreateToolOutputSuccessVariant2(global::Vectara.CreateToolOutputSuccessVariant2? value) => new CreateToolOutputSuccess(value); + + /// + /// + /// + public CreateToolOutputSuccess( + global::Vectara.CreateToolOutputBase? @base, + global::Vectara.CreateToolOutputSuccessVariant2? createToolOutputSuccessVariant2 + ) + { + Base = @base; + CreateToolOutputSuccessVariant2 = createToolOutputSuccessVariant2; + } + + /// + /// + /// + public object? Object => + CreateToolOutputSuccessVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + CreateToolOutputSuccessVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsCreateToolOutputSuccessVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? createToolOutputSuccessVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsCreateToolOutputSuccessVariant2 && createToolOutputSuccessVariant2 != null) + { + return createToolOutputSuccessVariant2(CreateToolOutputSuccessVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + + global::System.Action? createToolOutputSuccessVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsCreateToolOutputSuccessVariant2) + { + createToolOutputSuccessVariant2?.Invoke(CreateToolOutputSuccessVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? @base = null, + global::System.Action? createToolOutputSuccessVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsCreateToolOutputSuccessVariant2) + { + createToolOutputSuccessVariant2?.Invoke(CreateToolOutputSuccessVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::Vectara.CreateToolOutputBase), + CreateToolOutputSuccessVariant2, + typeof(global::Vectara.CreateToolOutputSuccessVariant2), + }; + 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(CreateToolOutputSuccess other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateToolOutputSuccessVariant2, other.CreateToolOutputSuccessVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(CreateToolOutputSuccess obj1, CreateToolOutputSuccess obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateToolOutputSuccess obj1, CreateToolOutputSuccess obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateToolOutputSuccess o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2.Json.g.cs new file mode 100644 index 00000000..65c0364c --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class CreateToolOutputSuccessVariant2 + { + /// + /// 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.CreateToolOutputSuccessVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateToolOutputSuccessVariant2), + jsonSerializerContext) as global::Vectara.CreateToolOutputSuccessVariant2; + } + + /// + /// 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.CreateToolOutputSuccessVariant2? 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.CreateToolOutputSuccessVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateToolOutputSuccessVariant2; + } + + /// + /// 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.CreateToolOutputSuccessVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2.g.cs new file mode 100644 index 00000000..a4bc4082 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class CreateToolOutputSuccessVariant2 + { + /// + /// Always `success`. Indicates the client tool call succeeded.
+ /// Default Value: success + ///
+ /// "success" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "success"; + + /// + /// The tool's result. Validated against the tool's `output_schema` if one is defined. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Output { 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. + /// + /// + /// Always `success`. Indicates the client tool call succeeded.
+ /// Default Value: success + /// + /// + /// The tool's result. Validated against the tool's `output_schema` if one is defined. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateToolOutputSuccessVariant2( + string type, + object output) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Output = output ?? throw new global::System.ArgumentNullException(nameof(output)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateToolOutputSuccessVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2Output.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2Output.Json.g.cs new file mode 100644 index 00000000..f6e05b7d --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2Output.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class CreateToolOutputSuccessVariant2Output + { + /// + /// 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.CreateToolOutputSuccessVariant2Output? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.CreateToolOutputSuccessVariant2Output), + jsonSerializerContext) as global::Vectara.CreateToolOutputSuccessVariant2Output; + } + + /// + /// 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.CreateToolOutputSuccessVariant2Output? 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.CreateToolOutputSuccessVariant2Output), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.CreateToolOutputSuccessVariant2Output; + } + + /// + /// 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.CreateToolOutputSuccessVariant2Output.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2Output.g.cs new file mode 100644 index 00000000..d4baef3b --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolOutputSuccessVariant2Output.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// The tool's result. Validated against the tool's `output_schema` if one is defined. + /// + public sealed partial class CreateToolOutputSuccessVariant2Output + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolRequest.g.cs index c37763e6..c036841e 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.CreateToolRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolRequest.g.cs @@ -5,7 +5,7 @@ namespace Vectara { /// - /// Request to create a tool. Currently supports lambda tools for user-defined functions. + /// Request to create a tool. Supports lambda tools for user-defined functions and client tools whose execution is performed by the calling client. /// public readonly partial struct CreateToolRequest : global::System.IEquatable { @@ -51,6 +51,43 @@ public bool TryPickLambda( public global::Vectara.CreateLambdaToolRequest PickLambda() => IsLambda ? Lambda! : throw new global::System.InvalidOperationException($"Expected union variant 'Lambda' but the value was {ToString()}."); + + /// + /// Request to create a new client tool. When invoked, the platform emits a `tool_input` event; the client performs the work and submits a `tool_output` input via `createAgentInput`. + /// +#if NET6_0_OR_GREATER + public global::Vectara.CreateClientToolRequest? Client { get; init; } +#else + public global::Vectara.CreateClientToolRequest? Client { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Client))] +#endif + public bool IsClient => Client != null; + + /// + /// + /// + public bool TryPickClient( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.CreateClientToolRequest? value) + { + value = Client; + return IsClient; + } + + /// + /// + /// + public global::Vectara.CreateClientToolRequest PickClient() => IsClient + ? Client! + : throw new global::System.InvalidOperationException($"Expected union variant 'Client' but the value was {ToString()}."); /// /// /// @@ -74,23 +111,49 @@ public CreateToolRequest(global::Vectara.CreateLambdaToolRequest? value) ///
public static CreateToolRequest FromLambda(global::Vectara.CreateLambdaToolRequest? value) => new CreateToolRequest(value); + /// + /// + /// + public static implicit operator CreateToolRequest(global::Vectara.CreateClientToolRequest value) => new CreateToolRequest((global::Vectara.CreateClientToolRequest?)value); + + /// + /// + /// + public static implicit operator global::Vectara.CreateClientToolRequest?(CreateToolRequest @this) => @this.Client; + + /// + /// + /// + public CreateToolRequest(global::Vectara.CreateClientToolRequest? value) + { + Client = value; + } + + /// + /// + /// + public static CreateToolRequest FromClient(global::Vectara.CreateClientToolRequest? value) => new CreateToolRequest(value); + /// /// /// public CreateToolRequest( global::Vectara.CreateToolRequestDiscriminatorType? type, - global::Vectara.CreateLambdaToolRequest? lambda + global::Vectara.CreateLambdaToolRequest? lambda, + global::Vectara.CreateClientToolRequest? client ) { Type = type; Lambda = lambda; + Client = client; } /// /// /// public object? Object => + Client as object ?? Lambda as object ; @@ -98,7 +161,8 @@ Lambda as object /// ///
public override string? ToString() => - Lambda?.ToString() + Lambda?.ToString() ?? + Client?.ToString() ; /// @@ -106,7 +170,7 @@ Lambda as object /// public bool Validate() { - return IsLambda; + return IsLambda && !IsClient || !IsLambda && IsClient; } /// @@ -114,6 +178,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? lambda = null, + global::System.Func? client = null, bool validate = true) { if (validate) @@ -125,6 +190,10 @@ public bool Validate() { return lambda(Lambda!); } + else if (IsClient && client != null) + { + return client(Client!); + } return default(TResult); } @@ -134,6 +203,8 @@ public bool Validate() ///
public void Match( global::System.Action? lambda = null, + + global::System.Action? client = null, bool validate = true) { if (validate) @@ -145,6 +216,10 @@ public void Match( { lambda?.Invoke(Lambda!); } + else if (IsClient) + { + client?.Invoke(Client!); + } } /// @@ -152,6 +227,7 @@ public void Match( /// public void Switch( global::System.Action? lambda = null, + global::System.Action? client = null, bool validate = true) { if (validate) @@ -163,6 +239,10 @@ public void Switch( { lambda?.Invoke(Lambda!); } + else if (IsClient) + { + client?.Invoke(Client!); + } } /// @@ -174,6 +254,8 @@ public override int GetHashCode() { Lambda, typeof(global::Vectara.CreateLambdaToolRequest), + Client, + typeof(global::Vectara.CreateClientToolRequest), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -190,7 +272,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CreateToolRequest other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Lambda, other.Lambda) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Lambda, other.Lambda) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Client, other.Client) ; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.CreateToolRequestDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.CreateToolRequestDiscriminatorType.g.cs index 35c74201..afc9d364 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.CreateToolRequestDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.CreateToolRequestDiscriminatorType.g.cs @@ -8,6 +8,10 @@ namespace Vectara /// public enum CreateToolRequestDiscriminatorType { + /// + /// + /// + Client, /// /// /// @@ -26,6 +30,7 @@ public static string ToValueString(this CreateToolRequestDiscriminatorType value { return value switch { + CreateToolRequestDiscriminatorType.Client => "client", CreateToolRequestDiscriminatorType.Lambda => "lambda", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -37,6 +42,7 @@ public static string ToValueString(this CreateToolRequestDiscriminatorType value { return value switch { + "client" => CreateToolRequestDiscriminatorType.Client, "lambda" => CreateToolRequestDiscriminatorType.Lambda, _ => null, }; diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfiguration.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfiguration.Json.g.cs new file mode 100644 index 00000000..a4c9edd7 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfiguration.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public readonly partial struct InlineClientToolConfiguration + { + /// + /// 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.InlineClientToolConfiguration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.InlineClientToolConfiguration), + jsonSerializerContext) as global::Vectara.InlineClientToolConfiguration?; + } + + /// + /// 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.InlineClientToolConfiguration? 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.InlineClientToolConfiguration), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.InlineClientToolConfiguration?; + } + + /// + /// 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.InlineClientToolConfiguration.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfiguration.g.cs new file mode 100644 index 00000000..119db2d0 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfiguration.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// A client tool configuration defined inline in the agent. When invoked, the agent emits a `tool_input` event and waits for the calling client to submit a matching tool output via `createAgentInput`. + /// + public readonly partial struct InlineClientToolConfiguration : global::System.IEquatable + { + /// + /// Base properties shared by all inline tool configurations on an agent. + /// +#if NET6_0_OR_GREATER + public global::Vectara.AgentToolConfigurationBase? AgentBase { get; init; } +#else + public global::Vectara.AgentToolConfigurationBase? AgentBase { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentBase))] +#endif + public bool IsAgentBase => AgentBase != null; + + /// + /// + /// + public bool TryPickAgentBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.AgentToolConfigurationBase? value) + { + value = AgentBase; + return IsAgentBase; + } + + /// + /// + /// + public global::Vectara.AgentToolConfigurationBase PickAgentBase() => IsAgentBase + ? AgentBase! + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentBase' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Vectara.InlineClientToolConfigurationVariant2? InlineClientToolConfigurationVariant2 { get; init; } +#else + public global::Vectara.InlineClientToolConfigurationVariant2? InlineClientToolConfigurationVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InlineClientToolConfigurationVariant2))] +#endif + public bool IsInlineClientToolConfigurationVariant2 => InlineClientToolConfigurationVariant2 != null; + + /// + /// + /// + public bool TryPickInlineClientToolConfigurationVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.InlineClientToolConfigurationVariant2? value) + { + value = InlineClientToolConfigurationVariant2; + return IsInlineClientToolConfigurationVariant2; + } + + /// + /// + /// + public global::Vectara.InlineClientToolConfigurationVariant2 PickInlineClientToolConfigurationVariant2() => IsInlineClientToolConfigurationVariant2 + ? InlineClientToolConfigurationVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'InlineClientToolConfigurationVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator InlineClientToolConfiguration(global::Vectara.AgentToolConfigurationBase value) => new InlineClientToolConfiguration((global::Vectara.AgentToolConfigurationBase?)value); + + /// + /// + /// + public static implicit operator global::Vectara.AgentToolConfigurationBase?(InlineClientToolConfiguration @this) => @this.AgentBase; + + /// + /// + /// + public InlineClientToolConfiguration(global::Vectara.AgentToolConfigurationBase? value) + { + AgentBase = value; + } + + /// + /// + /// + public static InlineClientToolConfiguration FromAgentBase(global::Vectara.AgentToolConfigurationBase? value) => new InlineClientToolConfiguration(value); + + /// + /// + /// + public static implicit operator InlineClientToolConfiguration(global::Vectara.InlineClientToolConfigurationVariant2 value) => new InlineClientToolConfiguration((global::Vectara.InlineClientToolConfigurationVariant2?)value); + + /// + /// + /// + public static implicit operator global::Vectara.InlineClientToolConfigurationVariant2?(InlineClientToolConfiguration @this) => @this.InlineClientToolConfigurationVariant2; + + /// + /// + /// + public InlineClientToolConfiguration(global::Vectara.InlineClientToolConfigurationVariant2? value) + { + InlineClientToolConfigurationVariant2 = value; + } + + /// + /// + /// + public static InlineClientToolConfiguration FromInlineClientToolConfigurationVariant2(global::Vectara.InlineClientToolConfigurationVariant2? value) => new InlineClientToolConfiguration(value); + + /// + /// + /// + public InlineClientToolConfiguration( + global::Vectara.AgentToolConfigurationBase? agentBase, + global::Vectara.InlineClientToolConfigurationVariant2? inlineClientToolConfigurationVariant2 + ) + { + AgentBase = agentBase; + InlineClientToolConfigurationVariant2 = inlineClientToolConfigurationVariant2; + } + + /// + /// + /// + public object? Object => + InlineClientToolConfigurationVariant2 as object ?? + AgentBase as object + ; + + /// + /// + /// + public override string? ToString() => + AgentBase?.ToString() ?? + InlineClientToolConfigurationVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsAgentBase && IsInlineClientToolConfigurationVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? agentBase = null, + global::System.Func? inlineClientToolConfigurationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAgentBase && agentBase != null) + { + return agentBase(AgentBase!); + } + else if (IsInlineClientToolConfigurationVariant2 && inlineClientToolConfigurationVariant2 != null) + { + return inlineClientToolConfigurationVariant2(InlineClientToolConfigurationVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? agentBase = null, + + global::System.Action? inlineClientToolConfigurationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAgentBase) + { + agentBase?.Invoke(AgentBase!); + } + else if (IsInlineClientToolConfigurationVariant2) + { + inlineClientToolConfigurationVariant2?.Invoke(InlineClientToolConfigurationVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? agentBase = null, + global::System.Action? inlineClientToolConfigurationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAgentBase) + { + agentBase?.Invoke(AgentBase!); + } + else if (IsInlineClientToolConfigurationVariant2) + { + inlineClientToolConfigurationVariant2?.Invoke(InlineClientToolConfigurationVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + AgentBase, + typeof(global::Vectara.AgentToolConfigurationBase), + InlineClientToolConfigurationVariant2, + typeof(global::Vectara.InlineClientToolConfigurationVariant2), + }; + 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(InlineClientToolConfiguration other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentBase, other.AgentBase) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(InlineClientToolConfigurationVariant2, other.InlineClientToolConfigurationVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(InlineClientToolConfiguration obj1, InlineClientToolConfiguration obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(InlineClientToolConfiguration obj1, InlineClientToolConfiguration obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is InlineClientToolConfiguration o && Equals(o); + } + } +} diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2.Json.g.cs new file mode 100644 index 00000000..302b8459 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class InlineClientToolConfigurationVariant2 + { + /// + /// 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.InlineClientToolConfigurationVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.InlineClientToolConfigurationVariant2), + jsonSerializerContext) as global::Vectara.InlineClientToolConfigurationVariant2; + } + + /// + /// 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.InlineClientToolConfigurationVariant2? 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.InlineClientToolConfigurationVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.InlineClientToolConfigurationVariant2; + } + + /// + /// 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.InlineClientToolConfigurationVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2.g.cs new file mode 100644 index 00000000..5ba818ff --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// + /// + public sealed partial class InlineClientToolConfigurationVariant2 + { + /// + /// The type of tool configuration, which is always 'client' for inline client tool configurations.
+ /// Default Value: client + ///
+ /// "client" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "client"; + + /// + /// Unique identifier for a tool.
+ /// Example: tol_123e4567-e89b-12d3-a456-426614174000 + ///
+ /// tol_123e4567-e89b-12d3-a456-426614174000 + [global::System.Text.Json.Serialization.JsonPropertyName("tool_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolId { get; set; } + + /// + /// Optional hardcoded arguments that will be merged into the LLM-generated arguments before dispatch to the client.
+ /// Example: {"channel":"support"} + ///
+ /// {"channel":"support"} + [global::System.Text.Json.Serialization.JsonPropertyName("argument_override")] + public object? ArgumentOverride { 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 'client' for inline client tool configurations.
+ /// Default Value: client + /// + /// + /// Unique identifier for a tool.
+ /// Example: tol_123e4567-e89b-12d3-a456-426614174000 + /// + /// + /// Optional hardcoded arguments that will be merged into the LLM-generated arguments before dispatch to the client.
+ /// Example: {"channel":"support"} + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public InlineClientToolConfigurationVariant2( + string type, + string toolId, + object? argumentOverride) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.ToolId = toolId ?? throw new global::System.ArgumentNullException(nameof(toolId)); + this.ArgumentOverride = argumentOverride; + } + + /// + /// Initializes a new instance of the class. + /// + public InlineClientToolConfigurationVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2ArgumentOverride.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2ArgumentOverride.Json.g.cs new file mode 100644 index 00000000..711a89e0 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2ArgumentOverride.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class InlineClientToolConfigurationVariant2ArgumentOverride + { + /// + /// 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.InlineClientToolConfigurationVariant2ArgumentOverride? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.InlineClientToolConfigurationVariant2ArgumentOverride), + jsonSerializerContext) as global::Vectara.InlineClientToolConfigurationVariant2ArgumentOverride; + } + + /// + /// 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.InlineClientToolConfigurationVariant2ArgumentOverride? 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.InlineClientToolConfigurationVariant2ArgumentOverride), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.InlineClientToolConfigurationVariant2ArgumentOverride; + } + + /// + /// 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.InlineClientToolConfigurationVariant2ArgumentOverride.g.cs b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2ArgumentOverride.g.cs new file mode 100644 index 00000000..c8f17863 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.InlineClientToolConfigurationVariant2ArgumentOverride.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// Optional hardcoded arguments that will be merged into the LLM-generated arguments before dispatch to the client.
+ /// Example: {"channel":"support"} + ///
+ public sealed partial class InlineClientToolConfigurationVariant2ArgumentOverride + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinition.g.cs b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinition.g.cs index fde2f48a..5cb71f03 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinition.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinition.g.cs @@ -4,7 +4,7 @@ namespace Vectara { /// - /// A JSON Schema definition for specifying data structure. Supports recursive schemas for nested objects. + /// A JSON Schema definition for describing data structure. Defines the minimum subset generally supported across LLM providers. Unknown keywords are passed through for forward compatibility. /// public sealed partial class JsonSchemaDefinition { @@ -13,11 +13,40 @@ public sealed partial class JsonSchemaDefinition ///
[global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.JsonSchemaDefinitionTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Vectara.JsonSchemaDefinitionType Type { get; set; } + public global::Vectara.JsonSchemaDefinitionType? Type { get; set; } /// - /// Property definitions when type is 'object'. Each key maps to a nested JsonSchemaDefinition. + /// Short human-readable label for this schema element. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Human-readable description of this schema element. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Default value when none is provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default")] + public object? Default { get; set; } + + /// + /// Allowed values for this schema element. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enum")] + public byte[]? Enum { get; set; } + + /// + /// Semantic format hint (e.g. date-time, date, email, uri, uuid). Provider support varies. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + public string? Format { get; set; } + + /// + /// Property definitions when type is 'object'. Each key maps to a nested schema. /// [global::System.Text.Json.Serialization.JsonPropertyName("properties")] public global::System.Collections.Generic.Dictionary? Properties { get; set; } @@ -36,22 +65,16 @@ public sealed partial class JsonSchemaDefinition public bool? AdditionalProperties { get; set; } /// - /// A JSON Schema definition for specifying data structure. Supports recursive schemas for nested objects. + /// A JSON Schema definition for describing data structure. Defines the minimum subset generally supported across LLM providers. Unknown keywords are passed through for forward compatibility. /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] public global::Vectara.JsonSchemaDefinition? Items { get; set; } /// - /// Allowed values for this schema element. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enum")] - public byte[]? Enum { get; set; } - - /// - /// Human-readable description of this schema element. + /// Value must match at least one of the listed schemas. /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("anyOf")] + public global::System.Collections.Generic.IList? AnyOf { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -65,8 +88,23 @@ public sealed partial class JsonSchemaDefinition /// /// The JSON type for this schema element. /// + /// + /// Short human-readable label for this schema element. + /// + /// + /// Human-readable description of this schema element. + /// + /// + /// Default value when none is provided. + /// + /// + /// Allowed values for this schema element. + /// + /// + /// Semantic format hint (e.g. date-time, date, email, uri, uuid). Provider support varies. + /// /// - /// Property definitions when type is 'object'. Each key maps to a nested JsonSchemaDefinition. + /// Property definitions when type is 'object'. Each key maps to a nested schema. /// /// /// List of required property names when type is 'object'. @@ -76,33 +114,38 @@ public sealed partial class JsonSchemaDefinition /// Default Value: false /// /// - /// A JSON Schema definition for specifying data structure. Supports recursive schemas for nested objects. - /// - /// - /// Allowed values for this schema element. + /// A JSON Schema definition for describing data structure. Defines the minimum subset generally supported across LLM providers. Unknown keywords are passed through for forward compatibility. /// - /// - /// Human-readable description of this schema element. + /// + /// Value must match at least one of the listed schemas. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public JsonSchemaDefinition( - global::Vectara.JsonSchemaDefinitionType type, + global::Vectara.JsonSchemaDefinitionType? type, + string? title, + string? description, + object? @default, + byte[]? @enum, + string? format, global::System.Collections.Generic.Dictionary? properties, global::System.Collections.Generic.IList? required, bool? additionalProperties, global::Vectara.JsonSchemaDefinition? items, - byte[]? @enum, - string? description) + global::System.Collections.Generic.IList? anyOf) { this.Type = type; + this.Title = title; + this.Description = description; + this.Default = @default; + this.Enum = @enum; + this.Format = format; this.Properties = properties; this.Required = required; this.AdditionalProperties = additionalProperties; this.Items = items; - this.Enum = @enum; - this.Description = description; + this.AnyOf = anyOf; } /// diff --git a/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionDefault.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionDefault.Json.g.cs new file mode 100644 index 00000000..156d1e25 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionDefault.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class JsonSchemaDefinitionDefault + { + /// + /// 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.JsonSchemaDefinitionDefault? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.JsonSchemaDefinitionDefault), + jsonSerializerContext) as global::Vectara.JsonSchemaDefinitionDefault; + } + + /// + /// 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.JsonSchemaDefinitionDefault? 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.JsonSchemaDefinitionDefault), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.JsonSchemaDefinitionDefault; + } + + /// + /// 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.LambdaToolVariant2OutputSchema.g.cs b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionDefault.g.cs similarity index 76% rename from src/libs/Vectara/Generated/Vectara.Models.LambdaToolVariant2OutputSchema.g.cs rename to src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionDefault.g.cs index c8b4deb6..59b72107 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.LambdaToolVariant2OutputSchema.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionDefault.g.cs @@ -4,9 +4,9 @@ namespace Vectara { /// - /// The schema that defines the expected output structure from the function. + /// Default value when none is provided. /// - public sealed partial class LambdaToolVariant2OutputSchema + public sealed partial class JsonSchemaDefinitionDefault { /// diff --git a/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionProperties.g.cs b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionProperties.g.cs index 071d0fd3..7b0d9a32 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionProperties.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionProperties.g.cs @@ -4,7 +4,7 @@ namespace Vectara { /// - /// Property definitions when type is 'object'. Each key maps to a nested JsonSchemaDefinition. + /// Property definitions when type is 'object'. Each key maps to a nested schema. /// public sealed partial class JsonSchemaDefinitionProperties { diff --git a/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionType.g.cs index 3b92443c..c076dac9 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaDefinitionType.g.cs @@ -23,6 +23,10 @@ public enum JsonSchemaDefinitionType /// /// /// + Null, + /// + /// + /// Number, /// /// @@ -49,6 +53,7 @@ public static string ToValueString(this JsonSchemaDefinitionType value) JsonSchemaDefinitionType.Array => "array", JsonSchemaDefinitionType.Boolean => "boolean", JsonSchemaDefinitionType.Integer => "integer", + JsonSchemaDefinitionType.Null => "null", JsonSchemaDefinitionType.Number => "number", JsonSchemaDefinitionType.Object => "object", JsonSchemaDefinitionType.String => "string", @@ -65,6 +70,7 @@ public static string ToValueString(this JsonSchemaDefinitionType value) "array" => JsonSchemaDefinitionType.Array, "boolean" => JsonSchemaDefinitionType.Boolean, "integer" => JsonSchemaDefinitionType.Integer, + "null" => JsonSchemaDefinitionType.Null, "number" => JsonSchemaDefinitionType.Number, "object" => JsonSchemaDefinitionType.Object, "string" => JsonSchemaDefinitionType.String, diff --git a/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaSpec.g.cs b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaSpec.g.cs index ed0b1a58..f8f3603b 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaSpec.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.JsonSchemaSpec.g.cs @@ -34,7 +34,7 @@ public sealed partial class JsonSchemaSpec public bool? Strict { get; set; } /// - /// A JSON Schema definition for specifying data structure. Supports recursive schemas for nested objects. + /// A JSON Schema definition for describing data structure. Defines the minimum subset generally supported across LLM providers. Unknown keywords are passed through for forward compatibility. /// [global::System.Text.Json.Serialization.JsonPropertyName("schema")] [global::System.Text.Json.Serialization.JsonRequired] @@ -53,7 +53,7 @@ public sealed partial class JsonSchemaSpec /// A unique name identifier for this schema. /// /// - /// A JSON Schema definition for specifying data structure. Supports recursive schemas for nested objects. + /// A JSON Schema definition for describing data structure. Defines the minimum subset generally supported across LLM providers. Unknown keywords are passed through for forward compatibility. /// /// /// A description of what the response format is for, used by the model to determine how to respond in the format. diff --git a/src/libs/Vectara/Generated/Vectara.Models.LambdaToolVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.LambdaToolVariant2.g.cs index 25218d93..7adb52b0 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.LambdaToolVariant2.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.LambdaToolVariant2.g.cs @@ -30,12 +30,6 @@ public sealed partial class LambdaToolVariant2 [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.LambdaToolVariant2LanguageJsonConverter))] public global::Vectara.LambdaToolVariant2Language Language { get; set; } = global::Vectara.LambdaToolVariant2Language.Python; - /// - /// The schema that defines the expected output structure from the function. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] - public object? OutputSchema { get; set; } - /// /// Definition of a function to be executed as a tool in a sandboxed environment.
/// **Python Environment:**
@@ -94,9 +88,6 @@ public sealed partial class LambdaToolVariant2 /// - Parameter descriptions are extracted and included in the input schema
/// - This gives agents better context about how to use each parameter /// - /// - /// The schema that defines the expected output structure from the function. - /// /// /// The programming language of the lambda function. Currently only Python 3.12 is supported.
/// Default Value: python
@@ -108,12 +99,10 @@ public sealed partial class LambdaToolVariant2 public LambdaToolVariant2( string type, global::Vectara.FunctionDefinition functionDefinition, - object? outputSchema, global::Vectara.LambdaToolVariant2Language language = global::Vectara.LambdaToolVariant2Language.Python) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Language = language; - this.OutputSchema = outputSchema; this.FunctionDefinition = functionDefinition ?? throw new global::System.ArgumentNullException(nameof(functionDefinition)); } diff --git a/src/libs/Vectara/Generated/Vectara.Models.ListToolsType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ListToolsType.g.cs index 165d8510..bd891a55 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.ListToolsType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.ListToolsType.g.cs @@ -8,6 +8,10 @@ namespace Vectara ///
public enum ListToolsType { + /// + /// + /// + Client, /// /// /// @@ -30,6 +34,7 @@ public static string ToValueString(this ListToolsType value) { return value switch { + ListToolsType.Client => "client", ListToolsType.Lambda => "lambda", ListToolsType.Mcp => "mcp", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -42,6 +47,7 @@ public static string ToValueString(this ListToolsType value) { return value switch { + "client" => ListToolsType.Client, "lambda" => ListToolsType.Lambda, "mcp" => ListToolsType.Mcp, _ => null, diff --git a/src/libs/Vectara/Generated/Vectara.Models.MultipartInputEvent.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.MultipartInputEvent.Json.g.cs new file mode 100644 index 00000000..29a5dbd6 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.MultipartInputEvent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class MultipartInputEvent + { + /// + /// 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.MultipartInputEvent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.MultipartInputEvent), + jsonSerializerContext) as global::Vectara.MultipartInputEvent; + } + + /// + /// 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.MultipartInputEvent? 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.MultipartInputEvent), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.MultipartInputEvent; + } + + /// + /// 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.MultipartInputEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.MultipartInputEvent.g.cs new file mode 100644 index 00000000..aae7e18f --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.MultipartInputEvent.g.cs @@ -0,0 +1,122 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Vectara +{ + /// + /// Input event with file uploads and optional message parts. Sent as multipart form data. + /// + public sealed partial class MultipartInputEvent + { + /// + /// Deprecated: use messages instead.
+ /// Plain text input message to accompany the file upload.
+ /// If both message and messages are provided, messages takes precedence and message is ignored.
+ /// Example: I need help with my widget installation + ///
+ /// I need help with my widget installation + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Obsolete("This property marked as deprecated.")] + public string? Message { get; set; } + + /// + /// List of inputs that make up this event. Each entry is an AgentInput selected by "type: text" for plain text content (default), or "skill" to invoke a skill by name. Sent as a JSON-encoded string in the multipart form. If omitted, falls back to the deprecated "message" field as a single text input.
+ /// Example: [{"type":"text","content":"Review this file"}, {"type":"skill","skill_name":"code_review"}] + ///
+ /// [{"type":"text","content":"Review this file"}, {"type":"skill","skill_name":"code_review"}] + [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public global::System.Collections.Generic.IList? Messages { get; set; } + + /// + /// Files to upload to the agent session. Any file type is accepted.
+ /// What the agent can do with the file depends on the tools available to it. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")] + public global::System.Collections.Generic.IList? Files { get; set; } + + /// + /// Indicates whether the response should be streamed or not.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stream_response")] + public bool? StreamResponse { get; set; } + + /// + /// Event ID to return all events created after queueing the new input. When provided and the session is currently running, the response will include all events created after this event ID, and the new input will be processed according to the behavior field. Use the special value "start" to receive all events from the beginning of the session, including the input message itself.
+ /// Example: start + ///
+ /// start + [global::System.Text.Json.Serialization.JsonPropertyName("since")] + public string? Since { get; set; } + + /// + /// Controls how the input is processed when the session is already running.
+ /// - `steer`: Insert the message as soon as possible on the next iteration of the agent loop.
+ /// - `follow_up`: Insert the message after the current agent loop finishes, as a follow-up turn.
+ /// Follow-up inputs are consumed one at a time: after each follow-up turn completes, the next
+ /// queued follow-up is processed. This ensures each follow-up gets a full agent loop iteration. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("behavior")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.InputBehaviorJsonConverter))] + public global::Vectara.InputBehavior? Behavior { 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. + /// + /// + /// List of inputs that make up this event. Each entry is an AgentInput selected by "type: text" for plain text content (default), or "skill" to invoke a skill by name. Sent as a JSON-encoded string in the multipart form. If omitted, falls back to the deprecated "message" field as a single text input.
+ /// Example: [{"type":"text","content":"Review this file"}, {"type":"skill","skill_name":"code_review"}] + /// + /// + /// Files to upload to the agent session. Any file type is accepted.
+ /// What the agent can do with the file depends on the tools available to it. + /// + /// + /// Indicates whether the response should be streamed or not.
+ /// Default Value: false + /// + /// + /// Event ID to return all events created after queueing the new input. When provided and the session is currently running, the response will include all events created after this event ID, and the new input will be processed according to the behavior field. Use the special value "start" to receive all events from the beginning of the session, including the input message itself.
+ /// Example: start + /// + /// + /// Controls how the input is processed when the session is already running.
+ /// - `steer`: Insert the message as soon as possible on the next iteration of the agent loop.
+ /// - `follow_up`: Insert the message after the current agent loop finishes, as a follow-up turn.
+ /// Follow-up inputs are consumed one at a time: after each follow-up turn completes, the next
+ /// queued follow-up is processed. This ensures each follow-up gets a full agent loop iteration. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MultipartInputEvent( + global::System.Collections.Generic.IList? messages, + global::System.Collections.Generic.IList? files, + bool? streamResponse, + string? since, + global::Vectara.InputBehavior? behavior) + { + this.Messages = messages; + this.Files = files; + this.StreamResponse = streamResponse; + this.Since = since; + this.Behavior = behavior; + } + + /// + /// Initializes a new instance of the class. + /// + public MultipartInputEvent() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.OutstandingClientToolCallsResponse.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.OutstandingClientToolCallsResponse.Json.g.cs new file mode 100644 index 00000000..bc0a6055 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.OutstandingClientToolCallsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class OutstandingClientToolCallsResponse + { + /// + /// 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.OutstandingClientToolCallsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.OutstandingClientToolCallsResponse), + jsonSerializerContext) as global::Vectara.OutstandingClientToolCallsResponse; + } + + /// + /// 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.OutstandingClientToolCallsResponse? 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.OutstandingClientToolCallsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.OutstandingClientToolCallsResponse; + } + + /// + /// 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.OutstandingClientToolCallsResponse.g.cs b/src/libs/Vectara/Generated/Vectara.Models.OutstandingClientToolCallsResponse.g.cs new file mode 100644 index 00000000..9b2aa7ce --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.OutstandingClientToolCallsResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// The client tool calls a session is currently waiting on the caller to fulfill, re-materialized from persisted history. Empty when the session is not parked on a client tool. + /// + public sealed partial class OutstandingClientToolCallsResponse + { + /// + /// The outstanding client tool calls, one entry per `tool_input` event still awaiting a `tool_output`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("client_tool_calls")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ClientToolCalls { 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 outstanding client tool calls, one entry per `tool_input` event still awaiting a `tool_output`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OutstandingClientToolCallsResponse( + global::System.Collections.Generic.IList clientToolCalls) + { + this.ClientToolCalls = clientToolCalls ?? throw new global::System.ArgumentNullException(nameof(clientToolCalls)); + } + + /// + /// Initializes a new instance of the class. + /// + public OutstandingClientToolCallsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.Tool.g.cs b/src/libs/Vectara/Generated/Vectara.Models.Tool.g.cs index 852a081c..e35351a3 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.Tool.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.Tool.g.cs @@ -497,6 +497,43 @@ public bool TryPickGetDocumentText( public global::Vectara.GetDocumentTextTool PickGetDocumentText() => IsGetDocumentText ? GetDocumentText!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'GetDocumentText' but the value was {ToString()}."); + + /// + /// A tool whose execution is performed by the calling client. When invoked, the platform emits a `tool_input` event with the tool call arguments. The client submits the result as a `tool_output` input via `createAgentInput`. + /// +#if NET6_0_OR_GREATER + public global::Vectara.ClientTool? Client { get; init; } +#else + public global::Vectara.ClientTool? Client { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Client))] +#endif + public bool IsClient => Client != null; + + /// + /// + /// + public bool TryPickClient( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.ClientTool? value) + { + value = Client; + return IsClient; + } + + /// + /// + /// + public global::Vectara.ClientTool PickClient() => IsClient + ? Client!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Client' but the value was {ToString()}."); /// /// /// @@ -796,6 +833,29 @@ public Tool(global::Vectara.GetDocumentTextTool? value) ///
public static Tool FromGetDocumentText(global::Vectara.GetDocumentTextTool? value) => new Tool(value); + /// + /// + /// + public static implicit operator Tool(global::Vectara.ClientTool value) => new Tool((global::Vectara.ClientTool?)value); + + /// + /// + /// + public static implicit operator global::Vectara.ClientTool?(Tool @this) => @this.Client; + + /// + /// + /// + public Tool(global::Vectara.ClientTool? value) + { + Client = value; + } + + /// + /// + /// + public static Tool FromClient(global::Vectara.ClientTool? value) => new Tool(value); + /// /// /// @@ -813,7 +873,8 @@ public Tool( global::Vectara.ArtifactGrepTool? artifactGrep, global::Vectara.ImageReadTool? imageRead, global::Vectara.DocumentConversionTool? documentConversion, - global::Vectara.GetDocumentTextTool? getDocumentText + global::Vectara.GetDocumentTextTool? getDocumentText, + global::Vectara.ClientTool? client ) { Type = type; @@ -831,12 +892,14 @@ public Tool( ImageRead = imageRead; DocumentConversion = documentConversion; GetDocumentText = getDocumentText; + Client = client; } /// /// /// public object? Object => + Client as object ?? GetDocumentText as object ?? DocumentConversion as object ?? ImageRead as object ?? @@ -868,7 +931,8 @@ DynamicVectara as object ArtifactGrep?.ToString() ?? ImageRead?.ToString() ?? DocumentConversion?.ToString() ?? - GetDocumentText?.ToString() + GetDocumentText?.ToString() ?? + Client?.ToString() ; /// @@ -876,7 +940,7 @@ DynamicVectara as object /// public bool Validate() { - return IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && IsImageRead && !IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && IsDocumentConversion && !IsGetDocumentText || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && IsGetDocumentText; + return IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && IsImageRead && !IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && IsDocumentConversion && !IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && IsGetDocumentText && !IsClient || !IsDynamicVectara && !IsMcp && !IsCorporaSearch && !IsWebSearch && !IsWebGet && !IsLambda && !IsSubAgent && !IsArtifactCreate && !IsArtifactRead && !IsArtifactGrep && !IsImageRead && !IsDocumentConversion && !IsGetDocumentText && IsClient; } /// @@ -896,6 +960,7 @@ public bool Validate() global::System.Func? imageRead = null, global::System.Func? documentConversion = null, global::System.Func? getDocumentText = null, + global::System.Func? client = null, bool validate = true) { if (validate) @@ -955,6 +1020,10 @@ public bool Validate() { return getDocumentText(GetDocumentText!); } + else if (IsClient && client != null) + { + return client(Client!); + } return default(TResult); } @@ -988,6 +1057,8 @@ public void Match( global::System.Action? documentConversion = null, global::System.Action? getDocumentText = null, + + global::System.Action? client = null, bool validate = true) { if (validate) @@ -1047,6 +1118,10 @@ public void Match( { getDocumentText?.Invoke(GetDocumentText!); } + else if (IsClient) + { + client?.Invoke(Client!); + } } /// @@ -1066,6 +1141,7 @@ public void Switch( global::System.Action? imageRead = null, global::System.Action? documentConversion = null, global::System.Action? getDocumentText = null, + global::System.Action? client = null, bool validate = true) { if (validate) @@ -1125,6 +1201,10 @@ public void Switch( { getDocumentText?.Invoke(GetDocumentText!); } + else if (IsClient) + { + client?.Invoke(Client!); + } } /// @@ -1160,6 +1240,8 @@ public override int GetHashCode() typeof(global::Vectara.DocumentConversionTool), GetDocumentText, typeof(global::Vectara.GetDocumentTextTool), + Client, + typeof(global::Vectara.ClientTool), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -1188,7 +1270,8 @@ public bool Equals(Tool other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ArtifactGrep, other.ArtifactGrep) && 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) + global::System.Collections.Generic.EqualityComparer.Default.Equals(GetDocumentText, other.GetDocumentText) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Client, other.Client) ; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolDiscriminatorType.g.cs index 241d2119..8ac68958 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.ToolDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolDiscriminatorType.g.cs @@ -23,6 +23,10 @@ public enum ToolDiscriminatorType /// /// /// + Client, + /// + /// + /// CorporaSearch, /// /// @@ -77,6 +81,7 @@ public static string ToValueString(this ToolDiscriminatorType value) ToolDiscriminatorType.ArtifactCreate => "artifact_create", ToolDiscriminatorType.ArtifactGrep => "artifact_grep", ToolDiscriminatorType.ArtifactRead => "artifact_read", + ToolDiscriminatorType.Client => "client", ToolDiscriminatorType.CorporaSearch => "corpora_search", ToolDiscriminatorType.DocumentConversion => "document_conversion", ToolDiscriminatorType.DynamicVectara => "dynamic_vectara", @@ -100,6 +105,7 @@ public static string ToValueString(this ToolDiscriminatorType value) "artifact_create" => ToolDiscriminatorType.ArtifactCreate, "artifact_grep" => ToolDiscriminatorType.ArtifactGrep, "artifact_read" => ToolDiscriminatorType.ArtifactRead, + "client" => ToolDiscriminatorType.Client, "corpora_search" => ToolDiscriminatorType.CorporaSearch, "document_conversion" => ToolDiscriminatorType.DocumentConversion, "dynamic_vectara" => ToolDiscriminatorType.DynamicVectara, diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolInputEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolInputEventVariant2.g.cs index 9b072644..0859a58e 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.ToolInputEventVariant2.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolInputEventVariant2.g.cs @@ -54,9 +54,11 @@ public sealed partial class ToolInputEventVariant2 public required object ToolInput { get; set; } /// - /// Top-level field paths in `tool_input` whose values were filled by the tool configuration's argument overrides at emission time, not produced by the
- /// agent. On replay these paths are stripped from the rendered tool call so the model sees only what it originally generated, regardless of how the tool
- /// configuration's overrides have changed since. Paths support dot-notation (e.g. `config.auth.token`). + /// Dot-notation leaf paths supplied by the tool configuration's argument overrides rather than by the agent — for example `api_key`,
+ /// `config.auth.token`, or `items[0]`. These paths are frozen on the input event so that the agent's view of its own past tool calls stays
+ /// stable when the tool configuration changes: overrides are excluded from replayed calls regardless of how the override has evolved since.
+ /// Only the paths are frozen here; the resolved values at those paths are not — they are recomputed against the live session at each launch
+ /// and recorded on the corresponding `ToolOutputEvent.resolved_argument_overrides`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("argument_override_paths")] public global::System.Collections.Generic.IList? ArgumentOverridePaths { get; set; } @@ -91,9 +93,11 @@ public sealed partial class ToolInputEventVariant2 /// Example: {"query":"weather in San Francisco"} /// /// - /// Top-level field paths in `tool_input` whose values were filled by the tool configuration's argument overrides at emission time, not produced by the
- /// agent. On replay these paths are stripped from the rendered tool call so the model sees only what it originally generated, regardless of how the tool
- /// configuration's overrides have changed since. Paths support dot-notation (e.g. `config.auth.token`). + /// Dot-notation leaf paths supplied by the tool configuration's argument overrides rather than by the agent — for example `api_key`,
+ /// `config.auth.token`, or `items[0]`. These paths are frozen on the input event so that the agent's view of its own past tool calls stays
+ /// stable when the tool configuration changes: overrides are excluded from replayed calls regardless of how the override has evolved since.
+ /// Only the paths are frozen here; the resolved values at those paths are not — they are recomputed against the live session at each launch
+ /// and recorded on the corresponding `ToolOutputEvent.resolved_argument_overrides`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolOutputEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolOutputEventVariant2.g.cs index 4c1442b9..8abbe630 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.ToolOutputEventVariant2.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolOutputEventVariant2.g.cs @@ -44,6 +44,19 @@ public sealed partial class ToolOutputEventVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required string ToolName { get; set; } + /// + /// The values the tool configuration's argument overrides contributed to this call, keyed by the paths in
+ /// `ToolInputEvent.argument_override_paths`. `$ref` overrides are resolved against the session — agent secrets,
+ /// session metadata, and prior tool outputs — with secret values masked as `****`. Literal overrides appear as-is.
+ /// Overlay these onto `ToolInputEvent.tool_input` at the matching paths to see exactly what the tool received.
+ /// Absent when the tool short-circuits before running (for example, malformed arguments from the agent or an
+ /// unresolved dependency).
+ /// Example: {"api_key":"****","base_url":"https://api.example.com"} + ///
+ /// {"api_key":"****","base_url":"https://api.example.com"} + [global::System.Text.Json.Serialization.JsonPropertyName("resolved_argument_overrides")] + public object? ResolvedArgumentOverrides { get; set; } + /// /// Output data from the tool.
/// Example: {"result":"Current weather is 70\u00B0F and sunny"} @@ -94,6 +107,15 @@ public sealed partial class ToolOutputEventVariant2 /// Whether the tool call resulted in an error.
/// Default Value: false /// + /// + /// The values the tool configuration's argument overrides contributed to this call, keyed by the paths in
+ /// `ToolInputEvent.argument_override_paths`. `$ref` overrides are resolved against the session — agent secrets,
+ /// session metadata, and prior tool outputs — with secret values masked as `****`. Literal overrides appear as-is.
+ /// Overlay these onto `ToolInputEvent.tool_input` at the matching paths to see exactly what the tool received.
+ /// Absent when the tool short-circuits before running (for example, malformed arguments from the agent or an
+ /// unresolved dependency).
+ /// Example: {"api_key":"****","base_url":"https://api.example.com"} + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -103,12 +125,14 @@ public ToolOutputEventVariant2( string toolConfigurationName, string toolName, object toolOutput, - bool error) + bool error, + object? resolvedArgumentOverrides) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.ToolCallId = toolCallId ?? throw new global::System.ArgumentNullException(nameof(toolCallId)); this.ToolConfigurationName = toolConfigurationName ?? throw new global::System.ArgumentNullException(nameof(toolConfigurationName)); this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName)); + this.ResolvedArgumentOverrides = resolvedArgumentOverrides; this.ToolOutput = toolOutput ?? throw new global::System.ArgumentNullException(nameof(toolOutput)); this.Error = error; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.ToolOutputEventVariant2ResolvedArgumentOverrides.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolOutputEventVariant2ResolvedArgumentOverrides.Json.g.cs new file mode 100644 index 00000000..48475187 --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolOutputEventVariant2ResolvedArgumentOverrides.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class ToolOutputEventVariant2ResolvedArgumentOverrides + { + /// + /// 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.ToolOutputEventVariant2ResolvedArgumentOverrides? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.ToolOutputEventVariant2ResolvedArgumentOverrides), + jsonSerializerContext) as global::Vectara.ToolOutputEventVariant2ResolvedArgumentOverrides; + } + + /// + /// 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.ToolOutputEventVariant2ResolvedArgumentOverrides? 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.ToolOutputEventVariant2ResolvedArgumentOverrides), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ToolOutputEventVariant2ResolvedArgumentOverrides; + } + + /// + /// 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.ToolOutputEventVariant2ResolvedArgumentOverrides.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ToolOutputEventVariant2ResolvedArgumentOverrides.g.cs new file mode 100644 index 00000000..4ce58ead --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.ToolOutputEventVariant2ResolvedArgumentOverrides.g.cs @@ -0,0 +1,25 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// The values the tool configuration's argument overrides contributed to this call, keyed by the paths in
+ /// `ToolInputEvent.argument_override_paths`. `$ref` overrides are resolved against the session — agent secrets,
+ /// session metadata, and prior tool outputs — with secret values masked as `****`. Literal overrides appear as-is.
+ /// Overlay these onto `ToolInputEvent.tool_input` at the matching paths to see exactly what the tool received.
+ /// Absent when the tool short-circuits before running (for example, malformed arguments from the agent or an
+ /// unresolved dependency).
+ /// Example: {"api_key":"****","base_url":"https://api.example.com"} + ///
+ public sealed partial class ToolOutputEventVariant2ResolvedArgumentOverrides + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdateClientToolRequest.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdateClientToolRequest.Json.g.cs new file mode 100644 index 00000000..3992c1ce --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdateClientToolRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Vectara +{ + public sealed partial class UpdateClientToolRequest + { + /// + /// 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.UpdateClientToolRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Vectara.UpdateClientToolRequest), + jsonSerializerContext) as global::Vectara.UpdateClientToolRequest; + } + + /// + /// 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.UpdateClientToolRequest? 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.UpdateClientToolRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.UpdateClientToolRequest; + } + + /// + /// 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.UpdateClientToolRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdateClientToolRequest.g.cs new file mode 100644 index 00000000..72e69bff --- /dev/null +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdateClientToolRequest.g.cs @@ -0,0 +1,114 @@ + +#nullable enable + +namespace Vectara +{ + /// + /// Request to update an existing client tool. + /// + public sealed partial class UpdateClientToolRequest + { + /// + /// This should always be `client`.
+ /// Default Value: client
+ /// Example: client + ///
+ /// "client" + /// client + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } = "client"; + + /// + /// Whether the tool should be enabled or disabled.
+ /// Example: true + ///
+ /// true + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// Updated human-readable title of the tool.
+ /// Example: Collect Customer Signature + ///
+ /// Collect Customer Signature + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Updated description of what the tool does. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Updated JSON Schema for the arguments the LLM produces when invoking this tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public global::Vectara.JsonSchemaDefinition? InputSchema { get; set; } + + /// + /// Updated JSON Schema for the structure the client must submit as the tool output. Pass an empty object to clear the schema and accept any output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] + public global::Vectara.JsonSchemaDefinition? OutputSchema { 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. + /// + /// + /// This should always be `client`.
+ /// Default Value: client
+ /// Example: client + /// + /// + /// Whether the tool should be enabled or disabled.
+ /// Example: true + /// + /// + /// Updated human-readable title of the tool.
+ /// Example: Collect Customer Signature + /// + /// + /// Updated description of what the tool does. + /// + /// + /// Updated JSON Schema for the arguments the LLM produces when invoking this tool. + /// + /// + /// Updated JSON Schema for the structure the client must submit as the tool output. Pass an empty object to clear the schema and accept any output. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateClientToolRequest( + string type, + bool? enabled, + string? title, + string? description, + global::Vectara.JsonSchemaDefinition? inputSchema, + global::Vectara.JsonSchemaDefinition? outputSchema) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Enabled = enabled; + this.Title = title; + this.Description = description; + this.InputSchema = inputSchema; + this.OutputSchema = outputSchema; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateClientToolRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdateToolRequest.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdateToolRequest.g.cs index 1a168b38..e01b02cd 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.UpdateToolRequest.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdateToolRequest.g.cs @@ -5,7 +5,7 @@ namespace Vectara { /// - /// Request to update a tool. Supports updating MCP and Python lambda tools. + /// Request to update a tool. Supports updating MCP, Python lambda, and client tools. /// public readonly partial struct UpdateToolRequest : global::System.IEquatable { @@ -88,6 +88,43 @@ public bool TryPickLambda( public global::Vectara.UpdateLambdaToolRequest PickLambda() => IsLambda ? Lambda! : throw new global::System.InvalidOperationException($"Expected union variant 'Lambda' but the value was {ToString()}."); + + /// + /// Request to update an existing client tool. + /// +#if NET6_0_OR_GREATER + public global::Vectara.UpdateClientToolRequest? Client { get; init; } +#else + public global::Vectara.UpdateClientToolRequest? Client { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Client))] +#endif + public bool IsClient => Client != null; + + /// + /// + /// + public bool TryPickClient( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Vectara.UpdateClientToolRequest? value) + { + value = Client; + return IsClient; + } + + /// + /// + /// + public global::Vectara.UpdateClientToolRequest PickClient() => IsClient + ? Client! + : throw new global::System.InvalidOperationException($"Expected union variant 'Client' but the value was {ToString()}."); /// /// /// @@ -134,25 +171,51 @@ public UpdateToolRequest(global::Vectara.UpdateLambdaToolRequest? value) ///
public static UpdateToolRequest FromLambda(global::Vectara.UpdateLambdaToolRequest? value) => new UpdateToolRequest(value); + /// + /// + /// + public static implicit operator UpdateToolRequest(global::Vectara.UpdateClientToolRequest value) => new UpdateToolRequest((global::Vectara.UpdateClientToolRequest?)value); + + /// + /// + /// + public static implicit operator global::Vectara.UpdateClientToolRequest?(UpdateToolRequest @this) => @this.Client; + + /// + /// + /// + public UpdateToolRequest(global::Vectara.UpdateClientToolRequest? value) + { + Client = value; + } + + /// + /// + /// + public static UpdateToolRequest FromClient(global::Vectara.UpdateClientToolRequest? value) => new UpdateToolRequest(value); + /// /// /// public UpdateToolRequest( global::Vectara.UpdateToolRequestDiscriminatorType? type, global::Vectara.UpdateMcpToolRequest? mcp, - global::Vectara.UpdateLambdaToolRequest? lambda + global::Vectara.UpdateLambdaToolRequest? lambda, + global::Vectara.UpdateClientToolRequest? client ) { Type = type; Mcp = mcp; Lambda = lambda; + Client = client; } /// /// /// public object? Object => + Client as object ?? Lambda as object ?? Mcp as object ; @@ -162,7 +225,8 @@ Mcp as object ///
public override string? ToString() => Mcp?.ToString() ?? - Lambda?.ToString() + Lambda?.ToString() ?? + Client?.ToString() ; /// @@ -170,7 +234,7 @@ Mcp as object /// public bool Validate() { - return IsMcp && !IsLambda || !IsMcp && IsLambda; + return IsMcp && !IsLambda && !IsClient || !IsMcp && IsLambda && !IsClient || !IsMcp && !IsLambda && IsClient; } /// @@ -179,6 +243,7 @@ public bool Validate() public TResult? Match( global::System.Func? mcp = null, global::System.Func? lambda = null, + global::System.Func? client = null, bool validate = true) { if (validate) @@ -194,6 +259,10 @@ public bool Validate() { return lambda(Lambda!); } + else if (IsClient && client != null) + { + return client(Client!); + } return default(TResult); } @@ -205,6 +274,8 @@ public void Match( global::System.Action? mcp = null, global::System.Action? lambda = null, + + global::System.Action? client = null, bool validate = true) { if (validate) @@ -220,6 +291,10 @@ public void Match( { lambda?.Invoke(Lambda!); } + else if (IsClient) + { + client?.Invoke(Client!); + } } /// @@ -228,6 +303,7 @@ public void Match( public void Switch( global::System.Action? mcp = null, global::System.Action? lambda = null, + global::System.Action? client = null, bool validate = true) { if (validate) @@ -243,6 +319,10 @@ public void Switch( { lambda?.Invoke(Lambda!); } + else if (IsClient) + { + client?.Invoke(Client!); + } } /// @@ -256,6 +336,8 @@ public override int GetHashCode() typeof(global::Vectara.UpdateMcpToolRequest), Lambda, typeof(global::Vectara.UpdateLambdaToolRequest), + Client, + typeof(global::Vectara.UpdateClientToolRequest), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -273,7 +355,8 @@ public bool Equals(UpdateToolRequest other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Mcp, other.Mcp) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Lambda, other.Lambda) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Lambda, other.Lambda) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Client, other.Client) ; } diff --git a/src/libs/Vectara/Generated/Vectara.Models.UpdateToolRequestDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.UpdateToolRequestDiscriminatorType.g.cs index 9cfa3493..7330a3cd 100644 --- a/src/libs/Vectara/Generated/Vectara.Models.UpdateToolRequestDiscriminatorType.g.cs +++ b/src/libs/Vectara/Generated/Vectara.Models.UpdateToolRequestDiscriminatorType.g.cs @@ -8,6 +8,10 @@ namespace Vectara /// public enum UpdateToolRequestDiscriminatorType { + /// + /// + /// + Client, /// /// /// @@ -30,6 +34,7 @@ public static string ToValueString(this UpdateToolRequestDiscriminatorType value { return value switch { + UpdateToolRequestDiscriminatorType.Client => "client", UpdateToolRequestDiscriminatorType.Lambda => "lambda", UpdateToolRequestDiscriminatorType.Mcp => "mcp", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -42,6 +47,7 @@ public static string ToValueString(this UpdateToolRequestDiscriminatorType value { return value switch { + "client" => UpdateToolRequestDiscriminatorType.Client, "lambda" => UpdateToolRequestDiscriminatorType.Lambda, "mcp" => UpdateToolRequestDiscriminatorType.Mcp, _ => null, diff --git a/src/libs/Vectara/openapi.yaml b/src/libs/Vectara/openapi.yaml index 2ec11435..fb3fd3d8 100644 --- a/src/libs/Vectara/openapi.yaml +++ b/src/libs/Vectara/openapi.yaml @@ -7635,6 +7635,7 @@ paths: enum: - mcp - lambda + - client example: mcp - in: query name: enabled @@ -9346,6 +9347,8 @@ paths: schema: $ref: '#/components/schemas/CreateInputRequest' multipart/form-data: + schema: + $ref: '#/components/schemas/MultipartInputEvent' encoding: message: contentType: text/plain @@ -9437,6 +9440,7 @@ paths: context_limit_exceeded: '#/components/schemas/ContextLimitExceededEvent' step_transition_limit_exceeded: '#/components/schemas/StepTransitionLimitExceededEvent' session_interrupted: '#/components/schemas/SessionInterruptedEvent' + client_tool_pending: '#/components/schemas/ClientToolPendingEvent' image_read: '#/components/schemas/ImageReadEvent' step_transition: '#/components/schemas/StepTransitionEvent' compaction: '#/components/schemas/CompactionEvent' @@ -9452,6 +9456,7 @@ paths: - $ref: '#/components/schemas/ContextLimitExceededEvent' - $ref: '#/components/schemas/StepTransitionLimitExceededEvent' - $ref: '#/components/schemas/SessionInterruptedEvent' + - $ref: '#/components/schemas/ClientToolPendingEvent' - $ref: '#/components/schemas/ImageReadEvent' - $ref: '#/components/schemas/StepTransitionEvent' - $ref: '#/components/schemas/CompactionEvent' @@ -9473,6 +9478,7 @@ paths: context_limit_exceeded: '#/components/schemas/ContextLimitExceededEvent' step_transition_limit_exceeded: '#/components/schemas/StepTransitionLimitExceededEvent' session_interrupted: '#/components/schemas/SessionInterruptedEvent' + client_tool_pending: '#/components/schemas/ClientToolPendingEvent' image_read: '#/components/schemas/ImageReadEvent' step_transition: '#/components/schemas/StepTransitionEvent' context_consumed: '#/components/schemas/ContextConsumedEvent' @@ -9500,6 +9506,7 @@ paths: - $ref: '#/components/schemas/ContextLimitExceededEvent' - $ref: '#/components/schemas/StepTransitionLimitExceededEvent' - $ref: '#/components/schemas/SessionInterruptedEvent' + - $ref: '#/components/schemas/ClientToolPendingEvent' - $ref: '#/components/schemas/ImageReadEvent' - $ref: '#/components/schemas/StepTransitionEvent' - $ref: '#/components/schemas/ContextConsumedEvent' @@ -9592,6 +9599,75 @@ paths: cursor: $request.page_key next_cursor: $response.metadata.page_key results: $response.events + /v2/agents/{agent_key}/sessions/{session_key}/outstanding_client_tool_calls: + get: + tags: + - Agent Sessions + summary: List outstanding client tool calls for an agent session + x-required-roles: + - type: AgentRole + roles: + - agent_user + - agent_developer + - agent_administrator + - type: ApiRole + roles: + - agent_user + - agent_developer + - agent_administrator + - administrator + - owner + description: 'List the client tool calls the session is currently waiting on + the caller to fulfill. Each entry carries the originating `tool_input` event + ID, the tool name, and the fully materialized arguments to invoke the tool + with. Secret-derived values are returned unmasked because the caller needs + them to execute the tool, so this endpoint is restricted to the same roles + permitted to submit input to the session. + + + Returns an empty list when the session is not parked on a client tool. The + corresponding `client_tool_pending` event is delivered only on the live event + stream and is not returned by `listAgentEvents`; this endpoint is the durable + way to recover the pending calls after a reconnect. Submit one `tool_output` + per returned `event_id` (via the create-input endpoint) to resume the session.' + operationId: listOutstandingClientToolCalls + parameters: + - $ref: '#/components/parameters/RequestTimeout' + - $ref: '#/components/parameters/RequestTimeoutMillis' + - in: path + name: agent_key + description: The unique identifier of the agent. + required: true + schema: + $ref: '#/components/schemas/AgentKey' + - in: path + name: session_key + description: The unique key of the session. + required: true + schema: + $ref: '#/components/schemas/AgentSessionKey' + responses: + '200': + description: The client tool calls the session is waiting on, one entry + per outstanding call. + content: + application/json: + schema: + $ref: '#/components/schemas/OutstandingClientToolCallsResponse' + '403': + description: Permissions do not allow reading this session. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Agent or session not found. + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundError' + x-fern-sdk-group-name: agent_events + x-fern-sdk-method-name: list_outstanding_client_tool_calls /v2/agents/{agent_key}/sessions/{session_key}/events/{event_id}: get: tags: @@ -11740,6 +11816,62 @@ paths: cursor: $request.page_key next_cursor: $response.metadata.page_key results: $response.events + /v2/agent_aliases/{alias_key}/sessions/{session_key}/outstanding_client_tool_calls: + get: + tags: + - Agent Aliases + summary: List outstanding client tool calls on alias-routed session + x-required-roles: + - type: ApiRole + roles: + - agent_user + - agent_developer + - agent_administrator + - administrator + - owner + description: List the client tool calls a session originally created via this + alias is currently waiting on the caller to fulfill. Each entry carries the + fully materialized arguments to invoke the tool with; secret-derived values + are returned unmasked because the caller needs them to execute the tool, so + this endpoint is restricted to the same roles permitted to submit input to + the session. Empty when the session is not parked on a client tool. See the + agent-scoped endpoint for the full contract. + operationId: listAliasRoutedOutstandingClientToolCalls + parameters: + - $ref: '#/components/parameters/RequestTimeout' + - $ref: '#/components/parameters/RequestTimeoutMillis' + - in: path + name: alias_key + required: true + schema: + $ref: '#/components/schemas/AgentAliasKey' + - in: path + name: session_key + required: true + schema: + $ref: '#/components/schemas/AgentSessionKey' + responses: + '200': + description: The client tool calls the session is waiting on, one entry + per outstanding call. + content: + application/json: + schema: + $ref: '#/components/schemas/OutstandingClientToolCallsResponse' + '403': + description: Permissions do not allow reading this session. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Alias or session not found. + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundError' + x-fern-sdk-group-name: agent_aliases_sessions + x-fern-sdk-method-name: list_outstanding_client_tool_calls /v2/agent_aliases/{alias_key}/sessions/{session_key}/events/{event_id}: get: tags: @@ -18001,11 +18133,10 @@ components: description: The name of the author of this message, used to connect messages in a conversation. JsonSchemaDefinition: - description: A JSON Schema definition for specifying data structure. Supports - recursive schemas for nested objects. + description: A JSON Schema definition for describing data structure. Defines + the minimum subset generally supported across LLM providers. Unknown keywords + are passed through for forward compatibility. type: object - required: - - type properties: type: description: The JSON type for this schema element. @@ -18017,9 +18148,25 @@ components: - number - integer - boolean + - 'null' + title: + description: Short human-readable label for this schema element. + type: string + description: + description: Human-readable description of this schema element. + type: string + default: + description: Default value when none is provided. + enum: + description: Allowed values for this schema element. + type: array + format: + description: Semantic format hint (e.g. date-time, date, email, uri, uuid). + Provider support varies. + type: string properties: description: Property definitions when type is 'object'. Each key maps to - a nested JsonSchemaDefinition. + a nested schema. type: object additionalProperties: $ref: '#/components/schemas/JsonSchemaDefinition' @@ -18033,14 +18180,14 @@ components: type: boolean default: false items: - description: Schema for array items when type is 'array'. + description: Schema for array elements when type is 'array'. $ref: '#/components/schemas/JsonSchemaDefinition' - enum: - description: Allowed values for this schema element. + anyOf: + description: Value must match at least one of the listed schemas. type: array - description: - description: Human-readable description of this schema element. - type: string + items: + $ref: '#/components/schemas/JsonSchemaDefinition' + additionalProperties: true JsonSchemaSpec: description: Specification wrapper for a named JSON schema. type: object @@ -19798,11 +19945,6 @@ components: - python default: python example: python - output_schema: - description: The schema that defines the expected output structure from - the function. - type: object - additionalProperties: true function_definition: $ref: '#/components/schemas/FunctionDefinition' required: @@ -19929,6 +20071,25 @@ components: - type x-vectaraParents: - Tool + ClientTool: + description: 'A tool whose execution is performed by the calling client. When + invoked, the platform emits a `tool_input` event with the tool call arguments. + The client submits the result as a `tool_output` input via `createAgentInput`. + + ' + allOf: + - $ref: '#/components/schemas/ToolBase' + - type: object + properties: + type: + description: This should always be `client`. + type: string + default: client + example: client + required: + - type + x-vectaraParents: + - Tool Tool: description: A tool that can be used by agents to perform specific actions or operations. @@ -19949,6 +20110,7 @@ components: image_read: '#/components/schemas/ImageReadTool' document_conversion: '#/components/schemas/DocumentConversionTool' get_document_text: '#/components/schemas/GetDocumentTextTool' + client: '#/components/schemas/ClientTool' oneOf: - $ref: '#/components/schemas/DynamicVectaraTool' - $ref: '#/components/schemas/McpTool' @@ -19963,6 +20125,7 @@ components: - $ref: '#/components/schemas/ImageReadTool' - $ref: '#/components/schemas/DocumentConversionTool' - $ref: '#/components/schemas/GetDocumentTextTool' + - $ref: '#/components/schemas/ClientTool' ListToolsResponse: description: Response containing a list of tools. type: object @@ -20089,20 +20252,92 @@ components: required: - type - name - - title - description - code x-vectaraParents: - CreateToolRequest + CreateClientToolRequest: + description: 'Request to create a new client tool. When invoked, the platform + emits a `tool_input` event; the client performs the work and submits a `tool_output` + input via `createAgentInput`. + + ' + type: object + properties: + type: + description: This should always be `client`. + type: string + default: client + example: client + name: + description: The unique name of the tool. + type: string + minLength: 1 + maxLength: 50 + pattern: ^[a-zA-Z0-9_-]+$ + example: collect_signature + title: + description: Human-readable title of the tool displayed in the UI. + type: string + minLength: 1 + maxLength: 128 + example: Collect Customer Signature + description: + description: A detailed description of what the tool does, when the agent + should invoke it, and what the expected output represents. + type: string + minLength: 1 + maxLength: 5000 + example: Prompts the user to e-sign a document. Returns the signed document + URL once the user completes signing. + input_schema: + description: 'JSON Schema describing the arguments the LLM should produce + when invoking this tool. These arguments are forwarded verbatim to the + client in the `tool_input` event. + + ' + allOf: + - $ref: '#/components/schemas/JsonSchemaDefinition' + example: + type: object + properties: + document_url: + type: string + description: URL of the document to be signed. + required: + - document_url + output_schema: + description: 'Optional JSON Schema describing the structure the client must + submit as the tool output. When set, submitted outputs are validated against + this schema before being returned to the agent. + + ' + allOf: + - $ref: '#/components/schemas/JsonSchemaDefinition' + example: + type: object + properties: + signed_document_url: + type: string + required: + - signed_document_url + required: + - type + - name + - description + x-vectaraParents: + - CreateToolRequest CreateToolRequest: - description: Request to create a tool. Currently supports lambda tools for user-defined - functions. + description: Request to create a tool. Supports lambda tools for user-defined + functions and client tools whose execution is performed by the calling client. discriminator: propertyName: type mapping: lambda: '#/components/schemas/CreateLambdaToolRequest' + client: '#/components/schemas/CreateClientToolRequest' oneOf: - $ref: '#/components/schemas/CreateLambdaToolRequest' + - $ref: '#/components/schemas/CreateClientToolRequest' TestLambdaToolRequest: description: 'Request to test a Lambda tool before creating it. This allows users to validate their code, schemas, and execution before committing to @@ -20344,17 +20579,60 @@ components: - type x-vectaraParents: - UpdateToolRequest + UpdateClientToolRequest: + description: Request to update an existing client tool. + type: object + properties: + type: + description: This should always be `client`. + type: string + default: client + example: client + enabled: + description: Whether the tool should be enabled or disabled. + type: boolean + example: true + title: + description: Updated human-readable title of the tool. + type: string + minLength: 1 + maxLength: 128 + example: Collect Customer Signature + description: + description: Updated description of what the tool does. + type: string + minLength: 1 + maxLength: 5000 + input_schema: + description: Updated JSON Schema for the arguments the LLM produces when + invoking this tool. + allOf: + - $ref: '#/components/schemas/JsonSchemaDefinition' + output_schema: + description: 'Updated JSON Schema for the structure the client must submit + as the tool output. Pass an empty object to clear the schema and accept + any output. + + ' + allOf: + - $ref: '#/components/schemas/JsonSchemaDefinition' + required: + - type + x-vectaraParents: + - UpdateToolRequest UpdateToolRequest: - description: Request to update a tool. Supports updating MCP and Python lambda - tools. + description: Request to update a tool. Supports updating MCP, Python lambda, + and client tools. discriminator: propertyName: type mapping: mcp: '#/components/schemas/UpdateMcpToolRequest' lambda: '#/components/schemas/UpdateLambdaToolRequest' + client: '#/components/schemas/UpdateClientToolRequest' oneOf: - $ref: '#/components/schemas/UpdateMcpToolRequest' - $ref: '#/components/schemas/UpdateLambdaToolRequest' + - $ref: '#/components/schemas/UpdateClientToolRequest' TestToolRequest: description: Request to test a Lambda tool with sample input. type: object @@ -21389,6 +21667,36 @@ components: - type x-vectaraParents: - AgentToolConfiguration + InlineClientToolConfiguration: + title: InlineClientToolConfiguration + description: 'A client tool configuration defined inline in the agent. When + invoked, the agent emits a `tool_input` event and waits for the calling client + to submit a matching tool output via `createAgentInput`. + + ' + allOf: + - $ref: '#/components/schemas/AgentToolConfigurationBase' + - type: object + properties: + type: + type: string + description: The type of tool configuration, which is always 'client' + for inline client tool configurations. + default: client + tool_id: + $ref: '#/components/schemas/ToolId' + argument_override: + description: Optional hardcoded arguments that will be merged into the + LLM-generated arguments before dispatch to the client. + type: object + additionalProperties: true + example: + channel: support + required: + - tool_id + - type + x-vectaraParents: + - AgentToolConfiguration SubAgentToolParameters: description: Configurable parameters for the sub-agent tool. If not overridden, they will be required by the agent to fill in. @@ -21747,6 +22055,7 @@ components: web_search: '#/components/schemas/InlineWebSearchToolConfiguration' web_get: '#/components/schemas/InlineWebGetToolConfiguration' lambda: '#/components/schemas/InlineLambdaToolConfiguration' + client: '#/components/schemas/InlineClientToolConfiguration' sub_agent: '#/components/schemas/InlineSubAgentToolConfiguration' artifact_create: '#/components/schemas/InlineArtifactCreateToolConfiguration' artifact_read: '#/components/schemas/InlineArtifactReadToolConfiguration' @@ -21761,6 +22070,7 @@ components: - $ref: '#/components/schemas/InlineWebSearchToolConfiguration' - $ref: '#/components/schemas/InlineWebGetToolConfiguration' - $ref: '#/components/schemas/InlineLambdaToolConfiguration' + - $ref: '#/components/schemas/InlineClientToolConfiguration' - $ref: '#/components/schemas/InlineSubAgentToolConfiguration' - $ref: '#/components/schemas/InlineArtifactCreateToolConfiguration' - $ref: '#/components/schemas/InlineArtifactReadToolConfiguration' @@ -23685,18 +23995,15 @@ components: example: query: weather in San Francisco argument_override_paths: - description: 'Top-level field paths in `tool_input` whose values were - filled by the tool configuration''s argument overrides at emission time, - not produced by the - - agent. On replay these paths are stripped from the rendered tool call - so the model sees only what it originally generated, regardless of how - the tool - - configuration''s overrides have changed since. Paths support dot-notation - (e.g. `config.auth.token`). - - ' + description: "Dot-notation leaf paths supplied by the tool configuration's\ + \ argument overrides rather than by the agent \u2014 for example `api_key`,\n\ + `config.auth.token`, or `items[0]`. These paths are frozen on the input\ + \ event so that the agent's view of its own past tool calls stays\n\ + stable when the tool configuration changes: overrides are excluded from\ + \ replayed calls regardless of how the override has evolved since.\n\ + Only the paths are frozen here; the resolved values at those paths are\ + \ not \u2014 they are recomputed against the live session at each launch\n\ + and recorded on the corresponding `ToolOutputEvent.resolved_argument_overrides`.\n" type: array items: type: string @@ -23734,6 +24041,20 @@ components: description: Name of the tool that was called. type: string example: web_search + resolved_argument_overrides: + description: "The values the tool configuration's argument overrides contributed\ + \ to this call, keyed by the paths in\n`ToolInputEvent.argument_override_paths`.\ + \ `$ref` overrides are resolved against the session \u2014 agent secrets,\n\ + session metadata, and prior tool outputs \u2014 with secret values masked\ + \ as `****`. Literal overrides appear as-is.\n\nOverlay these onto `ToolInputEvent.tool_input`\ + \ at the matching paths to see exactly what the tool received.\n\nAbsent\ + \ when the tool short-circuits before running (for example, malformed\ + \ arguments from the agent or an\nunresolved dependency).\n" + type: object + additionalProperties: true + example: + api_key: '****' + base_url: https://api.example.com tool_output: description: Output data from the tool. type: object @@ -23934,6 +24255,81 @@ components: x-vectaraParents: - AgentEvent - AgentStreamedResponse + ClientToolPendingCall: + title: ClientToolPendingCall + description: A single client tool call awaiting output, with its fully materialized + arguments. + type: object + properties: + event_id: + description: The `tool_input` event this call corresponds to. Submit the + matching `tool_output` with this `event_id`. + type: string + example: aev_3Kx9QpVn2mZr8YbLc5TdWe + tool_configuration_name: + description: The name of the tool configuration being invoked, as defined + in the agent's tool_configurations map. + type: string + example: notify_slack + tool_name: + description: Name of the tool being called. + type: string + example: notify_slack + arguments: + description: 'The fully materialized arguments for this call: the agent-supplied + arguments merged with the tool + + configuration''s argument overrides and literals, with `$ref`s resolved + against the session. Secret-derived + + values are delivered unmasked because the client needs them to execute + the tool. This is exactly what the + + client should execute the tool with. + + ' + type: object + additionalProperties: true + example: + channel: support + message: Ticket escalated + required: + - event_id + - tool_configuration_name + - tool_name + - arguments + ClientToolPendingEvent: + title: ClientToolPendingEvent + description: "Signals that the agent is waiting for the client to deliver outputs\ + \ for the listed client tool\ncalls before it continues. Not persisted to\ + \ session history. Resume by submitting a `tool_output`\ninput containing\ + \ one entry per `event_id` in `pending_calls`.\n\nOnly client tools awaiting\ + \ output are listed. Each call carries its fully materialized arguments \u2014\ + \nthe agent-supplied arguments already merged with the tool configuration's\ + \ argument overrides and\nliterals, with `$ref`s resolved against the session\ + \ \u2014 so the client can dispatch the call without\ncross-referencing the\ + \ corresponding `tool_input` event. Secret-derived values are delivered unmasked\n\ + because the client needs them to execute the tool.\n" + allOf: + - $ref: '#/components/schemas/AgentEventBase' + - type: object + properties: + type: + description: The type of event. + type: string + default: client_tool_pending + pending_calls: + description: The client tool calls awaiting output, one entry per outstanding + call. + type: array + items: + $ref: '#/components/schemas/ClientToolPendingCall' + required: + - type + - pending_calls + x-vectaraParents: + - AgentEvent + - AgentStreamedResponse ImageReadEvent: title: ImageReadEvent description: An event representing an image being loaded into the conversation @@ -24048,6 +24444,7 @@ components: context_limit_exceeded: '#/components/schemas/ContextLimitExceededEvent' step_transition_limit_exceeded: '#/components/schemas/StepTransitionLimitExceededEvent' session_interrupted: '#/components/schemas/SessionInterruptedEvent' + client_tool_pending: '#/components/schemas/ClientToolPendingEvent' image_read: '#/components/schemas/ImageReadEvent' step_transition: '#/components/schemas/StepTransitionEvent' compaction: '#/components/schemas/CompactionEvent' @@ -24063,6 +24460,7 @@ components: - $ref: '#/components/schemas/ContextLimitExceededEvent' - $ref: '#/components/schemas/StepTransitionLimitExceededEvent' - $ref: '#/components/schemas/SessionInterruptedEvent' + - $ref: '#/components/schemas/ClientToolPendingEvent' - $ref: '#/components/schemas/ImageReadEvent' - $ref: '#/components/schemas/StepTransitionEvent' - $ref: '#/components/schemas/CompactionEvent' @@ -24176,6 +24574,94 @@ components: - type x-vectaraParents: - CreateInputRequest + CreateToolOutputBase: + description: Base properties shared by client tool output submissions. + type: object + properties: + event_id: + description: The `tool_input` event this output responds to. + type: string + example: aev_3Kx9QpVn2mZr8YbLc5TdWe + required: + - event_id + CreateToolOutputSuccess: + description: A successful client tool output to be returned to the agent. + allOf: + - $ref: '#/components/schemas/CreateToolOutputBase' + - type: object + properties: + type: + description: Always `success`. Indicates the client tool call succeeded. + type: string + default: success + output: + description: The tool's result. Validated against the tool's `output_schema` + if one is defined. + type: object + additionalProperties: true + required: + - type + - output + x-vectaraParents: + - CreateToolOutputRequest + CreateToolOutputError: + description: An error reported by the client for a tool call. Surfaced to the + agent as a tool execution error. + allOf: + - $ref: '#/components/schemas/CreateToolOutputBase' + - type: object + properties: + type: + description: Always `error`. Indicates the client tool call failed. + type: string + default: error + error: + description: Error returned to the agent. May be a string message or a + structured object. + required: + - type + - error + x-vectaraParents: + - CreateToolOutputRequest + CreateToolOutputRequest: + description: Delivers the result of a client tool call identified by its `tool_input` + event ID. + x-vectara-base-schema: '#/CreateToolOutputBase' + discriminator: + propertyName: type + mapping: + success: '#/components/schemas/CreateToolOutputSuccess' + error: '#/components/schemas/CreateToolOutputError' + oneOf: + - $ref: '#/components/schemas/CreateToolOutputSuccess' + - $ref: '#/components/schemas/CreateToolOutputError' + ClientToolOutputRequest: + description: 'Delivers outputs for `tool_input` events emitted by a prior client + tool invocation. Submit one + + entry per pending event ID listed in the `client_tool_pending` event. + + ' + allOf: + - $ref: '#/components/schemas/CreateInputRequestBase' + - type: object + properties: + type: + description: Always `tool_output`. Identifies this input as a client tool + output submission. + type: string + default: tool_output + tool_outputs: + description: The tool outputs to deliver, one per pending client tool + call. + type: array + items: + $ref: '#/components/schemas/CreateToolOutputRequest' + required: + - type + - tool_outputs + x-vectaraParents: + - CreateInputRequest CreateInputRequest: description: A request to create input for an agent session. x-vectara-base-schema: '#/CreateInputRequestBase' @@ -24189,10 +24675,74 @@ components: input_message: '#/components/schemas/CreateInputMessageRequest' interrupt: '#/components/schemas/CreateInterruptRequest' compact: '#/components/schemas/CreateCompactRequest' + tool_output: '#/components/schemas/ClientToolOutputRequest' oneOf: - $ref: '#/components/schemas/CreateInputMessageRequest' - $ref: '#/components/schemas/CreateInterruptRequest' - $ref: '#/components/schemas/CreateCompactRequest' + - $ref: '#/components/schemas/ClientToolOutputRequest' + MultipartInputEvent: + description: Input event with file uploads and optional message parts. Sent + as multipart form data. + type: object + properties: + message: + description: 'Deprecated: use messages instead. + + Plain text input message to accompany the file upload. + + If both message and messages are provided, messages takes precedence and + message is ignored. + + ' + deprecated: true + type: string + example: I need help with my widget installation + messages: + description: 'List of inputs that make up this event. Each entry is an AgentInput + selected by "type: text" for plain text content (default), or "skill" + to invoke a skill by name. Sent as a JSON-encoded string in the multipart + form. If omitted, falls back to the deprecated "message" field as a single + text input. + + ' + type: array + items: + $ref: '#/components/schemas/AgentInput' + example: + - type: text + content: Review this file + - type: skill + skill_name: code_review + files: + description: 'Files to upload to the agent session. Any file type is accepted. + + What the agent can do with the file depends on the tools available to + it. + + ' + type: array + items: + type: string + format: binary + stream_response: + description: Indicates whether the response should be streamed or not. + type: boolean + default: false + since: + description: 'Event ID to return all events created after queueing the new + input. When provided and the session is currently running, the response + will include all events created after this event ID, and the new input + will be processed according to the behavior field. Use the special value + "start" to receive all events from the beginning of the session, including + the input message itself. + + ' + type: string + pattern: ^(start|aev_[0-9a-zA-Z_-]+)$ + example: start + behavior: + $ref: '#/components/schemas/InputBehavior' AgentResponse: description: Response containing the complete list of events generated by an agent. @@ -24459,6 +25009,7 @@ components: context_limit_exceeded: '#/components/schemas/ContextLimitExceededEvent' step_transition_limit_exceeded: '#/components/schemas/StepTransitionLimitExceededEvent' session_interrupted: '#/components/schemas/SessionInterruptedEvent' + client_tool_pending: '#/components/schemas/ClientToolPendingEvent' image_read: '#/components/schemas/ImageReadEvent' step_transition: '#/components/schemas/StepTransitionEvent' context_consumed: '#/components/schemas/ContextConsumedEvent' @@ -24486,6 +25037,7 @@ components: - $ref: '#/components/schemas/ContextLimitExceededEvent' - $ref: '#/components/schemas/StepTransitionLimitExceededEvent' - $ref: '#/components/schemas/SessionInterruptedEvent' + - $ref: '#/components/schemas/ClientToolPendingEvent' - $ref: '#/components/schemas/ImageReadEvent' - $ref: '#/components/schemas/StepTransitionEvent' - $ref: '#/components/schemas/ContextConsumedEvent' @@ -24493,6 +25045,20 @@ components: - $ref: '#/components/schemas/CompactionEvent' - $ref: '#/components/schemas/StreamError' - $ref: '#/components/schemas/StreamResponseEnd' + OutstandingClientToolCallsResponse: + description: The client tool calls a session is currently waiting on the caller + to fulfill, re-materialized from persisted history. Empty when the session + is not parked on a client tool. + type: object + properties: + client_tool_calls: + description: The outstanding client tool calls, one entry per `tool_input` + event still awaiting a `tool_output`. + type: array + items: + $ref: '#/components/schemas/ClientToolPendingCall' + required: + - client_tool_calls SessionArtifact: title: SessionArtifact description: 'Complete artifact information including metadata and optional