From 32fd382471b3913d6d1f8580c2e589c8c4beba53 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Dec 2024 00:56:43 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...x.Models.UltravoxV1BaseToolDefinition.g.cs | 19 +++++++++++++++++++ .../Ultravox.Models.UltravoxV1CallTool.g.cs | 19 +++++++++++++++++++ src/libs/Ultravox/openapi.yaml | 8 ++++++++ 3 files changed, 46 insertions(+) diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1BaseToolDefinition.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1BaseToolDefinition.g.cs index 3ce5b0f..2c2e659 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1BaseToolDefinition.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1BaseToolDefinition.g.cs @@ -45,6 +45,16 @@ public sealed partial class UltravoxV1BaseToolDefinition [global::System.Text.Json.Serialization.JsonPropertyName("requirements")] public global::Ultravox.UltravoxV1ToolRequirements? Requirements { get; set; } + /// + /// The maximum amount of time the tool is allowed for execution. The conversation is frozen
+ /// while tools run, so prefer sticking to the default unless you're comfortable with that
+ /// 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.
+ /// Note: For read APIs, 0s actually means unset (i.e. use the default). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] + public string? Timeout { get; set; } + /// /// Details for an HTTP tool. /// @@ -85,6 +95,13 @@ public sealed partial class UltravoxV1BaseToolDefinition /// /// Requirements that must be fulfilled when creating a call for the tool to be used. /// + /// + /// The maximum amount of time the tool is allowed for execution. The conversation is frozen
+ /// while tools run, so prefer sticking to the default unless you're comfortable with that
+ /// 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.
+ /// Note: For read APIs, 0s actually means unset (i.e. use the default). + /// /// /// Details for an HTTP tool. /// @@ -100,6 +117,7 @@ public UltravoxV1BaseToolDefinition( global::System.Collections.Generic.IList? staticParameters, global::System.Collections.Generic.IList? automaticParameters, global::Ultravox.UltravoxV1ToolRequirements? requirements, + string? timeout, global::Ultravox.UltravoxV1BaseHttpToolDetails? http, object? client) { @@ -109,6 +127,7 @@ public UltravoxV1BaseToolDefinition( this.StaticParameters = staticParameters; this.AutomaticParameters = automaticParameters; this.Requirements = requirements; + this.Timeout = timeout; 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 9e033d2..4498d43 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1CallTool.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1CallTool.g.cs @@ -32,6 +32,16 @@ public sealed partial class UltravoxV1CallTool [global::System.Text.Json.Serialization.JsonPropertyName("automaticParameters")] public global::System.Collections.Generic.IList? AutomaticParameters { get; set; } + /// + /// The maximum amount of time the tool is allowed for execution. The conversation is frozen
+ /// while tools run, so prefer sticking to the default unless you're comfortable with that
+ /// 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.
+ /// Note: For read APIs, 0s actually means unset (i.e. use the default). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] + public string? Timeout { get; set; } + /// /// Details for an HTTP tool. /// @@ -66,6 +76,13 @@ public sealed partial class UltravoxV1CallTool /// /// Parameters automatically set by the system. /// + /// + /// The maximum amount of time the tool is allowed for execution. The conversation is frozen
+ /// while tools run, so prefer sticking to the default unless you're comfortable with that
+ /// 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.
+ /// Note: For read APIs, 0s actually means unset (i.e. use the default). + /// /// /// Details for an HTTP tool. /// @@ -79,6 +96,7 @@ public UltravoxV1CallTool( global::System.Collections.Generic.IList? dynamicParameters, global::System.Collections.Generic.IList? staticParameters, global::System.Collections.Generic.IList? automaticParameters, + string? timeout, global::Ultravox.UltravoxV1HttpCallToolDetails? http, object? client) { @@ -86,6 +104,7 @@ public UltravoxV1CallTool( this.DynamicParameters = dynamicParameters; this.StaticParameters = staticParameters; this.AutomaticParameters = automaticParameters; + this.Timeout = timeout; this.Http = http; this.Client = client; } diff --git a/src/libs/Ultravox/openapi.yaml b/src/libs/Ultravox/openapi.yaml index 74d6a7b..0ee3c20 100644 --- a/src/libs/Ultravox/openapi.yaml +++ b/src/libs/Ultravox/openapi.yaml @@ -1557,6 +1557,10 @@ components: allOf: - $ref: '#/components/schemas/ultravox.v1.ToolRequirements' description: Requirements that must be fulfilled when creating a call for the tool to be used. + timeout: + 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.\n Note: For read APIs, 0s actually means unset (i.e. use the default)." http: allOf: - $ref: '#/components/schemas/ultravox.v1.BaseHttpToolDetails' @@ -1639,6 +1643,10 @@ components: items: $ref: '#/components/schemas/ultravox.v1.AutomaticParameter' description: Parameters automatically set by the system. + timeout: + 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.\n Note: For read APIs, 0s actually means unset (i.e. use the default)." http: allOf: - $ref: '#/components/schemas/ultravox.v1.HttpCallToolDetails'