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 2ea5e63..42a5043 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs
@@ -139,7 +139,6 @@ partial void ProcessCallAgentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 4ac3e64..cd16c7b 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs
@@ -118,13 +118,6 @@ partial void ProcessDeleteAgentResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
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 2283b6d..a81c0db 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs
@@ -139,7 +139,6 @@ partial void ProcessGetAgentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 b175ff0..f049249 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs
@@ -130,7 +130,6 @@ partial void ProcessListAgentVersionsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 0c9c5a3..7b09fdd 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs
@@ -161,7 +161,6 @@ partial void ProcessListAgentsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 e768b9d..2331bad 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs
@@ -139,7 +139,6 @@ partial void ProcessLogAgentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 a206baa..1bee471 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs
@@ -145,7 +145,6 @@ partial void ProcessMoveAgentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 d9644f0..93fee30 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs
@@ -124,13 +124,6 @@ partial void ProcessRemoveAgentDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
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 ed67121..9ad4822 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs
@@ -151,7 +151,6 @@ partial void ProcessSetAgentDeploymentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 7bdbcf3..d030ebd 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs
@@ -145,7 +145,6 @@ partial void ProcessUpdateAgentMonitoringResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 0b51a25..4b97278 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs
@@ -139,7 +139,6 @@ partial void ProcessUpsertAgentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 cd87223..e5e19d7 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs
@@ -118,13 +118,6 @@ partial void ProcessDeleteDatasetResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
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 1417070..56291aa 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs
@@ -146,7 +146,6 @@ partial void ProcessGetDatasetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 0e610c3..91954f4 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs
@@ -130,7 +130,6 @@ partial void ProcessListDatasetVersionsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 833261e..884fb8f 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs
@@ -161,7 +161,6 @@ partial void ProcessListDatasetsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 90b4a4b..31163bc 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs
@@ -145,7 +145,6 @@ partial void ProcessMoveDatasetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 c798072..9560188 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs
@@ -124,13 +124,6 @@ partial void ProcessRemoveDatasetDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
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 31e877f..aef2f3c 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs
@@ -151,7 +151,6 @@ partial void ProcessSetDatasetDeploymentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 5bca455..4a9c640 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs
@@ -139,7 +139,6 @@ partial void ProcessUpsertDatasetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 a68c651..9c94ae9 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs
@@ -139,7 +139,6 @@ partial void ProcessCreateDirectoryResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 d87eeaa..bf53d22 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs
@@ -118,13 +118,6 @@ partial void ProcessDeleteDirectoryResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
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 cbb4c15..abcb186 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs
@@ -130,7 +130,6 @@ partial void ProcessGetDirectoryResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 5c6f1e5..9f20a3e 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs
@@ -124,7 +124,6 @@ partial void ProcessListDirectoriesResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 c3a27e0..84deafa 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs
@@ -145,7 +145,6 @@ partial void ProcessUpdateDirectoryResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 feaf29c..adc826a 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs
@@ -139,7 +139,6 @@ partial void ProcessCreateEvaluationResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 3d18624..e3b357b 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs
@@ -130,7 +130,6 @@ partial void ProcessGetEvaluationResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 71fb95d..d1445ee 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs
@@ -146,7 +146,6 @@ partial void ProcessListEvaluationLogsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 0e804fb..b638c5f 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs
@@ -130,7 +130,6 @@ partial void ProcessListEvaluationRunsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 0a3d54b..9eafafc 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs
@@ -147,7 +147,6 @@ partial void ProcessListEvaluationsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 d17a022..2e1f3bc 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs
@@ -145,7 +145,6 @@ partial void ProcessUpdateEvaluationResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 83d8ad4..edbc209 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs
@@ -118,13 +118,6 @@ partial void ProcessDeleteEvaluatorResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
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 4818b21..9837297 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs
@@ -139,7 +139,6 @@ partial void ProcessGetEvaluatorResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 1b5b951..f4916b5 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs
@@ -130,7 +130,6 @@ partial void ProcessListEvaluatorVersionsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 3bb1ba4..2cd2fca 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs
@@ -161,7 +161,6 @@ partial void ProcessListEvaluatorsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 a9f9419..9c87120 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs
@@ -139,7 +139,6 @@ partial void ProcessLogEvaluatorResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 0640b80..0ec287f 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs
@@ -145,7 +145,6 @@ partial void ProcessMoveEvaluatorResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 54ddff8..85ab940 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs
@@ -124,13 +124,6 @@ partial void ProcessRemoveEvaluatorDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
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 d73d594..a21370d 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs
@@ -151,7 +151,6 @@ partial void ProcessSetEvaluatorDeploymentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 1d7add5..0396fd4 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs
@@ -145,7 +145,6 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 419de6c..6de5c7b 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs
@@ -139,7 +139,6 @@ partial void ProcessUpsertEvaluatorResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 230be49..6ffa051 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs
@@ -133,7 +133,6 @@ partial void ProcessGetFileByPathResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 89b3342..1d799b9 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs
@@ -168,7 +168,6 @@ partial void ProcessListFilesResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 2aed2b1..6cce183 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs
@@ -118,13 +118,6 @@ partial void ProcessDeleteFlowResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
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 bde8da8..d53310f 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs
@@ -139,7 +139,6 @@ partial void ProcessGetFlowResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 e2b0747..7287bb5 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs
@@ -130,7 +130,6 @@ partial void ProcessListFlowVersionsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 c7c4691..226d2fb 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs
@@ -161,7 +161,6 @@ partial void ProcessListFlowsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 fe81aac..1e3a8be 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs
@@ -139,7 +139,6 @@ partial void ProcessLogFlowResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 0222090..9be1e25 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs
@@ -145,7 +145,6 @@ partial void ProcessMoveFlowResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 a81cc3f..c479a4d 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs
@@ -124,13 +124,6 @@ partial void ProcessRemoveFlowDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
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 5ad9a29..e1beedd 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs
@@ -151,7 +151,6 @@ partial void ProcessSetFlowDeploymentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 6602242..cbd4d18 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs
@@ -145,7 +145,6 @@ partial void ProcessUpdateFlowMonitoringResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
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 0b62349..da7bcf9 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs
@@ -139,7 +139,6 @@ partial void ProcessUpsertFlowResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.DeleteLog.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.DeleteLog.g.cs
index fa17830..7ae1b8f 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.DeleteLog.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.DeleteLog.g.cs
@@ -118,13 +118,6 @@ partial void ProcessDeleteLogResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.GetLog.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.GetLog.g.cs
index efacdc7..a353e18 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.GetLog.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.GetLog.g.cs
@@ -130,7 +130,6 @@ partial void ProcessGetLogResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.ListLogs.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.ListLogs.g.cs
index 621ab86..5f60ee7 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.ListLogs.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.ListLogs.g.cs
@@ -161,7 +161,6 @@ partial void ProcessListLogsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Polyfills.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Polyfills.g.cs
index a34e769..44ea11d 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Polyfills.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Polyfills.g.cs
@@ -1,5 +1,4 @@
-#if !NET6_0_OR_GREATER
#nullable enable
namespace tryAGI.Humanloop
@@ -9,6 +8,7 @@ namespace tryAGI.Humanloop
///
public static partial class AutoSdkPolyfills
{
+#if !NET6_0_OR_GREATER
///
///
///
@@ -48,6 +48,128 @@ public static partial class AutoSdkPolyfills
content = content ?? throw new global::System.ArgumentNullException(nameof(content));
return content.ReadAsByteArrayAsync();
}
+#endif
+
+ ///
+ /// Creates a JSON request content instance.
+ ///
+ public static global::System.Net.Http.HttpContent CreateJsonContent(
+ T inputValue,
+ string mediaType,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions)
+ {
+ if (string.IsNullOrWhiteSpace(mediaType))
+ {
+ throw new global::System.ArgumentException("Media type is required.", nameof(mediaType));
+ }
+
+#if NET5_0_OR_GREATER
+ return global::System.Net.Http.Json.JsonContent.Create(
+ inputValue: inputValue,
+ mediaType: new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType),
+ options: jsonSerializerOptions);
+#else
+ var json = global::System.Text.Json.JsonSerializer.Serialize(inputValue, jsonSerializerOptions);
+ var stringContent = new global::System.Net.Http.StringContent(
+ content: json,
+ encoding: global::System.Text.Encoding.UTF8);
+ stringContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType)
+ {
+ CharSet = global::System.Text.Encoding.UTF8.WebName,
+ };
+ return stringContent;
+#endif
+ }
+
+ ///
+ /// Creates a JSON request content instance using a source-generated serializer context.
+ ///
+ public static global::System.Net.Http.HttpContent CreateJsonContent(
+ object? inputValue,
+ global::System.Type inputType,
+ string mediaType,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ inputType = inputType ?? throw new global::System.ArgumentNullException(nameof(inputType));
+ jsonSerializerContext = jsonSerializerContext ?? throw new global::System.ArgumentNullException(nameof(jsonSerializerContext));
+
+ if (string.IsNullOrWhiteSpace(mediaType))
+ {
+ throw new global::System.ArgumentException("Media type is required.", nameof(mediaType));
+ }
+
+#if NET5_0_OR_GREATER
+ var jsonTypeInfo = jsonSerializerContext.GetTypeInfo(inputType) ??
+ throw new global::System.InvalidOperationException($"No JsonTypeInfo registered for '{inputType}'.");
+ return global::System.Net.Http.Json.JsonContent.Create(
+ inputValue: inputValue,
+ jsonTypeInfo: jsonTypeInfo,
+ mediaType: new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType));
+#else
+ var json = global::System.Text.Json.JsonSerializer.Serialize(
+ value: inputValue,
+ inputType: inputType,
+ jsonSerializerContext);
+ var stringContent = new global::System.Net.Http.StringContent(
+ content: json,
+ encoding: global::System.Text.Encoding.UTF8);
+ stringContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType)
+ {
+ CharSet = global::System.Text.Encoding.UTF8.WebName,
+ };
+ return stringContent;
+#endif
+ }
+
+ ///
+ /// Reads JSON content into the specified type using serializer options.
+ ///
+ public static async global::System.Threading.Tasks.Task ReadFromJsonAsync(
+ this global::System.Net.Http.HttpContent content,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions,
+ global::System.Threading.CancellationToken cancellationToken)
+ {
+ content = content ?? throw new global::System.ArgumentNullException(nameof(content));
+
+#if NET5_0_OR_GREATER
+ return await global::System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync(
+ content,
+ jsonSerializerOptions,
+ cancellationToken).ConfigureAwait(false);
+#else
+ using var stream = await AutoSdkPolyfills.ReadAsStreamAsync(content, cancellationToken).ConfigureAwait(false);
+ return await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ utf8Json: stream,
+ options: jsonSerializerOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+#endif
+ }
+
+ ///
+ /// Reads JSON content into the specified type using a source-generated serializer context.
+ ///
+ public static async global::System.Threading.Tasks.Task ReadFromJsonAsync(
+ this global::System.Net.Http.HttpContent content,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext,
+ global::System.Threading.CancellationToken cancellationToken)
+ {
+ content = content ?? throw new global::System.ArgumentNullException(nameof(content));
+ jsonSerializerContext = jsonSerializerContext ?? throw new global::System.ArgumentNullException(nameof(jsonSerializerContext));
+
+#if NET5_0_OR_GREATER
+ return (T?)await global::System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync(
+ content,
+ typeof(T),
+ jsonSerializerContext,
+ cancellationToken).ConfigureAwait(false);
+#else
+ using var stream = await AutoSdkPolyfills.ReadAsStreamAsync(content, cancellationToken).ConfigureAwait(false);
+ return (T?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ utf8Json: stream,
+ returnType: typeof(T),
+ jsonSerializerContext,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+#endif
+ }
}
}
-#endif
\ No newline at end of file
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.CallPrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.CallPrompt.g.cs
index f144de2..c2f2bb8 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.CallPrompt.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.CallPrompt.g.cs
@@ -140,7 +140,6 @@ partial void ProcessCallPromptResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePrompt.g.cs
index f1fed98..17081f6 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePrompt.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePrompt.g.cs
@@ -118,13 +118,6 @@ partial void ProcessDeletePromptResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePromptVersion.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePromptVersion.g.cs
index cb2752d..56b9d6e 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePromptVersion.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePromptVersion.g.cs
@@ -124,13 +124,6 @@ partial void ProcessDeletePromptVersionResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeserializePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeserializePrompt.g.cs
index 78b40f3..0ffc9d3 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeserializePrompt.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeserializePrompt.g.cs
@@ -139,7 +139,6 @@ partial void ProcessDeserializePromptResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.GetPrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.GetPrompt.g.cs
index 9bb4fad..484ba13 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.GetPrompt.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.GetPrompt.g.cs
@@ -146,7 +146,6 @@ partial void ProcessGetPromptResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs
index cfb51a5..38d56c1 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs
@@ -130,7 +130,6 @@ partial void ProcessListPromptEnvironmentsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs
index 9dd9a52..fd6de2f 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs
@@ -139,7 +139,6 @@ partial void ProcessListPromptVersionsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPrompts.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPrompts.g.cs
index 23d0206..b94401d 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPrompts.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPrompts.g.cs
@@ -169,7 +169,6 @@ partial void ProcessListPromptsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.LogPrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.LogPrompt.g.cs
index 7ffd724..80312b9 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.LogPrompt.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.LogPrompt.g.cs
@@ -139,7 +139,6 @@ partial void ProcessLogPromptResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.MovePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.MovePrompt.g.cs
index f66943f..989bc94 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.MovePrompt.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.MovePrompt.g.cs
@@ -145,7 +145,6 @@ partial void ProcessMovePromptResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.PopulatePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.PopulatePrompt.g.cs
index 400c365..301e089 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.PopulatePrompt.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.PopulatePrompt.g.cs
@@ -145,7 +145,6 @@ partial void ProcessPopulatePromptResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.RemovePromptDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.RemovePromptDeployment.g.cs
index b1ee51c..d93c479 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.RemovePromptDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.RemovePromptDeployment.g.cs
@@ -124,13 +124,6 @@ partial void ProcessRemovePromptDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SerializePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SerializePrompt.g.cs
index cc78df4..eba92f6 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SerializePrompt.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SerializePrompt.g.cs
@@ -144,7 +144,6 @@ partial void ProcessSerializePromptResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SetPromptDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SetPromptDeployment.g.cs
index 97d15fd..2755e1e 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SetPromptDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SetPromptDeployment.g.cs
@@ -151,7 +151,6 @@ partial void ProcessSetPromptDeploymentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptLog.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptLog.g.cs
index 7693ac2..dfd4b01 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptLog.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptLog.g.cs
@@ -151,7 +151,6 @@ partial void ProcessUpdatePromptLogResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptMonitoring.g.cs
index 55d06ac..a6d4db9 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptMonitoring.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptMonitoring.g.cs
@@ -145,7 +145,6 @@ partial void ProcessUpdatePromptMonitoringResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptVersion.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptVersion.g.cs
index 3153bb1..a002739 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptVersion.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptVersion.g.cs
@@ -151,7 +151,6 @@ partial void ProcessUpdatePromptVersionResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpsertPrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpsertPrompt.g.cs
index 36875ce..aac62a7 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpsertPrompt.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpsertPrompt.g.cs
@@ -140,7 +140,6 @@ partial void ProcessUpsertPromptResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.CallTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.CallTool.g.cs
index b86a4c6..6508bad 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.CallTool.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.CallTool.g.cs
@@ -139,7 +139,6 @@ partial void ProcessCallToolResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.DeleteTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.DeleteTool.g.cs
index a854374..deda908 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.DeleteTool.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.DeleteTool.g.cs
@@ -118,13 +118,6 @@ partial void ProcessDeleteToolResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.GetTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.GetTool.g.cs
index 024491f..9e95300 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.GetTool.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.GetTool.g.cs
@@ -139,7 +139,6 @@ partial void ProcessGetToolResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs
index 33f1d0e..46f4611 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs
@@ -130,7 +130,6 @@ partial void ProcessListToolVersionsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListTools.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListTools.g.cs
index e3c5a55..6dd3fc1 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListTools.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListTools.g.cs
@@ -161,7 +161,6 @@ partial void ProcessListToolsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.LogTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.LogTool.g.cs
index 44dbb6b..2a12247 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.LogTool.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.LogTool.g.cs
@@ -139,7 +139,6 @@ partial void ProcessLogToolResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.MoveTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.MoveTool.g.cs
index 1628770..f9eaf91 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.MoveTool.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.MoveTool.g.cs
@@ -145,7 +145,6 @@ partial void ProcessMoveToolResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.RemoveToolDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.RemoveToolDeployment.g.cs
index 8c75cc1..7ff0a64 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.RemoveToolDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.RemoveToolDeployment.g.cs
@@ -124,13 +124,6 @@ partial void ProcessRemoveToolDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.SetToolDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.SetToolDeployment.g.cs
index fdb7b88..affed39 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.SetToolDeployment.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.SetToolDeployment.g.cs
@@ -151,7 +151,6 @@ partial void ProcessSetToolDeploymentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpdateToolMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpdateToolMonitoring.g.cs
index 73e1fa4..62b79d5 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpdateToolMonitoring.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpdateToolMonitoring.g.cs
@@ -145,7 +145,6 @@ partial void ProcessUpdateToolMonitoringResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpsertTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpsertTool.g.cs
index f972d38..ceb87c0 100644
--- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpsertTool.g.cs
+++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpsertTool.g.cs
@@ -139,7 +139,6 @@ partial void ProcessUpsertToolResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken