From 3a19b4e27abf76712b0f0ddcb21030d0935e837d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 17 Jun 2026 10:46:49 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...umanloop.Models.AgentCallRequest.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.AgentCallRequestInputs.Json.g.cs | 49 +++++++++++++++++++ ....Models.AgentCallRequestMetadata.Json.g.cs | 49 +++++++++++++++++++ ...manloop.Models.AgentCallResponse.Json.g.cs | 49 +++++++++++++++++++ ...GI.Humanloop.Models.AgentRequest.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.AgentRequestAttributes.Json.g.cs | 49 +++++++++++++++++++ ...I.Humanloop.Models.AgentResponse.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.AgentResponseAttributes.Json.g.cs | 49 +++++++++++++++++++ ...Humanloop.Models.CallToolRequest.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.CallToolRequestInputs.Json.g.cs | 49 +++++++++++++++++++ ...umanloop.Models.CallToolResponse.Json.g.cs | 49 +++++++++++++++++++ ...AGI.Humanloop.Models.ChatMessage.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.CreateDirectoryRequest.Json.g.cs | 49 +++++++++++++++++++ ...manloop.Models.CreateLogResponse.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.CreatePromptLogResponse.Json.g.cs | 49 +++++++++++++++++++ ...manloop.Models.DatapointResponse.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.DatapointResponseInputs.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.DatapointResponseTarget.Json.g.cs | 49 +++++++++++++++++++ ....Humanloop.Models.DatasetRequest.Json.g.cs | 49 +++++++++++++++++++ ....Models.DatasetRequestAttributes.Json.g.cs | 49 +++++++++++++++++++ ...Humanloop.Models.DatasetResponse.Json.g.cs | 49 +++++++++++++++++++ ...Models.DatasetResponseAttributes.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.DatasetResponseSchema.Json.g.cs | 49 +++++++++++++++++++ ....Models.DeserializePromptRequest.Json.g.cs | 49 +++++++++++++++++++ ...manloop.Models.DirectoryResponse.Json.g.cs | 49 +++++++++++++++++++ ...nloop.Models.EnvironmentResponse.Json.g.cs | 49 +++++++++++++++++++ ...dels.EvaluationEvaluatorResponse.Json.g.cs | 49 +++++++++++++++++++ ...manloop.Models.EvaluationRequest.Json.g.cs | 49 +++++++++++++++++++ ...anloop.Models.EvaluationResponse.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.EvaluationRunResponse.Json.g.cs | 49 +++++++++++++++++++ ...anloop.Models.EvaluatorAggregate.Json.g.cs | 49 +++++++++++++++++++ ...umanloop.Models.EvaluatorRequest.Json.g.cs | 49 +++++++++++++++++++ ...odels.EvaluatorRequestAttributes.Json.g.cs | 49 +++++++++++++++++++ ...loop.Models.EvaluatorRequestSpec.Json.g.cs | 49 +++++++++++++++++++ ...manloop.Models.EvaluatorResponse.Json.g.cs | 49 +++++++++++++++++++ ...dels.EvaluatorResponseAttributes.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.EvaluatorResponseSchema.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.EvaluatorResponseSpec.Json.g.cs | 49 +++++++++++++++++++ ...GI.Humanloop.Models.FileResponse.Json.g.cs | 49 +++++++++++++++++++ ...AGI.Humanloop.Models.FlowRequest.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.FlowRequestAttributes.Json.g.cs | 49 +++++++++++++++++++ ...GI.Humanloop.Models.FlowResponse.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.FlowResponseAttributes.Json.g.cs | 49 +++++++++++++++++++ ...I.Humanloop.Models.InputResponse.Json.g.cs | 49 +++++++++++++++++++ ...anloop.Models.LinkedToolResponse.Json.g.cs | 49 +++++++++++++++++++ ...Humanloop.Models.LogAgentRequest.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.LogAgentRequestInputs.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.LogAgentRequestMetadata.Json.g.cs | 49 +++++++++++++++++++ ...nloop.Models.LogEvaluatorRequest.Json.g.cs | 49 +++++++++++++++++++ ...dels.LogEvaluatorRequestMetadata.Json.g.cs | 49 +++++++++++++++++++ ....Humanloop.Models.LogFlowRequest.Json.g.cs | 49 +++++++++++++++++++ ...loop.Models.LogFlowRequestInputs.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.LogFlowRequestMetadata.Json.g.cs | 49 +++++++++++++++++++ ....Humanloop.Models.LogToolRequest.Json.g.cs | 49 +++++++++++++++++++ ...loop.Models.LogToolRequestInputs.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.LogToolRequestMetadata.Json.g.cs | 49 +++++++++++++++++++ ...dels.MonitoringEvaluatorResponse.Json.g.cs | 49 +++++++++++++++++++ ...AGI.Humanloop.Models.MoveRequest.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.PaginatedAgentResponse.Json.g.cs | 49 +++++++++++++++++++ ....Models.PaginatedDatasetResponse.Json.g.cs | 49 +++++++++++++++++++ ...dels.PaginatedEvaluationResponse.Json.g.cs | 49 +++++++++++++++++++ ...odels.PaginatedEvaluatorResponse.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.PaginatedFileResponse.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.PaginatedFlowResponse.Json.g.cs | 49 +++++++++++++++++++ ...loop.Models.PaginatedLogResponse.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.PaginatedPromptResponse.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.PaginatedToolResponse.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.PopulatePromptRequest.Json.g.cs | 49 +++++++++++++++++++ ...dels.PopulatePromptRequestInputs.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.PopulatePromptResponse.Json.g.cs | 49 +++++++++++++++++++ ...manloop.Models.PromptCallRequest.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.PromptCallRequestInputs.Json.g.cs | 49 +++++++++++++++++++ ...Models.PromptCallRequestMetadata.Json.g.cs | 49 +++++++++++++++++++ ...anloop.Models.PromptCallResponse.Json.g.cs | 49 +++++++++++++++++++ ....Models.PromptCallResponseInputs.Json.g.cs | 49 +++++++++++++++++++ ...umanloop.Models.PromptLogRequest.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.PromptLogRequestInputs.Json.g.cs | 49 +++++++++++++++++++ ....Models.PromptLogRequestMetadata.Json.g.cs | 49 +++++++++++++++++++ ...manloop.Models.PromptLogResponse.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.PromptLogResponseInputs.Json.g.cs | 49 +++++++++++++++++++ ...Models.PromptLogResponseMetadata.Json.g.cs | 49 +++++++++++++++++++ ...I.Humanloop.Models.PromptRequest.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.PromptRequestAttributes.Json.g.cs | 49 +++++++++++++++++++ ...anloop.Models.PromptRequestOther.Json.g.cs | 49 +++++++++++++++++++ ....Humanloop.Models.PromptResponse.Json.g.cs | 49 +++++++++++++++++++ ....Models.PromptResponseAttributes.Json.g.cs | 49 +++++++++++++++++++ ...nloop.Models.PromptResponseOther.Json.g.cs | 49 +++++++++++++++++++ ...loop.Models.PromptResponseSchema.Json.g.cs | 49 +++++++++++++++++++ ....Humanloop.Models.ResponseFormat.Json.g.cs | 49 +++++++++++++++++++ ...loop.Models.SetDeploymentRequest.Json.g.cs | 49 +++++++++++++++++++ ...umanloop.Models.ToolCallResponse.Json.g.cs | 49 +++++++++++++++++++ ....Models.ToolCallResponseFunction.Json.g.cs | 49 +++++++++++++++++++ ...GI.Humanloop.Models.ToolFunction.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.ToolFunctionParameters.Json.g.cs | 49 +++++++++++++++++++ ...AGI.Humanloop.Models.ToolRequest.Json.g.cs | 49 +++++++++++++++++++ ...oop.Models.ToolRequestAttributes.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.ToolRequestSetupValues.Json.g.cs | 49 +++++++++++++++++++ ...GI.Humanloop.Models.ToolResponse.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.ToolResponseAttributes.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.ToolResponseSetupValues.Json.g.cs | 49 +++++++++++++++++++ ...op.Models.UpdateDirectoryRequest.Json.g.cs | 49 +++++++++++++++++++ ...ls.UpdateEvaluationStatusRequest.Json.g.cs | 49 +++++++++++++++++++ ...p.Models.UpdateMonitoringRequest.Json.g.cs | 49 +++++++++++++++++++ ...ateMonitoringRequestActivateItem.Json.g.cs | 49 +++++++++++++++++++ ...eMonitoringRequestDeactivateItem.Json.g.cs | 49 +++++++++++++++++++ ...loop.Models.UpdateVersionRequest.Json.g.cs | 49 +++++++++++++++++++ ...GI.Humanloop.Models.UserResponse.Json.g.cs | 49 +++++++++++++++++++ 107 files changed, 5243 insertions(+) diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequest.Json.g.cs index f245f57..ca0da12 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.AgentCallRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.AgentCallRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.AgentCallRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequestInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequestInputs.Json.g.cs index d8d3cca..af9dae1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequestInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequestInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.AgentCallRequestInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.AgentCallRequestInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.AgentCallRequestInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequestMetadata.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequestMetadata.Json.g.cs index 112c158..ecd4eda 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequestMetadata.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallRequestMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.AgentCallRequestMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.AgentCallRequestMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.AgentCallRequestMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallResponse.Json.g.cs index 22f2672..4d330bf 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentCallResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.AgentCallResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.AgentCallResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.AgentCallResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentRequest.Json.g.cs index 7e5ac5e..b737ff1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.AgentRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.AgentRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.AgentRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentRequestAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentRequestAttributes.Json.g.cs index f914eb4..79b6f79 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentRequestAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentRequestAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.AgentRequestAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.AgentRequestAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.AgentRequestAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponse.Json.g.cs index a58fb85..55145bb 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.AgentResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.AgentResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.AgentResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponseAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponseAttributes.Json.g.cs index 7e5a0ee..7e37966 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponseAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.AgentResponseAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.AgentResponseAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.AgentResponseAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.AgentResponseAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolRequest.Json.g.cs index 633ea80..2f85ef7 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.CallToolRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.CallToolRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.CallToolRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolRequestInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolRequestInputs.Json.g.cs index 7aa869b..e10b793 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolRequestInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolRequestInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.CallToolRequestInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.CallToolRequestInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.CallToolRequestInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolResponse.Json.g.cs index 7a28e10..46df7c1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CallToolResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.CallToolResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.CallToolResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.CallToolResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ChatMessage.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ChatMessage.Json.g.cs index f3897db..581ef0a 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ChatMessage.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ChatMessage.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ChatMessage; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ChatMessage? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ChatMessage; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreateDirectoryRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreateDirectoryRequest.Json.g.cs index e9a9e7b..02fa8cc 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreateDirectoryRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreateDirectoryRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.CreateDirectoryRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.CreateDirectoryRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.CreateDirectoryRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreateLogResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreateLogResponse.Json.g.cs index 96683bd..a6a056b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreateLogResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreateLogResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.CreateLogResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.CreateLogResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.CreateLogResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreatePromptLogResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreatePromptLogResponse.Json.g.cs index 0228b78..664e4ac 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreatePromptLogResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.CreatePromptLogResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.CreatePromptLogResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.CreatePromptLogResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.CreatePromptLogResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponse.Json.g.cs index dd69208..3fba54c 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DatapointResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DatapointResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DatapointResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponseInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponseInputs.Json.g.cs index 536ff09..6578a09 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponseInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponseInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DatapointResponseInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DatapointResponseInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DatapointResponseInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponseTarget.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponseTarget.Json.g.cs index d8bc552..d95e8fa 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponseTarget.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatapointResponseTarget.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DatapointResponseTarget; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DatapointResponseTarget? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DatapointResponseTarget; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetRequest.Json.g.cs index a3e916f..3e7de7c 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DatasetRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DatasetRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DatasetRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetRequestAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetRequestAttributes.Json.g.cs index 70978b6..91eac01 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetRequestAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetRequestAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DatasetRequestAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DatasetRequestAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DatasetRequestAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponse.Json.g.cs index 1f1cfdf..6f8bdba 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DatasetResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DatasetResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DatasetResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponseAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponseAttributes.Json.g.cs index 56ddbe5..55a5c91 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponseAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponseAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DatasetResponseAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DatasetResponseAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DatasetResponseAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponseSchema.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponseSchema.Json.g.cs index 645dec9..9476a7f 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponseSchema.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DatasetResponseSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DatasetResponseSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DatasetResponseSchema? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DatasetResponseSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DeserializePromptRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DeserializePromptRequest.Json.g.cs index aa9e795..d48b5a8 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DeserializePromptRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DeserializePromptRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DeserializePromptRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DeserializePromptRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DeserializePromptRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DirectoryResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DirectoryResponse.Json.g.cs index 5bd7f34..30f63ac 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DirectoryResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.DirectoryResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.DirectoryResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.DirectoryResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.DirectoryResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EnvironmentResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EnvironmentResponse.Json.g.cs index e9130cf..c3742cc 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EnvironmentResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EnvironmentResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EnvironmentResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EnvironmentResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EnvironmentResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationEvaluatorResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationEvaluatorResponse.Json.g.cs index 71281d5..d1fdbe9 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationEvaluatorResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationEvaluatorResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluationEvaluatorResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluationEvaluatorResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluationEvaluatorResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationRequest.Json.g.cs index 0840fcf..4471785 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluationRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluationRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluationRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationResponse.Json.g.cs index 2b940a2..c8c4bc5 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluationResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluationResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluationResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationRunResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationRunResponse.Json.g.cs index f4c4283..1978882 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationRunResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluationRunResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluationRunResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluationRunResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluationRunResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorAggregate.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorAggregate.Json.g.cs index b0e05dd..18051aa 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorAggregate.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorAggregate.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluatorAggregate; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluatorAggregate? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluatorAggregate; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequest.Json.g.cs index d775104..53e9327 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluatorRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluatorRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluatorRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequestAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequestAttributes.Json.g.cs index 492934a..793750e 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequestAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequestAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluatorRequestAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluatorRequestAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluatorRequestAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequestSpec.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequestSpec.Json.g.cs index e4e6550..d866e97 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequestSpec.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorRequestSpec.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluatorRequestSpec; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluatorRequestSpec? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluatorRequestSpec; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponse.Json.g.cs index cf7cc08..823718f 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluatorResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluatorResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluatorResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseAttributes.Json.g.cs index 3bb1d9f..1485d2b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluatorResponseAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluatorResponseAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluatorResponseAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseSchema.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseSchema.Json.g.cs index be4d9a3..a78081b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseSchema.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluatorResponseSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluatorResponseSchema? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluatorResponseSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseSpec.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseSpec.Json.g.cs index aaa3f28..b38ad72 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseSpec.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.EvaluatorResponseSpec.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.EvaluatorResponseSpec; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.EvaluatorResponseSpec? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.EvaluatorResponseSpec; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FileResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FileResponse.Json.g.cs index 31f42ae..a297ce1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FileResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FileResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.FileResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.FileResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.FileResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowRequest.Json.g.cs index 1abf4f4..acca232 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.FlowRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.FlowRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.FlowRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowRequestAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowRequestAttributes.Json.g.cs index d94677e..5f401a5 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowRequestAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowRequestAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.FlowRequestAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.FlowRequestAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.FlowRequestAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponse.Json.g.cs index 6c8d0b9..83d541f 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.FlowResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.FlowResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.FlowResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponseAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponseAttributes.Json.g.cs index 1f76332..4d068ca 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponseAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.FlowResponseAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.FlowResponseAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.FlowResponseAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.FlowResponseAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.InputResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.InputResponse.Json.g.cs index 9cc6a34..0bf2c8e 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.InputResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.InputResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.InputResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.InputResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.InputResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LinkedToolResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LinkedToolResponse.Json.g.cs index 65283e8..17eb415 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LinkedToolResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LinkedToolResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LinkedToolResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LinkedToolResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LinkedToolResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequest.Json.g.cs index eb085f7..74459a3 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogAgentRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogAgentRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogAgentRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequestInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequestInputs.Json.g.cs index c8c2bda..7ffeb77 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequestInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequestInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogAgentRequestInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogAgentRequestInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogAgentRequestInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequestMetadata.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequestMetadata.Json.g.cs index dc328c3..959a877 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequestMetadata.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogAgentRequestMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogAgentRequestMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogAgentRequestMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogAgentRequestMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogEvaluatorRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogEvaluatorRequest.Json.g.cs index 0da343f..2783e75 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogEvaluatorRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogEvaluatorRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogEvaluatorRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogEvaluatorRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogEvaluatorRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogEvaluatorRequestMetadata.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogEvaluatorRequestMetadata.Json.g.cs index a6b56d4..b9f1822 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogEvaluatorRequestMetadata.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogEvaluatorRequestMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogEvaluatorRequestMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogEvaluatorRequestMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogEvaluatorRequestMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequest.Json.g.cs index 449d743..00eec1e 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogFlowRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogFlowRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogFlowRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequestInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequestInputs.Json.g.cs index 64a816e..0c5acc0 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequestInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequestInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogFlowRequestInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogFlowRequestInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogFlowRequestInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequestMetadata.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequestMetadata.Json.g.cs index 639e77a..6074db2 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequestMetadata.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogFlowRequestMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogFlowRequestMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogFlowRequestMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogFlowRequestMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequest.Json.g.cs index 1e202bc..108ebbb 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogToolRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogToolRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogToolRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequestInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequestInputs.Json.g.cs index f1c07fa..b8f446b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequestInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequestInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogToolRequestInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogToolRequestInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogToolRequestInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequestMetadata.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequestMetadata.Json.g.cs index 70bef26..17929e7 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequestMetadata.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.LogToolRequestMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.LogToolRequestMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.LogToolRequestMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.LogToolRequestMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.MonitoringEvaluatorResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.MonitoringEvaluatorResponse.Json.g.cs index cfbf997..5db1e5a 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.MonitoringEvaluatorResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.MonitoringEvaluatorResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.MonitoringEvaluatorResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.MonitoringEvaluatorResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.MonitoringEvaluatorResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.MoveRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.MoveRequest.Json.g.cs index dbc9dc3..826ecda 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.MoveRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.MoveRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.MoveRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.MoveRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.MoveRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedAgentResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedAgentResponse.Json.g.cs index e17ef00..1f93c0e 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedAgentResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedAgentResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PaginatedAgentResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PaginatedAgentResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PaginatedAgentResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedDatasetResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedDatasetResponse.Json.g.cs index f601b0e..d603757 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedDatasetResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedDatasetResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PaginatedDatasetResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PaginatedDatasetResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PaginatedDatasetResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedEvaluationResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedEvaluationResponse.Json.g.cs index 5aa9a24..bd67835 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedEvaluationResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedEvaluationResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PaginatedEvaluationResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PaginatedEvaluationResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PaginatedEvaluationResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedEvaluatorResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedEvaluatorResponse.Json.g.cs index e91053e..9c02b91 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedEvaluatorResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedEvaluatorResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PaginatedEvaluatorResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PaginatedEvaluatorResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PaginatedEvaluatorResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedFileResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedFileResponse.Json.g.cs index d2a903d..08ad9d4 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedFileResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedFileResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PaginatedFileResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PaginatedFileResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PaginatedFileResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedFlowResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedFlowResponse.Json.g.cs index 0249377..c8050af 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedFlowResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedFlowResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PaginatedFlowResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PaginatedFlowResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PaginatedFlowResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedLogResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedLogResponse.Json.g.cs index b7cee56..930267e 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedLogResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedLogResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PaginatedLogResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PaginatedLogResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PaginatedLogResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedPromptResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedPromptResponse.Json.g.cs index b7929a2..0fbaed3 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedPromptResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedPromptResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PaginatedPromptResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PaginatedPromptResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PaginatedPromptResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedToolResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedToolResponse.Json.g.cs index 4369f31..a7df370 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedToolResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PaginatedToolResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PaginatedToolResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PaginatedToolResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PaginatedToolResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptRequest.Json.g.cs index d14d0cb..572c699 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PopulatePromptRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PopulatePromptRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PopulatePromptRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptRequestInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptRequestInputs.Json.g.cs index 9a5e7c9..bc65697 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptRequestInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptRequestInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PopulatePromptRequestInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PopulatePromptRequestInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PopulatePromptRequestInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptResponse.Json.g.cs index b51bb65..a2b324c 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PopulatePromptResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PopulatePromptResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PopulatePromptResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PopulatePromptResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequest.Json.g.cs index 06d9b8c..6199e39 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptCallRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptCallRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptCallRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequestInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequestInputs.Json.g.cs index cdb04c8..4343d6b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequestInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequestInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptCallRequestInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptCallRequestInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptCallRequestInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequestMetadata.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequestMetadata.Json.g.cs index 21ed6b2..38600f4 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequestMetadata.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallRequestMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptCallRequestMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptCallRequestMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptCallRequestMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallResponse.Json.g.cs index 3a64a8d..710c8c3 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptCallResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptCallResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptCallResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallResponseInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallResponseInputs.Json.g.cs index 94c5db5..904ee41 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallResponseInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptCallResponseInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptCallResponseInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptCallResponseInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptCallResponseInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequest.Json.g.cs index dbda547..b76ebb6 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptLogRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptLogRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptLogRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequestInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequestInputs.Json.g.cs index e281c0b..c24fc80 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequestInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequestInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptLogRequestInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptLogRequestInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptLogRequestInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequestMetadata.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequestMetadata.Json.g.cs index 9f27f43..179767a 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequestMetadata.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogRequestMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptLogRequestMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptLogRequestMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptLogRequestMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponse.Json.g.cs index eeee044..de1ea7d 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptLogResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptLogResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptLogResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponseInputs.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponseInputs.Json.g.cs index d655716..64f5a82 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponseInputs.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponseInputs.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptLogResponseInputs; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptLogResponseInputs? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptLogResponseInputs; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponseMetadata.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponseMetadata.Json.g.cs index dde69df..4ef6e4a 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponseMetadata.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptLogResponseMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptLogResponseMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptLogResponseMetadata? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptLogResponseMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequest.Json.g.cs index aafc300..9398a24 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequestAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequestAttributes.Json.g.cs index 19248c7..0abe6fd 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequestAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequestAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptRequestAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptRequestAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptRequestAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequestOther.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequestOther.Json.g.cs index 391ed9a..3c7fbb4 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequestOther.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptRequestOther.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptRequestOther; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptRequestOther? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptRequestOther; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponse.Json.g.cs index 91b7eb9..b68e155 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseAttributes.Json.g.cs index 7e52746..adcee49 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptResponseAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptResponseAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptResponseAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseOther.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseOther.Json.g.cs index 3eaedf9..9f0238d 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseOther.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseOther.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptResponseOther; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptResponseOther? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptResponseOther; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseSchema.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseSchema.Json.g.cs index 56dfcea..574dacf 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseSchema.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.PromptResponseSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.PromptResponseSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.PromptResponseSchema? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.PromptResponseSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ResponseFormat.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ResponseFormat.Json.g.cs index 3fb4ca2..ffa1f0b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ResponseFormat.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ResponseFormat.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ResponseFormat; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ResponseFormat? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ResponseFormat; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.SetDeploymentRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.SetDeploymentRequest.Json.g.cs index 3920f40..8d34c5d 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.SetDeploymentRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.SetDeploymentRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.SetDeploymentRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.SetDeploymentRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.SetDeploymentRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolCallResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolCallResponse.Json.g.cs index 0dc74e1..e163c10 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolCallResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolCallResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolCallResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolCallResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolCallResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolCallResponseFunction.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolCallResponseFunction.Json.g.cs index 6085cc4..abe6cc7 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolCallResponseFunction.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolCallResponseFunction.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolCallResponseFunction; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolCallResponseFunction? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolCallResponseFunction; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunction.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunction.Json.g.cs index d8ad4d4..337ca3b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunction.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunction.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolFunction; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolFunction? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolFunction; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunctionParameters.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunctionParameters.Json.g.cs index d61021b..1b28a60 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunctionParameters.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolFunctionParameters.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolFunctionParameters; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolFunctionParameters? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolFunctionParameters; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequest.Json.g.cs index db925a6..c0e291f 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequestAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequestAttributes.Json.g.cs index fb29d62..81ffc13 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequestAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequestAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolRequestAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolRequestAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolRequestAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequestSetupValues.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequestSetupValues.Json.g.cs index ce2c035..8fe82c1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequestSetupValues.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolRequestSetupValues.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolRequestSetupValues; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolRequestSetupValues? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolRequestSetupValues; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponse.Json.g.cs index 43f1e01..8b9449f 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponseAttributes.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponseAttributes.Json.g.cs index 99108bc..bbc3a0d 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponseAttributes.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponseAttributes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolResponseAttributes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolResponseAttributes? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolResponseAttributes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponseSetupValues.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponseSetupValues.Json.g.cs index b3c0540..bf5c3b1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponseSetupValues.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.ToolResponseSetupValues.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.ToolResponseSetupValues; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.ToolResponseSetupValues? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.ToolResponseSetupValues; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateDirectoryRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateDirectoryRequest.Json.g.cs index de6b14a..c71de16 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateDirectoryRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateDirectoryRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.UpdateDirectoryRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.UpdateDirectoryRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.UpdateDirectoryRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateEvaluationStatusRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateEvaluationStatusRequest.Json.g.cs index 49681b9..19563c5 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateEvaluationStatusRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateEvaluationStatusRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.UpdateEvaluationStatusRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.UpdateEvaluationStatusRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.UpdateEvaluationStatusRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequest.Json.g.cs index 97c893b..d035e47 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.UpdateMonitoringRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.UpdateMonitoringRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.UpdateMonitoringRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequestActivateItem.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequestActivateItem.Json.g.cs index 9ba99d6..ca1768d 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequestActivateItem.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequestActivateItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.UpdateMonitoringRequestActivateItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.UpdateMonitoringRequestActivateItem? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.UpdateMonitoringRequestActivateItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequestDeactivateItem.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequestDeactivateItem.Json.g.cs index df2983a..8b0554c 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequestDeactivateItem.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateMonitoringRequestDeactivateItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.UpdateMonitoringRequestDeactivateItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.UpdateMonitoringRequestDeactivateItem? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.UpdateMonitoringRequestDeactivateItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateVersionRequest.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateVersionRequest.Json.g.cs index 0cd25aa..70787e5 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateVersionRequest.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UpdateVersionRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.UpdateVersionRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.UpdateVersionRequest? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.UpdateVersionRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UserResponse.Json.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UserResponse.Json.g.cs index 1a71d67..5d00dd8 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UserResponse.Json.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Models.UserResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::tryAGI.Humanloop.UserResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.Humanloop.UserResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.Humanloop.UserResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.Humanloop.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions);