diff --git a/src/helpers/FixOpenApiSpec/Program.cs b/src/helpers/FixOpenApiSpec/Program.cs
index ce5ec88..5c77b08 100644
--- a/src/helpers/FixOpenApiSpec/Program.cs
+++ b/src/helpers/FixOpenApiSpec/Program.cs
@@ -14,10 +14,6 @@
var openApiDocument = new OpenApiStringReader().Read(yamlOrJson, out var diagnostics);
-openApiDocument.Components.Schemas["ImageDoc"]!.Properties["id"].Example = null;
-openApiDocument.Components.Schemas["api_schemas__embedding__TextDoc"]!.Properties["id"].Example = null;
-openApiDocument.Components.Schemas["api_schemas__rank__TextDoc"]!.Properties["id"].Example = null;
-
openApiDocument.Components.Schemas["ModelEmbeddingOutput"]!.Properties["data"].Items = new OpenApiSchema
{
Type = "object",
diff --git a/src/libs/Jina/Generated/Jina.ClassificationClient.Classify.g.cs b/src/libs/Jina/Generated/Jina.ClassificationClient.Classify.g.cs
new file mode 100644
index 0000000..e9d1093
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.ClassificationClient.Classify.g.cs
@@ -0,0 +1,166 @@
+
+#nullable enable
+
+namespace Jina
+{
+ public partial class ClassificationClient
+ {
+ partial void PrepareClassifyArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Jina.ClassificationAPIInput request);
+ partial void PrepareClassifyRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Jina.ClassificationAPIInput request);
+ partial void ProcessClassifyResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessClassifyResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Classify
+ /// Classify.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task ClassifyAsync(
+ global::Jina.ClassificationAPIInput request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: _httpClient);
+ PrepareClassifyArguments(
+ httpClient: _httpClient,
+ request: request);
+
+ var __pathBuilder = new PathBuilder(
+ path: "/v1/classify",
+ baseUri: _httpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+
+ foreach (var _authorization in _authorizations)
+ {
+ if (_authorization.Type == "Http" ||
+ _authorization.Type == "OAuth2")
+ {
+ httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: _authorization.Name,
+ parameter: _authorization.Value);
+ }
+ else if (_authorization.Type == "ApiKey" &&
+ _authorization.Location == "Header")
+ {
+ httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ httpRequest.Content = __httpRequestContent;
+
+ PrepareRequest(
+ client: _httpClient,
+ request: httpRequest);
+ PrepareClassifyRequest(
+ httpClient: _httpClient,
+ httpRequestMessage: httpRequest,
+ request: request);
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: _httpClient,
+ response: response);
+ ProcessClassifyResponse(
+ httpClient: _httpClient,
+ httpResponseMessage: response);
+
+ var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: _httpClient,
+ response: response,
+ content: ref __content);
+ ProcessClassifyResponseContent(
+ httpClient: _httpClient,
+ httpResponseMessage: response,
+ content: ref __content);
+
+ try
+ {
+ response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException ex)
+ {
+ throw new global::System.InvalidOperationException(__content, ex);
+ }
+
+ return
+ global::Jina.ClassificationOutput.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+
+ ///
+ /// Classify
+ /// Classify.
+ ///
+ ///
+ /// The identifier of the model.
+ /// Available models and corresponding param size and dimension:
+ /// - `jina-clip-v1`, 223M, 768
+ /// - `jina-embeddings-v2-base-en`, 137M, 768
+ /// - `jina-embeddings-v2-base-es`, 161M, 768
+ /// - `jina-embeddings-v2-base-de`, 161M, 768
+ /// - `jina-embeddings-v2-base-zh`, 161M, 768
+ /// - `jina-embeddings-v2-base-code`, 137M, 768
+ /// - `jina-embeddings-v3`, 570M, 1024
+ /// For more information, please checkout our [technical blog](https://arxiv.org/abs/2307.11224).
+ ///
+ ///
+ /// The identifier of the classifier. If not provided, a new classifier will be created.
+ /// You can provide only either `model` or `classifier_id`
+ ///
+ ///
+ /// List of text and images or a single text and image for classification
+ ///
+ ///
+ /// List of labels used for classification
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task ClassifyAsync(
+ global::Jina.AnyOf>, global::Jina.ApiSchemasClassificationTextDoc, global::Jina.ApiSchemasClassificationImageDoc, string> input,
+ string? model = default,
+ string? classifierId = default,
+ global::System.Collections.Generic.IList? labels = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new global::Jina.ClassificationAPIInput
+ {
+ Model = model,
+ ClassifierId = classifierId,
+ Input = input,
+ Labels = labels,
+ };
+
+ return await ClassifyAsync(
+ request: request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.ClassificationClient.Train.g.cs b/src/libs/Jina/Generated/Jina.ClassificationClient.Train.g.cs
new file mode 100644
index 0000000..2afc41e
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.ClassificationClient.Train.g.cs
@@ -0,0 +1,167 @@
+
+#nullable enable
+
+namespace Jina
+{
+ public partial class ClassificationClient
+ {
+ partial void PrepareTrainArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Jina.TrainingAPIInput request);
+ partial void PrepareTrainRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Jina.TrainingAPIInput request);
+ partial void ProcessTrainResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessTrainResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Train
+ /// Rank pairs.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task TrainAsync(
+ global::Jina.TrainingAPIInput request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: _httpClient);
+ PrepareTrainArguments(
+ httpClient: _httpClient,
+ request: request);
+
+ var __pathBuilder = new PathBuilder(
+ path: "/v1/train",
+ baseUri: _httpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+
+ foreach (var _authorization in _authorizations)
+ {
+ if (_authorization.Type == "Http" ||
+ _authorization.Type == "OAuth2")
+ {
+ httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: _authorization.Name,
+ parameter: _authorization.Value);
+ }
+ else if (_authorization.Type == "ApiKey" &&
+ _authorization.Location == "Header")
+ {
+ httpRequest.Headers.Add(_authorization.Name, _authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ httpRequest.Content = __httpRequestContent;
+
+ PrepareRequest(
+ client: _httpClient,
+ request: httpRequest);
+ PrepareTrainRequest(
+ httpClient: _httpClient,
+ httpRequestMessage: httpRequest,
+ request: request);
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: _httpClient,
+ response: response);
+ ProcessTrainResponse(
+ httpClient: _httpClient,
+ httpResponseMessage: response);
+
+ var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: _httpClient,
+ response: response,
+ content: ref __content);
+ ProcessTrainResponseContent(
+ httpClient: _httpClient,
+ httpResponseMessage: response,
+ content: ref __content);
+
+ try
+ {
+ response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException ex)
+ {
+ throw new global::System.InvalidOperationException(__content, ex);
+ }
+
+ return
+ global::Jina.TrainingOutput.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+
+ ///
+ /// Train
+ /// Rank pairs.
+ ///
+ ///
+ /// The identifier of the model.
+ /// Available models and corresponding param size and dimension:
+ /// - `jina-clip-v1`, 223M, 768
+ /// - `jina-embeddings-v2-base-en`, 137M, 768
+ /// - `jina-embeddings-v2-base-es`, 161M, 768
+ /// - `jina-embeddings-v2-base-de`, 161M, 768
+ /// - `jina-embeddings-v2-base-zh`, 161M, 768
+ /// - `jina-embeddings-v2-base-code`, 137M, 768
+ /// For more information, please checkout our [technical blog](https://arxiv.org/abs/2307.11224).
+ /// You can provide only either `model` or `classifier_id`
+ ///
+ ///
+ /// The identifier of the classifier. If not provided, a new classifier will be created.
+ /// You can provide only either `model` or `classifier_id`
+ ///
+ ///
+ /// The visibility of the classifier when created. Will be ignored if `classifier_id` is provided
+ /// Default Value: public
+ ///
+ ///
+ /// List of text and images and labels or a single text and image and label to train the classifier
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task TrainAsync(
+ global::Jina.AnyOf>, global::Jina.TextExampleDoc, global::Jina.ImageExampleDoc> input,
+ string? model = default,
+ string? classifierId = default,
+ global::Jina.TrainingAPIInputVisibility? visibility = global::Jina.TrainingAPIInputVisibility.Public,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new global::Jina.TrainingAPIInput
+ {
+ Model = model,
+ ClassifierId = classifierId,
+ Visibility = visibility,
+ Input = input,
+ };
+
+ return await TrainAsync(
+ request: request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.ClassificationClient.g.cs b/src/libs/Jina/Generated/Jina.ClassificationClient.g.cs
new file mode 100644
index 0000000..252cfa9
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.ClassificationClient.g.cs
@@ -0,0 +1,67 @@
+
+#nullable enable
+
+namespace Jina
+{
+ ///
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ public sealed partial class ClassificationClient : global::Jina.IClassificationClient, global::System.IDisposable
+ {
+ ///
+ ///
+ ///
+ public const string BaseUrl = "https://api.jina.ai/";
+
+ private readonly global::System.Net.Http.HttpClient _httpClient;
+ private global::System.Collections.Generic.List _authorizations;
+
+ ///
+ ///
+ ///
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Jina.SourceGenerationContext.Default;
+
+
+ ///
+ /// Creates a new instance of the ClassificationClient.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ ///
+ ///
+ ///
+ public ClassificationClient(
+ global::System.Net.Http.HttpClient? httpClient = null,
+ global::System.Uri? baseUri = null,
+ global::System.Collections.Generic.List? authorizations = null)
+ {
+ _httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
+ _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);
+ _authorizations = authorizations ?? new global::System.Collections.Generic.List();
+
+ Initialized(_httpClient);
+ }
+
+ ///
+ public void Dispose()
+ {
+ _httpClient.Dispose();
+ }
+
+ partial void Initialized(
+ global::System.Net.Http.HttpClient client);
+ partial void PrepareArguments(
+ global::System.Net.Http.HttpClient client);
+ partial void PrepareRequest(
+ global::System.Net.Http.HttpClient client,
+ global::System.Net.Http.HttpRequestMessage request);
+ partial void ProcessResponse(
+ global::System.Net.Http.HttpClient client,
+ global::System.Net.Http.HttpResponseMessage response);
+ partial void ProcessResponseContent(
+ global::System.Net.Http.HttpClient client,
+ global::System.Net.Http.HttpResponseMessage response,
+ ref string content);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.IClassificationClient.Classify.g.cs b/src/libs/Jina/Generated/Jina.IClassificationClient.Classify.g.cs
new file mode 100644
index 0000000..933a2c1
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.IClassificationClient.Classify.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Jina
+{
+ public partial interface IClassificationClient
+ {
+ ///
+ /// Classify
+ /// Classify.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task ClassifyAsync(
+ global::Jina.ClassificationAPIInput request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Classify
+ /// Classify.
+ ///
+ ///
+ /// The identifier of the model.
+ /// Available models and corresponding param size and dimension:
+ /// - `jina-clip-v1`, 223M, 768
+ /// - `jina-embeddings-v2-base-en`, 137M, 768
+ /// - `jina-embeddings-v2-base-es`, 161M, 768
+ /// - `jina-embeddings-v2-base-de`, 161M, 768
+ /// - `jina-embeddings-v2-base-zh`, 161M, 768
+ /// - `jina-embeddings-v2-base-code`, 137M, 768
+ /// - `jina-embeddings-v3`, 570M, 1024
+ /// For more information, please checkout our [technical blog](https://arxiv.org/abs/2307.11224).
+ ///
+ ///
+ /// The identifier of the classifier. If not provided, a new classifier will be created.
+ /// You can provide only either `model` or `classifier_id`
+ ///
+ ///
+ /// List of text and images or a single text and image for classification
+ ///
+ ///
+ /// List of labels used for classification
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task ClassifyAsync(
+ global::Jina.AnyOf>, global::Jina.ApiSchemasClassificationTextDoc, global::Jina.ApiSchemasClassificationImageDoc, string> input,
+ string? model = default,
+ string? classifierId = default,
+ global::System.Collections.Generic.IList? labels = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.IClassificationClient.Train.g.cs b/src/libs/Jina/Generated/Jina.IClassificationClient.Train.g.cs
new file mode 100644
index 0000000..38c0431
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.IClassificationClient.Train.g.cs
@@ -0,0 +1,54 @@
+#nullable enable
+
+namespace Jina
+{
+ public partial interface IClassificationClient
+ {
+ ///
+ /// Train
+ /// Rank pairs.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task TrainAsync(
+ global::Jina.TrainingAPIInput request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Train
+ /// Rank pairs.
+ ///
+ ///
+ /// The identifier of the model.
+ /// Available models and corresponding param size and dimension:
+ /// - `jina-clip-v1`, 223M, 768
+ /// - `jina-embeddings-v2-base-en`, 137M, 768
+ /// - `jina-embeddings-v2-base-es`, 161M, 768
+ /// - `jina-embeddings-v2-base-de`, 161M, 768
+ /// - `jina-embeddings-v2-base-zh`, 161M, 768
+ /// - `jina-embeddings-v2-base-code`, 137M, 768
+ /// For more information, please checkout our [technical blog](https://arxiv.org/abs/2307.11224).
+ /// You can provide only either `model` or `classifier_id`
+ ///
+ ///
+ /// The identifier of the classifier. If not provided, a new classifier will be created.
+ /// You can provide only either `model` or `classifier_id`
+ ///
+ ///
+ /// The visibility of the classifier when created. Will be ignored if `classifier_id` is provided
+ /// Default Value: public
+ ///
+ ///
+ /// List of text and images and labels or a single text and image and label to train the classifier
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task TrainAsync(
+ global::Jina.AnyOf>, global::Jina.TextExampleDoc, global::Jina.ImageExampleDoc> input,
+ string? model = default,
+ string? classifierId = default,
+ global::Jina.TrainingAPIInputVisibility? visibility = global::Jina.TrainingAPIInputVisibility.Public,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.IClassificationClient.g.cs b/src/libs/Jina/Generated/Jina.IClassificationClient.g.cs
new file mode 100644
index 0000000..13fce7f
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.IClassificationClient.g.cs
@@ -0,0 +1,19 @@
+
+#nullable enable
+
+namespace Jina
+{
+ ///
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ public partial interface IClassificationClient : global::System.IDisposable
+ {
+ ///
+ ///
+ ///
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.IJinaApi.g.cs b/src/libs/Jina/Generated/Jina.IJinaApi.g.cs
index ebda4fb..eab65ce 100644
--- a/src/libs/Jina/Generated/Jina.IJinaApi.g.cs
+++ b/src/libs/Jina/Generated/Jina.IJinaApi.g.cs
@@ -31,6 +31,11 @@ public partial interface IJinaApi : global::System.IDisposable
///
public RerankClient Rerank { get; }
+ ///
+ ///
+ ///
+ public ClassificationClient Classification { get; }
+
///
///
///
diff --git a/src/libs/Jina/Generated/Jina.JinaApi.g.cs b/src/libs/Jina/Generated/Jina.JinaApi.g.cs
index a54dd80..63482af 100644
--- a/src/libs/Jina/Generated/Jina.JinaApi.g.cs
+++ b/src/libs/Jina/Generated/Jina.JinaApi.g.cs
@@ -48,6 +48,14 @@ public sealed partial class JinaApi : global::Jina.IJinaApi, global::System.IDis
JsonSerializerContext = JsonSerializerContext,
};
+ ///
+ ///
+ ///
+ public ClassificationClient Classification => new ClassificationClient(_httpClient, authorizations: _authorizations)
+ {
+ JsonSerializerContext = JsonSerializerContext,
+ };
+
///
///
///
diff --git a/src/libs/Jina/Generated/Jina.Models.ApiSchemasClassificationImageDoc.g.cs b/src/libs/Jina/Generated/Jina.Models.ApiSchemasClassificationImageDoc.g.cs
new file mode 100644
index 0000000..6c4a76c
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.Models.ApiSchemasClassificationImageDoc.g.cs
@@ -0,0 +1,109 @@
+
+#pragma warning disable CS0618 // Type or member is obsolete
+
+#nullable enable
+
+namespace Jina
+{
+ ///
+ /// ImageDoc with fields
+ ///
+ public sealed partial class ApiSchemasClassificationImageDoc
+ {
+ ///
+ /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
+ /// Example: e10b550cf99e2e072e22420af5c6eb47
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")]
+ public string? Id { get; set; }
+
+ ///
+ /// URL of an image file
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("url")]
+ public string? Url { get; set; }
+
+ ///
+ /// base64 representation of the Image.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("bytes")]
+ public byte[]? Bytes { get; set; }
+
+ ///
+ /// base64 representation of the Image.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("bytesname")]
+ public string? Bytesname { get; set; }
+
+ ///
+ /// Image representation that can hold URL of an image or a base64 representation
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("image")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Jina.JsonConverters.AnyOfJsonConverterFactory2))]
+ public global::Jina.AnyOf? Image { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Jina.ApiSchemasClassificationImageDoc? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Jina.ApiSchemasClassificationImageDoc),
+ jsonSerializerContext) as global::Jina.ApiSchemasClassificationImageDoc;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::Jina.ApiSchemasClassificationImageDoc? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.Models.ApiSchemasClassificationTextDoc.g.cs b/src/libs/Jina/Generated/Jina.Models.ApiSchemasClassificationTextDoc.g.cs
new file mode 100644
index 0000000..6fde9e4
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.Models.ApiSchemasClassificationTextDoc.g.cs
@@ -0,0 +1,89 @@
+
+#nullable enable
+
+namespace Jina
+{
+ ///
+ /// Document containing a text field
+ ///
+ public sealed partial class ApiSchemasClassificationTextDoc
+ {
+ ///
+ /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
+ /// Example: e10b550cf99e2e072e22420af5c6eb47
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")]
+ public string? Id { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("text")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Text { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Jina.ApiSchemasClassificationTextDoc? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Jina.ApiSchemasClassificationTextDoc),
+ jsonSerializerContext) as global::Jina.ApiSchemasClassificationTextDoc;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::Jina.ApiSchemasClassificationTextDoc? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.Models.ApiSchemasClassificationUsage.g.cs b/src/libs/Jina/Generated/Jina.Models.ApiSchemasClassificationUsage.g.cs
new file mode 100644
index 0000000..643f482
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.Models.ApiSchemasClassificationUsage.g.cs
@@ -0,0 +1,89 @@
+
+#nullable enable
+
+namespace Jina
+{
+ ///
+ ///
+ ///
+ public sealed partial class ApiSchemasClassificationUsage
+ {
+ ///
+ /// The number of tokens used by all the texts in the input
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int TotalTokens { get; set; }
+
+ ///
+ /// Same as total_tokens
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt_tokens")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int PromptTokens { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Jina.ApiSchemasClassificationUsage? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Jina.ApiSchemasClassificationUsage),
+ jsonSerializerContext) as global::Jina.ApiSchemasClassificationUsage;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::Jina.ApiSchemasClassificationUsage? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.Models.ImageDoc.g.cs b/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingImageDoc.g.cs
similarity index 90%
rename from src/libs/Jina/Generated/Jina.Models.ImageDoc.g.cs
rename to src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingImageDoc.g.cs
index 4cb1917..4970e55 100644
--- a/src/libs/Jina/Generated/Jina.Models.ImageDoc.g.cs
+++ b/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingImageDoc.g.cs
@@ -8,10 +8,11 @@ namespace Jina
///
/// ImageDoc with fields
///
- public sealed partial class ImageDoc
+ public sealed partial class ApiSchemasEmbeddingImageDoc
{
///
- /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
+ /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
+ /// Example: e10b550cf99e2e072e22420af5c6eb47
///
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
public string? Id { get; set; }
@@ -78,14 +79,14 @@ public string ToJson(
///
/// Deserializes a JSON string using the provided JsonSerializerContext.
///
- public static global::Jina.ImageDoc? FromJson(
+ public static global::Jina.ApiSchemasEmbeddingImageDoc? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
- typeof(global::Jina.ImageDoc),
- jsonSerializerContext) as global::Jina.ImageDoc;
+ typeof(global::Jina.ApiSchemasEmbeddingImageDoc),
+ jsonSerializerContext) as global::Jina.ApiSchemasEmbeddingImageDoc;
}
///
@@ -95,11 +96,11 @@ public string ToJson(
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
- public static global::Jina.ImageDoc? FromJson(
+ public static global::Jina.ApiSchemasEmbeddingImageDoc? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
- return global::System.Text.Json.JsonSerializer.Deserialize(
+ return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
}
diff --git a/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingTextDoc.g.cs b/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingTextDoc.g.cs
index 7aaf0a8..3ad0b6d 100644
--- a/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingTextDoc.g.cs
+++ b/src/libs/Jina/Generated/Jina.Models.ApiSchemasEmbeddingTextDoc.g.cs
@@ -9,7 +9,8 @@ namespace Jina
public sealed partial class ApiSchemasEmbeddingTextDoc
{
///
- /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
+ /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
+ /// Example: e10b550cf99e2e072e22420af5c6eb47
///
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
public string? Id { get; set; }
diff --git a/src/libs/Jina/Generated/Jina.Models.ApiSchemasRankTextDoc.g.cs b/src/libs/Jina/Generated/Jina.Models.ApiSchemasRankTextDoc.g.cs
index 76718cb..d6fedde 100644
--- a/src/libs/Jina/Generated/Jina.Models.ApiSchemasRankTextDoc.g.cs
+++ b/src/libs/Jina/Generated/Jina.Models.ApiSchemasRankTextDoc.g.cs
@@ -9,7 +9,8 @@ namespace Jina
public sealed partial class ApiSchemasRankTextDoc
{
///
- /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
+ /// The ID of the BaseDoc. This is useful for indexing in vector stores. If not set by user, it will automatically be assigned a random value
+ /// Example: e10b550cf99e2e072e22420af5c6eb47
///
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
public string? Id { get; set; }
diff --git a/src/libs/Jina/Generated/Jina.Models.ApiSchemasTrainingUsage.g.cs b/src/libs/Jina/Generated/Jina.Models.ApiSchemasTrainingUsage.g.cs
new file mode 100644
index 0000000..83be03f
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.Models.ApiSchemasTrainingUsage.g.cs
@@ -0,0 +1,89 @@
+
+#nullable enable
+
+namespace Jina
+{
+ ///
+ ///
+ ///
+ public sealed partial class ApiSchemasTrainingUsage
+ {
+ ///
+ /// The number of tokens used by all the texts in the input
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int TotalTokens { get; set; }
+
+ ///
+ /// Same as total_tokens
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt_tokens")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int PromptTokens { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Jina.ApiSchemasTrainingUsage? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Jina.ApiSchemasTrainingUsage),
+ jsonSerializerContext) as global::Jina.ApiSchemasTrainingUsage;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::Jina.ApiSchemasTrainingUsage? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.Models.ClassificationAPIInput.g.cs b/src/libs/Jina/Generated/Jina.Models.ClassificationAPIInput.g.cs
new file mode 100644
index 0000000..a190cb1
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.Models.ClassificationAPIInput.g.cs
@@ -0,0 +1,113 @@
+
+#pragma warning disable CS0618 // Type or member is obsolete
+
+#nullable enable
+
+namespace Jina
+{
+ ///
+ /// The input to the API for classify endpoint. OpenAI compatible
+ ///
+ public sealed partial class ClassificationAPIInput
+ {
+ ///
+ /// The identifier of the model.
+ /// Available models and corresponding param size and dimension:
+ /// - `jina-clip-v1`, 223M, 768
+ /// - `jina-embeddings-v2-base-en`, 137M, 768
+ /// - `jina-embeddings-v2-base-es`, 161M, 768
+ /// - `jina-embeddings-v2-base-de`, 161M, 768
+ /// - `jina-embeddings-v2-base-zh`, 161M, 768
+ /// - `jina-embeddings-v2-base-code`, 137M, 768
+ /// - `jina-embeddings-v3`, 570M, 1024
+ /// For more information, please checkout our [technical blog](https://arxiv.org/abs/2307.11224).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ public string? Model { get; set; }
+
+ ///
+ /// The identifier of the classifier. If not provided, a new classifier will be created.
+ /// You can provide only either `model` or `classifier_id`
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("classifier_id")]
+ public string? ClassifierId { get; set; }
+
+ ///
+ /// List of text and images or a single text and image for classification
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("input")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Jina.JsonConverters.AnyOfJsonConverterFactory4))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Jina.AnyOf>, global::Jina.ApiSchemasClassificationTextDoc, global::Jina.ApiSchemasClassificationImageDoc, string> Input { get; set; }
+
+ ///
+ /// List of labels used for classification
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("labels")]
+ public global::System.Collections.Generic.IList? Labels { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Jina.ClassificationAPIInput? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Jina.ClassificationAPIInput),
+ jsonSerializerContext) as global::Jina.ClassificationAPIInput;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::Jina.ClassificationAPIInput? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Jina/Generated/Jina.Models.ClassificationOutput.g.cs b/src/libs/Jina/Generated/Jina.Models.ClassificationOutput.g.cs
new file mode 100644
index 0000000..c827c99
--- /dev/null
+++ b/src/libs/Jina/Generated/Jina.Models.ClassificationOutput.g.cs
@@ -0,0 +1,89 @@
+
+#nullable enable
+
+namespace Jina
+{
+ ///
+ /// Output of the classification service
+ ///
+ public sealed partial class ClassificationOutput
+ {
+ ///
+ /// A list of Classification Objects returned by the classification service
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("data")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList