From 477b9c0d95794aac31c7face16ef595451db5405 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 20 Dec 2024 00:52:27 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ravox.Models.UltravoxV1BaseToolDefinition.g.cs | 15 +++++++++++++++ .../Ultravox.Models.UltravoxV1CallTool.g.cs | 15 +++++++++++++++ src/libs/Ultravox/openapi.yaml | 6 ++++++ 3 files changed, 36 insertions(+) diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1BaseToolDefinition.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1BaseToolDefinition.g.cs index c137449..ac81ec9 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1BaseToolDefinition.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1BaseToolDefinition.g.cs @@ -54,6 +54,14 @@ public sealed partial class UltravoxV1BaseToolDefinition [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] public string? Timeout { get; set; } + /// + /// The tool is guaranteed to be non-mutating, repeatable, and free of side-effects. Such tools
+ /// can safely be executed speculatively, reducing their effective latency. However, the fact they
+ /// were called may not be reflected in the call history if their result ends up unused. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("precomputable")] + public bool? Precomputable { get; set; } + /// /// Details for an HTTP tool. /// @@ -100,6 +108,11 @@ public sealed partial class UltravoxV1BaseToolDefinition /// consequence. If your tool is too slow for the default and can't be made faster, still try to
/// keep this timeout as low as possible. /// + /// + /// The tool is guaranteed to be non-mutating, repeatable, and free of side-effects. Such tools
+ /// can safely be executed speculatively, reducing their effective latency. However, the fact they
+ /// were called may not be reflected in the call history if their result ends up unused. + /// /// /// Details for an HTTP tool. /// @@ -116,6 +129,7 @@ public UltravoxV1BaseToolDefinition( global::System.Collections.Generic.IList? automaticParameters, global::Ultravox.UltravoxV1ToolRequirements? requirements, string? timeout, + bool? precomputable, global::Ultravox.UltravoxV1BaseHttpToolDetails? http, object? client) { @@ -126,6 +140,7 @@ public UltravoxV1BaseToolDefinition( this.AutomaticParameters = automaticParameters; this.Requirements = requirements; this.Timeout = timeout; + this.Precomputable = precomputable; this.Http = http; this.Client = client; } diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1CallTool.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1CallTool.g.cs index 6b265a9..fa155a9 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1CallTool.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1CallTool.g.cs @@ -41,6 +41,14 @@ public sealed partial class UltravoxV1CallTool [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] public string? Timeout { get; set; } + /// + /// The tool is guaranteed to be non-mutating, repeatable, and free of side-effects. Such tools
+ /// can safely be executed speculatively, reducing their effective latency. However, the fact they
+ /// were called may not be reflected in the call history if their result ends up unused. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("precomputable")] + public bool? Precomputable { get; set; } + /// /// Details for an HTTP tool. /// @@ -81,6 +89,11 @@ public sealed partial class UltravoxV1CallTool /// consequence. If your tool is too slow for the default and can't be made faster, still try to
/// keep this timeout as low as possible. /// + /// + /// The tool is guaranteed to be non-mutating, repeatable, and free of side-effects. Such tools
+ /// can safely be executed speculatively, reducing their effective latency. However, the fact they
+ /// were called may not be reflected in the call history if their result ends up unused. + /// /// /// Details for an HTTP tool. /// @@ -95,6 +108,7 @@ public UltravoxV1CallTool( global::System.Collections.Generic.IList? staticParameters, global::System.Collections.Generic.IList? automaticParameters, string? timeout, + bool? precomputable, global::Ultravox.UltravoxV1HttpCallToolDetails? http, object? client) { @@ -103,6 +117,7 @@ public UltravoxV1CallTool( this.StaticParameters = staticParameters; this.AutomaticParameters = automaticParameters; this.Timeout = timeout; + this.Precomputable = precomputable; this.Http = http; this.Client = client; } diff --git a/src/libs/Ultravox/openapi.yaml b/src/libs/Ultravox/openapi.yaml index 4c5fb36..ebc9bdd 100644 --- a/src/libs/Ultravox/openapi.yaml +++ b/src/libs/Ultravox/openapi.yaml @@ -1683,6 +1683,9 @@ components: pattern: '^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$' type: string description: "The maximum amount of time the tool is allowed for execution. The conversation is frozen\n while tools run, so prefer sticking to the default unless you're comfortable with that\n consequence. If your tool is too slow for the default and can't be made faster, still try to\n keep this timeout as low as possible." + precomputable: + type: boolean + description: "The tool is guaranteed to be non-mutating, repeatable, and free of side-effects. Such tools\n can safely be executed speculatively, reducing their effective latency. However, the fact they\n were called may not be reflected in the call history if their result ends up unused." http: allOf: - $ref: '#/components/schemas/ultravox.v1.BaseHttpToolDetails' @@ -1769,6 +1772,9 @@ components: pattern: '^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$' type: string description: "The maximum amount of time the tool is allowed for execution. The conversation is frozen\n while tools run, so prefer sticking to the default unless you're comfortable with that\n consequence. If your tool is too slow for the default and can't be made faster, still try to\n keep this timeout as low as possible." + precomputable: + type: boolean + description: "The tool is guaranteed to be non-mutating, repeatable, and free of side-effects. Such tools\n can safely be executed speculatively, reducing their effective latency. However, the fact they\n were called may not be reflected in the call history if their result ends up unused." http: allOf: - $ref: '#/components/schemas/ultravox.v1.HttpCallToolDetails'