diff --git a/src/libs/HumeAI/Generated/HumeAI.AutoSDKHttpResponse.g.cs b/src/libs/HumeAI/Generated/HumeAI.AutoSDKHttpResponse.g.cs
new file mode 100644
index 0000000..bf724be
--- /dev/null
+++ b/src/libs/HumeAI/Generated/HumeAI.AutoSDKHttpResponse.g.cs
@@ -0,0 +1,121 @@
+
+#nullable enable
+
+namespace HumeAI
+{
+ ///
+ /// Represents a successful HTTP response with status code and headers.
+ ///
+ public partial class AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers)
+ : this(
+ statusCode: statusCode,
+ headers: headers,
+ requestUri: null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ global::System.Uri? requestUri)
+ {
+ StatusCode = statusCode;
+ Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers));
+ RequestUri = requestUri;
+ }
+
+ ///
+ /// Gets the HTTP status code.
+ ///
+ public global::System.Net.HttpStatusCode StatusCode { get; }
+ ///
+ /// Gets the response headers.
+ ///
+ public global::System.Collections.Generic.Dictionary> Headers { get; }
+ ///
+ /// Gets the final request URI associated with the response.
+ ///
+ public global::System.Uri? RequestUri { get; }
+
+ internal static global::System.Collections.Generic.Dictionary> CreateHeaders(
+ global::System.Net.Http.HttpResponseMessage response)
+ {
+ response = response ?? throw new global::System.ArgumentNullException(nameof(response));
+
+ var headers = global::System.Linq.Enumerable.ToDictionary(
+ response.Headers,
+ static header => header.Key,
+ static header => (global::System.Collections.Generic.IEnumerable)global::System.Linq.Enumerable.ToArray(header.Value),
+ global::System.StringComparer.OrdinalIgnoreCase);
+
+ if (response.Content?.Headers == null)
+ {
+ return headers;
+ }
+
+ foreach (var header in response.Content.Headers)
+ {
+ if (headers.TryGetValue(header.Key, out var existingValues))
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(
+ global::System.Linq.Enumerable.Concat(existingValues, header.Value));
+ }
+ else
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(header.Value);
+ }
+ }
+
+ return headers;
+ }
+ }
+
+ ///
+ /// Represents a successful HTTP response with status code, headers, and body.
+ ///
+ public partial class AutoSDKHttpResponse : AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ T body)
+ : this(
+ statusCode: statusCode,
+ headers: headers,
+ requestUri: null,
+ body: body)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ global::System.Uri? requestUri,
+ T body)
+ : base(statusCode, headers, requestUri)
+ {
+ Body = body;
+ }
+
+ ///
+ /// Gets the response body.
+ ///
+ public T Body { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobArtifacts.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobArtifacts.g.cs
index 385c6e3..d74074a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobArtifacts.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobArtifacts.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetBatchJobArtifactsAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get batch job artifacts
+ ///
+ ///
+ /// 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 GetBatchJobArtifactsAsStreamAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/batch/jobs/{id}/artifacts",
baseUri: HttpClient.BaseAddress);
@@ -154,16 +175,23 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
__response = await HttpClient.SendAsync(
request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,331 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ try
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessGetBatchJobArtifactsResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "GetBatchJobArtifacts",
+ methodName: "GetBatchJobArtifactsAsync",
+ pathTemplate: "$\"/v0/batch/jobs/{id}/artifacts\"",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "GetBatchJobArtifacts",
+ methodName: "GetBatchJobArtifactsAsync",
+ pathTemplate: "$\"/v0/batch/jobs/{id}/artifacts\"",
+ 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);
+ }
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ return new global::HumeAI.ResponseStream(__response, __content);
+ }
+ 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 new global::HumeAI.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ }
+ catch
+ {
+ __response.Dispose();
+ throw;
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Get batch job artifacts
+ ///
+ ///
+ /// 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> GetBatchJobArtifactsAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareGetBatchJobArtifactsArguments(
+ httpClient: HttpClient,
+ id: ref id);
+
+
+ var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetBatchJobArtifactsSecurityRequirements,
+ operationName: "GetBatchJobArtifactsAsync");
+
+ using var __timeoutCancellationTokenSource = global::HumeAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::HumeAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::HumeAI.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::HumeAI.PathBuilder(
+ path: $"/v0/batch/jobs/{id}/artifacts",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::HumeAI.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);
+ }
+ }
+ global::HumeAI.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareGetBatchJobArtifactsRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ id: id!);
+
+ 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::HumeAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "GetBatchJobArtifacts",
+ methodName: "GetBatchJobArtifactsAsync",
+ pathTemplate: "$\"/v0/batch/jobs/{id}/artifacts\"",
+ 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 HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
clientOptions: Options,
requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "GetBatchJobArtifacts",
+ methodName: "GetBatchJobArtifactsAsync",
+ pathTemplate: "$\"/v0/batch/jobs/{id}/artifacts\"",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "GetBatchJobArtifacts",
+ methodName: "GetBatchJobArtifactsAsync",
+ pathTemplate: "$\"/v0/batch/jobs/{id}/artifacts\"",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +614,8 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +636,8 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -303,7 +658,11 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -330,7 +689,11 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobDetails.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobDetails.g.cs
index 3bab2a3..1d5bdc6 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobDetails.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobDetails.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetBatchJobDetailsResponseContent(
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetBatchJobDetailsAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get batch job details
+ ///
+ ///
+ /// 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> GetBatchJobDetailsAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetBatchJobDetailsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/batch/jobs/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetBatchJobDetailsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetBatchJobDetailsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetBatchJobDetailsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetBatchJobDetailsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetBatchJobDetailsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetBatchJobDetailsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetBatchJobDetailsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetBatchJobDetailsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessGetBatchJobDetailsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.InferenceJob.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.InferenceJob.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessGetBatchJobDetailsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.InferenceJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.InferenceJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobPredictions.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobPredictions.g.cs
index 66063ae..9a2d12f 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobPredictions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.GetBatchJobPredictions.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetBatchJobPredictionsAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get batch job predictions
+ ///
+ ///
+ /// 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>> GetBatchJobPredictionsAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/batch/jobs/{id}/predictions",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
#endif
).ConfigureAwait(false);
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs
index 05ff479..32ba327 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs
@@ -73,6 +73,42 @@ partial void ProcessListBatchJobsResponseContent(
global::HumeAI.ListBatchJobsDirection? direction = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListBatchJobsAsResponseAsync(
+ limit: limit,
+ status: status,
+ when: when,
+ timestampMs: timestampMs,
+ sortBy: sortBy,
+ direction: direction,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List batch jobs
+ /// List all batch inference jobs
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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>> ListBatchJobsAsResponseAsync(
+ int? limit = default,
+ global::HumeAI.ListBatchJobsStatus? status = default,
+ long? when = default,
+ long? timestampMs = default,
+ global::HumeAI.ListBatchJobsSortBy? sortBy = default,
+ global::HumeAI.ListBatchJobsDirection? direction = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -107,16 +143,17 @@ partial void ProcessListBatchJobsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/batch/jobs",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("status", status?.ToValueString())
.AddOptionalParameter("when", when?.ToString())
.AddOptionalParameter("timestamp_ms", timestampMs?.ToString())
.AddOptionalParameter("sort_by", sortBy?.ToValueString())
- .AddOptionalParameter("direction", direction?.ToValueString())
+ .AddOptionalParameter("direction", direction?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -193,6 +230,8 @@ partial void ProcessListBatchJobsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -203,6 +242,11 @@ partial void ProcessListBatchJobsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -220,6 +264,8 @@ partial void ProcessListBatchJobsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -229,8 +275,7 @@ partial void ProcessListBatchJobsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -239,6 +284,11 @@ partial void ProcessListBatchJobsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -255,14 +305,15 @@ partial void ProcessListBatchJobsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -302,6 +353,8 @@ partial void ProcessListBatchJobsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -322,6 +375,8 @@ partial void ProcessListBatchJobsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -346,9 +401,13 @@ partial void ProcessListBatchJobsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -376,9 +435,13 @@ partial void ProcessListBatchJobsResponseContent(
#endif
).ConfigureAwait(false);
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.StartBatchInferenceJob.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.StartBatchInferenceJob.g.cs
index 2fafb74..ada5b41 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.StartBatchInferenceJob.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.StartBatchInferenceJob.g.cs
@@ -51,6 +51,29 @@ partial void ProcessStartBatchInferenceJobResponseContent(
///
public async global::System.Threading.Tasks.Task StartBatchInferenceJobAsync(
+ global::HumeAI.InferenceBaseRequest request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await StartBatchInferenceJobAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Start a batch inference job
+ /// Submit media URLs or text for emotion analysis
+ ///
+ ///
+ /// 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> StartBatchInferenceJobAsResponseAsync(
+
global::HumeAI.InferenceBaseRequest request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -85,6 +108,7 @@ partial void ProcessStartBatchInferenceJobResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/batch/jobs",
baseUri: HttpClient.BaseAddress);
@@ -164,6 +188,8 @@ partial void ProcessStartBatchInferenceJobResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -174,6 +200,11 @@ partial void ProcessStartBatchInferenceJobResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -191,6 +222,8 @@ partial void ProcessStartBatchInferenceJobResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -200,8 +233,7 @@ partial void ProcessStartBatchInferenceJobResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -210,6 +242,11 @@ partial void ProcessStartBatchInferenceJobResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -226,14 +263,15 @@ partial void ProcessStartBatchInferenceJobResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -273,6 +311,8 @@ partial void ProcessStartBatchInferenceJobResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -293,6 +333,8 @@ partial void ProcessStartBatchInferenceJobResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -317,9 +359,13 @@ partial void ProcessStartBatchInferenceJobResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.JobId.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.JobId.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -347,9 +393,13 @@ partial void ProcessStartBatchInferenceJobResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.JobId.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.JobId.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.BatchClient.g.cs b/src/libs/HumeAI/Generated/HumeAI.BatchClient.g.cs
index 5d6b6ca..4b46c5e 100644
--- a/src/libs/HumeAI/Generated/HumeAI.BatchClient.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.BatchClient.g.cs
@@ -72,10 +72,10 @@ public BatchClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public BatchClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::HumeAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::HumeAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroup.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroup.g.cs
index 0e09579..7be40e5 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroup.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroup.g.cs
@@ -64,6 +64,35 @@ partial void ProcessGetChatGroupResponseContent(
bool? ascendingOrder = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetChatGroupAsResponseAsync(
+ id: id,
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ ascendingOrder: ascendingOrder,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get a chat group
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> GetChatGroupAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,13 +125,14 @@ partial void ProcessGetChatGroupResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/chat_groups/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
+ .AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -177,6 +207,8 @@ partial void ProcessGetChatGroupResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -187,6 +219,11 @@ partial void ProcessGetChatGroupResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -204,6 +241,8 @@ partial void ProcessGetChatGroupResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -213,8 +252,7 @@ partial void ProcessGetChatGroupResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -223,6 +261,11 @@ partial void ProcessGetChatGroupResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -239,14 +282,15 @@ partial void ProcessGetChatGroupResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -286,6 +330,8 @@ partial void ProcessGetChatGroupResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -306,6 +352,8 @@ partial void ProcessGetChatGroupResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -330,9 +378,13 @@ partial void ProcessGetChatGroupResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnChatGroupPagedChats.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnChatGroupPagedChats.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -360,9 +412,13 @@ partial void ProcessGetChatGroupResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnChatGroupPagedChats.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnChatGroupPagedChats.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroupAudio.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroupAudio.g.cs
index c4563ac..94428bd 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroupAudio.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.GetChatGroupAudio.g.cs
@@ -64,6 +64,35 @@ partial void ProcessGetChatGroupAudioResponseContent(
bool? ascendingOrder = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetChatGroupAudioAsResponseAsync(
+ id: id,
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ ascendingOrder: ascendingOrder,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get chat group audio
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> GetChatGroupAudioAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,13 +125,14 @@ partial void ProcessGetChatGroupAudioResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/chat_groups/{id}/audio",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
+ .AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -177,6 +207,8 @@ partial void ProcessGetChatGroupAudioResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -187,6 +219,11 @@ partial void ProcessGetChatGroupAudioResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -204,6 +241,8 @@ partial void ProcessGetChatGroupAudioResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -213,8 +252,7 @@ partial void ProcessGetChatGroupAudioResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -223,6 +261,11 @@ partial void ProcessGetChatGroupAudioResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -239,14 +282,15 @@ partial void ProcessGetChatGroupAudioResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -286,6 +330,8 @@ partial void ProcessGetChatGroupAudioResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -306,6 +352,8 @@ partial void ProcessGetChatGroupAudioResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -330,9 +378,13 @@ partial void ProcessGetChatGroupAudioResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnChatGroupPagedAudioReconstructions.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnChatGroupPagedAudioReconstructions.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -360,9 +412,13 @@ partial void ProcessGetChatGroupAudioResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnChatGroupPagedAudioReconstructions.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnChatGroupPagedAudioReconstructions.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroupEvents.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroupEvents.g.cs
index 4dd2c0c..7beb198 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroupEvents.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroupEvents.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListChatGroupEventsResponseContent(
bool? ascendingOrder = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListChatGroupEventsAsResponseAsync(
+ id: id,
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ ascendingOrder: ascendingOrder,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List chat group events
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListChatGroupEventsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,13 +125,14 @@ partial void ProcessListChatGroupEventsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/chat_groups/{id}/events",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
+ .AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -177,6 +207,8 @@ partial void ProcessListChatGroupEventsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -187,6 +219,11 @@ partial void ProcessListChatGroupEventsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -204,6 +241,8 @@ partial void ProcessListChatGroupEventsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -213,8 +252,7 @@ partial void ProcessListChatGroupEventsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -223,6 +261,11 @@ partial void ProcessListChatGroupEventsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -239,14 +282,15 @@ partial void ProcessListChatGroupEventsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -286,6 +330,8 @@ partial void ProcessListChatGroupEventsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -306,6 +352,8 @@ partial void ProcessListChatGroupEventsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -330,9 +378,13 @@ partial void ProcessListChatGroupEventsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnChatGroupPagedEvents.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnChatGroupPagedEvents.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -360,9 +412,13 @@ partial void ProcessListChatGroupEventsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnChatGroupPagedEvents.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnChatGroupPagedEvents.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroups.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroups.g.cs
index c78c8f6..8b9f2e6 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroups.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.ListChatGroups.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListChatGroupsResponseContent(
string? configId = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListChatGroupsAsResponseAsync(
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ ascendingOrder: ascendingOrder,
+ configId: configId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List chat groups
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListChatGroupsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ string? configId = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,14 +125,15 @@ partial void ProcessListChatGroupsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/evi/chat_groups",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
.AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
- .AddOptionalParameter("config_id", configId)
+ .AddOptionalParameter("config_id", configId)
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -178,6 +208,8 @@ partial void ProcessListChatGroupsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -188,6 +220,11 @@ partial void ProcessListChatGroupsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -205,6 +242,8 @@ partial void ProcessListChatGroupsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -214,8 +253,7 @@ partial void ProcessListChatGroupsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -224,6 +262,11 @@ partial void ProcessListChatGroupsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -240,14 +283,15 @@ partial void ProcessListChatGroupsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -287,6 +331,8 @@ partial void ProcessListChatGroupsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -307,6 +353,8 @@ partial void ProcessListChatGroupsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -331,9 +379,13 @@ partial void ProcessListChatGroupsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPagedChatGroups.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPagedChatGroups.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -361,9 +413,13 @@ partial void ProcessListChatGroupsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPagedChatGroups.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPagedChatGroups.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.g.cs
index 41b3388..6ca0cd9 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatGroupsClient.g.cs
@@ -72,10 +72,10 @@ public ChatGroupsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public ChatGroupsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::HumeAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::HumeAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.GetChatAudio.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.GetChatAudio.g.cs
index 068316a..a20c42a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.GetChatAudio.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.GetChatAudio.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetChatAudioResponseContent(
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetChatAudioAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get chat audio
+ ///
+ ///
+ /// 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> GetChatAudioAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetChatAudioResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/chats/{id}/audio",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetChatAudioResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetChatAudioResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetChatAudioResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetChatAudioResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetChatAudioResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetChatAudioResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetChatAudioResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetChatAudioResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessGetChatAudioResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnChatAudioReconstruction.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnChatAudioReconstruction.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessGetChatAudioResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnChatAudioReconstruction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnChatAudioReconstruction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChatEvents.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChatEvents.g.cs
index 3c304df..bfd8880 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChatEvents.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChatEvents.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListChatEventsResponseContent(
bool? ascendingOrder = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListChatEventsAsResponseAsync(
+ id: id,
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ ascendingOrder: ascendingOrder,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List chat events
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListChatEventsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,13 +125,14 @@ partial void ProcessListChatEventsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/chats/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
+ .AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -177,6 +207,8 @@ partial void ProcessListChatEventsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -187,6 +219,11 @@ partial void ProcessListChatEventsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -204,6 +241,8 @@ partial void ProcessListChatEventsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -213,8 +252,7 @@ partial void ProcessListChatEventsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -223,6 +261,11 @@ partial void ProcessListChatEventsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -239,14 +282,15 @@ partial void ProcessListChatEventsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -286,6 +330,8 @@ partial void ProcessListChatEventsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -306,6 +352,8 @@ partial void ProcessListChatEventsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -330,9 +378,13 @@ partial void ProcessListChatEventsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnChatPagedEvents.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnChatPagedEvents.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -360,9 +412,13 @@ partial void ProcessListChatEventsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnChatPagedEvents.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnChatPagedEvents.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChats.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChats.g.cs
index a1b0b10..87f2077 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChats.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.ListChats.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListChatsResponseContent(
string? configId = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListChatsAsResponseAsync(
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ ascendingOrder: ascendingOrder,
+ configId: configId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List EVI chats
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListChatsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ string? configId = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,14 +125,15 @@ partial void ProcessListChatsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/evi/chats",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
.AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
- .AddOptionalParameter("config_id", configId)
+ .AddOptionalParameter("config_id", configId)
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -178,6 +208,8 @@ partial void ProcessListChatsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -188,6 +220,11 @@ partial void ProcessListChatsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -205,6 +242,8 @@ partial void ProcessListChatsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -214,8 +253,7 @@ partial void ProcessListChatsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -224,6 +262,11 @@ partial void ProcessListChatsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -240,14 +283,15 @@ partial void ProcessListChatsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -287,6 +331,8 @@ partial void ProcessListChatsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -307,6 +353,8 @@ partial void ProcessListChatsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -331,9 +379,13 @@ partial void ProcessListChatsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPagedChats.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPagedChats.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -361,9 +413,13 @@ partial void ProcessListChatsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPagedChats.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPagedChats.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.g.cs b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.g.cs
index 4b2363a..31d2bde 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ChatsClient.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ChatsClient.g.cs
@@ -72,10 +72,10 @@ public ChatsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public ChatsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::HumeAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::HumeAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfig.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfig.g.cs
index 36ac66a..6fdb81f 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfig.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfig.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateConfigResponseContent(
///
public async global::System.Threading.Tasks.Task CreateConfigAsync(
+ global::HumeAI.PostedConfig request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateConfigAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create an EVI config
+ ///
+ ///
+ /// 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> CreateConfigAsResponseAsync(
+
global::HumeAI.PostedConfig request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateConfigResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/evi/configs",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateConfigResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateConfigResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateConfigResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateConfigResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateConfigResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateConfigResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateConfigResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateConfigResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessCreateConfigResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnConfig.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnConfig.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessCreateConfigResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfigVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfigVersion.g.cs
index 071e606..f3bc431 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfigVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.CreateConfigVersion.g.cs
@@ -54,6 +54,31 @@ partial void ProcessCreateConfigVersionResponseContent(
public async global::System.Threading.Tasks.Task CreateConfigVersionAsync(
string id,
+ global::HumeAI.PostedConfigVersion request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateConfigVersionAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a config version
+ ///
+ ///
+ ///
+ /// 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> CreateConfigVersionAsResponseAsync(
+ string id,
+
global::HumeAI.PostedConfigVersion request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessCreateConfigVersionResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/configs/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessCreateConfigVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessCreateConfigVersionResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessCreateConfigVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -205,8 +240,7 @@ partial void ProcessCreateConfigVersionResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessCreateConfigVersionResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessCreateConfigVersionResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessCreateConfigVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessCreateConfigVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessCreateConfigVersionResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnConfig.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnConfig.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessCreateConfigVersionResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfig.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfig.g.cs
index 517f88d..de951d1 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfig.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfig.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteConfigResponse(
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteConfigAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete an EVI config
+ ///
+ ///
+ /// 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 DeleteConfigAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteConfigResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/configs/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteConfigResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteConfigResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteConfigResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteConfigResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteConfigResponse(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteConfigResponse(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteConfigResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteConfigResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteConfigResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteConfigResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfigVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfigVersion.g.cs
index 1c86c03..3cfcafa 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfigVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.DeleteConfigVersion.g.cs
@@ -51,6 +51,27 @@ partial void ProcessDeleteConfigVersionResponse(
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteConfigVersionAsResponseAsync(
+ id: id,
+ version: version,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a config version
+ ///
+ ///
+ ///
+ /// 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 DeleteConfigVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +102,7 @@ partial void ProcessDeleteConfigVersionResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/configs/{id}/version/{version}",
baseUri: HttpClient.BaseAddress);
@@ -155,6 +177,8 @@ partial void ProcessDeleteConfigVersionResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -165,6 +189,11 @@ partial void ProcessDeleteConfigVersionResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -182,6 +211,8 @@ partial void ProcessDeleteConfigVersionResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -191,8 +222,7 @@ partial void ProcessDeleteConfigVersionResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -201,6 +231,11 @@ partial void ProcessDeleteConfigVersionResponse(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -217,14 +252,15 @@ partial void ProcessDeleteConfigVersionResponse(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -264,6 +300,8 @@ partial void ProcessDeleteConfigVersionResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -284,6 +322,8 @@ partial void ProcessDeleteConfigVersionResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -304,6 +344,10 @@ partial void ProcessDeleteConfigVersionResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -325,6 +369,10 @@ partial void ProcessDeleteConfigVersionResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.GetConfigVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.GetConfigVersion.g.cs
index 19de32a..6c23fef 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.GetConfigVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.GetConfigVersion.g.cs
@@ -56,6 +56,29 @@ partial void ProcessGetConfigVersionResponseContent(
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetConfigVersionAsResponseAsync(
+ id: id,
+ version: version,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get a config version
+ ///
+ ///
+ ///
+ /// 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> GetConfigVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -86,6 +109,7 @@ partial void ProcessGetConfigVersionResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/configs/{id}/version/{version}",
baseUri: HttpClient.BaseAddress);
@@ -160,6 +184,8 @@ partial void ProcessGetConfigVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -170,6 +196,11 @@ partial void ProcessGetConfigVersionResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -187,6 +218,8 @@ partial void ProcessGetConfigVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -196,8 +229,7 @@ partial void ProcessGetConfigVersionResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -206,6 +238,11 @@ partial void ProcessGetConfigVersionResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -222,14 +259,15 @@ partial void ProcessGetConfigVersionResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -269,6 +307,8 @@ partial void ProcessGetConfigVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -289,6 +329,8 @@ partial void ProcessGetConfigVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -313,9 +355,13 @@ partial void ProcessGetConfigVersionResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnConfig.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnConfig.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -343,9 +389,13 @@ partial void ProcessGetConfigVersionResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigVersions.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigVersions.g.cs
index 6e0583a..a5937d8 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigVersions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigVersions.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListConfigVersionsResponseContent(
bool? restrictToMostRecent = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListConfigVersionsAsResponseAsync(
+ id: id,
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ restrictToMostRecent: restrictToMostRecent,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List config versions
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListConfigVersionsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,13 +125,14 @@ partial void ProcessListConfigVersionsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/configs/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("restrict_to_most_recent", restrictToMostRecent?.ToString().ToLowerInvariant())
+ .AddOptionalParameter("restrict_to_most_recent", restrictToMostRecent?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -177,6 +207,8 @@ partial void ProcessListConfigVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -187,6 +219,11 @@ partial void ProcessListConfigVersionsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -204,6 +241,8 @@ partial void ProcessListConfigVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -213,8 +252,7 @@ partial void ProcessListConfigVersionsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -223,6 +261,11 @@ partial void ProcessListConfigVersionsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -239,14 +282,15 @@ partial void ProcessListConfigVersionsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -286,6 +330,8 @@ partial void ProcessListConfigVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -306,6 +352,8 @@ partial void ProcessListConfigVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -330,9 +378,13 @@ partial void ProcessListConfigVersionsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPagedConfigs.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPagedConfigs.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -360,9 +412,13 @@ partial void ProcessListConfigVersionsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPagedConfigs.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPagedConfigs.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigs.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigs.g.cs
index 80d8ff4..437083d 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigs.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.ListConfigs.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListConfigsResponseContent(
string? name = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListConfigsAsResponseAsync(
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ restrictToMostRecent: restrictToMostRecent,
+ name: name,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List EVI configs
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListConfigsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ string? name = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,14 +125,15 @@ partial void ProcessListConfigsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/evi/configs",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
.AddOptionalParameter("restrict_to_most_recent", restrictToMostRecent?.ToString().ToLowerInvariant())
- .AddOptionalParameter("name", name)
+ .AddOptionalParameter("name", name)
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -178,6 +208,8 @@ partial void ProcessListConfigsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -188,6 +220,11 @@ partial void ProcessListConfigsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -205,6 +242,8 @@ partial void ProcessListConfigsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -214,8 +253,7 @@ partial void ProcessListConfigsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -224,6 +262,11 @@ partial void ProcessListConfigsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -240,14 +283,15 @@ partial void ProcessListConfigsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -287,6 +331,8 @@ partial void ProcessListConfigsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -307,6 +353,8 @@ partial void ProcessListConfigsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -331,9 +379,13 @@ partial void ProcessListConfigsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPagedConfigs.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPagedConfigs.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -361,9 +413,13 @@ partial void ProcessListConfigsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPagedConfigs.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPagedConfigs.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigDescription.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigDescription.g.cs
index 768689d..f724cd9 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigDescription.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigDescription.g.cs
@@ -58,6 +58,34 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
string id,
int version,
+ global::HumeAI.PostedConfigVersionDescription request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateConfigDescriptionAsResponseAsync(
+ id: id,
+ version: version,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update config version description
+ ///
+ ///
+ ///
+ ///
+ /// 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> UpdateConfigDescriptionAsResponseAsync(
+ string id,
+ int version,
+
global::HumeAI.PostedConfigVersionDescription request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -94,6 +122,7 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/configs/{id}/version/{version}",
baseUri: HttpClient.BaseAddress);
@@ -175,6 +204,8 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +216,11 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +238,8 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +249,7 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +258,11 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +279,15 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +327,8 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +349,8 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +375,13 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnConfig.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnConfig.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +409,13 @@ partial void ProcessUpdateConfigDescriptionResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigName.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigName.g.cs
index ab26e54..b2e1a7d 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigName.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.UpdateConfigName.g.cs
@@ -54,6 +54,31 @@ partial void ProcessUpdateConfigNameResponseContent(
public async global::System.Threading.Tasks.Task UpdateConfigNameAsync(
string id,
+ global::HumeAI.PostedConfigName request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateConfigNameAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update config name
+ ///
+ ///
+ ///
+ /// 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> UpdateConfigNameAsResponseAsync(
+ string id,
+
global::HumeAI.PostedConfigName request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessUpdateConfigNameResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/configs/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessUpdateConfigNameResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessUpdateConfigNameResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessUpdateConfigNameResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -205,8 +240,7 @@ partial void ProcessUpdateConfigNameResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessUpdateConfigNameResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessUpdateConfigNameResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessUpdateConfigNameResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessUpdateConfigNameResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,7 +366,11 @@ partial void ProcessUpdateConfigNameResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -350,7 +398,11 @@ partial void ProcessUpdateConfigNameResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.g.cs b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.g.cs
index 0a297ea..8313eda 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ConfigsClient.g.cs
@@ -72,10 +72,10 @@ public ConfigsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public ConfigsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::HumeAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::HumeAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviTool.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviTool.g.cs
index 8d03ec1..989f217 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviTool.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviTool.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateEviToolResponseContent(
///
public async global::System.Threading.Tasks.Task CreateEviToolAsync(
+ global::HumeAI.PostedUserDefinedTool request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateEviToolAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create an EVI tool
+ ///
+ ///
+ /// 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> CreateEviToolAsResponseAsync(
+
global::HumeAI.PostedUserDefinedTool request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateEviToolResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/evi/tools",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateEviToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateEviToolResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateEviToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateEviToolResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateEviToolResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateEviToolResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateEviToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateEviToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessCreateEviToolResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnUserDefinedTool.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnUserDefinedTool.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessCreateEviToolResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnUserDefinedTool.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnUserDefinedTool.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviToolVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviToolVersion.g.cs
index 53f0ed8..935871f 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviToolVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.CreateEviToolVersion.g.cs
@@ -54,6 +54,31 @@ partial void ProcessCreateEviToolVersionResponseContent(
public async global::System.Threading.Tasks.Task CreateEviToolVersionAsync(
string id,
+ global::HumeAI.PostedUserDefinedToolVersion request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateEviToolVersionAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create an EVI tool version
+ ///
+ ///
+ ///
+ /// 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> CreateEviToolVersionAsResponseAsync(
+ string id,
+
global::HumeAI.PostedUserDefinedToolVersion request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessCreateEviToolVersionResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/tools/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessCreateEviToolVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessCreateEviToolVersionResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessCreateEviToolVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -205,8 +240,7 @@ partial void ProcessCreateEviToolVersionResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessCreateEviToolVersionResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessCreateEviToolVersionResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessCreateEviToolVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessCreateEviToolVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessCreateEviToolVersionResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnUserDefinedTool.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnUserDefinedTool.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessCreateEviToolVersionResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnUserDefinedTool.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnUserDefinedTool.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviTool.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviTool.g.cs
index 3104a23..1efb7c0 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviTool.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviTool.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteEviToolResponse(
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteEviToolAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete an EVI tool
+ ///
+ ///
+ /// 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 DeleteEviToolAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteEviToolResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/tools/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteEviToolResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteEviToolResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteEviToolResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteEviToolResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteEviToolResponse(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteEviToolResponse(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteEviToolResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteEviToolResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteEviToolResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteEviToolResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviToolVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviToolVersion.g.cs
index dbba2ba..cf26d36 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviToolVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.DeleteEviToolVersion.g.cs
@@ -51,6 +51,27 @@ partial void ProcessDeleteEviToolVersionResponse(
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteEviToolVersionAsResponseAsync(
+ id: id,
+ version: version,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete an EVI tool version
+ ///
+ ///
+ ///
+ /// 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 DeleteEviToolVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +102,7 @@ partial void ProcessDeleteEviToolVersionResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/tools/{id}/version/{version}",
baseUri: HttpClient.BaseAddress);
@@ -155,6 +177,8 @@ partial void ProcessDeleteEviToolVersionResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -165,6 +189,11 @@ partial void ProcessDeleteEviToolVersionResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -182,6 +211,8 @@ partial void ProcessDeleteEviToolVersionResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -191,8 +222,7 @@ partial void ProcessDeleteEviToolVersionResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -201,6 +231,11 @@ partial void ProcessDeleteEviToolVersionResponse(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -217,14 +252,15 @@ partial void ProcessDeleteEviToolVersionResponse(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -264,6 +300,8 @@ partial void ProcessDeleteEviToolVersionResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -284,6 +322,8 @@ partial void ProcessDeleteEviToolVersionResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -304,6 +344,10 @@ partial void ProcessDeleteEviToolVersionResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -325,6 +369,10 @@ partial void ProcessDeleteEviToolVersionResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.GetEviToolVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.GetEviToolVersion.g.cs
index d63ca35..dd2078d 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.GetEviToolVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.GetEviToolVersion.g.cs
@@ -56,6 +56,29 @@ partial void ProcessGetEviToolVersionResponseContent(
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetEviToolVersionAsResponseAsync(
+ id: id,
+ version: version,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get an EVI tool version
+ ///
+ ///
+ ///
+ /// 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> GetEviToolVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -86,6 +109,7 @@ partial void ProcessGetEviToolVersionResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/tools/{id}/version/{version}",
baseUri: HttpClient.BaseAddress);
@@ -160,6 +184,8 @@ partial void ProcessGetEviToolVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -170,6 +196,11 @@ partial void ProcessGetEviToolVersionResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -187,6 +218,8 @@ partial void ProcessGetEviToolVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -196,8 +229,7 @@ partial void ProcessGetEviToolVersionResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -206,6 +238,11 @@ partial void ProcessGetEviToolVersionResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -222,14 +259,15 @@ partial void ProcessGetEviToolVersionResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -269,6 +307,8 @@ partial void ProcessGetEviToolVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -289,6 +329,8 @@ partial void ProcessGetEviToolVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -313,9 +355,13 @@ partial void ProcessGetEviToolVersionResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnUserDefinedTool.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnUserDefinedTool.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -343,9 +389,13 @@ partial void ProcessGetEviToolVersionResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnUserDefinedTool.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnUserDefinedTool.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviToolVersions.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviToolVersions.g.cs
index 16f8f88..7bd18ad 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviToolVersions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviToolVersions.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListEviToolVersionsResponseContent(
bool? restrictToMostRecent = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListEviToolVersionsAsResponseAsync(
+ id: id,
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ restrictToMostRecent: restrictToMostRecent,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List EVI tool versions
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListEviToolVersionsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,13 +125,14 @@ partial void ProcessListEviToolVersionsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/tools/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("restrict_to_most_recent", restrictToMostRecent?.ToString().ToLowerInvariant())
+ .AddOptionalParameter("restrict_to_most_recent", restrictToMostRecent?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -177,6 +207,8 @@ partial void ProcessListEviToolVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -187,6 +219,11 @@ partial void ProcessListEviToolVersionsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -204,6 +241,8 @@ partial void ProcessListEviToolVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -213,8 +252,7 @@ partial void ProcessListEviToolVersionsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -223,6 +261,11 @@ partial void ProcessListEviToolVersionsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -239,14 +282,15 @@ partial void ProcessListEviToolVersionsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -286,6 +330,8 @@ partial void ProcessListEviToolVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -306,6 +352,8 @@ partial void ProcessListEviToolVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -330,9 +378,13 @@ partial void ProcessListEviToolVersionsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPagedUserDefinedTools.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPagedUserDefinedTools.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -360,9 +412,13 @@ partial void ProcessListEviToolVersionsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPagedUserDefinedTools.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPagedUserDefinedTools.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviTools.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviTools.g.cs
index e7eb5d9..e4e470a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviTools.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.ListEviTools.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListEviToolsResponseContent(
string? name = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListEviToolsAsResponseAsync(
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ restrictToMostRecent: restrictToMostRecent,
+ name: name,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List EVI tools
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListEviToolsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ string? name = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,14 +125,15 @@ partial void ProcessListEviToolsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/evi/tools",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
.AddOptionalParameter("restrict_to_most_recent", restrictToMostRecent?.ToString().ToLowerInvariant())
- .AddOptionalParameter("name", name)
+ .AddOptionalParameter("name", name)
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -178,6 +208,8 @@ partial void ProcessListEviToolsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -188,6 +220,11 @@ partial void ProcessListEviToolsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -205,6 +242,8 @@ partial void ProcessListEviToolsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -214,8 +253,7 @@ partial void ProcessListEviToolsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -224,6 +262,11 @@ partial void ProcessListEviToolsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -240,14 +283,15 @@ partial void ProcessListEviToolsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -287,6 +331,8 @@ partial void ProcessListEviToolsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -307,6 +353,8 @@ partial void ProcessListEviToolsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -331,9 +379,13 @@ partial void ProcessListEviToolsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPagedUserDefinedTools.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPagedUserDefinedTools.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -361,9 +413,13 @@ partial void ProcessListEviToolsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPagedUserDefinedTools.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPagedUserDefinedTools.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolDescription.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolDescription.g.cs
index ecc3d48..4b969ea 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolDescription.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolDescription.g.cs
@@ -58,6 +58,34 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
string id,
int version,
+ global::HumeAI.PostedUserDefinedToolVersionDescription request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateEviToolDescriptionAsResponseAsync(
+ id: id,
+ version: version,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update EVI tool description
+ ///
+ ///
+ ///
+ ///
+ /// 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> UpdateEviToolDescriptionAsResponseAsync(
+ string id,
+ int version,
+
global::HumeAI.PostedUserDefinedToolVersionDescription request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -94,6 +122,7 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/tools/{id}/version/{version}",
baseUri: HttpClient.BaseAddress);
@@ -175,6 +204,8 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +216,11 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +238,8 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +249,7 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +258,11 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +279,15 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +327,8 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +349,8 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +375,13 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnUserDefinedTool.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnUserDefinedTool.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +409,13 @@ partial void ProcessUpdateEviToolDescriptionResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnUserDefinedTool.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnUserDefinedTool.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolName.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolName.g.cs
index 45e1df1..791f683 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolName.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.UpdateEviToolName.g.cs
@@ -54,6 +54,31 @@ partial void ProcessUpdateEviToolNameResponseContent(
public async global::System.Threading.Tasks.Task UpdateEviToolNameAsync(
string id,
+ global::HumeAI.PostedUserDefinedToolName request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateEviToolNameAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update EVI tool name
+ ///
+ ///
+ ///
+ /// 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> UpdateEviToolNameAsResponseAsync(
+ string id,
+
global::HumeAI.PostedUserDefinedToolName request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessUpdateEviToolNameResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/tools/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessUpdateEviToolNameResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessUpdateEviToolNameResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessUpdateEviToolNameResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -205,8 +240,7 @@ partial void ProcessUpdateEviToolNameResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessUpdateEviToolNameResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessUpdateEviToolNameResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessUpdateEviToolNameResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessUpdateEviToolNameResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,7 +366,11 @@ partial void ProcessUpdateEviToolNameResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -350,7 +398,11 @@ partial void ProcessUpdateEviToolNameResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.g.cs b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.g.cs
index 9f0af59..0dbb033 100644
--- a/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.EviToolsClient.g.cs
@@ -72,10 +72,10 @@ public EviToolsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public EviToolsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::HumeAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::HumeAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.HumeAIClient.g.cs b/src/libs/HumeAI/Generated/HumeAI.HumeAIClient.g.cs
index fd4f769..d329cfe 100644
--- a/src/libs/HumeAI/Generated/HumeAI.HumeAIClient.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.HumeAIClient.g.cs
@@ -43,7 +43,7 @@ public sealed partial class HumeAIClient : global::HumeAI.IHumeAIClient, global:
///
///
///
- public BatchClient Batch => new BatchClient(HttpClient, authorizations: Authorizations, options: Options)
+ public BatchClient Batch => new BatchClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -52,7 +52,7 @@ public sealed partial class HumeAIClient : global::HumeAI.IHumeAIClient, global:
///
///
///
- public ChatGroupsClient ChatGroups => new ChatGroupsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public ChatGroupsClient ChatGroups => new ChatGroupsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -61,7 +61,7 @@ public sealed partial class HumeAIClient : global::HumeAI.IHumeAIClient, global:
///
///
///
- public ChatsClient Chats => new ChatsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public ChatsClient Chats => new ChatsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -70,7 +70,7 @@ public sealed partial class HumeAIClient : global::HumeAI.IHumeAIClient, global:
///
///
///
- public ConfigsClient Configs => new ConfigsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public ConfigsClient Configs => new ConfigsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -79,7 +79,7 @@ public sealed partial class HumeAIClient : global::HumeAI.IHumeAIClient, global:
///
///
///
- public EviToolsClient EviTools => new EviToolsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public EviToolsClient EviTools => new EviToolsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -88,7 +88,7 @@ public sealed partial class HumeAIClient : global::HumeAI.IHumeAIClient, global:
///
///
///
- public PromptsClient Prompts => new PromptsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public PromptsClient Prompts => new PromptsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -97,7 +97,7 @@ public sealed partial class HumeAIClient : global::HumeAI.IHumeAIClient, global:
///
///
///
- public TtsClient Tts => new TtsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public TtsClient Tts => new TtsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -106,7 +106,7 @@ public sealed partial class HumeAIClient : global::HumeAI.IHumeAIClient, global:
///
///
///
- public VoicesClient Voices => new VoicesClient(HttpClient, authorizations: Authorizations, options: Options)
+ public VoicesClient Voices => new VoicesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -145,10 +145,10 @@ public HumeAIClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public HumeAIClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::HumeAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::HumeAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobArtifacts.g.cs b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobArtifacts.g.cs
index 21bf006..b768803 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobArtifacts.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobArtifacts.g.cs
@@ -15,5 +15,27 @@ public partial interface IBatchClient
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get batch job artifacts
+ ///
+ ///
+ /// 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 GetBatchJobArtifactsAsStreamAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get batch job artifacts
+ ///
+ ///
+ /// 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> GetBatchJobArtifactsAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobDetails.g.cs b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobDetails.g.cs
index ac627ab..2c9a583 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobDetails.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobDetails.g.cs
@@ -15,5 +15,16 @@ public partial interface IBatchClient
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get batch job details
+ ///
+ ///
+ /// 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> GetBatchJobDetailsAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobPredictions.g.cs b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobPredictions.g.cs
index d3dc761..3b37755 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobPredictions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.GetBatchJobPredictions.g.cs
@@ -15,5 +15,16 @@ public partial interface IBatchClient
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get batch job predictions
+ ///
+ ///
+ /// 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>> GetBatchJobPredictionsAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.ListBatchJobs.g.cs b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.ListBatchJobs.g.cs
index 0963960..9591a88 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.ListBatchJobs.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.ListBatchJobs.g.cs
@@ -26,5 +26,27 @@ public partial interface IBatchClient
global::HumeAI.ListBatchJobsDirection? direction = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List batch jobs
+ /// List all batch inference jobs
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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>> ListBatchJobsAsResponseAsync(
+ int? limit = default,
+ global::HumeAI.ListBatchJobsStatus? status = default,
+ long? when = default,
+ long? timestampMs = default,
+ global::HumeAI.ListBatchJobsSortBy? sortBy = default,
+ global::HumeAI.ListBatchJobsDirection? direction = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.StartBatchInferenceJob.g.cs b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.StartBatchInferenceJob.g.cs
index 04b9f42..9304045 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IBatchClient.StartBatchInferenceJob.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IBatchClient.StartBatchInferenceJob.g.cs
@@ -21,6 +21,19 @@ public partial interface IBatchClient
/// Start a batch inference job
/// Submit media URLs or text for emotion analysis
///
+ ///
+ /// 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> StartBatchInferenceJobAsResponseAsync(
+
+ global::HumeAI.InferenceBaseRequest request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Start a batch inference job
+ /// Submit media URLs or text for emotion analysis
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.GetChatGroup.g.cs b/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.GetChatGroup.g.cs
index 7a29344..5447d4e 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.GetChatGroup.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.GetChatGroup.g.cs
@@ -21,5 +21,22 @@ public partial interface IChatGroupsClient
bool? ascendingOrder = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get a chat group
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> GetChatGroupAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.GetChatGroupAudio.g.cs b/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.GetChatGroupAudio.g.cs
index 30d2d1d..7618607 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.GetChatGroupAudio.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.GetChatGroupAudio.g.cs
@@ -21,5 +21,22 @@ public partial interface IChatGroupsClient
bool? ascendingOrder = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get chat group audio
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> GetChatGroupAudioAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.ListChatGroupEvents.g.cs b/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.ListChatGroupEvents.g.cs
index 1a788dc..2472da7 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.ListChatGroupEvents.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.ListChatGroupEvents.g.cs
@@ -21,5 +21,22 @@ public partial interface IChatGroupsClient
bool? ascendingOrder = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List chat group events
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListChatGroupEventsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.ListChatGroups.g.cs b/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.ListChatGroups.g.cs
index 7c839ce..9b17d06 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.ListChatGroups.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IChatGroupsClient.ListChatGroups.g.cs
@@ -21,5 +21,22 @@ public partial interface IChatGroupsClient
string? configId = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List chat groups
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListChatGroupsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ string? configId = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IChatsClient.GetChatAudio.g.cs b/src/libs/HumeAI/Generated/HumeAI.IChatsClient.GetChatAudio.g.cs
index 5e7e016..5ed7090 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IChatsClient.GetChatAudio.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IChatsClient.GetChatAudio.g.cs
@@ -15,5 +15,16 @@ public partial interface IChatsClient
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get chat audio
+ ///
+ ///
+ /// 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> GetChatAudioAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IChatsClient.ListChatEvents.g.cs b/src/libs/HumeAI/Generated/HumeAI.IChatsClient.ListChatEvents.g.cs
index 3473330..fbd4222 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IChatsClient.ListChatEvents.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IChatsClient.ListChatEvents.g.cs
@@ -21,5 +21,22 @@ public partial interface IChatsClient
bool? ascendingOrder = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List chat events
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListChatEventsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IChatsClient.ListChats.g.cs b/src/libs/HumeAI/Generated/HumeAI.IChatsClient.ListChats.g.cs
index d8f0677..86d62f3 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IChatsClient.ListChats.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IChatsClient.ListChats.g.cs
@@ -21,5 +21,22 @@ public partial interface IChatsClient
string? configId = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List EVI chats
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListChatsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? ascendingOrder = default,
+ string? configId = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.CreateConfig.g.cs b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.CreateConfig.g.cs
index 3864398..0484c95 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.CreateConfig.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.CreateConfig.g.cs
@@ -19,6 +19,18 @@ public partial interface IConfigsClient
///
/// Create an EVI config
///
+ ///
+ /// 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> CreateConfigAsResponseAsync(
+
+ global::HumeAI.PostedConfig request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create an EVI config
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.CreateConfigVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.CreateConfigVersion.g.cs
index 1df1d43..012d177 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.CreateConfigVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.CreateConfigVersion.g.cs
@@ -22,6 +22,20 @@ public partial interface IConfigsClient
/// Create a config version
///
///
+ ///
+ /// 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> CreateConfigVersionAsResponseAsync(
+ string id,
+
+ global::HumeAI.PostedConfigVersion request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a config version
+ ///
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.DeleteConfig.g.cs b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.DeleteConfig.g.cs
index 48350b0..2065542 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.DeleteConfig.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.DeleteConfig.g.cs
@@ -15,5 +15,16 @@ public partial interface IConfigsClient
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete an EVI config
+ ///
+ ///
+ /// 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 DeleteConfigAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.DeleteConfigVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.DeleteConfigVersion.g.cs
index 31004ee..9ef7517 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.DeleteConfigVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.DeleteConfigVersion.g.cs
@@ -17,5 +17,18 @@ public partial interface IConfigsClient
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a config version
+ ///
+ ///
+ ///
+ /// 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 DeleteConfigVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.GetConfigVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.GetConfigVersion.g.cs
index 6b4446f..61bb518 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.GetConfigVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.GetConfigVersion.g.cs
@@ -17,5 +17,18 @@ public partial interface IConfigsClient
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get a config version
+ ///
+ ///
+ ///
+ /// 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> GetConfigVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.ListConfigVersions.g.cs b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.ListConfigVersions.g.cs
index 2c7540d..5c934c6 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.ListConfigVersions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.ListConfigVersions.g.cs
@@ -21,5 +21,22 @@ public partial interface IConfigsClient
bool? restrictToMostRecent = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List config versions
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListConfigVersionsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.ListConfigs.g.cs b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.ListConfigs.g.cs
index 13abf94..09b8aa1 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.ListConfigs.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.ListConfigs.g.cs
@@ -21,5 +21,22 @@ public partial interface IConfigsClient
string? name = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List EVI configs
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListConfigsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ string? name = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.UpdateConfigDescription.g.cs b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.UpdateConfigDescription.g.cs
index b5d4a1e..e64c95a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.UpdateConfigDescription.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.UpdateConfigDescription.g.cs
@@ -25,6 +25,22 @@ public partial interface IConfigsClient
///
///
///
+ ///
+ /// 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> UpdateConfigDescriptionAsResponseAsync(
+ string id,
+ int version,
+
+ global::HumeAI.PostedConfigVersionDescription request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update config version description
+ ///
+ ///
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.UpdateConfigName.g.cs b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.UpdateConfigName.g.cs
index 3f0f688..673b451 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.UpdateConfigName.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IConfigsClient.UpdateConfigName.g.cs
@@ -22,6 +22,20 @@ public partial interface IConfigsClient
/// Update config name
///
///
+ ///
+ /// 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> UpdateConfigNameAsResponseAsync(
+ string id,
+
+ global::HumeAI.PostedConfigName request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update config name
+ ///
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.CreateEviTool.g.cs b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.CreateEviTool.g.cs
index 57c4a7a..c7c2d69 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.CreateEviTool.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.CreateEviTool.g.cs
@@ -19,6 +19,18 @@ public partial interface IEviToolsClient
///
/// Create an EVI tool
///
+ ///
+ /// 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> CreateEviToolAsResponseAsync(
+
+ global::HumeAI.PostedUserDefinedTool request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create an EVI tool
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.CreateEviToolVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.CreateEviToolVersion.g.cs
index 3af63bd..2d7f14f 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.CreateEviToolVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.CreateEviToolVersion.g.cs
@@ -22,6 +22,20 @@ public partial interface IEviToolsClient
/// Create an EVI tool version
///
///
+ ///
+ /// 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> CreateEviToolVersionAsResponseAsync(
+ string id,
+
+ global::HumeAI.PostedUserDefinedToolVersion request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create an EVI tool version
+ ///
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.DeleteEviTool.g.cs b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.DeleteEviTool.g.cs
index b98dd26..15e14b3 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.DeleteEviTool.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.DeleteEviTool.g.cs
@@ -15,5 +15,16 @@ public partial interface IEviToolsClient
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete an EVI tool
+ ///
+ ///
+ /// 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 DeleteEviToolAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.DeleteEviToolVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.DeleteEviToolVersion.g.cs
index a9b103d..bbdcb5d 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.DeleteEviToolVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.DeleteEviToolVersion.g.cs
@@ -17,5 +17,18 @@ public partial interface IEviToolsClient
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete an EVI tool version
+ ///
+ ///
+ ///
+ /// 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 DeleteEviToolVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.GetEviToolVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.GetEviToolVersion.g.cs
index a72cc17..d25585d 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.GetEviToolVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.GetEviToolVersion.g.cs
@@ -17,5 +17,18 @@ public partial interface IEviToolsClient
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get an EVI tool version
+ ///
+ ///
+ ///
+ /// 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> GetEviToolVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.ListEviToolVersions.g.cs b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.ListEviToolVersions.g.cs
index 731e0fd..5ecf65f 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.ListEviToolVersions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.ListEviToolVersions.g.cs
@@ -21,5 +21,22 @@ public partial interface IEviToolsClient
bool? restrictToMostRecent = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List EVI tool versions
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListEviToolVersionsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.ListEviTools.g.cs b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.ListEviTools.g.cs
index f46e505..1a5398f 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.ListEviTools.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.ListEviTools.g.cs
@@ -21,5 +21,22 @@ public partial interface IEviToolsClient
string? name = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List EVI tools
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListEviToolsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ string? name = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.UpdateEviToolDescription.g.cs b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.UpdateEviToolDescription.g.cs
index 839c9bc..58c7220 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.UpdateEviToolDescription.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.UpdateEviToolDescription.g.cs
@@ -25,6 +25,22 @@ public partial interface IEviToolsClient
///
///
///
+ ///
+ /// 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> UpdateEviToolDescriptionAsResponseAsync(
+ string id,
+ int version,
+
+ global::HumeAI.PostedUserDefinedToolVersionDescription request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update EVI tool description
+ ///
+ ///
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.UpdateEviToolName.g.cs b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.UpdateEviToolName.g.cs
index 67b9c7d..75c9018 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.UpdateEviToolName.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IEviToolsClient.UpdateEviToolName.g.cs
@@ -22,6 +22,20 @@ public partial interface IEviToolsClient
/// Update EVI tool name
///
///
+ ///
+ /// 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> UpdateEviToolNameAsResponseAsync(
+ string id,
+
+ global::HumeAI.PostedUserDefinedToolName request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update EVI tool name
+ ///
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.CreatePrompt.g.cs b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.CreatePrompt.g.cs
index c63f98d..439c303 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.CreatePrompt.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.CreatePrompt.g.cs
@@ -19,6 +19,18 @@ public partial interface IPromptsClient
///
/// Create an EVI prompt
///
+ ///
+ /// 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> CreatePromptAsResponseAsync(
+
+ global::HumeAI.PostedPrompt request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create an EVI prompt
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.CreatePromptVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.CreatePromptVersion.g.cs
index edcb286..b2abc79 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.CreatePromptVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.CreatePromptVersion.g.cs
@@ -22,6 +22,20 @@ public partial interface IPromptsClient
/// Create a prompt version
///
///
+ ///
+ /// 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> CreatePromptVersionAsResponseAsync(
+ string id,
+
+ global::HumeAI.PostedPromptVersion request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a prompt version
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.DeletePrompt.g.cs b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.DeletePrompt.g.cs
index eb9b5d1..16fe651 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.DeletePrompt.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.DeletePrompt.g.cs
@@ -15,5 +15,16 @@ public partial interface IPromptsClient
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a prompt
+ ///
+ ///
+ /// 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 DeletePromptAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.DeletePromptVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.DeletePromptVersion.g.cs
index 8e12c72..de9a1f9 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.DeletePromptVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.DeletePromptVersion.g.cs
@@ -17,5 +17,18 @@ public partial interface IPromptsClient
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a prompt version
+ ///
+ ///
+ ///
+ /// 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 DeletePromptVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.GetPromptVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.GetPromptVersion.g.cs
index 6a9daf1..f324cc0 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.GetPromptVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.GetPromptVersion.g.cs
@@ -17,5 +17,18 @@ public partial interface IPromptsClient
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get a prompt version
+ ///
+ ///
+ ///
+ /// 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> GetPromptVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.ListPromptVersions.g.cs b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.ListPromptVersions.g.cs
index 04f7ab7..ce95110 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.ListPromptVersions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.ListPromptVersions.g.cs
@@ -21,5 +21,22 @@ public partial interface IPromptsClient
bool? restrictToMostRecent = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List prompt versions
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListPromptVersionsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.ListPrompts.g.cs b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.ListPrompts.g.cs
index a720b58..7ad1d70 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.ListPrompts.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.ListPrompts.g.cs
@@ -21,5 +21,22 @@ public partial interface IPromptsClient
string? name = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List EVI prompts
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListPromptsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ string? name = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.UpdatePromptDescription.g.cs b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.UpdatePromptDescription.g.cs
index c1bc42d..d3a1a78 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.UpdatePromptDescription.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.UpdatePromptDescription.g.cs
@@ -25,6 +25,22 @@ public partial interface IPromptsClient
///
///
///
+ ///
+ /// 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> UpdatePromptDescriptionAsResponseAsync(
+ string id,
+ int version,
+
+ global::HumeAI.PostedPromptVersionDescription request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update prompt version description
+ ///
+ ///
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.UpdatePromptName.g.cs b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.UpdatePromptName.g.cs
index 75ae19b..870f68b 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.UpdatePromptName.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IPromptsClient.UpdatePromptName.g.cs
@@ -22,6 +22,20 @@ public partial interface IPromptsClient
/// Update prompt name
///
///
+ ///
+ /// 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> UpdatePromptNameAsResponseAsync(
+ string id,
+
+ global::HumeAI.PostedPromptName request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update prompt name
+ ///
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.ConvertVoiceFile.g.cs b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.ConvertVoiceFile.g.cs
index fcc1b48..1a74bf5 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.ConvertVoiceFile.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.ConvertVoiceFile.g.cs
@@ -19,6 +19,30 @@ public partial interface ITtsClient
///
/// Convert voice (file)
///
+ ///
+ /// 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 ConvertVoiceFileAsStreamAsync(
+
+ global::HumeAI.ConvertVoiceJsonRequest request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Convert voice (file)
+ ///
+ ///
+ /// 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> ConvertVoiceFileAsResponseAsync(
+
+ global::HumeAI.ConvertVoiceJsonRequest request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Convert voice (file)
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.ConvertVoiceJson.g.cs b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.ConvertVoiceJson.g.cs
index de9693f..4ccac9f 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.ConvertVoiceJson.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.ConvertVoiceJson.g.cs
@@ -19,6 +19,18 @@ public partial interface ITtsClient
///
/// Convert voice (JSON)
///
+ ///
+ /// 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> ConvertVoiceJsonAsResponseAsync(
+
+ global::HumeAI.ConvertVoiceJsonRequest request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Convert voice (JSON)
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeFile.g.cs b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeFile.g.cs
index 4ebd19c..b0f1ca6 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeFile.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeFile.g.cs
@@ -19,6 +19,30 @@ public partial interface ITtsClient
///
/// Synthesize speech (file)
///
+ ///
+ /// 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 SynthesizeFileAsStreamAsync(
+
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Synthesize speech (file)
+ ///
+ ///
+ /// 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> SynthesizeFileAsResponseAsync(
+
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Synthesize speech (file)
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeFileStreaming.g.cs b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeFileStreaming.g.cs
index 8d95cd3..b6c3514 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeFileStreaming.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeFileStreaming.g.cs
@@ -19,6 +19,30 @@ public partial interface ITtsClient
///
/// Synthesize speech streaming (file)
///
+ ///
+ /// 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 SynthesizeFileStreamingAsStreamAsync(
+
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Synthesize speech streaming (file)
+ ///
+ ///
+ /// 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> SynthesizeFileStreamingAsResponseAsync(
+
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Synthesize speech streaming (file)
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeJson.g.cs b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeJson.g.cs
index d7563fb..602f2ea 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeJson.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeJson.g.cs
@@ -19,6 +19,18 @@ public partial interface ITtsClient
///
/// Synthesize speech (JSON)
///
+ ///
+ /// 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> SynthesizeJsonAsResponseAsync(
+
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Synthesize speech (JSON)
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeJsonStreaming.g.cs b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeJsonStreaming.g.cs
index 740b1c2..193949c 100644
--- a/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeJsonStreaming.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.ITtsClient.SynthesizeJsonStreaming.g.cs
@@ -19,6 +19,18 @@ public partial interface ITtsClient
///
/// Synthesize speech streaming (JSON)
///
+ ///
+ /// 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> SynthesizeJsonStreamingAsResponseAsync(
+
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Synthesize speech streaming (JSON)
+ ///
///
///
///
diff --git a/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.CreateVoice.g.cs b/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.CreateVoice.g.cs
index c005ea1..5ecb78d 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.CreateVoice.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.CreateVoice.g.cs
@@ -19,6 +19,18 @@ public partial interface IVoicesClient
///
/// Create a custom voice
///
+ ///
+ /// 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> CreateVoiceAsResponseAsync(
+
+ global::HumeAI.PostedVoice request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a custom voice
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.DeleteVoice.g.cs b/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.DeleteVoice.g.cs
index 8c1f387..420e8f7 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.DeleteVoice.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.DeleteVoice.g.cs
@@ -15,5 +15,16 @@ public partial interface IVoicesClient
string name,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a custom voice
+ ///
+ ///
+ /// 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 DeleteVoiceAsResponseAsync(
+ string name,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.ListVoices.g.cs b/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.ListVoices.g.cs
index 714cc83..dc8dec8 100644
--- a/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.ListVoices.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.IVoicesClient.ListVoices.g.cs
@@ -21,5 +21,22 @@ public partial interface IVoicesClient
string? name = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List TTS voices
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListVoicesAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ global::HumeAI.ListVoicesProvider? provider = default,
+ string? name = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.OptionsSupport.g.cs b/src/libs/HumeAI/Generated/HumeAI.OptionsSupport.g.cs
index 2b45398..c61db4e 100644
--- a/src/libs/HumeAI/Generated/HumeAI.OptionsSupport.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.OptionsSupport.g.cs
@@ -101,9 +101,45 @@ public sealed class AutoSDKRetryOptions
public int MaxAttempts { get; set; } = 1;
///
- /// Optional fixed delay between retry attempts.
+ /// Optional fixed delay between retry attempts. When set, this takes precedence over exponential backoff.
///
public global::System.TimeSpan? Delay { get; set; }
+
+ ///
+ /// Initial exponential backoff delay used when is not set.
+ ///
+ public global::System.TimeSpan InitialDelay { get; set; } = global::System.TimeSpan.FromSeconds(1);
+
+ ///
+ /// Maximum retry delay after applying retry headers, backoff, and jitter.
+ ///
+ public global::System.TimeSpan MaxDelay { get; set; } = global::System.TimeSpan.FromSeconds(30);
+
+ ///
+ /// Multiplier applied to exponential backoff after each failed attempt.
+ /// Values below 1 are normalized to 1.
+ ///
+ public double BackoffMultiplier { get; set; } = 2D;
+
+ ///
+ /// Randomizes computed backoff by plus or minus this ratio. Values are clamped to 0..1.
+ ///
+ public double JitterRatio { get; set; } = 0.2D;
+
+ ///
+ /// Whether Retry-After response headers should control retry delay when present.
+ ///
+ public bool UseRetryAfterHeader { get; set; } = true;
+
+ ///
+ /// Whether a rate-limit reset response header should control retry delay when present.
+ ///
+ public bool UseRateLimitResetHeader { get; set; }
+
+ ///
+ /// Optional provider-specific rate-limit reset header name. Values may be Unix seconds or an HTTP date.
+ ///
+ public string? RateLimitResetHeaderName { get; set; } = "X-RateLimit-Reset";
}
@@ -231,6 +267,16 @@ public sealed class AutoSDKHookContext
///
public bool WillRetry { get; set; }
+ ///
+ /// The computed retry delay when is true.
+ ///
+ public global::System.TimeSpan? RetryDelay { get; set; }
+
+ ///
+ /// A short retry reason such as exception or status:429.
+ ///
+ public string RetryReason { get; set; } = string.Empty;
+
///
/// The effective cancellation token for the current request attempt.
///
@@ -254,6 +300,8 @@ internal static class AutoSDKRequestOptionsSupport
int attempt,
int maxAttempts,
bool willRetry,
+ global::System.TimeSpan? retryDelay,
+ string retryReason,
global::System.Threading.CancellationToken cancellationToken)
{
return new global::HumeAI.AutoSDKHookContext
@@ -271,6 +319,8 @@ internal static class AutoSDKRequestOptionsSupport
Attempt = attempt,
MaxAttempts = maxAttempts,
WillRetry = willRetry,
+ RetryDelay = retryDelay,
+ RetryReason = retryReason ?? string.Empty,
CancellationToken = cancellationToken,
};
}
@@ -338,19 +388,188 @@ internal static int GetMaxAttempts(
return maxAttempts < 1 ? 1 : maxAttempts;
}
- internal static async global::System.Threading.Tasks.Task DelayBeforeRetryAsync(
+ internal static global::System.TimeSpan GetRetryDelay(
global::HumeAI.AutoSDKClientOptions clientOptions,
global::HumeAI.AutoSDKRequestOptions? requestOptions,
+ global::System.Net.Http.HttpResponseMessage? response,
+ int attempt)
+ {
+ var retryOptions = requestOptions?.Retry ?? clientOptions.Retry ?? new global::HumeAI.AutoSDKRetryOptions();
+
+ if (retryOptions.UseRetryAfterHeader &&
+ TryGetRetryAfterDelay(response, out var retryAfterDelay))
+ {
+ return ClampRetryDelay(retryAfterDelay, retryOptions);
+ }
+
+ if (retryOptions.UseRateLimitResetHeader &&
+ TryGetRateLimitResetDelay(response, retryOptions.RateLimitResetHeaderName, out var rateLimitResetDelay))
+ {
+ return ClampRetryDelay(rateLimitResetDelay, retryOptions);
+ }
+
+ if (retryOptions.Delay.HasValue)
+ {
+ return ClampRetryDelay(retryOptions.Delay.Value, retryOptions);
+ }
+
+ var initialDelay = retryOptions.InitialDelay;
+ if (initialDelay <= global::System.TimeSpan.Zero)
+ {
+ return global::System.TimeSpan.Zero;
+ }
+
+ var multiplier = retryOptions.BackoffMultiplier < 1D ? 1D : retryOptions.BackoffMultiplier;
+ var exponent = attempt <= 1 ? 0 : attempt - 1;
+ var delayMilliseconds = initialDelay.TotalMilliseconds * global::System.Math.Pow(multiplier, exponent);
+ if (double.IsNaN(delayMilliseconds) || double.IsInfinity(delayMilliseconds) || delayMilliseconds < 0D)
+ {
+ delayMilliseconds = 0D;
+ }
+
+ var delay = global::System.TimeSpan.FromMilliseconds(delayMilliseconds);
+ delay = ApplyJitter(delay, retryOptions.JitterRatio);
+ return ClampRetryDelay(delay, retryOptions);
+ }
+
+ internal static async global::System.Threading.Tasks.Task DelayBeforeRetryAsync(
+ global::System.TimeSpan retryDelay,
global::System.Threading.CancellationToken cancellationToken)
{
- var delay = requestOptions?.Retry?.Delay ??
- clientOptions.Retry?.Delay;
- if (!delay.HasValue || delay.Value <= global::System.TimeSpan.Zero)
+ if (retryDelay <= global::System.TimeSpan.Zero)
{
return;
}
- await global::System.Threading.Tasks.Task.Delay(delay.Value, cancellationToken).ConfigureAwait(false);
+ await global::System.Threading.Tasks.Task.Delay(retryDelay, cancellationToken).ConfigureAwait(false);
+ }
+
+ private static bool TryGetRetryAfterDelay(
+ global::System.Net.Http.HttpResponseMessage? response,
+ out global::System.TimeSpan delay)
+ {
+ delay = global::System.TimeSpan.Zero;
+ var retryAfter = response?.Headers.RetryAfter;
+ if (retryAfter == null)
+ {
+ return false;
+ }
+
+ if (retryAfter.Delta.HasValue)
+ {
+ delay = retryAfter.Delta.Value;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ if (retryAfter.Date.HasValue)
+ {
+ delay = retryAfter.Date.Value - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ return false;
+ }
+
+ private static bool TryGetRateLimitResetDelay(
+ global::System.Net.Http.HttpResponseMessage? response,
+ string? headerName,
+ out global::System.TimeSpan delay)
+ {
+ delay = global::System.TimeSpan.Zero;
+ if (response == null || string.IsNullOrWhiteSpace(headerName))
+ {
+ return false;
+ }
+
+ if (!response.Headers.TryGetValues(headerName, out var values) &&
+ (response.Content?.Headers == null || !response.Content.Headers.TryGetValues(headerName, out values)))
+ {
+ return false;
+ }
+
+ var value = global::System.Linq.Enumerable.FirstOrDefault(values);
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ return false;
+ }
+
+ value = value.Trim();
+ if (long.TryParse(
+ value,
+ global::System.Globalization.NumberStyles.Integer,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ out var unixSeconds))
+ {
+ delay = global::System.DateTimeOffset.FromUnixTimeSeconds(unixSeconds) - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ if (global::System.DateTimeOffset.TryParse(
+ value,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal,
+ out var resetAt))
+ {
+ delay = resetAt - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ return false;
+ }
+
+ private static global::System.TimeSpan ApplyJitter(
+ global::System.TimeSpan delay,
+ double jitterRatio)
+ {
+ if (delay <= global::System.TimeSpan.Zero || jitterRatio <= 0D)
+ {
+ return delay;
+ }
+
+ if (jitterRatio > 1D)
+ {
+ jitterRatio = 1D;
+ }
+
+ var sample = NextJitterSample();
+ var multiplier = 1D - jitterRatio + (sample * jitterRatio * 2D);
+ var milliseconds = delay.TotalMilliseconds * multiplier;
+ if (double.IsNaN(milliseconds) || double.IsInfinity(milliseconds) || milliseconds < 0D)
+ {
+ milliseconds = 0D;
+ }
+
+ return global::System.TimeSpan.FromMilliseconds(milliseconds);
+ }
+
+ private static double NextJitterSample()
+ {
+ var bytes = new byte[8];
+ using (var randomNumberGenerator = global::System.Security.Cryptography.RandomNumberGenerator.Create())
+ {
+ randomNumberGenerator.GetBytes(bytes);
+ }
+
+ var value = global::System.BitConverter.ToUInt64(bytes, 0);
+ return value / (double)ulong.MaxValue;
+ }
+
+ private static global::System.TimeSpan ClampRetryDelay(
+ global::System.TimeSpan delay,
+ global::HumeAI.AutoSDKRetryOptions retryOptions)
+ {
+ if (delay <= global::System.TimeSpan.Zero)
+ {
+ return global::System.TimeSpan.Zero;
+ }
+
+ var maxDelay = retryOptions.MaxDelay;
+ if (maxDelay > global::System.TimeSpan.Zero && delay > maxDelay)
+ {
+ return maxDelay;
+ }
+
+ return delay;
}
internal static bool ShouldRetryStatusCode(
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePrompt.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePrompt.g.cs
index 545ddb1..8ec0804 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePrompt.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePrompt.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreatePromptResponseContent(
///
public async global::System.Threading.Tasks.Task CreatePromptAsync(
+ global::HumeAI.PostedPrompt request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreatePromptAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create an EVI prompt
+ ///
+ ///
+ /// 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> CreatePromptAsResponseAsync(
+
global::HumeAI.PostedPrompt request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreatePromptResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/evi/prompts",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreatePromptResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreatePromptResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreatePromptResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreatePromptResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreatePromptResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreatePromptResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreatePromptResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreatePromptResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessCreatePromptResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPrompt.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPrompt.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessCreatePromptResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePromptVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePromptVersion.g.cs
index b58569d..486d26b 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePromptVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.CreatePromptVersion.g.cs
@@ -54,6 +54,31 @@ partial void ProcessCreatePromptVersionResponseContent(
public async global::System.Threading.Tasks.Task CreatePromptVersionAsync(
string id,
+ global::HumeAI.PostedPromptVersion request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreatePromptVersionAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a prompt version
+ ///
+ ///
+ ///
+ /// 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> CreatePromptVersionAsResponseAsync(
+ string id,
+
global::HumeAI.PostedPromptVersion request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessCreatePromptVersionResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/prompts/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessCreatePromptVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessCreatePromptVersionResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessCreatePromptVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -205,8 +240,7 @@ partial void ProcessCreatePromptVersionResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessCreatePromptVersionResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessCreatePromptVersionResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessCreatePromptVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessCreatePromptVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessCreatePromptVersionResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPrompt.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPrompt.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessCreatePromptVersionResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePrompt.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePrompt.g.cs
index bc41c70..6503c2d 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePrompt.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePrompt.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeletePromptResponse(
string id,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeletePromptAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a prompt
+ ///
+ ///
+ /// 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 DeletePromptAsResponseAsync(
+ string id,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeletePromptResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/prompts/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeletePromptResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeletePromptResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeletePromptResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeletePromptResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeletePromptResponse(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeletePromptResponse(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeletePromptResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeletePromptResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeletePromptResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeletePromptResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePromptVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePromptVersion.g.cs
index 8c91072..1e504fa 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePromptVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.DeletePromptVersion.g.cs
@@ -51,6 +51,27 @@ partial void ProcessDeletePromptVersionResponse(
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeletePromptVersionAsResponseAsync(
+ id: id,
+ version: version,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a prompt version
+ ///
+ ///
+ ///
+ /// 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 DeletePromptVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +102,7 @@ partial void ProcessDeletePromptVersionResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/prompts/{id}/version/{version}",
baseUri: HttpClient.BaseAddress);
@@ -155,6 +177,8 @@ partial void ProcessDeletePromptVersionResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -165,6 +189,11 @@ partial void ProcessDeletePromptVersionResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -182,6 +211,8 @@ partial void ProcessDeletePromptVersionResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -191,8 +222,7 @@ partial void ProcessDeletePromptVersionResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -201,6 +231,11 @@ partial void ProcessDeletePromptVersionResponse(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -217,14 +252,15 @@ partial void ProcessDeletePromptVersionResponse(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -264,6 +300,8 @@ partial void ProcessDeletePromptVersionResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -284,6 +322,8 @@ partial void ProcessDeletePromptVersionResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -304,6 +344,10 @@ partial void ProcessDeletePromptVersionResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -325,6 +369,10 @@ partial void ProcessDeletePromptVersionResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.GetPromptVersion.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.GetPromptVersion.g.cs
index 0b4401b..cfd9111 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.GetPromptVersion.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.GetPromptVersion.g.cs
@@ -56,6 +56,29 @@ partial void ProcessGetPromptVersionResponseContent(
int version,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetPromptVersionAsResponseAsync(
+ id: id,
+ version: version,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get a prompt version
+ ///
+ ///
+ ///
+ /// 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> GetPromptVersionAsResponseAsync(
+ string id,
+ int version,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -86,6 +109,7 @@ partial void ProcessGetPromptVersionResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/prompts/{id}/version/{version}",
baseUri: HttpClient.BaseAddress);
@@ -160,6 +184,8 @@ partial void ProcessGetPromptVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -170,6 +196,11 @@ partial void ProcessGetPromptVersionResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -187,6 +218,8 @@ partial void ProcessGetPromptVersionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -196,8 +229,7 @@ partial void ProcessGetPromptVersionResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -206,6 +238,11 @@ partial void ProcessGetPromptVersionResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -222,14 +259,15 @@ partial void ProcessGetPromptVersionResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -269,6 +307,8 @@ partial void ProcessGetPromptVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -289,6 +329,8 @@ partial void ProcessGetPromptVersionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -313,9 +355,13 @@ partial void ProcessGetPromptVersionResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPrompt.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPrompt.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -343,9 +389,13 @@ partial void ProcessGetPromptVersionResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPromptVersions.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPromptVersions.g.cs
index 38d6a88..2461685 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPromptVersions.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPromptVersions.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListPromptVersionsResponseContent(
bool? restrictToMostRecent = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListPromptVersionsAsResponseAsync(
+ id: id,
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ restrictToMostRecent: restrictToMostRecent,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List prompt versions
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListPromptVersionsAsResponseAsync(
+ string id,
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,13 +125,14 @@ partial void ProcessListPromptVersionsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/prompts/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("restrict_to_most_recent", restrictToMostRecent?.ToString().ToLowerInvariant())
+ .AddOptionalParameter("restrict_to_most_recent", restrictToMostRecent?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -177,6 +207,8 @@ partial void ProcessListPromptVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -187,6 +219,11 @@ partial void ProcessListPromptVersionsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -204,6 +241,8 @@ partial void ProcessListPromptVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -213,8 +252,7 @@ partial void ProcessListPromptVersionsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -223,6 +261,11 @@ partial void ProcessListPromptVersionsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -239,14 +282,15 @@ partial void ProcessListPromptVersionsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -286,6 +330,8 @@ partial void ProcessListPromptVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -306,6 +352,8 @@ partial void ProcessListPromptVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -330,9 +378,13 @@ partial void ProcessListPromptVersionsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPagedPrompts.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPagedPrompts.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -360,9 +412,13 @@ partial void ProcessListPromptVersionsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPagedPrompts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPagedPrompts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPrompts.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPrompts.g.cs
index 3f5a75e..b9f6e44 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPrompts.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.ListPrompts.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListPromptsResponseContent(
string? name = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListPromptsAsResponseAsync(
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ restrictToMostRecent: restrictToMostRecent,
+ name: name,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List EVI prompts
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListPromptsAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ bool? restrictToMostRecent = default,
+ string? name = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,14 +125,15 @@ partial void ProcessListPromptsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/evi/prompts",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
.AddOptionalParameter("restrict_to_most_recent", restrictToMostRecent?.ToString().ToLowerInvariant())
- .AddOptionalParameter("name", name)
+ .AddOptionalParameter("name", name)
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -178,6 +208,8 @@ partial void ProcessListPromptsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -188,6 +220,11 @@ partial void ProcessListPromptsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -205,6 +242,8 @@ partial void ProcessListPromptsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -214,8 +253,7 @@ partial void ProcessListPromptsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -224,6 +262,11 @@ partial void ProcessListPromptsResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -240,14 +283,15 @@ partial void ProcessListPromptsResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -287,6 +331,8 @@ partial void ProcessListPromptsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -307,6 +353,8 @@ partial void ProcessListPromptsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -331,9 +379,13 @@ partial void ProcessListPromptsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPagedPrompts.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPagedPrompts.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -361,9 +413,13 @@ partial void ProcessListPromptsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPagedPrompts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPagedPrompts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptDescription.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptDescription.g.cs
index 0af88d0..7851ecc 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptDescription.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptDescription.g.cs
@@ -58,6 +58,34 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
string id,
int version,
+ global::HumeAI.PostedPromptVersionDescription request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdatePromptDescriptionAsResponseAsync(
+ id: id,
+ version: version,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update prompt version description
+ ///
+ ///
+ ///
+ ///
+ /// 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> UpdatePromptDescriptionAsResponseAsync(
+ string id,
+ int version,
+
global::HumeAI.PostedPromptVersionDescription request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -94,6 +122,7 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/prompts/{id}/version/{version}",
baseUri: HttpClient.BaseAddress);
@@ -175,6 +204,8 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +216,11 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +238,8 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +249,7 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +258,11 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +279,15 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +327,8 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +349,8 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +375,13 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPrompt.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPrompt.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +409,13 @@ partial void ProcessUpdatePromptDescriptionResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptName.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptName.g.cs
index 06bd34d..08f3b46 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptName.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.UpdatePromptName.g.cs
@@ -54,6 +54,31 @@ partial void ProcessUpdatePromptNameResponseContent(
public async global::System.Threading.Tasks.Task UpdatePromptNameAsync(
string id,
+ global::HumeAI.PostedPromptName request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdatePromptNameAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update prompt name
+ ///
+ ///
+ ///
+ /// 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> UpdatePromptNameAsResponseAsync(
+ string id,
+
global::HumeAI.PostedPromptName request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessUpdatePromptNameResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/prompts/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessUpdatePromptNameResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessUpdatePromptNameResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessUpdatePromptNameResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -205,8 +240,7 @@ partial void ProcessUpdatePromptNameResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessUpdatePromptNameResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessUpdatePromptNameResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessUpdatePromptNameResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessUpdatePromptNameResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,7 +366,11 @@ partial void ProcessUpdatePromptNameResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -350,7 +398,11 @@ partial void ProcessUpdatePromptNameResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.g.cs b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.g.cs
index f2c4ab0..0a6c066 100644
--- a/src/libs/HumeAI/Generated/HumeAI.PromptsClient.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.PromptsClient.g.cs
@@ -72,10 +72,10 @@ public PromptsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public PromptsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::HumeAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::HumeAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.ResponseStream.g.cs b/src/libs/HumeAI/Generated/HumeAI.ResponseStream.g.cs
new file mode 100644
index 0000000..3d617ec
--- /dev/null
+++ b/src/libs/HumeAI/Generated/HumeAI.ResponseStream.g.cs
@@ -0,0 +1,117 @@
+
+#nullable enable
+
+namespace HumeAI
+{
+ internal sealed class ResponseStream : global::System.IO.Stream
+ {
+ private readonly global::System.Net.Http.HttpResponseMessage _response;
+ private readonly global::System.IO.Stream _stream;
+ private bool _disposed;
+
+ public ResponseStream(
+ global::System.Net.Http.HttpResponseMessage response,
+ global::System.IO.Stream stream)
+ {
+ _response = response ?? throw new global::System.ArgumentNullException(nameof(response));
+ _stream = stream ?? throw new global::System.ArgumentNullException(nameof(stream));
+ }
+
+ public override bool CanRead => _stream.CanRead;
+ public override bool CanSeek => _stream.CanSeek;
+ public override bool CanWrite => _stream.CanWrite;
+ public override bool CanTimeout => _stream.CanTimeout;
+ public override long Length => _stream.Length;
+
+ public override long Position
+ {
+ get => _stream.Position;
+ set => _stream.Position = value;
+ }
+
+ public override int ReadTimeout
+ {
+ get => _stream.ReadTimeout;
+ set => _stream.ReadTimeout = value;
+ }
+
+ public override int WriteTimeout
+ {
+ get => _stream.WriteTimeout;
+ set => _stream.WriteTimeout = value;
+ }
+
+ public override void Flush() => _stream.Flush();
+
+ public override global::System.Threading.Tasks.Task FlushAsync(
+ global::System.Threading.CancellationToken cancellationToken) =>
+ _stream.FlushAsync(cancellationToken);
+
+ public override int Read(byte[] buffer, int offset, int count) =>
+ _stream.Read(buffer, offset, count);
+
+ public override global::System.Threading.Tasks.Task ReadAsync(
+ byte[] buffer,
+ int offset,
+ int count,
+ global::System.Threading.CancellationToken cancellationToken) =>
+ _stream.ReadAsync(buffer, offset, count, cancellationToken);
+
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER
+ public override global::System.Threading.Tasks.ValueTask ReadAsync(
+ global::System.Memory buffer,
+ global::System.Threading.CancellationToken cancellationToken = default) =>
+ _stream.ReadAsync(buffer, cancellationToken);
+#endif
+
+ public override long Seek(long offset, global::System.IO.SeekOrigin origin) =>
+ _stream.Seek(offset, origin);
+
+ public override void SetLength(long value) =>
+ _stream.SetLength(value);
+
+ public override void Write(byte[] buffer, int offset, int count) =>
+ _stream.Write(buffer, offset, count);
+
+ public override global::System.Threading.Tasks.Task WriteAsync(
+ byte[] buffer,
+ int offset,
+ int count,
+ global::System.Threading.CancellationToken cancellationToken) =>
+ _stream.WriteAsync(buffer, offset, count, cancellationToken);
+
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER
+ public override global::System.Threading.Tasks.ValueTask WriteAsync(
+ global::System.ReadOnlyMemory buffer,
+ global::System.Threading.CancellationToken cancellationToken = default) =>
+ _stream.WriteAsync(buffer, cancellationToken);
+#endif
+
+ protected override void Dispose(bool disposing)
+ {
+ if (!_disposed && disposing)
+ {
+ _disposed = true;
+ _stream.Dispose();
+ _response.Dispose();
+ }
+
+ base.Dispose(disposing);
+ }
+
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER
+ public override async global::System.Threading.Tasks.ValueTask DisposeAsync()
+ {
+ if (_disposed)
+ {
+ return;
+ }
+
+ _disposed = true;
+ await _stream.DisposeAsync().ConfigureAwait(false);
+ _response.Dispose();
+ await base.DisposeAsync().ConfigureAwait(false);
+ }
+#endif
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceFile.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceFile.g.cs
index 9b2367d..12aaeed 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceFile.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceFile.g.cs
@@ -50,6 +50,28 @@ partial void ProcessConvertVoiceFileResponseContent(
///
public async global::System.Threading.Tasks.Task ConvertVoiceFileAsync(
+ global::HumeAI.ConvertVoiceJsonRequest request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ConvertVoiceFileAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Convert voice (file)
+ ///
+ ///
+ /// 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 ConvertVoiceFileAsStreamAsync(
+
global::HumeAI.ConvertVoiceJsonRequest request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessConvertVoiceFileResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/tts/voice_conversion/file",
baseUri: HttpClient.BaseAddress);
@@ -163,16 +186,23 @@ partial void ProcessConvertVoiceFileResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
__response = await HttpClient.SendAsync(
request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessConvertVoiceFileResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessConvertVoiceFileResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessConvertVoiceFileResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,340 @@ partial void ProcessConvertVoiceFileResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ try
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessConvertVoiceFileResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ConvertVoiceFile",
+ methodName: "ConvertVoiceFileAsync",
+ pathTemplate: "\"/v0/tts/voice_conversion/file\"",
+ httpMethod: "POST",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ConvertVoiceFile",
+ methodName: "ConvertVoiceFileAsync",
+ pathTemplate: "\"/v0/tts/voice_conversion/file\"",
+ httpMethod: "POST",
+ 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);
+ }
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ return new global::HumeAI.ResponseStream(__response, __content);
+ }
+ 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 new global::HumeAI.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ }
+ catch
+ {
+ __response.Dispose();
+ throw;
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Convert voice (file)
+ ///
+ ///
+ /// 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> ConvertVoiceFileAsResponseAsync(
+
+ global::HumeAI.ConvertVoiceJsonRequest request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareConvertVoiceFileArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ConvertVoiceFileSecurityRequirements,
+ operationName: "ConvertVoiceFileAsync");
+
+ using var __timeoutCancellationTokenSource = global::HumeAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::HumeAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::HumeAI.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::HumeAI.PathBuilder(
+ path: "/v0/tts/voice_conversion/file",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ 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);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::HumeAI.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareConvertVoiceFileRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ 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::HumeAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ConvertVoiceFile",
+ methodName: "ConvertVoiceFileAsync",
+ pathTemplate: "\"/v0/tts/voice_conversion/file\"",
+ httpMethod: "POST",
+ 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 HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ConvertVoiceFile",
+ methodName: "ConvertVoiceFileAsync",
+ pathTemplate: "\"/v0/tts/voice_conversion/file\"",
+ httpMethod: "POST",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
clientOptions: Options,
requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ConvertVoiceFile",
+ methodName: "ConvertVoiceFileAsync",
+ pathTemplate: "\"/v0/tts/voice_conversion/file\"",
+ httpMethod: "POST",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +634,8 @@ partial void ProcessConvertVoiceFileResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +656,8 @@ partial void ProcessConvertVoiceFileResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -312,7 +678,11 @@ partial void ProcessConvertVoiceFileResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -339,7 +709,11 @@ partial void ProcessConvertVoiceFileResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceJson.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceJson.g.cs
index 8320cf8..133595d 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceJson.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.ConvertVoiceJson.g.cs
@@ -50,6 +50,28 @@ partial void ProcessConvertVoiceJsonResponseContent(
///
public async global::System.Threading.Tasks.Task ConvertVoiceJsonAsync(
+ global::HumeAI.ConvertVoiceJsonRequest request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ConvertVoiceJsonAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Convert voice (JSON)
+ ///
+ ///
+ /// 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> ConvertVoiceJsonAsResponseAsync(
+
global::HumeAI.ConvertVoiceJsonRequest request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessConvertVoiceJsonResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/tts/voice_conversion/json",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessConvertVoiceJsonResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessConvertVoiceJsonResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessConvertVoiceJsonResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessConvertVoiceJsonResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessConvertVoiceJsonResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessConvertVoiceJsonResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessConvertVoiceJsonResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessConvertVoiceJsonResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessConvertVoiceJsonResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnTts.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnTts.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessConvertVoiceJsonResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnTts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnTts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFile.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFile.g.cs
index 76be5b5..483ca2a 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFile.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFile.g.cs
@@ -50,6 +50,28 @@ partial void ProcessSynthesizeFileResponseContent(
///
public async global::System.Threading.Tasks.Task SynthesizeFileAsync(
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SynthesizeFileAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Synthesize speech (file)
+ ///
+ ///
+ /// 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 SynthesizeFileAsStreamAsync(
+
global::HumeAI.PostedTts request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessSynthesizeFileResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/tts/file",
baseUri: HttpClient.BaseAddress);
@@ -163,16 +186,23 @@ partial void ProcessSynthesizeFileResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
__response = await HttpClient.SendAsync(
request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessSynthesizeFileResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessSynthesizeFileResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessSynthesizeFileResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,340 @@ partial void ProcessSynthesizeFileResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ try
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessSynthesizeFileResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFile",
+ methodName: "SynthesizeFileAsync",
+ pathTemplate: "\"/v0/tts/file\"",
+ httpMethod: "POST",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFile",
+ methodName: "SynthesizeFileAsync",
+ pathTemplate: "\"/v0/tts/file\"",
+ httpMethod: "POST",
+ 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);
+ }
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ return new global::HumeAI.ResponseStream(__response, __content);
+ }
+ 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 new global::HumeAI.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ }
+ catch
+ {
+ __response.Dispose();
+ throw;
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Synthesize speech (file)
+ ///
+ ///
+ /// 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> SynthesizeFileAsResponseAsync(
+
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareSynthesizeFileArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_SynthesizeFileSecurityRequirements,
+ operationName: "SynthesizeFileAsync");
+
+ using var __timeoutCancellationTokenSource = global::HumeAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::HumeAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::HumeAI.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::HumeAI.PathBuilder(
+ path: "/v0/tts/file",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ 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);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::HumeAI.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareSynthesizeFileRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ 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::HumeAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFile",
+ methodName: "SynthesizeFileAsync",
+ pathTemplate: "\"/v0/tts/file\"",
+ httpMethod: "POST",
+ 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 HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFile",
+ methodName: "SynthesizeFileAsync",
+ pathTemplate: "\"/v0/tts/file\"",
+ httpMethod: "POST",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
clientOptions: Options,
requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFile",
+ methodName: "SynthesizeFileAsync",
+ pathTemplate: "\"/v0/tts/file\"",
+ httpMethod: "POST",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +634,8 @@ partial void ProcessSynthesizeFileResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +656,8 @@ partial void ProcessSynthesizeFileResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -312,7 +678,11 @@ partial void ProcessSynthesizeFileResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -339,7 +709,11 @@ partial void ProcessSynthesizeFileResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFileStreaming.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFileStreaming.g.cs
index 3136b97..6515093 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFileStreaming.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeFileStreaming.g.cs
@@ -50,6 +50,28 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
///
public async global::System.Threading.Tasks.Task SynthesizeFileStreamingAsync(
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SynthesizeFileStreamingAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Synthesize speech streaming (file)
+ ///
+ ///
+ /// 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 SynthesizeFileStreamingAsStreamAsync(
+
global::HumeAI.PostedTts request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/tts/stream/file",
baseUri: HttpClient.BaseAddress);
@@ -163,16 +186,23 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
__response = await HttpClient.SendAsync(
request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,340 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ try
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessSynthesizeFileStreamingResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFileStreaming",
+ methodName: "SynthesizeFileStreamingAsync",
+ pathTemplate: "\"/v0/tts/stream/file\"",
+ httpMethod: "POST",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFileStreaming",
+ methodName: "SynthesizeFileStreamingAsync",
+ pathTemplate: "\"/v0/tts/stream/file\"",
+ httpMethod: "POST",
+ 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);
+ }
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ return new global::HumeAI.ResponseStream(__response, __content);
+ }
+ 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 new global::HumeAI.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ }
+ catch
+ {
+ __response.Dispose();
+ throw;
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Synthesize speech streaming (file)
+ ///
+ ///
+ /// 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> SynthesizeFileStreamingAsResponseAsync(
+
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareSynthesizeFileStreamingArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_SynthesizeFileStreamingSecurityRequirements,
+ operationName: "SynthesizeFileStreamingAsync");
+
+ using var __timeoutCancellationTokenSource = global::HumeAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::HumeAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::HumeAI.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::HumeAI.PathBuilder(
+ path: "/v0/tts/stream/file",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ 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);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::HumeAI.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareSynthesizeFileStreamingRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ 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::HumeAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFileStreaming",
+ methodName: "SynthesizeFileStreamingAsync",
+ pathTemplate: "\"/v0/tts/stream/file\"",
+ httpMethod: "POST",
+ 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 HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFileStreaming",
+ methodName: "SynthesizeFileStreamingAsync",
+ pathTemplate: "\"/v0/tts/stream/file\"",
+ httpMethod: "POST",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
clientOptions: Options,
requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "SynthesizeFileStreaming",
+ methodName: "SynthesizeFileStreamingAsync",
+ pathTemplate: "\"/v0/tts/stream/file\"",
+ httpMethod: "POST",
+ 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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +634,8 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +656,8 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -312,7 +678,11 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -339,7 +709,11 @@ partial void ProcessSynthesizeFileStreamingResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJson.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJson.g.cs
index 13f4cfb..3a1cd62 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJson.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJson.g.cs
@@ -50,6 +50,28 @@ partial void ProcessSynthesizeJsonResponseContent(
///
public async global::System.Threading.Tasks.Task SynthesizeJsonAsync(
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SynthesizeJsonAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Synthesize speech (JSON)
+ ///
+ ///
+ /// 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> SynthesizeJsonAsResponseAsync(
+
global::HumeAI.PostedTts request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessSynthesizeJsonResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/tts",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessSynthesizeJsonResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessSynthesizeJsonResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessSynthesizeJsonResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessSynthesizeJsonResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessSynthesizeJsonResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessSynthesizeJsonResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessSynthesizeJsonResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessSynthesizeJsonResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessSynthesizeJsonResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnTts.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnTts.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessSynthesizeJsonResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnTts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnTts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJsonStreaming.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJsonStreaming.g.cs
index 983ce4c..ce4946f 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJsonStreaming.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.SynthesizeJsonStreaming.g.cs
@@ -50,6 +50,28 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
///
public async global::System.Threading.Tasks.Task SynthesizeJsonStreamingAsync(
+ global::HumeAI.PostedTts request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SynthesizeJsonStreamingAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Synthesize speech streaming (JSON)
+ ///
+ ///
+ /// 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> SynthesizeJsonStreamingAsResponseAsync(
+
global::HumeAI.PostedTts request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/tts/stream/json",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnTts.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnTts.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessSynthesizeJsonStreamingResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnTts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnTts.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.TtsClient.g.cs b/src/libs/HumeAI/Generated/HumeAI.TtsClient.g.cs
index e062908..57156b8 100644
--- a/src/libs/HumeAI/Generated/HumeAI.TtsClient.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.TtsClient.g.cs
@@ -72,10 +72,10 @@ public TtsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public TtsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::HumeAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::HumeAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.CreateVoice.g.cs b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.CreateVoice.g.cs
index e9008f6..7eadcee 100644
--- a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.CreateVoice.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.CreateVoice.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateVoiceResponseContent(
///
public async global::System.Threading.Tasks.Task CreateVoiceAsync(
+ global::HumeAI.PostedVoice request,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateVoiceAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a custom voice
+ ///
+ ///
+ /// 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> CreateVoiceAsResponseAsync(
+
global::HumeAI.PostedVoice request,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateVoiceResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/tts/voices",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateVoiceResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateVoiceResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateVoiceResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateVoiceResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateVoiceResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateVoiceResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateVoiceResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateVoiceResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessCreateVoiceResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnVoice.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnVoice.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessCreateVoiceResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnVoice.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnVoice.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.DeleteVoice.g.cs b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.DeleteVoice.g.cs
index d160772..3bd0011 100644
--- a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.DeleteVoice.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.DeleteVoice.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteVoiceResponse(
string name,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteVoiceAsResponseAsync(
+ name: name,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a custom voice
+ ///
+ ///
+ /// 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 DeleteVoiceAsResponseAsync(
+ string name,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,11 +94,12 @@ partial void ProcessDeleteVoiceResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/tts/voices",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
- .AddRequiredParameter("name", name)
+ .AddRequiredParameter("name", name)
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -152,6 +171,8 @@ partial void ProcessDeleteVoiceResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -162,6 +183,11 @@ partial void ProcessDeleteVoiceResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -179,6 +205,8 @@ partial void ProcessDeleteVoiceResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -188,8 +216,7 @@ partial void ProcessDeleteVoiceResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -198,6 +225,11 @@ partial void ProcessDeleteVoiceResponse(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -214,14 +246,15 @@ partial void ProcessDeleteVoiceResponse(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -261,6 +294,8 @@ partial void ProcessDeleteVoiceResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -281,6 +316,8 @@ partial void ProcessDeleteVoiceResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -301,6 +338,10 @@ partial void ProcessDeleteVoiceResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -322,6 +363,10 @@ partial void ProcessDeleteVoiceResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.ListVoices.g.cs b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.ListVoices.g.cs
index f31fc20..3a8363e 100644
--- a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.ListVoices.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.ListVoices.g.cs
@@ -64,6 +64,35 @@ partial void ProcessListVoicesResponseContent(
string? name = default,
global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListVoicesAsResponseAsync(
+ pageNumber: pageNumber,
+ pageSize: pageSize,
+ provider: provider,
+ name: name,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List TTS voices
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListVoicesAsResponseAsync(
+ int? pageNumber = default,
+ int? pageSize = default,
+ global::HumeAI.ListVoicesProvider? provider = default,
+ string? name = default,
+ global::HumeAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -96,14 +125,15 @@ partial void ProcessListVoicesResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/tts/voices",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
.AddOptionalParameter("provider", provider?.ToValueString())
- .AddOptionalParameter("name", name)
+ .AddOptionalParameter("name", name)
;
var __path = __pathBuilder.ToString();
__path = global::HumeAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -178,6 +208,8 @@ partial void ProcessListVoicesResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -188,6 +220,11 @@ partial void ProcessListVoicesResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -205,6 +242,8 @@ partial void ProcessListVoicesResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -214,8 +253,7 @@ partial void ProcessListVoicesResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -224,6 +262,11 @@ partial void ProcessListVoicesResponseContent(
__attempt < __maxAttempts &&
global::HumeAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::HumeAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::HumeAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::HumeAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -240,14 +283,15 @@ partial void ProcessListVoicesResponseContent(
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::HumeAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -287,6 +331,8 @@ partial void ProcessListVoicesResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -307,6 +353,8 @@ partial void ProcessListVoicesResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -331,9 +379,13 @@ partial void ProcessListVoicesResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::HumeAI.ReturnPagedVoices.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::HumeAI.ReturnPagedVoices.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -361,9 +413,13 @@ partial void ProcessListVoicesResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::HumeAI.ReturnPagedVoices.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::HumeAI.ReturnPagedVoices.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HumeAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HumeAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.g.cs b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.g.cs
index 7739bbe..0895319 100644
--- a/src/libs/HumeAI/Generated/HumeAI.VoicesClient.g.cs
+++ b/src/libs/HumeAI/Generated/HumeAI.VoicesClient.g.cs
@@ -72,10 +72,10 @@ public VoicesClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public VoicesClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::HumeAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::HumeAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{