diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs
index 6bfe4a9..9137efe 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCallAgentResponseContent(
///
public async global::System.Threading.Tasks.Task CallAgentAsync(
+ global::tryAGI.Humanloop.AgentCallRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CallAgentAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Call Agent
+ ///
+ ///
+ /// 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> CallAgentAsResponseAsync(
+
global::tryAGI.Humanloop.AgentCallRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCallAgentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/agents/call",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCallAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCallAgentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCallAgentResponseContent(
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 ProcessCallAgentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCallAgentResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCallAgentResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCallAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCallAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessCallAgentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.AgentCallResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.AgentCallResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessCallAgentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.AgentCallResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.AgentCallResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs
index 5d30d31..68bd788 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteAgentResponse(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteAgentAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete Agent
+ ///
+ ///
+ /// 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 DeleteAgentAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteAgentResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/agents/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteAgentResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteAgentResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteAgentResponse(
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 ProcessDeleteAgentResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteAgentResponse(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteAgentResponse(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteAgentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteAgentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteAgentResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteAgentResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs
index 027db46..f3ded7c 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs
@@ -56,6 +56,29 @@ partial void ProcessGetAgentResponseContent(
string? versionId = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetAgentAsResponseAsync(
+ id: id,
+ versionId: versionId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get Agent
+ ///
+ ///
+ ///
+ /// 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> GetAgentAsResponseAsync(
+ string id,
+ string? versionId = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -86,11 +109,12 @@ partial void ProcessGetAgentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/agents/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
- .AddOptionalParameter("versionId", versionId)
+ .AddOptionalParameter("versionId", versionId)
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -163,6 +187,8 @@ partial void ProcessGetAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +199,11 @@ partial void ProcessGetAgentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +221,8 @@ partial void ProcessGetAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +232,7 @@ partial void ProcessGetAgentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +241,11 @@ partial void ProcessGetAgentResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +262,15 @@ partial void ProcessGetAgentResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +310,8 @@ partial void ProcessGetAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +332,8 @@ partial void ProcessGetAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +358,13 @@ partial void ProcessGetAgentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +392,13 @@ partial void ProcessGetAgentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs
index 87648a7..5775917 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs
@@ -52,6 +52,26 @@ partial void ProcessListAgentVersionsResponseContent(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListAgentVersionsAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Agent 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>> ListAgentVersionsAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessListAgentVersionsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/agents/{id}/versions",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessListAgentVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessListAgentVersionsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessListAgentVersionsResponseContent(
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 ProcessListAgentVersionsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessListAgentVersionsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessListAgentVersionsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessListAgentVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessListAgentVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessListAgentVersionsResponseContent(
{
__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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessListAgentVersionsResponseContent(
#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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs
index a0c4458..64bfcde 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs
@@ -68,6 +68,38 @@ partial void ProcessListAgentsResponseContent(
global::tryAGI.Humanloop.ListAgentsOrder? order = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListAgentsAsResponseAsync(
+ page: page,
+ size: size,
+ name: name,
+ sortBy: sortBy,
+ order: order,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Agents
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListAgentsAsResponseAsync(
+ int? page = default,
+ int? size = default,
+ string? name = default,
+ string? sortBy = default,
+ global::tryAGI.Humanloop.ListAgentsOrder? order = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -101,15 +133,16 @@ partial void ProcessListAgentsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/agents",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page", page?.ToString())
.AddOptionalParameter("size", size?.ToString())
.AddOptionalParameter("name", name)
.AddOptionalParameter("sortBy", sortBy)
- .AddOptionalParameter("order", order?.ToValueString())
+ .AddOptionalParameter("order", order?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -185,6 +218,8 @@ partial void ProcessListAgentsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -195,6 +230,11 @@ partial void ProcessListAgentsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -212,6 +252,8 @@ partial void ProcessListAgentsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -221,8 +263,7 @@ partial void ProcessListAgentsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -231,6 +272,11 @@ partial void ProcessListAgentsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -247,14 +293,15 @@ partial void ProcessListAgentsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -294,6 +341,8 @@ partial void ProcessListAgentsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -314,6 +363,8 @@ partial void ProcessListAgentsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -338,9 +389,13 @@ partial void ProcessListAgentsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.PaginatedAgentResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.PaginatedAgentResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -368,9 +423,13 @@ partial void ProcessListAgentsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.PaginatedAgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.PaginatedAgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs
index b22e840..8eead98 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs
@@ -50,6 +50,28 @@ partial void ProcessLogAgentResponseContent(
///
public async global::System.Threading.Tasks.Task LogAgentAsync(
+ global::tryAGI.Humanloop.LogAgentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await LogAgentAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Log Agent
+ ///
+ ///
+ /// 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> LogAgentAsResponseAsync(
+
global::tryAGI.Humanloop.LogAgentRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessLogAgentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/agents/log",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessLogAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessLogAgentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessLogAgentResponseContent(
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 ProcessLogAgentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessLogAgentResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessLogAgentResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessLogAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessLogAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessLogAgentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.CreateLogResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.CreateLogResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessLogAgentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.CreateLogResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.CreateLogResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs
index 70d9704..59baea4 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs
@@ -54,6 +54,31 @@ partial void ProcessMoveAgentResponseContent(
public async global::System.Threading.Tasks.Task MoveAgentAsync(
string id,
+ global::tryAGI.Humanloop.MoveRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await MoveAgentAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Move Agent
+ ///
+ ///
+ ///
+ /// 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> MoveAgentAsResponseAsync(
+ string id,
+
global::tryAGI.Humanloop.MoveRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessMoveAgentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/agents/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessMoveAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessMoveAgentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessMoveAgentResponseContent(
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 ProcessMoveAgentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessMoveAgentResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessMoveAgentResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessMoveAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessMoveAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessMoveAgentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessMoveAgentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs
index 04c0131..27df4ea 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs
@@ -51,6 +51,27 @@ partial void ProcessRemoveAgentDeploymentResponse(
string environmentId,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await RemoveAgentDeploymentAsResponseAsync(
+ id: id,
+ environmentId: environmentId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Remove Agent Deployment
+ ///
+ ///
+ ///
+ /// 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 RemoveAgentDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +102,7 @@ partial void ProcessRemoveAgentDeploymentResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/agents/{id}/environments/{environmentId}",
baseUri: HttpClient.BaseAddress);
@@ -155,6 +177,8 @@ partial void ProcessRemoveAgentDeploymentResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -165,6 +189,11 @@ partial void ProcessRemoveAgentDeploymentResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -182,6 +211,8 @@ partial void ProcessRemoveAgentDeploymentResponse(
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 ProcessRemoveAgentDeploymentResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -201,6 +231,11 @@ partial void ProcessRemoveAgentDeploymentResponse(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -217,14 +252,15 @@ partial void ProcessRemoveAgentDeploymentResponse(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -264,6 +300,8 @@ partial void ProcessRemoveAgentDeploymentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -284,6 +322,8 @@ partial void ProcessRemoveAgentDeploymentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -304,6 +344,10 @@ partial void ProcessRemoveAgentDeploymentResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -325,6 +369,10 @@ partial void ProcessRemoveAgentDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs
index 49972f5..e5c8a92 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs
@@ -58,6 +58,34 @@ partial void ProcessSetAgentDeploymentResponseContent(
string id,
string environmentId,
+ global::tryAGI.Humanloop.SetDeploymentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SetAgentDeploymentAsResponseAsync(
+ id: id,
+ environmentId: environmentId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Set Agent Deployment
+ ///
+ ///
+ ///
+ ///
+ /// 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> SetAgentDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+
global::tryAGI.Humanloop.SetDeploymentRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -94,6 +122,7 @@ partial void ProcessSetAgentDeploymentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/agents/{id}/environments/{environmentId}",
baseUri: HttpClient.BaseAddress);
@@ -175,6 +204,8 @@ partial void ProcessSetAgentDeploymentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +216,11 @@ partial void ProcessSetAgentDeploymentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +238,8 @@ partial void ProcessSetAgentDeploymentResponseContent(
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 ProcessSetAgentDeploymentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +258,11 @@ partial void ProcessSetAgentDeploymentResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +279,15 @@ partial void ProcessSetAgentDeploymentResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +327,8 @@ partial void ProcessSetAgentDeploymentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +349,8 @@ partial void ProcessSetAgentDeploymentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +375,13 @@ partial void ProcessSetAgentDeploymentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +409,13 @@ partial void ProcessSetAgentDeploymentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs
index 5df17f0..e472f8b 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs
@@ -54,6 +54,31 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
public async global::System.Threading.Tasks.Task UpdateAgentMonitoringAsync(
string id,
+ global::tryAGI.Humanloop.UpdateMonitoringRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateAgentMonitoringAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update Agent Monitoring
+ ///
+ ///
+ ///
+ /// 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> UpdateAgentMonitoringAsResponseAsync(
+ string id,
+
global::tryAGI.Humanloop.UpdateMonitoringRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/agents/{id}/evaluators",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
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 ProcessUpdateAgentMonitoringResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs
index d128c49..57d4ed5 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs
@@ -50,6 +50,28 @@ partial void ProcessUpsertAgentResponseContent(
///
public async global::System.Threading.Tasks.Task UpsertAgentAsync(
+ global::tryAGI.Humanloop.AgentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpsertAgentAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Upsert Agent
+ ///
+ ///
+ /// 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> UpsertAgentAsResponseAsync(
+
global::tryAGI.Humanloop.AgentRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessUpsertAgentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/agents",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessUpsertAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessUpsertAgentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessUpsertAgentResponseContent(
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 ProcessUpsertAgentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessUpsertAgentResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessUpsertAgentResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessUpsertAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessUpsertAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessUpsertAgentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.AgentResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessUpsertAgentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.AgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.g.cs
index dbb0019..d91ba6c 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.g.cs
@@ -72,10 +72,10 @@ public AgentsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public AgentsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::tryAGI.Humanloop.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::tryAGI.Humanloop.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AutoSDKHttpResponse.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AutoSDKHttpResponse.g.cs
new file mode 100644
index 0000000..a64bd1d
--- /dev/null
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AutoSDKHttpResponse.g.cs
@@ -0,0 +1,121 @@
+
+#nullable enable
+
+namespace tryAGI.Humanloop
+{
+ ///
+ /// 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/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs
index 3cbb704..642e087 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteDatasetResponse(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteDatasetAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete Dataset
+ ///
+ ///
+ /// 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 DeleteDatasetAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteDatasetResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/datasets/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteDatasetResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteDatasetResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteDatasetResponse(
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 ProcessDeleteDatasetResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteDatasetResponse(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteDatasetResponse(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteDatasetResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteDatasetResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteDatasetResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteDatasetResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs
index 6519f22..a72ee43 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs
@@ -60,6 +60,32 @@ partial void ProcessGetDatasetResponseContent(
bool? includeDatapoints = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetDatasetAsResponseAsync(
+ id: id,
+ versionId: versionId,
+ includeDatapoints: includeDatapoints,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get Dataset
+ ///
+ ///
+ ///
+ ///
+ /// 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> GetDatasetAsResponseAsync(
+ string id,
+ string? versionId = default,
+ bool? includeDatapoints = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -91,12 +117,13 @@ partial void ProcessGetDatasetResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/datasets/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("versionId", versionId)
- .AddOptionalParameter("includeDatapoints", includeDatapoints?.ToString().ToLowerInvariant())
+ .AddOptionalParameter("includeDatapoints", includeDatapoints?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -170,6 +197,8 @@ partial void ProcessGetDatasetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +209,11 @@ partial void ProcessGetDatasetResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +231,8 @@ partial void ProcessGetDatasetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +242,7 @@ partial void ProcessGetDatasetResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +251,11 @@ partial void ProcessGetDatasetResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +272,15 @@ partial void ProcessGetDatasetResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +320,8 @@ partial void ProcessGetDatasetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +342,8 @@ partial void ProcessGetDatasetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -323,9 +368,13 @@ partial void ProcessGetDatasetResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.DatasetResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.DatasetResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -353,9 +402,13 @@ partial void ProcessGetDatasetResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.DatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.DatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs
index 2b555c3..30896c6 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs
@@ -52,6 +52,26 @@ partial void ProcessListDatasetVersionsResponseContent(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListDatasetVersionsAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Dataset 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>> ListDatasetVersionsAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessListDatasetVersionsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/datasets/{id}/versions",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessListDatasetVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessListDatasetVersionsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessListDatasetVersionsResponseContent(
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 ProcessListDatasetVersionsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessListDatasetVersionsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessListDatasetVersionsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessListDatasetVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessListDatasetVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessListDatasetVersionsResponseContent(
{
__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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessListDatasetVersionsResponseContent(
#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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs
index 2334f7c..97014ed 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs
@@ -68,6 +68,38 @@ partial void ProcessListDatasetsResponseContent(
global::tryAGI.Humanloop.ListDatasetsOrder? order = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListDatasetsAsResponseAsync(
+ page: page,
+ size: size,
+ name: name,
+ sortBy: sortBy,
+ order: order,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Datasets
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListDatasetsAsResponseAsync(
+ int? page = default,
+ int? size = default,
+ string? name = default,
+ string? sortBy = default,
+ global::tryAGI.Humanloop.ListDatasetsOrder? order = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -101,15 +133,16 @@ partial void ProcessListDatasetsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/datasets",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page", page?.ToString())
.AddOptionalParameter("size", size?.ToString())
.AddOptionalParameter("name", name)
.AddOptionalParameter("sortBy", sortBy)
- .AddOptionalParameter("order", order?.ToValueString())
+ .AddOptionalParameter("order", order?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -185,6 +218,8 @@ partial void ProcessListDatasetsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -195,6 +230,11 @@ partial void ProcessListDatasetsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -212,6 +252,8 @@ partial void ProcessListDatasetsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -221,8 +263,7 @@ partial void ProcessListDatasetsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -231,6 +272,11 @@ partial void ProcessListDatasetsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -247,14 +293,15 @@ partial void ProcessListDatasetsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -294,6 +341,8 @@ partial void ProcessListDatasetsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -314,6 +363,8 @@ partial void ProcessListDatasetsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -338,9 +389,13 @@ partial void ProcessListDatasetsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.PaginatedDatasetResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.PaginatedDatasetResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -368,9 +423,13 @@ partial void ProcessListDatasetsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.PaginatedDatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.PaginatedDatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs
index 2baffe2..95278f2 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs
@@ -54,6 +54,31 @@ partial void ProcessMoveDatasetResponseContent(
public async global::System.Threading.Tasks.Task MoveDatasetAsync(
string id,
+ global::tryAGI.Humanloop.MoveRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await MoveDatasetAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Move Dataset
+ ///
+ ///
+ ///
+ /// 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> MoveDatasetAsResponseAsync(
+ string id,
+
global::tryAGI.Humanloop.MoveRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessMoveDatasetResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/datasets/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessMoveDatasetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessMoveDatasetResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessMoveDatasetResponseContent(
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 ProcessMoveDatasetResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessMoveDatasetResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessMoveDatasetResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessMoveDatasetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessMoveDatasetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessMoveDatasetResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.DatasetResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.DatasetResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessMoveDatasetResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.DatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.DatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs
index bd2e9d5..5b4f714 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs
@@ -51,6 +51,27 @@ partial void ProcessRemoveDatasetDeploymentResponse(
string environmentId,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await RemoveDatasetDeploymentAsResponseAsync(
+ id: id,
+ environmentId: environmentId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Remove Dataset Deployment
+ ///
+ ///
+ ///
+ /// 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 RemoveDatasetDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +102,7 @@ partial void ProcessRemoveDatasetDeploymentResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/datasets/{id}/environments/{environmentId}",
baseUri: HttpClient.BaseAddress);
@@ -155,6 +177,8 @@ partial void ProcessRemoveDatasetDeploymentResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -165,6 +189,11 @@ partial void ProcessRemoveDatasetDeploymentResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -182,6 +211,8 @@ partial void ProcessRemoveDatasetDeploymentResponse(
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 ProcessRemoveDatasetDeploymentResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -201,6 +231,11 @@ partial void ProcessRemoveDatasetDeploymentResponse(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -217,14 +252,15 @@ partial void ProcessRemoveDatasetDeploymentResponse(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -264,6 +300,8 @@ partial void ProcessRemoveDatasetDeploymentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -284,6 +322,8 @@ partial void ProcessRemoveDatasetDeploymentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -304,6 +344,10 @@ partial void ProcessRemoveDatasetDeploymentResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -325,6 +369,10 @@ partial void ProcessRemoveDatasetDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs
index 61911c5..de7c488 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs
@@ -58,6 +58,34 @@ partial void ProcessSetDatasetDeploymentResponseContent(
string id,
string environmentId,
+ global::tryAGI.Humanloop.SetDeploymentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SetDatasetDeploymentAsResponseAsync(
+ id: id,
+ environmentId: environmentId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Set Dataset Deployment
+ ///
+ ///
+ ///
+ ///
+ /// 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> SetDatasetDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+
global::tryAGI.Humanloop.SetDeploymentRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -94,6 +122,7 @@ partial void ProcessSetDatasetDeploymentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/datasets/{id}/environments/{environmentId}",
baseUri: HttpClient.BaseAddress);
@@ -175,6 +204,8 @@ partial void ProcessSetDatasetDeploymentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +216,11 @@ partial void ProcessSetDatasetDeploymentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +238,8 @@ partial void ProcessSetDatasetDeploymentResponseContent(
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 ProcessSetDatasetDeploymentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +258,11 @@ partial void ProcessSetDatasetDeploymentResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +279,15 @@ partial void ProcessSetDatasetDeploymentResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +327,8 @@ partial void ProcessSetDatasetDeploymentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +349,8 @@ partial void ProcessSetDatasetDeploymentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +375,13 @@ partial void ProcessSetDatasetDeploymentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.DatasetResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.DatasetResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +409,13 @@ partial void ProcessSetDatasetDeploymentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.DatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.DatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs
index 74e66d2..fb045d1 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs
@@ -50,6 +50,28 @@ partial void ProcessUpsertDatasetResponseContent(
///
public async global::System.Threading.Tasks.Task UpsertDatasetAsync(
+ global::tryAGI.Humanloop.DatasetRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpsertDatasetAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Upsert Dataset
+ ///
+ ///
+ /// 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> UpsertDatasetAsResponseAsync(
+
global::tryAGI.Humanloop.DatasetRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessUpsertDatasetResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/datasets",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessUpsertDatasetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessUpsertDatasetResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessUpsertDatasetResponseContent(
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 ProcessUpsertDatasetResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessUpsertDatasetResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessUpsertDatasetResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessUpsertDatasetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessUpsertDatasetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessUpsertDatasetResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.DatasetResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.DatasetResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessUpsertDatasetResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.DatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.DatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.g.cs
index 3b91f37..1a7475b 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.g.cs
@@ -72,10 +72,10 @@ public DatasetsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public DatasetsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::tryAGI.Humanloop.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::tryAGI.Humanloop.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs
index 1c0e65d..de6306e 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateDirectoryResponseContent(
///
public async global::System.Threading.Tasks.Task CreateDirectoryAsync(
+ global::tryAGI.Humanloop.CreateDirectoryRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateDirectoryAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create Directory
+ ///
+ ///
+ /// 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> CreateDirectoryAsResponseAsync(
+
global::tryAGI.Humanloop.CreateDirectoryRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateDirectoryResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/directories",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateDirectoryResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateDirectoryResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateDirectoryResponseContent(
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 ProcessCreateDirectoryResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateDirectoryResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateDirectoryResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateDirectoryResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateDirectoryResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessCreateDirectoryResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.DirectoryResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.DirectoryResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessCreateDirectoryResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.DirectoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.DirectoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs
index a863d83..1149e2d 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteDirectoryResponse(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteDirectoryAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete Directory
+ ///
+ ///
+ /// 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 DeleteDirectoryAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteDirectoryResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/directories/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteDirectoryResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteDirectoryResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteDirectoryResponse(
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 ProcessDeleteDirectoryResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteDirectoryResponse(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteDirectoryResponse(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteDirectoryResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteDirectoryResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteDirectoryResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteDirectoryResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs
index fcd162c..552df16 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetDirectoryResponseContent(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetDirectoryAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get Directory
+ ///
+ ///
+ /// 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> GetDirectoryAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetDirectoryResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/directories/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetDirectoryResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetDirectoryResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetDirectoryResponseContent(
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 ProcessGetDirectoryResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetDirectoryResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetDirectoryResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetDirectoryResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetDirectoryResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessGetDirectoryResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.DirectoryResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.DirectoryResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessGetDirectoryResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.DirectoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.DirectoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs
index aef4bbc..cecbbe4 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs
@@ -48,6 +48,23 @@ partial void ProcessListDirectoriesResponseContent(
public async global::System.Threading.Tasks.Task> ListDirectoriesAsync(
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListDirectoriesAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Directories
+ ///
+ /// 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>> ListDirectoriesAsResponseAsync(
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +93,7 @@ partial void ProcessListDirectoriesResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/directories",
baseUri: HttpClient.BaseAddress);
@@ -148,6 +166,8 @@ partial void ProcessListDirectoriesResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -158,6 +178,11 @@ partial void ProcessListDirectoriesResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -175,6 +200,8 @@ partial void ProcessListDirectoriesResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -184,8 +211,7 @@ partial void ProcessListDirectoriesResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -194,6 +220,11 @@ partial void ProcessListDirectoriesResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -210,14 +241,15 @@ partial void ProcessListDirectoriesResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -257,6 +289,8 @@ partial void ProcessListDirectoriesResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -277,6 +311,8 @@ partial void ProcessListDirectoriesResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -301,9 +337,13 @@ partial void ProcessListDirectoriesResponseContent(
{
__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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -331,9 +371,13 @@ partial void ProcessListDirectoriesResponseContent(
#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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs
index fae5621..2db323d 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs
@@ -54,6 +54,31 @@ partial void ProcessUpdateDirectoryResponseContent(
public async global::System.Threading.Tasks.Task UpdateDirectoryAsync(
string id,
+ global::tryAGI.Humanloop.UpdateDirectoryRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateDirectoryAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update Directory
+ ///
+ ///
+ ///
+ /// 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> UpdateDirectoryAsResponseAsync(
+ string id,
+
global::tryAGI.Humanloop.UpdateDirectoryRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessUpdateDirectoryResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/directories/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessUpdateDirectoryResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessUpdateDirectoryResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessUpdateDirectoryResponseContent(
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 ProcessUpdateDirectoryResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessUpdateDirectoryResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessUpdateDirectoryResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessUpdateDirectoryResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessUpdateDirectoryResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessUpdateDirectoryResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.DirectoryResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.DirectoryResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessUpdateDirectoryResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.DirectoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.DirectoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.g.cs
index 8bfe6d0..9866df6 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.g.cs
@@ -72,10 +72,10 @@ public DirectoriesClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public DirectoriesClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::tryAGI.Humanloop.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::tryAGI.Humanloop.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs
index e6f847c..f0c6bbb 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateEvaluationResponseContent(
///
public async global::System.Threading.Tasks.Task CreateEvaluationAsync(
+ global::tryAGI.Humanloop.EvaluationRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateEvaluationAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create Evaluation
+ ///
+ ///
+ /// 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> CreateEvaluationAsResponseAsync(
+
global::tryAGI.Humanloop.EvaluationRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateEvaluationResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/evaluations",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateEvaluationResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateEvaluationResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateEvaluationResponseContent(
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 ProcessCreateEvaluationResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateEvaluationResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateEvaluationResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateEvaluationResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateEvaluationResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessCreateEvaluationResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.EvaluationResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.EvaluationResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessCreateEvaluationResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.EvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.EvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs
index ebd5747..11622c0 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetEvaluationResponseContent(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetEvaluationAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get Evaluation
+ ///
+ ///
+ /// 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> GetEvaluationAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetEvaluationResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluations/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetEvaluationResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetEvaluationResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetEvaluationResponseContent(
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 ProcessGetEvaluationResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetEvaluationResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetEvaluationResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetEvaluationResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetEvaluationResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessGetEvaluationResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.EvaluationResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.EvaluationResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessGetEvaluationResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.EvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.EvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs
index da451ad..ab1b6ad 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs
@@ -60,6 +60,32 @@ partial void ProcessListEvaluationLogsResponseContent(
int? size = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListEvaluationLogsAsResponseAsync(
+ id: id,
+ page: page,
+ size: size,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Evaluation Logs
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListEvaluationLogsAsResponseAsync(
+ string id,
+ int? page = default,
+ int? size = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -91,12 +117,13 @@ partial void ProcessListEvaluationLogsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluations/{id}/logs",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page", page?.ToString())
- .AddOptionalParameter("size", size?.ToString())
+ .AddOptionalParameter("size", size?.ToString())
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -170,6 +197,8 @@ partial void ProcessListEvaluationLogsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +209,11 @@ partial void ProcessListEvaluationLogsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +231,8 @@ partial void ProcessListEvaluationLogsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +242,7 @@ partial void ProcessListEvaluationLogsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +251,11 @@ partial void ProcessListEvaluationLogsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +272,15 @@ partial void ProcessListEvaluationLogsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +320,8 @@ partial void ProcessListEvaluationLogsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +342,8 @@ partial void ProcessListEvaluationLogsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -323,9 +368,13 @@ partial void ProcessListEvaluationLogsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.PaginatedLogResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.PaginatedLogResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -353,9 +402,13 @@ partial void ProcessListEvaluationLogsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.PaginatedLogResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.PaginatedLogResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs
index 9fd1cb7..136d2a8 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs
@@ -52,6 +52,26 @@ partial void ProcessListEvaluationRunsResponseContent(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListEvaluationRunsAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Evaluation Runs
+ ///
+ ///
+ /// 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>> ListEvaluationRunsAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessListEvaluationRunsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluations/{id}/runs",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessListEvaluationRunsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessListEvaluationRunsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessListEvaluationRunsResponseContent(
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 ProcessListEvaluationRunsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessListEvaluationRunsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessListEvaluationRunsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessListEvaluationRunsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessListEvaluationRunsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessListEvaluationRunsResponseContent(
{
__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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessListEvaluationRunsResponseContent(
#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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs
index 93b8545..6a67932 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs
@@ -60,6 +60,32 @@ partial void ProcessListEvaluationsResponseContent(
string? fileId = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListEvaluationsAsResponseAsync(
+ page: page,
+ size: size,
+ fileId: fileId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Evaluations
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListEvaluationsAsResponseAsync(
+ int? page = default,
+ int? size = default,
+ string? fileId = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -91,13 +117,14 @@ partial void ProcessListEvaluationsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/evaluations",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page", page?.ToString())
.AddOptionalParameter("size", size?.ToString())
- .AddOptionalParameter("fileId", fileId)
+ .AddOptionalParameter("fileId", fileId)
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -171,6 +198,8 @@ partial void ProcessListEvaluationsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -181,6 +210,11 @@ partial void ProcessListEvaluationsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -198,6 +232,8 @@ partial void ProcessListEvaluationsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -207,8 +243,7 @@ partial void ProcessListEvaluationsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -217,6 +252,11 @@ partial void ProcessListEvaluationsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -233,14 +273,15 @@ partial void ProcessListEvaluationsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -280,6 +321,8 @@ partial void ProcessListEvaluationsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -300,6 +343,8 @@ partial void ProcessListEvaluationsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -324,9 +369,13 @@ partial void ProcessListEvaluationsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.PaginatedEvaluationResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.PaginatedEvaluationResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -354,9 +403,13 @@ partial void ProcessListEvaluationsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.PaginatedEvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.PaginatedEvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs
index 6eaaab1..4c1e085 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs
@@ -54,6 +54,31 @@ partial void ProcessUpdateEvaluationResponseContent(
public async global::System.Threading.Tasks.Task UpdateEvaluationAsync(
string id,
+ global::tryAGI.Humanloop.UpdateEvaluationStatusRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateEvaluationAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update Evaluation
+ ///
+ ///
+ ///
+ /// 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> UpdateEvaluationAsResponseAsync(
+ string id,
+
global::tryAGI.Humanloop.UpdateEvaluationStatusRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessUpdateEvaluationResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluations/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessUpdateEvaluationResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessUpdateEvaluationResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessUpdateEvaluationResponseContent(
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 ProcessUpdateEvaluationResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessUpdateEvaluationResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessUpdateEvaluationResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessUpdateEvaluationResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessUpdateEvaluationResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessUpdateEvaluationResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.EvaluationResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.EvaluationResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessUpdateEvaluationResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.EvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.EvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.g.cs
index f8a3675..ee70f1d 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.g.cs
@@ -72,10 +72,10 @@ public EvaluationsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public EvaluationsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::tryAGI.Humanloop.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::tryAGI.Humanloop.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs
index c9d5d39..ce229af 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteEvaluatorResponse(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteEvaluatorAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete Evaluator
+ ///
+ ///
+ /// 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 DeleteEvaluatorAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteEvaluatorResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluators/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteEvaluatorResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteEvaluatorResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteEvaluatorResponse(
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 ProcessDeleteEvaluatorResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteEvaluatorResponse(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteEvaluatorResponse(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteEvaluatorResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteEvaluatorResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteEvaluatorResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteEvaluatorResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs
index 3702b3b..46c83f1 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs
@@ -56,6 +56,29 @@ partial void ProcessGetEvaluatorResponseContent(
string? versionId = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetEvaluatorAsResponseAsync(
+ id: id,
+ versionId: versionId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get Evaluator
+ ///
+ ///
+ ///
+ /// 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> GetEvaluatorAsResponseAsync(
+ string id,
+ string? versionId = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -86,11 +109,12 @@ partial void ProcessGetEvaluatorResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluators/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
- .AddOptionalParameter("versionId", versionId)
+ .AddOptionalParameter("versionId", versionId)
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -163,6 +187,8 @@ partial void ProcessGetEvaluatorResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +199,11 @@ partial void ProcessGetEvaluatorResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +221,8 @@ partial void ProcessGetEvaluatorResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +232,7 @@ partial void ProcessGetEvaluatorResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +241,11 @@ partial void ProcessGetEvaluatorResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +262,15 @@ partial void ProcessGetEvaluatorResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +310,8 @@ partial void ProcessGetEvaluatorResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +332,8 @@ partial void ProcessGetEvaluatorResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +358,13 @@ partial void ProcessGetEvaluatorResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +392,13 @@ partial void ProcessGetEvaluatorResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs
index 5166a1b..bad1a89 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs
@@ -52,6 +52,26 @@ partial void ProcessListEvaluatorVersionsResponseContent(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListEvaluatorVersionsAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Evaluator 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>> ListEvaluatorVersionsAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessListEvaluatorVersionsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluators/{id}/versions",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessListEvaluatorVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessListEvaluatorVersionsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessListEvaluatorVersionsResponseContent(
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 ProcessListEvaluatorVersionsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessListEvaluatorVersionsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessListEvaluatorVersionsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessListEvaluatorVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessListEvaluatorVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessListEvaluatorVersionsResponseContent(
{
__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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessListEvaluatorVersionsResponseContent(
#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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs
index efc1a4e..151f80c 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs
@@ -68,6 +68,38 @@ partial void ProcessListEvaluatorsResponseContent(
global::tryAGI.Humanloop.ListEvaluatorsOrder? order = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListEvaluatorsAsResponseAsync(
+ page: page,
+ size: size,
+ name: name,
+ sortBy: sortBy,
+ order: order,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Evaluators
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListEvaluatorsAsResponseAsync(
+ int? page = default,
+ int? size = default,
+ string? name = default,
+ string? sortBy = default,
+ global::tryAGI.Humanloop.ListEvaluatorsOrder? order = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -101,15 +133,16 @@ partial void ProcessListEvaluatorsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/evaluators",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page", page?.ToString())
.AddOptionalParameter("size", size?.ToString())
.AddOptionalParameter("name", name)
.AddOptionalParameter("sortBy", sortBy)
- .AddOptionalParameter("order", order?.ToValueString())
+ .AddOptionalParameter("order", order?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -185,6 +218,8 @@ partial void ProcessListEvaluatorsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -195,6 +230,11 @@ partial void ProcessListEvaluatorsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -212,6 +252,8 @@ partial void ProcessListEvaluatorsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -221,8 +263,7 @@ partial void ProcessListEvaluatorsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -231,6 +272,11 @@ partial void ProcessListEvaluatorsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -247,14 +293,15 @@ partial void ProcessListEvaluatorsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -294,6 +341,8 @@ partial void ProcessListEvaluatorsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -314,6 +363,8 @@ partial void ProcessListEvaluatorsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -338,9 +389,13 @@ partial void ProcessListEvaluatorsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.PaginatedEvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.PaginatedEvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -368,9 +423,13 @@ partial void ProcessListEvaluatorsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.PaginatedEvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.PaginatedEvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs
index 902f052..eec03bd 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs
@@ -50,6 +50,28 @@ partial void ProcessLogEvaluatorResponseContent(
///
public async global::System.Threading.Tasks.Task LogEvaluatorAsync(
+ global::tryAGI.Humanloop.LogEvaluatorRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await LogEvaluatorAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Log Evaluator
+ ///
+ ///
+ /// 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> LogEvaluatorAsResponseAsync(
+
global::tryAGI.Humanloop.LogEvaluatorRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessLogEvaluatorResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/evaluators/log",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessLogEvaluatorResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessLogEvaluatorResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessLogEvaluatorResponseContent(
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 ProcessLogEvaluatorResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessLogEvaluatorResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessLogEvaluatorResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessLogEvaluatorResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessLogEvaluatorResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessLogEvaluatorResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.CreateLogResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.CreateLogResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessLogEvaluatorResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.CreateLogResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.CreateLogResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs
index 1966ad5..b779e98 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs
@@ -54,6 +54,31 @@ partial void ProcessMoveEvaluatorResponseContent(
public async global::System.Threading.Tasks.Task MoveEvaluatorAsync(
string id,
+ global::tryAGI.Humanloop.MoveRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await MoveEvaluatorAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Move Evaluator
+ ///
+ ///
+ ///
+ /// 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> MoveEvaluatorAsResponseAsync(
+ string id,
+
global::tryAGI.Humanloop.MoveRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessMoveEvaluatorResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluators/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessMoveEvaluatorResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessMoveEvaluatorResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessMoveEvaluatorResponseContent(
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 ProcessMoveEvaluatorResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessMoveEvaluatorResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessMoveEvaluatorResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessMoveEvaluatorResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessMoveEvaluatorResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessMoveEvaluatorResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessMoveEvaluatorResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs
index 11f53be..d63c8a5 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs
@@ -51,6 +51,27 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
string environmentId,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await RemoveEvaluatorDeploymentAsResponseAsync(
+ id: id,
+ environmentId: environmentId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Remove Evaluator Deployment
+ ///
+ ///
+ ///
+ /// 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 RemoveEvaluatorDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +102,7 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluators/{id}/environments/{environmentId}",
baseUri: HttpClient.BaseAddress);
@@ -155,6 +177,8 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -165,6 +189,11 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -182,6 +211,8 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
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 ProcessRemoveEvaluatorDeploymentResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -201,6 +231,11 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -217,14 +252,15 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -264,6 +300,8 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -284,6 +322,8 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -304,6 +344,10 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -325,6 +369,10 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs
index cbbd95f..04d56fe 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs
@@ -58,6 +58,34 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
string id,
string environmentId,
+ global::tryAGI.Humanloop.SetDeploymentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SetEvaluatorDeploymentAsResponseAsync(
+ id: id,
+ environmentId: environmentId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Set Evaluator Deployment
+ ///
+ ///
+ ///
+ ///
+ /// 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> SetEvaluatorDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+
global::tryAGI.Humanloop.SetDeploymentRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -94,6 +122,7 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluators/{id}/environments/{environmentId}",
baseUri: HttpClient.BaseAddress);
@@ -175,6 +204,8 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +216,11 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +238,8 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
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 ProcessSetEvaluatorDeploymentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +258,11 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +279,15 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +327,8 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +349,8 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +375,13 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +409,13 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs
index 93191e6..f60259a 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs
@@ -54,6 +54,31 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
public async global::System.Threading.Tasks.Task UpdateEvaluatorMonitoringAsync(
string id,
+ global::tryAGI.Humanloop.UpdateMonitoringRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateEvaluatorMonitoringAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update Evaluator Monitoring
+ ///
+ ///
+ ///
+ /// 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> UpdateEvaluatorMonitoringAsResponseAsync(
+ string id,
+
global::tryAGI.Humanloop.UpdateMonitoringRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/evaluators/{id}/evaluators",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
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 ProcessUpdateEvaluatorMonitoringResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs
index c6442c9..52cfce8 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs
@@ -50,6 +50,28 @@ partial void ProcessUpsertEvaluatorResponseContent(
///
public async global::System.Threading.Tasks.Task UpsertEvaluatorAsync(
+ global::tryAGI.Humanloop.EvaluatorRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpsertEvaluatorAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Upsert Evaluator
+ ///
+ ///
+ /// 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> UpsertEvaluatorAsResponseAsync(
+
global::tryAGI.Humanloop.EvaluatorRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessUpsertEvaluatorResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/evaluators",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessUpsertEvaluatorResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessUpsertEvaluatorResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessUpsertEvaluatorResponseContent(
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 ProcessUpsertEvaluatorResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessUpsertEvaluatorResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessUpsertEvaluatorResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessUpsertEvaluatorResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessUpsertEvaluatorResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessUpsertEvaluatorResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.EvaluatorResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessUpsertEvaluatorResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.EvaluatorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.g.cs
index 0a5b26a..fe2cfe0 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.g.cs
@@ -72,10 +72,10 @@ public EvaluatorsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public EvaluatorsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::tryAGI.Humanloop.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::tryAGI.Humanloop.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs
index c4b094b..576a1ce 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetFileByPathResponseContent(
string path,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetFileByPathAsResponseAsync(
+ path: path,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get File by Path
+ ///
+ ///
+ /// 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> GetFileByPathAsResponseAsync(
+ string path,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,11 +101,12 @@ partial void ProcessGetFileByPathResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/files/by-path",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
- .AddRequiredParameter("path", path)
+ .AddRequiredParameter("path", path)
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -157,6 +178,8 @@ partial void ProcessGetFileByPathResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -167,6 +190,11 @@ partial void ProcessGetFileByPathResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -184,6 +212,8 @@ partial void ProcessGetFileByPathResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -193,8 +223,7 @@ partial void ProcessGetFileByPathResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -203,6 +232,11 @@ partial void ProcessGetFileByPathResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -219,14 +253,15 @@ partial void ProcessGetFileByPathResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -266,6 +301,8 @@ partial void ProcessGetFileByPathResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -286,6 +323,8 @@ partial void ProcessGetFileByPathResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -310,9 +349,13 @@ partial void ProcessGetFileByPathResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.FileResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.FileResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -340,9 +383,13 @@ partial void ProcessGetFileByPathResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.FileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.FileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs
index 9949aa6..a947cd6 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs
@@ -72,6 +72,41 @@ partial void ProcessListFilesResponseContent(
global::tryAGI.Humanloop.ListFilesOrder? order = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListFilesAsResponseAsync(
+ page: page,
+ size: size,
+ name: name,
+ type: type,
+ sortBy: sortBy,
+ order: order,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Files
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListFilesAsResponseAsync(
+ int? page = default,
+ int? size = default,
+ string? name = default,
+ global::tryAGI.Humanloop.ListFilesType? type = default,
+ string? sortBy = default,
+ global::tryAGI.Humanloop.ListFilesOrder? order = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -106,16 +141,17 @@ partial void ProcessListFilesResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/files",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page", page?.ToString())
.AddOptionalParameter("size", size?.ToString())
.AddOptionalParameter("name", name)
.AddOptionalParameter("type", type?.ToValueString())
.AddOptionalParameter("sortBy", sortBy)
- .AddOptionalParameter("order", order?.ToValueString())
+ .AddOptionalParameter("order", order?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -192,6 +228,8 @@ partial void ProcessListFilesResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -202,6 +240,11 @@ partial void ProcessListFilesResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -219,6 +262,8 @@ partial void ProcessListFilesResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -228,8 +273,7 @@ partial void ProcessListFilesResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -238,6 +282,11 @@ partial void ProcessListFilesResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -254,14 +303,15 @@ partial void ProcessListFilesResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -301,6 +351,8 @@ partial void ProcessListFilesResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -321,6 +373,8 @@ partial void ProcessListFilesResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -345,9 +399,13 @@ partial void ProcessListFilesResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.PaginatedFileResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.PaginatedFileResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -375,9 +433,13 @@ partial void ProcessListFilesResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.PaginatedFileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.PaginatedFileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.g.cs
index bce7c1c..289c9dc 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.g.cs
@@ -72,10 +72,10 @@ public FilesClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public FilesClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::tryAGI.Humanloop.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::tryAGI.Humanloop.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs
index 6e52fd5..54778b0 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteFlowResponse(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteFlowAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete Flow
+ ///
+ ///
+ /// 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 DeleteFlowAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteFlowResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/flows/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteFlowResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteFlowResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteFlowResponse(
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 ProcessDeleteFlowResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteFlowResponse(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteFlowResponse(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteFlowResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteFlowResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteFlowResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteFlowResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs
index 87c9dfb..5410f61 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs
@@ -56,6 +56,29 @@ partial void ProcessGetFlowResponseContent(
string? versionId = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetFlowAsResponseAsync(
+ id: id,
+ versionId: versionId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get Flow
+ ///
+ ///
+ ///
+ /// 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> GetFlowAsResponseAsync(
+ string id,
+ string? versionId = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -86,11 +109,12 @@ partial void ProcessGetFlowResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/flows/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
- .AddOptionalParameter("versionId", versionId)
+ .AddOptionalParameter("versionId", versionId)
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -163,6 +187,8 @@ partial void ProcessGetFlowResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +199,11 @@ partial void ProcessGetFlowResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +221,8 @@ partial void ProcessGetFlowResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +232,7 @@ partial void ProcessGetFlowResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +241,11 @@ partial void ProcessGetFlowResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +262,15 @@ partial void ProcessGetFlowResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +310,8 @@ partial void ProcessGetFlowResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +332,8 @@ partial void ProcessGetFlowResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +358,13 @@ partial void ProcessGetFlowResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +392,13 @@ partial void ProcessGetFlowResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs
index f97b8ae..5701274 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs
@@ -52,6 +52,26 @@ partial void ProcessListFlowVersionsResponseContent(
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListFlowVersionsAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Flow 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>> ListFlowVersionsAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessListFlowVersionsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/flows/{id}/versions",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessListFlowVersionsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessListFlowVersionsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessListFlowVersionsResponseContent(
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 ProcessListFlowVersionsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessListFlowVersionsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessListFlowVersionsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessListFlowVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessListFlowVersionsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -307,9 +346,13 @@ partial void ProcessListFlowVersionsResponseContent(
{
__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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -337,9 +380,13 @@ partial void ProcessListFlowVersionsResponseContent(
#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::tryAGI.Humanloop.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs
index 659d151..7520b9c 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs
@@ -68,6 +68,38 @@ partial void ProcessListFlowsResponseContent(
global::tryAGI.Humanloop.ListFlowsOrder? order = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListFlowsAsResponseAsync(
+ page: page,
+ size: size,
+ name: name,
+ sortBy: sortBy,
+ order: order,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Flows
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListFlowsAsResponseAsync(
+ int? page = default,
+ int? size = default,
+ string? name = default,
+ string? sortBy = default,
+ global::tryAGI.Humanloop.ListFlowsOrder? order = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -101,15 +133,16 @@ partial void ProcessListFlowsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/flows",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page", page?.ToString())
.AddOptionalParameter("size", size?.ToString())
.AddOptionalParameter("name", name)
.AddOptionalParameter("sortBy", sortBy)
- .AddOptionalParameter("order", order?.ToValueString())
+ .AddOptionalParameter("order", order?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -185,6 +218,8 @@ partial void ProcessListFlowsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -195,6 +230,11 @@ partial void ProcessListFlowsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -212,6 +252,8 @@ partial void ProcessListFlowsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -221,8 +263,7 @@ partial void ProcessListFlowsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -231,6 +272,11 @@ partial void ProcessListFlowsResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -247,14 +293,15 @@ partial void ProcessListFlowsResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -294,6 +341,8 @@ partial void ProcessListFlowsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -314,6 +363,8 @@ partial void ProcessListFlowsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -338,9 +389,13 @@ partial void ProcessListFlowsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.PaginatedFlowResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.PaginatedFlowResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -368,9 +423,13 @@ partial void ProcessListFlowsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.PaginatedFlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.PaginatedFlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs
index 4e2a5f6..8c8afb2 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs
@@ -50,6 +50,28 @@ partial void ProcessLogFlowResponseContent(
///
public async global::System.Threading.Tasks.Task LogFlowAsync(
+ global::tryAGI.Humanloop.LogFlowRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await LogFlowAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Log Flow
+ ///
+ ///
+ /// 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> LogFlowAsResponseAsync(
+
global::tryAGI.Humanloop.LogFlowRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessLogFlowResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/flows/log",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessLogFlowResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessLogFlowResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessLogFlowResponseContent(
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 ProcessLogFlowResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessLogFlowResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessLogFlowResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessLogFlowResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessLogFlowResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessLogFlowResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.CreateLogResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.CreateLogResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessLogFlowResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.CreateLogResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.CreateLogResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs
index db42468..744633c 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs
@@ -54,6 +54,31 @@ partial void ProcessMoveFlowResponseContent(
public async global::System.Threading.Tasks.Task MoveFlowAsync(
string id,
+ global::tryAGI.Humanloop.MoveRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await MoveFlowAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Move Flow
+ ///
+ ///
+ ///
+ /// 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> MoveFlowAsResponseAsync(
+ string id,
+
global::tryAGI.Humanloop.MoveRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessMoveFlowResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/flows/{id}",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessMoveFlowResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessMoveFlowResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessMoveFlowResponseContent(
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 ProcessMoveFlowResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessMoveFlowResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessMoveFlowResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessMoveFlowResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessMoveFlowResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessMoveFlowResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessMoveFlowResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs
index b2254fd..add7b0c 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs
@@ -51,6 +51,27 @@ partial void ProcessRemoveFlowDeploymentResponse(
string environmentId,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await RemoveFlowDeploymentAsResponseAsync(
+ id: id,
+ environmentId: environmentId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Remove Flow Deployment
+ ///
+ ///
+ ///
+ /// 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 RemoveFlowDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +102,7 @@ partial void ProcessRemoveFlowDeploymentResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/flows/{id}/environments/{environmentId}",
baseUri: HttpClient.BaseAddress);
@@ -155,6 +177,8 @@ partial void ProcessRemoveFlowDeploymentResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -165,6 +189,11 @@ partial void ProcessRemoveFlowDeploymentResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -182,6 +211,8 @@ partial void ProcessRemoveFlowDeploymentResponse(
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 ProcessRemoveFlowDeploymentResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -201,6 +231,11 @@ partial void ProcessRemoveFlowDeploymentResponse(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -217,14 +252,15 @@ partial void ProcessRemoveFlowDeploymentResponse(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -264,6 +300,8 @@ partial void ProcessRemoveFlowDeploymentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -284,6 +322,8 @@ partial void ProcessRemoveFlowDeploymentResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -304,6 +344,10 @@ partial void ProcessRemoveFlowDeploymentResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -325,6 +369,10 @@ partial void ProcessRemoveFlowDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs
index 2a8fe09..085f1f6 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs
@@ -58,6 +58,34 @@ partial void ProcessSetFlowDeploymentResponseContent(
string id,
string environmentId,
+ global::tryAGI.Humanloop.SetDeploymentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SetFlowDeploymentAsResponseAsync(
+ id: id,
+ environmentId: environmentId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Set Flow Deployment
+ ///
+ ///
+ ///
+ ///
+ /// 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> SetFlowDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+
global::tryAGI.Humanloop.SetDeploymentRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -94,6 +122,7 @@ partial void ProcessSetFlowDeploymentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/flows/{id}/environments/{environmentId}",
baseUri: HttpClient.BaseAddress);
@@ -175,6 +204,8 @@ partial void ProcessSetFlowDeploymentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +216,11 @@ partial void ProcessSetFlowDeploymentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +238,8 @@ partial void ProcessSetFlowDeploymentResponseContent(
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 ProcessSetFlowDeploymentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +258,11 @@ partial void ProcessSetFlowDeploymentResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +279,15 @@ partial void ProcessSetFlowDeploymentResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +327,8 @@ partial void ProcessSetFlowDeploymentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +349,8 @@ partial void ProcessSetFlowDeploymentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +375,13 @@ partial void ProcessSetFlowDeploymentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +409,13 @@ partial void ProcessSetFlowDeploymentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs
index f5fa6e7..a643cbb 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs
@@ -54,6 +54,31 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
public async global::System.Threading.Tasks.Task UpdateFlowMonitoringAsync(
string id,
+ global::tryAGI.Humanloop.UpdateMonitoringRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateFlowMonitoringAsResponseAsync(
+ id: id,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update Flow Monitoring
+ ///
+ ///
+ ///
+ /// 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> UpdateFlowMonitoringAsResponseAsync(
+ string id,
+
global::tryAGI.Humanloop.UpdateMonitoringRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -89,6 +114,7 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: $"/flows/{id}/evaluators",
baseUri: HttpClient.BaseAddress);
@@ -169,6 +195,8 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -179,6 +207,11 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -196,6 +229,8 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
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 ProcessUpdateFlowMonitoringResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +249,11 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -231,14 +270,15 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -278,6 +318,8 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -298,6 +340,8 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -322,9 +366,13 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -352,9 +400,13 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs
index 536e4fb..1fddccb 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs
@@ -50,6 +50,28 @@ partial void ProcessUpsertFlowResponseContent(
///
public async global::System.Threading.Tasks.Task UpsertFlowAsync(
+ global::tryAGI.Humanloop.FlowRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpsertFlowAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Upsert Flow
+ ///
+ ///
+ /// 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> UpsertFlowAsResponseAsync(
+
global::tryAGI.Humanloop.FlowRequest request,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessUpsertFlowResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder(
path: "/flows",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessUpsertFlowResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessUpsertFlowResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessUpsertFlowResponseContent(
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 ProcessUpsertFlowResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessUpsertFlowResponseContent(
__attempt < __maxAttempts &&
global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessUpsertFlowResponseContent(
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::tryAGI.Humanloop.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessUpsertFlowResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessUpsertFlowResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -316,9 +357,13 @@ partial void ProcessUpsertFlowResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::tryAGI.Humanloop.FlowResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -346,9 +391,13 @@ partial void ProcessUpsertFlowResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::tryAGI.Humanloop.FlowResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::tryAGI.Humanloop.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::tryAGI.Humanloop.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.g.cs
index 2b79365..fab9c69 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.g.cs
@@ -72,10 +72,10 @@ public FlowsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public FlowsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::tryAGI.Humanloop.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::tryAGI.Humanloop.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.g.cs
index ee149f0..84ef1a9 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.g.cs
@@ -45,7 +45,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- public AgentsClient Agents => new AgentsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public AgentsClient Agents => new AgentsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -54,7 +54,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- public DatasetsClient Datasets => new DatasetsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public DatasetsClient Datasets => new DatasetsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -63,7 +63,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- public DirectoriesClient Directories => new DirectoriesClient(HttpClient, authorizations: Authorizations, options: Options)
+ public DirectoriesClient Directories => new DirectoriesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -72,7 +72,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- public EvaluationsClient Evaluations => new EvaluationsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public EvaluationsClient Evaluations => new EvaluationsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -81,7 +81,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- public EvaluatorsClient Evaluators => new EvaluatorsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public EvaluatorsClient Evaluators => new EvaluatorsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -90,7 +90,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- public FilesClient Files => new FilesClient(HttpClient, authorizations: Authorizations, options: Options)
+ public FilesClient Files => new FilesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -99,7 +99,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- public FlowsClient Flows => new FlowsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public FlowsClient Flows => new FlowsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -108,7 +108,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- public LogsClient Logs => new LogsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public LogsClient Logs => new LogsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -117,7 +117,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- 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,
@@ -126,7 +126,7 @@ public sealed partial class HumanloopClient : global::tryAGI.Humanloop.IHumanloo
///
///
///
- public ToolsClient Tools => new ToolsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public ToolsClient Tools => new ToolsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -165,10 +165,10 @@ public HumanloopClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public HumanloopClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::tryAGI.Humanloop.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::tryAGI.Humanloop.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.CallAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.CallAgent.g.cs
index d94ebee..df8b57e 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.CallAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.CallAgent.g.cs
@@ -19,6 +19,18 @@ public partial interface IAgentsClient
///
/// Call Agent
///
+ ///
+ /// 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> CallAgentAsResponseAsync(
+
+ global::tryAGI.Humanloop.AgentCallRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Call Agent
+ ///
///
///
///
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.DeleteAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.DeleteAgent.g.cs
index a18086d..40beb2c 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.DeleteAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.DeleteAgent.g.cs
@@ -15,5 +15,16 @@ public partial interface IAgentsClient
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Agent
+ ///
+ ///
+ /// 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 DeleteAgentAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.GetAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.GetAgent.g.cs
index da232db..5a2fc8b 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.GetAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.GetAgent.g.cs
@@ -17,5 +17,18 @@ public partial interface IAgentsClient
string? versionId = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Agent
+ ///
+ ///
+ ///
+ /// 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> GetAgentAsResponseAsync(
+ string id,
+ string? versionId = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.ListAgentVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.ListAgentVersions.g.cs
index b8edaae..9836eee 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.ListAgentVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.ListAgentVersions.g.cs
@@ -15,5 +15,16 @@ public partial interface IAgentsClient
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Agent 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>> ListAgentVersionsAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.ListAgents.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.ListAgents.g.cs
index e3c77b1..35ece16 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.ListAgents.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.ListAgents.g.cs
@@ -23,5 +23,24 @@ public partial interface IAgentsClient
global::tryAGI.Humanloop.ListAgentsOrder? order = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Agents
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListAgentsAsResponseAsync(
+ int? page = default,
+ int? size = default,
+ string? name = default,
+ string? sortBy = default,
+ global::tryAGI.Humanloop.ListAgentsOrder? order = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.LogAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.LogAgent.g.cs
index 23fa5ce..0f24140 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.LogAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.LogAgent.g.cs
@@ -19,6 +19,18 @@ public partial interface IAgentsClient
///
/// Log Agent
///
+ ///
+ /// 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> LogAgentAsResponseAsync(
+
+ global::tryAGI.Humanloop.LogAgentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Log Agent
+ ///
///
///
///
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.MoveAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.MoveAgent.g.cs
index ac24a4a..3d28a06 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.MoveAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.MoveAgent.g.cs
@@ -22,6 +22,20 @@ public partial interface IAgentsClient
/// Move Agent
///
///
+ ///
+ /// 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> MoveAgentAsResponseAsync(
+ string id,
+
+ global::tryAGI.Humanloop.MoveRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Move Agent
+ ///
+ ///
///
/// New path to move the file to.
///
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.RemoveAgentDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.RemoveAgentDeployment.g.cs
index 2f18df4..897fa98 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.RemoveAgentDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.RemoveAgentDeployment.g.cs
@@ -17,5 +17,18 @@ public partial interface IAgentsClient
string environmentId,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Remove Agent Deployment
+ ///
+ ///
+ ///
+ /// 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 RemoveAgentDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.SetAgentDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.SetAgentDeployment.g.cs
index b5a1417..e13d6dc 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.SetAgentDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.SetAgentDeployment.g.cs
@@ -25,6 +25,22 @@ public partial interface IAgentsClient
///
///
///
+ ///
+ /// 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> SetAgentDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+
+ global::tryAGI.Humanloop.SetDeploymentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Set Agent Deployment
+ ///
+ ///
+ ///
///
/// Version ID to deploy.
///
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.UpdateAgentMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.UpdateAgentMonitoring.g.cs
index 24eb14d..58b4e4f 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.UpdateAgentMonitoring.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.UpdateAgentMonitoring.g.cs
@@ -22,6 +22,20 @@ public partial interface IAgentsClient
/// Update Agent Monitoring
///
///
+ ///
+ /// 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> UpdateAgentMonitoringAsResponseAsync(
+ string id,
+
+ global::tryAGI.Humanloop.UpdateMonitoringRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Agent Monitoring
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.UpsertAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.UpsertAgent.g.cs
index 5fcfc99..413eb4b 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.UpsertAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IAgentsClient.UpsertAgent.g.cs
@@ -19,6 +19,18 @@ public partial interface IAgentsClient
///
/// Upsert Agent
///
+ ///
+ /// 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> UpsertAgentAsResponseAsync(
+
+ global::tryAGI.Humanloop.AgentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Upsert Agent
+ ///
///
///
///
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.DeleteDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.DeleteDataset.g.cs
index 4fe015a..c9f286e 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.DeleteDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.DeleteDataset.g.cs
@@ -15,5 +15,16 @@ public partial interface IDatasetsClient
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Dataset
+ ///
+ ///
+ /// 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 DeleteDatasetAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.GetDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.GetDataset.g.cs
index 705a830..962d6a5 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.GetDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.GetDataset.g.cs
@@ -19,5 +19,20 @@ public partial interface IDatasetsClient
bool? includeDatapoints = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Dataset
+ ///
+ ///
+ ///
+ ///
+ /// 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> GetDatasetAsResponseAsync(
+ string id,
+ string? versionId = default,
+ bool? includeDatapoints = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.ListDatasetVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.ListDatasetVersions.g.cs
index 0c2a058..770a07b 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.ListDatasetVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.ListDatasetVersions.g.cs
@@ -15,5 +15,16 @@ public partial interface IDatasetsClient
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Dataset 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>> ListDatasetVersionsAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.ListDatasets.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.ListDatasets.g.cs
index 8426e31..327c919 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.ListDatasets.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.ListDatasets.g.cs
@@ -23,5 +23,24 @@ public partial interface IDatasetsClient
global::tryAGI.Humanloop.ListDatasetsOrder? order = default,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Datasets
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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> ListDatasetsAsResponseAsync(
+ int? page = default,
+ int? size = default,
+ string? name = default,
+ string? sortBy = default,
+ global::tryAGI.Humanloop.ListDatasetsOrder? order = default,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.MoveDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.MoveDataset.g.cs
index 41cd955..53ddaae 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.MoveDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.MoveDataset.g.cs
@@ -22,6 +22,20 @@ public partial interface IDatasetsClient
/// Move Dataset
///
///
+ ///
+ /// 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> MoveDatasetAsResponseAsync(
+ string id,
+
+ global::tryAGI.Humanloop.MoveRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Move Dataset
+ ///
+ ///
///
/// New path to move the file to.
///
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.RemoveDatasetDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.RemoveDatasetDeployment.g.cs
index 1d5e4d4..47103a1 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.RemoveDatasetDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.RemoveDatasetDeployment.g.cs
@@ -17,5 +17,18 @@ public partial interface IDatasetsClient
string environmentId,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Remove Dataset Deployment
+ ///
+ ///
+ ///
+ /// 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 RemoveDatasetDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.SetDatasetDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.SetDatasetDeployment.g.cs
index a1575e7..208811d 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.SetDatasetDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.SetDatasetDeployment.g.cs
@@ -25,6 +25,22 @@ public partial interface IDatasetsClient
///
///
///
+ ///
+ /// 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> SetDatasetDeploymentAsResponseAsync(
+ string id,
+ string environmentId,
+
+ global::tryAGI.Humanloop.SetDeploymentRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Set Dataset Deployment
+ ///
+ ///
+ ///
///
/// Version ID to deploy.
///
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.UpsertDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.UpsertDataset.g.cs
index 8bfcf80..4b185e9 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.UpsertDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDatasetsClient.UpsertDataset.g.cs
@@ -19,6 +19,18 @@ public partial interface IDatasetsClient
///
/// Upsert Dataset
///
+ ///
+ /// 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> UpsertDatasetAsResponseAsync(
+
+ global::tryAGI.Humanloop.DatasetRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Upsert Dataset
+ ///
///
/// Path of the Dataset.
///
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.CreateDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.CreateDirectory.g.cs
index 586d9a9..cd57d14 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.CreateDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.CreateDirectory.g.cs
@@ -19,6 +19,18 @@ public partial interface IDirectoriesClient
///
/// Create Directory
///
+ ///
+ /// 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> CreateDirectoryAsResponseAsync(
+
+ global::tryAGI.Humanloop.CreateDirectoryRequest request,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Directory
+ ///
///
/// Path for the directory.
///
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.DeleteDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.DeleteDirectory.g.cs
index a22f8a5..026a28b 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.DeleteDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.DeleteDirectory.g.cs
@@ -15,5 +15,16 @@ public partial interface IDirectoriesClient
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Directory
+ ///
+ ///
+ /// 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 DeleteDirectoryAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.GetDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.GetDirectory.g.cs
index 25d4198..6179ff2 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.GetDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.GetDirectory.g.cs
@@ -15,5 +15,16 @@ public partial interface IDirectoriesClient
string id,
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Directory
+ ///
+ ///
+ /// 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> GetDirectoryAsResponseAsync(
+ string id,
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.ListDirectories.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.ListDirectories.g.cs
index 77404a2..730bb68 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.ListDirectories.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.ListDirectories.g.cs
@@ -13,5 +13,14 @@ public partial interface IDirectoriesClient
global::System.Threading.Tasks.Task> ListDirectoriesAsync(
global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Directories
+ ///
+ /// 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>> ListDirectoriesAsResponseAsync(
+ global::tryAGI.Humanloop.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.UpdateDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.UpdateDirectory.g.cs
index 17a80de..72c53ac 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.UpdateDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IDirectoriesClient.UpdateDirectory.g.cs
@@ -22,6 +22,20 @@ public partial interface IDirectoriesClient
/// Update Directory
///
///