From 8c43ffc707af2a968bfce95eda5f35a9a7f2f1e0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 29 Mar 2026 05:07:09 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...anloop.AgentsClient.ListAgentVersions.g.cs | 4 +- ...op.DatasetsClient.ListDatasetVersions.g.cs | 4 +- ...oop.DirectoriesClient.ListDirectories.g.cs | 4 +- ....EvaluationsClient.ListEvaluationRuns.g.cs | 4 +- ...valuatorsClient.ListEvaluatorVersions.g.cs | 4 +- ...umanloop.FlowsClient.ListFlowVersions.g.cs | 4 +- ...tryAGI.Humanloop.Models.AgentResponse.g.cs | 20 +++---- ...yAGI.Humanloop.Models.DatasetResponse.g.cs | 32 +++++------ ...I.Humanloop.Models.EvaluationResponse.g.cs | 8 +-- ...GI.Humanloop.Models.EvaluatorResponse.g.cs | 40 ++++++------- .../tryAGI.Humanloop.Models.FlowResponse.g.cs | 20 +++---- ...GI.Humanloop.Models.PromptLogResponse.g.cs | 4 +- ...tryAGI.Humanloop.Models.PromptRequest.g.cs | 8 +-- ...ryAGI.Humanloop.Models.PromptResponse.g.cs | 56 +++++++++---------- .../tryAGI.Humanloop.Models.ToolFunction.g.cs | 8 +-- .../tryAGI.Humanloop.Models.ToolResponse.g.cs | 40 ++++++------- ....PromptsClient.ListPromptEnvironments.g.cs | 4 +- ...loop.PromptsClient.ListPromptVersions.g.cs | 4 +- ...umanloop.ToolsClient.ListToolVersions.g.cs | 4 +- 19 files changed, 136 insertions(+), 136 deletions(-) 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 ad2fd92..b175ff0 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs @@ -107,7 +107,7 @@ partial void ProcessListAgentVersionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (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}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListAgentVersionsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (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."); } 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 06defb0..0e610c3 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs @@ -107,7 +107,7 @@ partial void ProcessListDatasetVersionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (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}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListDatasetVersionsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (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."); } 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 2296de9..5c6f1e5 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs @@ -101,7 +101,7 @@ partial void ProcessListDirectoriesResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (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}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessListDirectoriesResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (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."); } 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 e1a2066..0e804fb 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs @@ -107,7 +107,7 @@ partial void ProcessListEvaluationRunsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (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}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListEvaluationRunsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (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."); } 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 2792388..1b5b951 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs @@ -107,7 +107,7 @@ partial void ProcessListEvaluatorVersionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (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}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListEvaluatorVersionsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (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."); } 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 2cca579..e2b0747 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs @@ -107,7 +107,7 @@ partial void ProcessListFlowVersionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (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}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListFlowVersionsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (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."); } catch (global::System.Exception __ex) diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponse.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponse.g.cs index 17f212d..cca1842 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponse.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponse.g.cs @@ -159,19 +159,19 @@ public sealed partial class AgentResponse /// /// /// + /// + /// + /// + /// + /// /// /// - /// /// /// /// - /// /// /// - /// - /// /// - /// /// /// /// @@ -208,19 +208,19 @@ public AgentResponse( { this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.LastUsedAt = lastUsedAt; this.DirectoryId = directoryId; this.Model = model; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description; this.Readme = readme; this.Tags = tags; + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); this.Type = type; this.Environments = environments; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; this.CreatedBy = createdBy; + this.LastUsedAt = lastUsedAt; this.VersionName = versionName; this.VersionDescription = versionDescription; this.Attributes = attributes; diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponse.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponse.g.cs index 8a7a383..485aa17 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponse.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponse.g.cs @@ -152,28 +152,28 @@ public sealed partial class DatasetResponse /// /// Unique identifier for the Dataset. /// - /// /// /// Name of the Dataset. /// - /// - /// - /// - /// /// /// Unique identifier for the specific Dataset Version. /// - /// - /// /// /// - /// /// - /// - /// /// /// The number of Datapoints in this Dataset version. /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// /// /// #if NET7_0_OR_GREATER @@ -203,22 +203,22 @@ public DatasetResponse( { this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.LastUsedAt = lastUsedAt; - this.DatapointsCount = datapointsCount; this.DirectoryId = directoryId; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description; this.Schema = schema; this.Readme = readme; this.Tags = tags; + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); this.Type = type; this.Environments = environments; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; this.CreatedBy = createdBy; + this.LastUsedAt = lastUsedAt; this.VersionName = versionName; this.VersionDescription = versionDescription; + this.DatapointsCount = datapointsCount; this.Datapoints = datapoints; this.Attributes = attributes; } diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationResponse.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationResponse.g.cs index 4070d4d..bfe11d1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationResponse.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationResponse.g.cs @@ -90,15 +90,15 @@ public sealed partial class EvaluationResponse /// Total number of Runs in the Evaluation. /// /// + /// + /// /// /// Name of the Evaluation. /// /// /// ID of the File associated with the Evaluation. /// - /// /// - /// /// /// URL to view the Evaluation on Humanloop. /// @@ -121,11 +121,11 @@ public EvaluationResponse( this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.RunsCount = runsCount; this.Evaluators = evaluators ?? throw new global::System.ArgumentNullException(nameof(evaluators)); - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; this.Name = name; this.FileId = fileId; + this.CreatedAt = createdAt; this.CreatedBy = createdBy; + this.UpdatedAt = updatedAt; this.Url = url; this.Status = status; } diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponse.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponse.g.cs index 937e7f4..b106da0 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponse.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponse.g.cs @@ -178,31 +178,31 @@ public sealed partial class EvaluatorResponse /// /// Unique identifier for the Evaluator. /// + /// + /// Name of the Evaluator. + /// + /// + /// Unique identifier for the specific Evaluator Version. + /// + /// + /// + /// + /// + /// + /// /// /// /// /// /// The evaluator specification. /// - /// - /// Name of the Evaluator. - /// /// /// /// /// - /// - /// Unique identifier for the specific Evaluator Version. - /// /// /// - /// - /// /// - /// - /// - /// - /// /// /// /// @@ -237,25 +237,25 @@ public EvaluatorResponse( { this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.LastUsedAt = lastUsedAt; - this.VersionLogsCount = versionLogsCount; - this.TotalLogsCount = totalLogsCount; - this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); this.DirectoryId = directoryId; this.VersionName = versionName; this.VersionDescription = versionDescription; this.Spec = spec; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description; this.Schema = schema; this.Readme = readme; this.Tags = tags; + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); this.Type = type; this.Environments = environments; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; this.CreatedBy = createdBy; + this.LastUsedAt = lastUsedAt; + this.VersionLogsCount = versionLogsCount; + this.TotalLogsCount = totalLogsCount; + this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); this.Evaluators = evaluators; this.EvaluatorAggregates = evaluatorAggregates; this.Attributes = attributes; diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponse.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponse.g.cs index 07be7c0..817aac0 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponse.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponse.g.cs @@ -129,18 +129,18 @@ public sealed partial class FlowResponse /// /// /// - /// /// + /// + /// + /// + /// + /// /// /// /// - /// /// /// - /// - /// /// - /// /// /// /// @@ -168,18 +168,18 @@ public FlowResponse( { this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.LastUsedAt = lastUsedAt; this.DirectoryId = directoryId; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description; this.Readme = readme; this.Tags = tags; + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); this.Type = type; this.Environments = environments; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; this.CreatedBy = createdBy; + this.LastUsedAt = lastUsedAt; this.VersionName = versionName; this.VersionDescription = versionDescription; this.Attributes = attributes; diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponse.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponse.g.cs index 77586ae..32b1371 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponse.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponse.g.cs @@ -136,6 +136,7 @@ public sealed partial class PromptLogResponse /// /// Unique identifier for the Log. /// + /// /// /// /// @@ -152,7 +153,6 @@ public sealed partial class PromptLogResponse /// /// /// - /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -179,7 +179,6 @@ public PromptLogResponse( global::System.DateTime? updatedAt) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.CreatedAt = createdAt; this.PromptId = promptId; this.VersionId = versionId; this.Output = output; @@ -196,6 +195,7 @@ public PromptLogResponse( this.ProviderLatency = providerLatency; this.Error = error; this.TraceParentId = traceParentId; + this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; } diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequest.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequest.g.cs index 4013339..617a1fa 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequest.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequest.g.cs @@ -156,15 +156,15 @@ public sealed partial class PromptRequest /// /// Initializes a new instance of the class. /// + /// + /// The model instance used, e.g. gpt-4. + /// /// /// Path of the Prompt, including the name. /// /// /// ID for an existing Prompt. /// - /// - /// The model instance used, e.g. gpt-4. - /// /// /// The provider model endpoint used. /// @@ -225,9 +225,9 @@ public PromptRequest( global::System.Collections.Generic.IList? tags, string? readme) { - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Path = path; this.Id = id; + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Endpoint = endpoint; this.Template = template; this.Provider = provider; diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponse.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponse.g.cs index 46b0f91..04990f0 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponse.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponse.g.cs @@ -263,12 +263,28 @@ public sealed partial class PromptResponse /// /// Unique identifier for the Prompt. /// - /// - /// ID of the directory that the file is in on Humanloop. - /// /// /// The model instance used, e.g. gpt-4. /// + /// + /// Name of the Prompt. + /// + /// + /// Unique identifier for the specific Prompt Version. + /// + /// + /// + /// + /// + /// The number of logs generated for this Prompt Version. + /// + /// + /// The number of logs generated across all Prompt Versions. + /// + /// + /// + /// ID of the directory that the file is in on Humanloop. + /// /// /// The provider model endpoint used. /// @@ -321,26 +337,10 @@ public sealed partial class PromptResponse /// /// Long description of the file. /// - /// - /// Name of the Prompt. - /// /// - /// - /// Unique identifier for the specific Prompt Version. - /// /// /// - /// - /// /// - /// - /// - /// The number of logs generated for this Prompt Version. - /// - /// - /// The number of logs generated across all Prompt Versions. - /// - /// /// /// #if NET7_0_OR_GREATER @@ -388,16 +388,8 @@ public PromptResponse( { this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.LastUsedAt = lastUsedAt; - this.VersionLogsCount = versionLogsCount; - this.TotalLogsCount = totalLogsCount; - this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); this.DirectoryId = directoryId; + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Endpoint = endpoint; this.Template = template; this.Provider = provider; @@ -418,10 +410,18 @@ public PromptResponse( this.Description = description; this.Tags = tags; this.Readme = readme; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Schema = schema; + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); this.Type = type; this.Environments = environments; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; this.CreatedBy = createdBy; + this.LastUsedAt = lastUsedAt; + this.VersionLogsCount = versionLogsCount; + this.TotalLogsCount = totalLogsCount; + this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); this.Evaluators = evaluators; this.EvaluatorAggregates = evaluatorAggregates; } diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunction.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunction.g.cs index ec95a94..4081dfb 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunction.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunction.g.cs @@ -46,12 +46,12 @@ public sealed partial class ToolFunction /// /// Name of the function. /// - /// - /// Description of the function. - /// /// /// JSON Schema defining the function parameters. /// + /// + /// Description of the function. + /// /// /// Whether strict mode is enabled. /// @@ -65,8 +65,8 @@ public ToolFunction( bool? strict) { this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Parameters = parameters ?? throw new global::System.ArgumentNullException(nameof(parameters)); this.Description = description; + this.Parameters = parameters ?? throw new global::System.ArgumentNullException(nameof(parameters)); this.Strict = strict; } diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponse.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponse.g.cs index 0be66b6..04c25b5 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponse.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponse.g.cs @@ -196,6 +196,18 @@ public sealed partial class ToolResponse /// /// Unique identifier for the Tool. /// + /// + /// Name of the Tool. + /// + /// + /// Unique identifier for the specific Tool Version. + /// + /// + /// + /// + /// + /// + /// /// /// /// @@ -208,24 +220,12 @@ public sealed partial class ToolResponse /// /// /// - /// - /// Name of the Tool. - /// /// /// /// - /// - /// Unique identifier for the specific Tool Version. - /// /// /// - /// - /// /// - /// - /// - /// - /// /// /// /// @@ -263,14 +263,6 @@ public ToolResponse( { this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.LastUsedAt = lastUsedAt; - this.VersionLogsCount = versionLogsCount; - this.TotalLogsCount = totalLogsCount; - this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); this.DirectoryId = directoryId; this.Function = function; this.SourceCode = sourceCode; @@ -279,12 +271,20 @@ public ToolResponse( this.ToolType = toolType; this.VersionName = versionName; this.VersionDescription = versionDescription; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description; this.Readme = readme; this.Tags = tags; + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); this.Type = type; this.Environments = environments; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; this.CreatedBy = createdBy; + this.LastUsedAt = lastUsedAt; + this.VersionLogsCount = versionLogsCount; + this.TotalLogsCount = totalLogsCount; + this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); this.Evaluators = evaluators; this.EvaluatorAggregates = evaluatorAggregates; this.Signature = signature; 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 0beddd0..cfb51a5 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs @@ -107,7 +107,7 @@ partial void ProcessListPromptEnvironmentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (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}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListPromptEnvironmentsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (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."); } catch (global::System.Exception __ex) 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 d0aa419..9dd9a52 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs @@ -116,7 +116,7 @@ partial void ProcessListPromptVersionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (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}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessListPromptVersionsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (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."); } catch (global::System.Exception __ex) 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 e785058..33f1d0e 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs @@ -107,7 +107,7 @@ partial void ProcessListToolVersionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (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}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListToolVersionsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (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."); } catch (global::System.Exception __ex)