diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.BetaModelsGet.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.BetaModelsGet.g.cs
index fb6c8a8..4f6659a 100644
--- a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.BetaModelsGet.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.BetaModelsGet.g.cs
@@ -43,7 +43,7 @@ partial void ProcessBetaModelsGetResponseContent(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task BetaModelsGetAsync(
+ public async global::System.Threading.Tasks.Task BetaModelsGetAsync(
string modelId,
string? anthropicVersion = default,
string? xApiKey = default,
@@ -178,7 +178,7 @@ partial void ProcessBetaModelsGetResponseContent(
}
return
- global::Anthropic.BetaModelResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Anthropic.BetaModelInfo.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
else
@@ -204,7 +204,7 @@ partial void ProcessBetaModelsGetResponseContent(
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
return
- await global::Anthropic.BetaModelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Anthropic.BetaModelInfo.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.BetaModelsList.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.BetaModelsList.g.cs
index 0a8e8da..86a4b68 100644
--- a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.BetaModelsList.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.BetaModelsList.g.cs
@@ -55,7 +55,7 @@ partial void ProcessBetaModelsListResponseContent(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task BetaModelsListAsync(
+ public async global::System.Threading.Tasks.Task BetaModelsListAsync(
string? beforeId = default,
string? afterId = default,
int? limit = default,
@@ -201,7 +201,7 @@ partial void ProcessBetaModelsListResponseContent(
}
return
- global::Anthropic.BetaListResponseModelResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Anthropic.BetaListResponseModelInfo.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
else
@@ -227,7 +227,7 @@ partial void ProcessBetaModelsListResponseContent(
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
return
- await global::Anthropic.BetaListResponseModelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Anthropic.BetaListResponseModelInfo.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.ModelsGet.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.ModelsGet.g.cs
index dfa4ab8..a7537aa 100644
--- a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.ModelsGet.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.ModelsGet.g.cs
@@ -43,7 +43,7 @@ partial void ProcessModelsGetResponseContent(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task ModelsGetAsync(
+ public async global::System.Threading.Tasks.Task ModelsGetAsync(
string modelId,
string? anthropicVersion = default,
string? xApiKey = default,
@@ -178,7 +178,7 @@ partial void ProcessModelsGetResponseContent(
}
return
- global::Anthropic.ModelResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Anthropic.ModelInfo.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
else
@@ -204,7 +204,7 @@ partial void ProcessModelsGetResponseContent(
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
return
- await global::Anthropic.ModelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Anthropic.ModelInfo.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.ModelsList.g.cs b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.ModelsList.g.cs
index 6098555..bee6157 100644
--- a/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.ModelsList.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.AnthropicClient.ModelsList.g.cs
@@ -55,7 +55,7 @@ partial void ProcessModelsListResponseContent(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task ModelsListAsync(
+ public async global::System.Threading.Tasks.Task ModelsListAsync(
string? beforeId = default,
string? afterId = default,
int? limit = default,
@@ -201,7 +201,7 @@ partial void ProcessModelsListResponseContent(
}
return
- global::Anthropic.ListResponseModelResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Anthropic.ListResponseModelInfo.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
else
@@ -227,7 +227,7 @@ partial void ProcessModelsListResponseContent(
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
return
- await global::Anthropic.ListResponseModelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Anthropic.ListResponseModelInfo.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.BetaModelsGet.g.cs b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.BetaModelsGet.g.cs
index dcbbbf8..e39f3f8 100644
--- a/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.BetaModelsGet.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.BetaModelsGet.g.cs
@@ -22,7 +22,7 @@ public partial interface IAnthropicClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task BetaModelsGetAsync(
+ global::System.Threading.Tasks.Task BetaModelsGetAsync(
string modelId,
string? anthropicVersion = default,
string? xApiKey = default,
diff --git a/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.BetaModelsList.g.cs b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.BetaModelsList.g.cs
index ff1d8d5..bfa064f 100644
--- a/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.BetaModelsList.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.BetaModelsList.g.cs
@@ -30,7 +30,7 @@ public partial interface IAnthropicClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task BetaModelsListAsync(
+ global::System.Threading.Tasks.Task BetaModelsListAsync(
string? beforeId = default,
string? afterId = default,
int? limit = default,
diff --git a/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.ModelsGet.g.cs b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.ModelsGet.g.cs
index dc3251b..8702d6b 100644
--- a/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.ModelsGet.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.ModelsGet.g.cs
@@ -22,7 +22,7 @@ public partial interface IAnthropicClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task ModelsGetAsync(
+ global::System.Threading.Tasks.Task ModelsGetAsync(
string modelId,
string? anthropicVersion = default,
string? xApiKey = default,
diff --git a/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.ModelsList.g.cs b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.ModelsList.g.cs
index 4c43d0a..f8ebb8a 100644
--- a/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.ModelsList.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.IAnthropicClient.ModelsList.g.cs
@@ -30,7 +30,7 @@ public partial interface IAnthropicClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task ModelsListAsync(
+ global::System.Threading.Tasks.Task ModelsListAsync(
string? beforeId = default,
string? afterId = default,
int? limit = default,
diff --git a/src/libs/Anthropic/Generated/Anthropic.IMessageBatchesClient.BetaMessageBatchesDelete.g.cs b/src/libs/Anthropic/Generated/Anthropic.IMessageBatchesClient.BetaMessageBatchesDelete.g.cs
new file mode 100644
index 0000000..b8e82c1
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.IMessageBatchesClient.BetaMessageBatchesDelete.g.cs
@@ -0,0 +1,35 @@
+#nullable enable
+
+namespace Anthropic
+{
+ public partial interface IMessageBatchesClient
+ {
+ ///
+ /// Delete a Message Batch
+ /// This endpoint is idempotent and can be used to poll for Message Batch completion. To access the results of a Message Batch, make a request to the `results_url` field in the response.
+ ///
+ ///
+ /// ID of the Message Batch.
+ ///
+ ///
+ /// Optional header to specify the beta version(s) you want to use.
+ /// To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta.
+ ///
+ ///
+ /// The version of the Anthropic API you want to use.
+ /// Read more about versioning and our version history [here](https://docs.anthropic.com/en/api/versioning).
+ ///
+ ///
+ /// Your unique API key for authentication.
+ /// This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace.
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task BetaMessageBatchesDeleteAsync(
+ string messageBatchId,
+ string? anthropicBeta = default,
+ string? anthropicVersion = default,
+ string? xApiKey = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Anthropic/Generated/Anthropic.IMessageBatchesClient.MessageBatchesDelete.g.cs b/src/libs/Anthropic/Generated/Anthropic.IMessageBatchesClient.MessageBatchesDelete.g.cs
new file mode 100644
index 0000000..126dda9
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.IMessageBatchesClient.MessageBatchesDelete.g.cs
@@ -0,0 +1,30 @@
+#nullable enable
+
+namespace Anthropic
+{
+ public partial interface IMessageBatchesClient
+ {
+ ///
+ /// Delete a Message Batch
+ /// This endpoint is idempotent and can be used to poll for Message Batch completion. To access the results of a Message Batch, make a request to the `results_url` field in the response.
+ ///
+ ///
+ /// ID of the Message Batch.
+ ///
+ ///
+ /// The version of the Anthropic API you want to use.
+ /// Read more about versioning and our version history [here](https://docs.anthropic.com/en/api/versioning).
+ ///
+ ///
+ /// Your unique API key for authentication.
+ /// This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace.
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task MessageBatchesDeleteAsync(
+ string messageBatchId,
+ string? anthropicVersion = default,
+ string? xApiKey = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Anthropic/Generated/Anthropic.MessageBatchesClient.BetaMessageBatchesDelete.g.cs b/src/libs/Anthropic/Generated/Anthropic.MessageBatchesClient.BetaMessageBatchesDelete.g.cs
new file mode 100644
index 0000000..9e85bf0
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.MessageBatchesClient.BetaMessageBatchesDelete.g.cs
@@ -0,0 +1,224 @@
+
+#nullable enable
+
+namespace Anthropic
+{
+ public partial class MessageBatchesClient
+ {
+ partial void PrepareBetaMessageBatchesDeleteArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string messageBatchId,
+ ref string? anthropicBeta,
+ ref string? anthropicVersion,
+ ref string? xApiKey);
+ partial void PrepareBetaMessageBatchesDeleteRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string messageBatchId,
+ string? anthropicBeta,
+ string? anthropicVersion,
+ string? xApiKey);
+ partial void ProcessBetaMessageBatchesDeleteResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessBetaMessageBatchesDeleteResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Delete a Message Batch
+ /// This endpoint is idempotent and can be used to poll for Message Batch completion. To access the results of a Message Batch, make a request to the `results_url` field in the response.
+ ///
+ ///
+ /// ID of the Message Batch.
+ ///
+ ///
+ /// Optional header to specify the beta version(s) you want to use.
+ /// To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta.
+ ///
+ ///
+ /// The version of the Anthropic API you want to use.
+ /// Read more about versioning and our version history [here](https://docs.anthropic.com/en/api/versioning).
+ ///
+ ///
+ /// Your unique API key for authentication.
+ /// This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace.
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task BetaMessageBatchesDeleteAsync(
+ string messageBatchId,
+ string? anthropicBeta = default,
+ string? anthropicVersion = default,
+ string? xApiKey = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareBetaMessageBatchesDeleteArguments(
+ httpClient: HttpClient,
+ messageBatchId: ref messageBatchId,
+ anthropicBeta: ref anthropicBeta,
+ anthropicVersion: ref anthropicVersion,
+ xApiKey: ref xApiKey);
+
+ var __pathBuilder = new PathBuilder(
+ path: $"/v1/messages/batches/{messageBatchId}?beta=true",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Delete,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ 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);
+ }
+ }
+
+ if (anthropicBeta != default)
+ {
+ __httpRequest.Headers.TryAddWithoutValidation("anthropic-beta", anthropicBeta.ToString());
+ }
+ if (anthropicVersion != default)
+ {
+ __httpRequest.Headers.TryAddWithoutValidation("anthropic-version", anthropicVersion.ToString());
+ }
+ if (xApiKey != default)
+ {
+ __httpRequest.Headers.TryAddWithoutValidation("x-api-key", xApiKey.ToString());
+ }
+
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareBetaMessageBatchesDeleteRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ messageBatchId: messageBatchId,
+ anthropicBeta: anthropicBeta,
+ anthropicVersion: anthropicVersion,
+ xApiKey: xApiKey);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessBetaMessageBatchesDeleteResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ // Error response. See our [errors documentation](https://docs.anthropic.com/en/api/errors) for more details.
+ if ((int)__response.StatusCode >= 400 && (int)__response.StatusCode <= 499)
+ {
+ string? __content_4XX = null;
+ global::Anthropic.BetaErrorResponse? __value_4XX = null;
+ if (ReadResponseAsString)
+ {
+ __content_4XX = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_4XX = global::Anthropic.BetaErrorResponse.FromJson(__content_4XX, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_4XX = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_4XX = await global::Anthropic.BetaErrorResponse.FromJsonStreamAsync(__contentStream_4XX, JsonSerializerContext).ConfigureAwait(false);
+ }
+
+ throw new global::Anthropic.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_4XX,
+ ResponseObject = __value_4XX,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessBetaMessageBatchesDeleteResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Anthropic.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ return
+ global::Anthropic.BetaDeleteMessageBatchResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Anthropic.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+
+ return
+ await global::Anthropic.BetaDeleteMessageBatchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Anthropic/Generated/Anthropic.MessageBatchesClient.MessageBatchesDelete.g.cs b/src/libs/Anthropic/Generated/Anthropic.MessageBatchesClient.MessageBatchesDelete.g.cs
new file mode 100644
index 0000000..619ca69
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.MessageBatchesClient.MessageBatchesDelete.g.cs
@@ -0,0 +1,211 @@
+
+#nullable enable
+
+namespace Anthropic
+{
+ public partial class MessageBatchesClient
+ {
+ partial void PrepareMessageBatchesDeleteArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string messageBatchId,
+ ref string? anthropicVersion,
+ ref string? xApiKey);
+ partial void PrepareMessageBatchesDeleteRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string messageBatchId,
+ string? anthropicVersion,
+ string? xApiKey);
+ partial void ProcessMessageBatchesDeleteResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessMessageBatchesDeleteResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Delete a Message Batch
+ /// This endpoint is idempotent and can be used to poll for Message Batch completion. To access the results of a Message Batch, make a request to the `results_url` field in the response.
+ ///
+ ///
+ /// ID of the Message Batch.
+ ///
+ ///
+ /// The version of the Anthropic API you want to use.
+ /// Read more about versioning and our version history [here](https://docs.anthropic.com/en/api/versioning).
+ ///
+ ///
+ /// Your unique API key for authentication.
+ /// This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace.
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task MessageBatchesDeleteAsync(
+ string messageBatchId,
+ string? anthropicVersion = default,
+ string? xApiKey = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareMessageBatchesDeleteArguments(
+ httpClient: HttpClient,
+ messageBatchId: ref messageBatchId,
+ anthropicVersion: ref anthropicVersion,
+ xApiKey: ref xApiKey);
+
+ var __pathBuilder = new PathBuilder(
+ path: $"/v1/messages/batches/{messageBatchId}",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Delete,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ 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);
+ }
+ }
+
+ if (anthropicVersion != default)
+ {
+ __httpRequest.Headers.TryAddWithoutValidation("anthropic-version", anthropicVersion.ToString());
+ }
+ if (xApiKey != default)
+ {
+ __httpRequest.Headers.TryAddWithoutValidation("x-api-key", xApiKey.ToString());
+ }
+
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareMessageBatchesDeleteRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ messageBatchId: messageBatchId,
+ anthropicVersion: anthropicVersion,
+ xApiKey: xApiKey);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessMessageBatchesDeleteResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ // Error response. See our [errors documentation](https://docs.anthropic.com/en/api/errors) for more details.
+ if ((int)__response.StatusCode >= 400 && (int)__response.StatusCode <= 499)
+ {
+ string? __content_4XX = null;
+ global::Anthropic.ErrorResponse? __value_4XX = null;
+ if (ReadResponseAsString)
+ {
+ __content_4XX = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_4XX = global::Anthropic.ErrorResponse.FromJson(__content_4XX, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_4XX = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_4XX = await global::Anthropic.ErrorResponse.FromJsonStreamAsync(__contentStream_4XX, JsonSerializerContext).ConfigureAwait(false);
+ }
+
+ throw new global::Anthropic.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_4XX,
+ ResponseObject = __value_4XX,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessMessageBatchesDeleteResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Anthropic.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ return
+ global::Anthropic.DeleteMessageBatchResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Anthropic.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+
+ return
+ await global::Anthropic.DeleteMessageBatchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.BetaDeleteMessageBatchResponse.Json.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.BetaDeleteMessageBatchResponse.Json.g.cs
new file mode 100644
index 0000000..89c1a44
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.BetaDeleteMessageBatchResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Anthropic
+{
+ public sealed partial class BetaDeleteMessageBatchResponse
+ {
+ ///
+ /// 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::Anthropic.BetaDeleteMessageBatchResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Anthropic.BetaDeleteMessageBatchResponse),
+ jsonSerializerContext) as global::Anthropic.BetaDeleteMessageBatchResponse;
+ }
+
+ ///
+ /// 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::Anthropic.BetaDeleteMessageBatchResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Anthropic.BetaDeleteMessageBatchResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.BetaDeleteMessageBatchResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream 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::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.BetaDeleteMessageBatchResponse.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.BetaDeleteMessageBatchResponse.g.cs
new file mode 100644
index 0000000..3c2a63e
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.BetaDeleteMessageBatchResponse.g.cs
@@ -0,0 +1,64 @@
+
+#nullable enable
+
+namespace Anthropic
+{
+ ///
+ ///
+ ///
+ public sealed partial class BetaDeleteMessageBatchResponse
+ {
+ ///
+ /// ID of the Message Batch.
+ /// Example: msgbatch_013Zva2CMHLNnXjNJJKqJ2EF
+ ///
+ /// msgbatch_013Zva2CMHLNnXjNJJKqJ2EF
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Id { get; set; }
+
+ ///
+ /// Deleted object type.
+ /// For Message Batches, this is always `"message_batch_deleted"`.
+ /// Default Value: message_batch_deleted
+ ///
+ /// global::Anthropic.BetaDeleteMessageBatchResponseType.MessageBatchDeleted
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Anthropic.JsonConverters.BetaDeleteMessageBatchResponseTypeJsonConverter))]
+ public global::Anthropic.BetaDeleteMessageBatchResponseType Type { get; set; } = global::Anthropic.BetaDeleteMessageBatchResponseType.MessageBatchDeleted;
+
+ ///
+ /// 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// ID of the Message Batch.
+ /// Example: msgbatch_013Zva2CMHLNnXjNJJKqJ2EF
+ ///
+ ///
+ /// Deleted object type.
+ /// For Message Batches, this is always `"message_batch_deleted"`.
+ /// Default Value: message_batch_deleted
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public BetaDeleteMessageBatchResponse(
+ string id,
+ global::Anthropic.BetaDeleteMessageBatchResponseType type = global::Anthropic.BetaDeleteMessageBatchResponseType.MessageBatchDeleted)
+ {
+ this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
+ this.Type = type;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public BetaDeleteMessageBatchResponse()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.BetaDeleteMessageBatchResponseType.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.BetaDeleteMessageBatchResponseType.g.cs
new file mode 100644
index 0000000..e8ea54c
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.BetaDeleteMessageBatchResponseType.g.cs
@@ -0,0 +1,47 @@
+
+#nullable enable
+
+namespace Anthropic
+{
+ ///
+ /// Deleted object type.
+ /// For Message Batches, this is always `"message_batch_deleted"`.
+ /// Default Value: message_batch_deleted
+ ///
+ public enum BetaDeleteMessageBatchResponseType
+ {
+ ///
+ ///
+ ///
+ MessageBatchDeleted,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class BetaDeleteMessageBatchResponseTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this BetaDeleteMessageBatchResponseType value)
+ {
+ return value switch
+ {
+ BetaDeleteMessageBatchResponseType.MessageBatchDeleted => "message_batch_deleted",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static BetaDeleteMessageBatchResponseType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "message_batch_deleted" => BetaDeleteMessageBatchResponseType.MessageBatchDeleted,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelResponse.Json.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelInfo.Json.g.cs
similarity index 86%
rename from src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelResponse.Json.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelInfo.Json.g.cs
index b5451d2..f90a98d 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelResponse.Json.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelInfo.Json.g.cs
@@ -2,7 +2,7 @@
namespace Anthropic
{
- public sealed partial class BetaListResponseModelResponse
+ public sealed partial class BetaListResponseModelInfo
{
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -34,14 +34,14 @@ public string ToJson(
///
/// Deserializes a JSON string using the provided JsonSerializerContext.
///
- public static global::Anthropic.BetaListResponseModelResponse? FromJson(
+ public static global::Anthropic.BetaListResponseModelInfo? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
- typeof(global::Anthropic.BetaListResponseModelResponse),
- jsonSerializerContext) as global::Anthropic.BetaListResponseModelResponse;
+ typeof(global::Anthropic.BetaListResponseModelInfo),
+ jsonSerializerContext) as global::Anthropic.BetaListResponseModelInfo;
}
///
@@ -51,11 +51,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::Anthropic.BetaListResponseModelResponse? FromJson(
+ public static global::Anthropic.BetaListResponseModelInfo? 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);
}
@@ -63,14 +63,14 @@ public string ToJson(
///
/// Deserializes a JSON stream using the provided JsonSerializerContext.
///
- public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
- typeof(global::Anthropic.BetaListResponseModelResponse),
- jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.BetaListResponseModelResponse;
+ typeof(global::Anthropic.BetaListResponseModelInfo),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.BetaListResponseModelInfo;
}
///
@@ -80,11 +80,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::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
- return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelResponse.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelInfo.g.cs
similarity index 90%
rename from src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelResponse.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelInfo.g.cs
index 0752ea9..08e9b68 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelResponse.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.BetaListResponseModelInfo.g.cs
@@ -6,14 +6,14 @@ namespace Anthropic
///
///
///
- public sealed partial class BetaListResponseModelResponse
+ public sealed partial class BetaListResponseModelInfo
{
///
///
///
[global::System.Text.Json.Serialization.JsonPropertyName("data")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required global::System.Collections.Generic.IList Data { get; set; }
+ public required global::System.Collections.Generic.IList Data { get; set; }
///
/// Indicates if there are more results in the requested page direction.
@@ -43,7 +43,7 @@ public sealed partial class BetaListResponseModelResponse
public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
///
///
@@ -56,8 +56,8 @@ public sealed partial class BetaListResponseModelResponse
/// Last ID in the `data` list. Can be used as the `after_id` for the next page.
///
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
- public BetaListResponseModelResponse(
- global::System.Collections.Generic.IList data,
+ public BetaListResponseModelInfo(
+ global::System.Collections.Generic.IList data,
bool hasMore,
string? firstId,
string? lastId)
@@ -69,9 +69,9 @@ public BetaListResponseModelResponse(
}
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- public BetaListResponseModelResponse()
+ public BetaListResponseModelInfo()
{
}
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelResponse.Json.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelInfo.Json.g.cs
similarity index 88%
rename from src/libs/Anthropic/Generated/Anthropic.Models.BetaModelResponse.Json.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.BetaModelInfo.Json.g.cs
index 023d452..a2bfb2e 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelResponse.Json.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelInfo.Json.g.cs
@@ -2,7 +2,7 @@
namespace Anthropic
{
- public sealed partial class BetaModelResponse
+ public sealed partial class BetaModelInfo
{
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -34,14 +34,14 @@ public string ToJson(
///
/// Deserializes a JSON string using the provided JsonSerializerContext.
///
- public static global::Anthropic.BetaModelResponse? FromJson(
+ public static global::Anthropic.BetaModelInfo? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
- typeof(global::Anthropic.BetaModelResponse),
- jsonSerializerContext) as global::Anthropic.BetaModelResponse;
+ typeof(global::Anthropic.BetaModelInfo),
+ jsonSerializerContext) as global::Anthropic.BetaModelInfo;
}
///
@@ -51,11 +51,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::Anthropic.BetaModelResponse? FromJson(
+ public static global::Anthropic.BetaModelInfo? 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);
}
@@ -63,14 +63,14 @@ public string ToJson(
///
/// Deserializes a JSON stream using the provided JsonSerializerContext.
///
- public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
- typeof(global::Anthropic.BetaModelResponse),
- jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.BetaModelResponse;
+ typeof(global::Anthropic.BetaModelInfo),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.BetaModelInfo;
}
///
@@ -80,11 +80,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::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
- return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelResponse.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelInfo.g.cs
similarity index 86%
rename from src/libs/Anthropic/Generated/Anthropic.Models.BetaModelResponse.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.BetaModelInfo.g.cs
index c880c98..4eaf8ce 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelResponse.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelInfo.g.cs
@@ -6,17 +6,17 @@ namespace Anthropic
///
///
///
- public sealed partial class BetaModelResponse
+ public sealed partial class BetaModelInfo
{
///
/// Object type.
/// For Models, this is always `"model"`.
/// Default Value: model
///
- /// global::Anthropic.BetaModelResponseType.Model
+ /// global::Anthropic.BetaModelInfoType.Model
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
- [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Anthropic.JsonConverters.BetaModelResponseTypeJsonConverter))]
- public global::Anthropic.BetaModelResponseType Type { get; set; } = global::Anthropic.BetaModelResponseType.Model;
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Anthropic.JsonConverters.BetaModelInfoTypeJsonConverter))]
+ public global::Anthropic.BetaModelInfoType Type { get; set; } = global::Anthropic.BetaModelInfoType.Model;
///
/// Unique model identifier.
@@ -50,7 +50,7 @@ public sealed partial class BetaModelResponse
public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
///
/// Object type.
@@ -69,11 +69,11 @@ public sealed partial class BetaModelResponse
/// RFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.
///
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
- public BetaModelResponse(
+ public BetaModelInfo(
string id,
string displayName,
global::System.DateTime createdAt,
- global::Anthropic.BetaModelResponseType type = global::Anthropic.BetaModelResponseType.Model)
+ global::Anthropic.BetaModelInfoType type = global::Anthropic.BetaModelInfoType.Model)
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.DisplayName = displayName ?? throw new global::System.ArgumentNullException(nameof(displayName));
@@ -82,9 +82,9 @@ public BetaModelResponse(
}
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- public BetaModelResponse()
+ public BetaModelInfo()
{
}
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.ModelResponseType.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelInfoType.g.cs
similarity index 73%
rename from src/libs/Anthropic/Generated/Anthropic.Models.ModelResponseType.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.BetaModelInfoType.g.cs
index a9521da..d9467fa 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.ModelResponseType.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelInfoType.g.cs
@@ -8,7 +8,7 @@ namespace Anthropic
/// For Models, this is always `"model"`.
/// Default Value: model
///
- public enum ModelResponseType
+ public enum BetaModelInfoType
{
///
///
@@ -19,27 +19,27 @@ public enum ModelResponseType
///
/// Enum extensions to do fast conversions without the reflection.
///
- public static class ModelResponseTypeExtensions
+ public static class BetaModelInfoTypeExtensions
{
///
/// Converts an enum to a string.
///
- public static string ToValueString(this ModelResponseType value)
+ public static string ToValueString(this BetaModelInfoType value)
{
return value switch
{
- ModelResponseType.Model => "model",
+ BetaModelInfoType.Model => "model",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
///
/// Converts an string to a enum.
///
- public static ModelResponseType? ToEnum(string value)
+ public static BetaModelInfoType? ToEnum(string value)
{
return value switch
{
- "model" => ModelResponseType.Model,
+ "model" => BetaModelInfoType.Model,
_ => null,
};
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.DeleteMessageBatchResponse.Json.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.DeleteMessageBatchResponse.Json.g.cs
new file mode 100644
index 0000000..6b779ab
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.DeleteMessageBatchResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Anthropic
+{
+ public sealed partial class DeleteMessageBatchResponse
+ {
+ ///
+ /// 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::Anthropic.DeleteMessageBatchResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Anthropic.DeleteMessageBatchResponse),
+ jsonSerializerContext) as global::Anthropic.DeleteMessageBatchResponse;
+ }
+
+ ///
+ /// 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::Anthropic.DeleteMessageBatchResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Anthropic.DeleteMessageBatchResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.DeleteMessageBatchResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream 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::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.DeleteMessageBatchResponse.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.DeleteMessageBatchResponse.g.cs
new file mode 100644
index 0000000..b68071d
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.DeleteMessageBatchResponse.g.cs
@@ -0,0 +1,64 @@
+
+#nullable enable
+
+namespace Anthropic
+{
+ ///
+ ///
+ ///
+ public sealed partial class DeleteMessageBatchResponse
+ {
+ ///
+ /// ID of the Message Batch.
+ /// Example: msgbatch_013Zva2CMHLNnXjNJJKqJ2EF
+ ///
+ /// msgbatch_013Zva2CMHLNnXjNJJKqJ2EF
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Id { get; set; }
+
+ ///
+ /// Deleted object type.
+ /// For Message Batches, this is always `"message_batch_deleted"`.
+ /// Default Value: message_batch_deleted
+ ///
+ /// global::Anthropic.DeleteMessageBatchResponseType.MessageBatchDeleted
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Anthropic.JsonConverters.DeleteMessageBatchResponseTypeJsonConverter))]
+ public global::Anthropic.DeleteMessageBatchResponseType Type { get; set; } = global::Anthropic.DeleteMessageBatchResponseType.MessageBatchDeleted;
+
+ ///
+ /// 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// ID of the Message Batch.
+ /// Example: msgbatch_013Zva2CMHLNnXjNJJKqJ2EF
+ ///
+ ///
+ /// Deleted object type.
+ /// For Message Batches, this is always `"message_batch_deleted"`.
+ /// Default Value: message_batch_deleted
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public DeleteMessageBatchResponse(
+ string id,
+ global::Anthropic.DeleteMessageBatchResponseType type = global::Anthropic.DeleteMessageBatchResponseType.MessageBatchDeleted)
+ {
+ this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
+ this.Type = type;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public DeleteMessageBatchResponse()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.DeleteMessageBatchResponseType.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.DeleteMessageBatchResponseType.g.cs
new file mode 100644
index 0000000..9799ddc
--- /dev/null
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.DeleteMessageBatchResponseType.g.cs
@@ -0,0 +1,47 @@
+
+#nullable enable
+
+namespace Anthropic
+{
+ ///
+ /// Deleted object type.
+ /// For Message Batches, this is always `"message_batch_deleted"`.
+ /// Default Value: message_batch_deleted
+ ///
+ public enum DeleteMessageBatchResponseType
+ {
+ ///
+ ///
+ ///
+ MessageBatchDeleted,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class DeleteMessageBatchResponseTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this DeleteMessageBatchResponseType value)
+ {
+ return value switch
+ {
+ DeleteMessageBatchResponseType.MessageBatchDeleted => "message_batch_deleted",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static DeleteMessageBatchResponseType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "message_batch_deleted" => DeleteMessageBatchResponseType.MessageBatchDeleted,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelResponse.Json.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelInfo.Json.g.cs
similarity index 87%
rename from src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelResponse.Json.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelInfo.Json.g.cs
index fb91c14..e9ca923 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelResponse.Json.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelInfo.Json.g.cs
@@ -2,7 +2,7 @@
namespace Anthropic
{
- public sealed partial class ListResponseModelResponse
+ public sealed partial class ListResponseModelInfo
{
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -34,14 +34,14 @@ public string ToJson(
///
/// Deserializes a JSON string using the provided JsonSerializerContext.
///
- public static global::Anthropic.ListResponseModelResponse? FromJson(
+ public static global::Anthropic.ListResponseModelInfo? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
- typeof(global::Anthropic.ListResponseModelResponse),
- jsonSerializerContext) as global::Anthropic.ListResponseModelResponse;
+ typeof(global::Anthropic.ListResponseModelInfo),
+ jsonSerializerContext) as global::Anthropic.ListResponseModelInfo;
}
///
@@ -51,11 +51,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::Anthropic.ListResponseModelResponse? FromJson(
+ public static global::Anthropic.ListResponseModelInfo? 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);
}
@@ -63,14 +63,14 @@ public string ToJson(
///
/// Deserializes a JSON stream using the provided JsonSerializerContext.
///
- public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
- typeof(global::Anthropic.ListResponseModelResponse),
- jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.ListResponseModelResponse;
+ typeof(global::Anthropic.ListResponseModelInfo),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.ListResponseModelInfo;
}
///
@@ -80,11 +80,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::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
- return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelResponse.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelInfo.g.cs
similarity index 91%
rename from src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelResponse.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelInfo.g.cs
index 57ca8f0..e25081b 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelResponse.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.ListResponseModelInfo.g.cs
@@ -6,14 +6,14 @@ namespace Anthropic
///
///
///
- public sealed partial class ListResponseModelResponse
+ public sealed partial class ListResponseModelInfo
{
///
///
///
[global::System.Text.Json.Serialization.JsonPropertyName("data")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required global::System.Collections.Generic.IList Data { get; set; }
+ public required global::System.Collections.Generic.IList Data { get; set; }
///
/// Indicates if there are more results in the requested page direction.
@@ -43,7 +43,7 @@ public sealed partial class ListResponseModelResponse
public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
///
///
@@ -56,8 +56,8 @@ public sealed partial class ListResponseModelResponse
/// Last ID in the `data` list. Can be used as the `after_id` for the next page.
///
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
- public ListResponseModelResponse(
- global::System.Collections.Generic.IList data,
+ public ListResponseModelInfo(
+ global::System.Collections.Generic.IList data,
bool hasMore,
string? firstId,
string? lastId)
@@ -69,9 +69,9 @@ public ListResponseModelResponse(
}
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- public ListResponseModelResponse()
+ public ListResponseModelInfo()
{
}
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.ModelResponse.Json.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.ModelInfo.Json.g.cs
similarity index 89%
rename from src/libs/Anthropic/Generated/Anthropic.Models.ModelResponse.Json.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.ModelInfo.Json.g.cs
index dddc57e..b01f61a 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.ModelResponse.Json.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.ModelInfo.Json.g.cs
@@ -2,7 +2,7 @@
namespace Anthropic
{
- public sealed partial class ModelResponse
+ public sealed partial class ModelInfo
{
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -34,14 +34,14 @@ public string ToJson(
///
/// Deserializes a JSON string using the provided JsonSerializerContext.
///
- public static global::Anthropic.ModelResponse? FromJson(
+ public static global::Anthropic.ModelInfo? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
- typeof(global::Anthropic.ModelResponse),
- jsonSerializerContext) as global::Anthropic.ModelResponse;
+ typeof(global::Anthropic.ModelInfo),
+ jsonSerializerContext) as global::Anthropic.ModelInfo;
}
///
@@ -51,11 +51,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::Anthropic.ModelResponse? FromJson(
+ public static global::Anthropic.ModelInfo? 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);
}
@@ -63,14 +63,14 @@ public string ToJson(
///
/// Deserializes a JSON stream using the provided JsonSerializerContext.
///
- public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
- typeof(global::Anthropic.ModelResponse),
- jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.ModelResponse;
+ typeof(global::Anthropic.ModelInfo),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Anthropic.ModelInfo;
}
///
@@ -80,11 +80,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::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
- return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.ModelResponse.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.ModelInfo.g.cs
similarity index 83%
rename from src/libs/Anthropic/Generated/Anthropic.Models.ModelResponse.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.ModelInfo.g.cs
index 69ef312..7239e56 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.ModelResponse.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.ModelInfo.g.cs
@@ -6,17 +6,17 @@ namespace Anthropic
///
///
///
- public sealed partial class ModelResponse
+ public sealed partial class ModelInfo
{
///
/// Object type.
/// For Models, this is always `"model"`.
/// Default Value: model
///
- /// global::Anthropic.ModelResponseType.Model
+ /// global::Anthropic.ModelInfoType.Model
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
- [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Anthropic.JsonConverters.ModelResponseTypeJsonConverter))]
- public global::Anthropic.ModelResponseType Type { get; set; } = global::Anthropic.ModelResponseType.Model;
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Anthropic.JsonConverters.ModelInfoTypeJsonConverter))]
+ public global::Anthropic.ModelInfoType Type { get; set; } = global::Anthropic.ModelInfoType.Model;
///
/// Unique model identifier.
@@ -50,7 +50,7 @@ public sealed partial class ModelResponse
public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
///
/// Object type.
@@ -69,11 +69,11 @@ public sealed partial class ModelResponse
/// RFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.
///
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
- public ModelResponse(
+ public ModelInfo(
string id,
string displayName,
global::System.DateTime createdAt,
- global::Anthropic.ModelResponseType type = global::Anthropic.ModelResponseType.Model)
+ global::Anthropic.ModelInfoType type = global::Anthropic.ModelInfoType.Model)
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.DisplayName = displayName ?? throw new global::System.ArgumentNullException(nameof(displayName));
@@ -82,9 +82,9 @@ public ModelResponse(
}
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- public ModelResponse()
+ public ModelInfo()
{
}
}
diff --git a/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelResponseType.g.cs b/src/libs/Anthropic/Generated/Anthropic.Models.ModelInfoType.g.cs
similarity index 71%
rename from src/libs/Anthropic/Generated/Anthropic.Models.BetaModelResponseType.g.cs
rename to src/libs/Anthropic/Generated/Anthropic.Models.ModelInfoType.g.cs
index 58f9699..37e5caf 100644
--- a/src/libs/Anthropic/Generated/Anthropic.Models.BetaModelResponseType.g.cs
+++ b/src/libs/Anthropic/Generated/Anthropic.Models.ModelInfoType.g.cs
@@ -8,7 +8,7 @@ namespace Anthropic
/// For Models, this is always `"model"`.
/// Default Value: model
///
- public enum BetaModelResponseType
+ public enum ModelInfoType
{
///
///
@@ -19,27 +19,27 @@ public enum BetaModelResponseType
///
/// Enum extensions to do fast conversions without the reflection.
///
- public static class BetaModelResponseTypeExtensions
+ public static class ModelInfoTypeExtensions
{
///
/// Converts an enum to a string.
///
- public static string ToValueString(this BetaModelResponseType value)
+ public static string ToValueString(this ModelInfoType value)
{
return value switch
{
- BetaModelResponseType.Model => "model",
+ ModelInfoType.Model => "model",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
///
/// Converts an string to a enum.
///
- public static BetaModelResponseType? ToEnum(string value)
+ public static ModelInfoType? ToEnum(string value)
{
return value switch
{
- "model" => BetaModelResponseType.Model,
+ "model" => ModelInfoType.Model,
_ => null,
};
}
diff --git a/src/libs/Anthropic/Generated/JsonConverters.BetaDeleteMessageBatchResponseType.g.cs b/src/libs/Anthropic/Generated/JsonConverters.BetaDeleteMessageBatchResponseType.g.cs
new file mode 100644
index 0000000..7167df7
--- /dev/null
+++ b/src/libs/Anthropic/Generated/JsonConverters.BetaDeleteMessageBatchResponseType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace Anthropic.JsonConverters
+{
+ ///
+ public sealed class BetaDeleteMessageBatchResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Anthropic.BetaDeleteMessageBatchResponseType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Anthropic.BetaDeleteMessageBatchResponseTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Anthropic.BetaDeleteMessageBatchResponseType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Anthropic.BetaDeleteMessageBatchResponseType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Anthropic.BetaDeleteMessageBatchResponseTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Anthropic/Generated/JsonConverters.BetaDeleteMessageBatchResponseTypeNullable.g.cs b/src/libs/Anthropic/Generated/JsonConverters.BetaDeleteMessageBatchResponseTypeNullable.g.cs
new file mode 100644
index 0000000..e5a3994
--- /dev/null
+++ b/src/libs/Anthropic/Generated/JsonConverters.BetaDeleteMessageBatchResponseTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace Anthropic.JsonConverters
+{
+ ///
+ public sealed class BetaDeleteMessageBatchResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Anthropic.BetaDeleteMessageBatchResponseType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Anthropic.BetaDeleteMessageBatchResponseTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Anthropic.BetaDeleteMessageBatchResponseType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Anthropic.BetaDeleteMessageBatchResponseType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Anthropic.BetaDeleteMessageBatchResponseTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Anthropic/Generated/JsonConverters.ModelResponseType.g.cs b/src/libs/Anthropic/Generated/JsonConverters.BetaModelInfoType.g.cs
similarity index 76%
rename from src/libs/Anthropic/Generated/JsonConverters.ModelResponseType.g.cs
rename to src/libs/Anthropic/Generated/JsonConverters.BetaModelInfoType.g.cs
index ca261d1..e7dcdc6 100644
--- a/src/libs/Anthropic/Generated/JsonConverters.ModelResponseType.g.cs
+++ b/src/libs/Anthropic/Generated/JsonConverters.BetaModelInfoType.g.cs
@@ -3,10 +3,10 @@
namespace Anthropic.JsonConverters
{
///
- public sealed class ModelResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ public sealed class BetaModelInfoTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
{
///
- public override global::Anthropic.ModelResponseType Read(
+ public override global::Anthropic.BetaModelInfoType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
@@ -18,7 +18,7 @@ public sealed class ModelResponseTypeJsonConverter : global::System.Text.Json.Se
var stringValue = reader.GetString();
if (stringValue != null)
{
- return global::Anthropic.ModelResponseTypeExtensions.ToEnum(stringValue) ?? default;
+ return global::Anthropic.BetaModelInfoTypeExtensions.ToEnum(stringValue) ?? default;
}
break;
@@ -26,7 +26,7 @@ public sealed class ModelResponseTypeJsonConverter : global::System.Text.Json.Se
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
- return (global::Anthropic.ModelResponseType)numValue;
+ return (global::Anthropic.BetaModelInfoType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
@@ -38,12 +38,12 @@ public sealed class ModelResponseTypeJsonConverter : global::System.Text.Json.Se
///
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
- global::Anthropic.ModelResponseType value,
+ global::Anthropic.BetaModelInfoType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
- writer.WriteStringValue(global::Anthropic.ModelResponseTypeExtensions.ToValueString(value));
+ writer.WriteStringValue(global::Anthropic.BetaModelInfoTypeExtensions.ToValueString(value));
}
}
}
diff --git a/src/libs/Anthropic/Generated/JsonConverters.ModelResponseTypeNullable.g.cs b/src/libs/Anthropic/Generated/JsonConverters.BetaModelInfoTypeNullable.g.cs
similarity index 77%
rename from src/libs/Anthropic/Generated/JsonConverters.ModelResponseTypeNullable.g.cs
rename to src/libs/Anthropic/Generated/JsonConverters.BetaModelInfoTypeNullable.g.cs
index 1f91161..ee44950 100644
--- a/src/libs/Anthropic/Generated/JsonConverters.ModelResponseTypeNullable.g.cs
+++ b/src/libs/Anthropic/Generated/JsonConverters.BetaModelInfoTypeNullable.g.cs
@@ -3,10 +3,10 @@
namespace Anthropic.JsonConverters
{
///
- public sealed class ModelResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ public sealed class BetaModelInfoTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
{
///
- public override global::Anthropic.ModelResponseType? Read(
+ public override global::Anthropic.BetaModelInfoType? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
@@ -18,7 +18,7 @@ public sealed class ModelResponseTypeNullableJsonConverter : global::System.Text
var stringValue = reader.GetString();
if (stringValue != null)
{
- return global::Anthropic.ModelResponseTypeExtensions.ToEnum(stringValue);
+ return global::Anthropic.BetaModelInfoTypeExtensions.ToEnum(stringValue);
}
break;
@@ -26,7 +26,7 @@ public sealed class ModelResponseTypeNullableJsonConverter : global::System.Text
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
- return (global::Anthropic.ModelResponseType)numValue;
+ return (global::Anthropic.BetaModelInfoType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
@@ -38,7 +38,7 @@ public sealed class ModelResponseTypeNullableJsonConverter : global::System.Text
///
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
- global::Anthropic.ModelResponseType? value,
+ global::Anthropic.BetaModelInfoType? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
@@ -49,7 +49,7 @@ public override void Write(
}
else
{
- writer.WriteStringValue(global::Anthropic.ModelResponseTypeExtensions.ToValueString(value.Value));
+ writer.WriteStringValue(global::Anthropic.BetaModelInfoTypeExtensions.ToValueString(value.Value));
}
}
}
diff --git a/src/libs/Anthropic/Generated/JsonConverters.DeleteMessageBatchResponseType.g.cs b/src/libs/Anthropic/Generated/JsonConverters.DeleteMessageBatchResponseType.g.cs
new file mode 100644
index 0000000..7213fe3
--- /dev/null
+++ b/src/libs/Anthropic/Generated/JsonConverters.DeleteMessageBatchResponseType.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace Anthropic.JsonConverters
+{
+ ///
+ public sealed class DeleteMessageBatchResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Anthropic.DeleteMessageBatchResponseType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Anthropic.DeleteMessageBatchResponseTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Anthropic.DeleteMessageBatchResponseType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Anthropic.DeleteMessageBatchResponseType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Anthropic.DeleteMessageBatchResponseTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Anthropic/Generated/JsonConverters.DeleteMessageBatchResponseTypeNullable.g.cs b/src/libs/Anthropic/Generated/JsonConverters.DeleteMessageBatchResponseTypeNullable.g.cs
new file mode 100644
index 0000000..eb3bc28
--- /dev/null
+++ b/src/libs/Anthropic/Generated/JsonConverters.DeleteMessageBatchResponseTypeNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace Anthropic.JsonConverters
+{
+ ///
+ public sealed class DeleteMessageBatchResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Anthropic.DeleteMessageBatchResponseType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Anthropic.DeleteMessageBatchResponseTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Anthropic.DeleteMessageBatchResponseType)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Anthropic.DeleteMessageBatchResponseType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Anthropic.DeleteMessageBatchResponseTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Anthropic/Generated/JsonConverters.BetaModelResponseType.g.cs b/src/libs/Anthropic/Generated/JsonConverters.ModelInfoType.g.cs
similarity index 68%
rename from src/libs/Anthropic/Generated/JsonConverters.BetaModelResponseType.g.cs
rename to src/libs/Anthropic/Generated/JsonConverters.ModelInfoType.g.cs
index 8e02225..ebdb4d4 100644
--- a/src/libs/Anthropic/Generated/JsonConverters.BetaModelResponseType.g.cs
+++ b/src/libs/Anthropic/Generated/JsonConverters.ModelInfoType.g.cs
@@ -3,10 +3,10 @@
namespace Anthropic.JsonConverters
{
///
- public sealed class BetaModelResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ public sealed class ModelInfoTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
{
///
- public override global::Anthropic.BetaModelResponseType Read(
+ public override global::Anthropic.ModelInfoType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
@@ -18,7 +18,7 @@ public sealed class BetaModelResponseTypeJsonConverter : global::System.Text.Jso
var stringValue = reader.GetString();
if (stringValue != null)
{
- return global::Anthropic.BetaModelResponseTypeExtensions.ToEnum(stringValue) ?? default;
+ return global::Anthropic.ModelInfoTypeExtensions.ToEnum(stringValue) ?? default;
}
break;
@@ -26,7 +26,7 @@ public sealed class BetaModelResponseTypeJsonConverter : global::System.Text.Jso
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
- return (global::Anthropic.BetaModelResponseType)numValue;
+ return (global::Anthropic.ModelInfoType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
@@ -38,12 +38,12 @@ public sealed class BetaModelResponseTypeJsonConverter : global::System.Text.Jso
///
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
- global::Anthropic.BetaModelResponseType value,
+ global::Anthropic.ModelInfoType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
- writer.WriteStringValue(global::Anthropic.BetaModelResponseTypeExtensions.ToValueString(value));
+ writer.WriteStringValue(global::Anthropic.ModelInfoTypeExtensions.ToValueString(value));
}
}
}
diff --git a/src/libs/Anthropic/Generated/JsonConverters.BetaModelResponseTypeNullable.g.cs b/src/libs/Anthropic/Generated/JsonConverters.ModelInfoTypeNullable.g.cs
similarity index 70%
rename from src/libs/Anthropic/Generated/JsonConverters.BetaModelResponseTypeNullable.g.cs
rename to src/libs/Anthropic/Generated/JsonConverters.ModelInfoTypeNullable.g.cs
index 4147bba..8c68831 100644
--- a/src/libs/Anthropic/Generated/JsonConverters.BetaModelResponseTypeNullable.g.cs
+++ b/src/libs/Anthropic/Generated/JsonConverters.ModelInfoTypeNullable.g.cs
@@ -3,10 +3,10 @@
namespace Anthropic.JsonConverters
{
///
- public sealed class BetaModelResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ public sealed class ModelInfoTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
{
///
- public override global::Anthropic.BetaModelResponseType? Read(
+ public override global::Anthropic.ModelInfoType? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
@@ -18,7 +18,7 @@ public sealed class BetaModelResponseTypeNullableJsonConverter : global::System.
var stringValue = reader.GetString();
if (stringValue != null)
{
- return global::Anthropic.BetaModelResponseTypeExtensions.ToEnum(stringValue);
+ return global::Anthropic.ModelInfoTypeExtensions.ToEnum(stringValue);
}
break;
@@ -26,7 +26,7 @@ public sealed class BetaModelResponseTypeNullableJsonConverter : global::System.
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
- return (global::Anthropic.BetaModelResponseType)numValue;
+ return (global::Anthropic.ModelInfoType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
@@ -38,7 +38,7 @@ public sealed class BetaModelResponseTypeNullableJsonConverter : global::System.
///
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
- global::Anthropic.BetaModelResponseType? value,
+ global::Anthropic.ModelInfoType? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
@@ -49,7 +49,7 @@ public override void Write(
}
else
{
- writer.WriteStringValue(global::Anthropic.BetaModelResponseTypeExtensions.ToValueString(value.Value));
+ writer.WriteStringValue(global::Anthropic.ModelInfoTypeExtensions.ToValueString(value.Value));
}
}
}
diff --git a/src/libs/Anthropic/Generated/JsonSerializerContext.g.cs b/src/libs/Anthropic/Generated/JsonSerializerContext.g.cs
index 2c60e3c..483f794 100644
--- a/src/libs/Anthropic/Generated/JsonSerializerContext.g.cs
+++ b/src/libs/Anthropic/Generated/JsonSerializerContext.g.cs
@@ -123,6 +123,8 @@ namespace Anthropic
typeof(global::Anthropic.JsonConverters.ModelEnumNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaCreateMessageParamsToolDiscriminatorTypeJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaCreateMessageParamsToolDiscriminatorTypeNullableJsonConverter),
+ typeof(global::Anthropic.JsonConverters.BetaDeleteMessageBatchResponseTypeJsonConverter),
+ typeof(global::Anthropic.JsonConverters.BetaDeleteMessageBatchResponseTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaErrorResponseTypeJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaErrorResponseTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaInvalidRequestErrorTypeJsonConverter),
@@ -149,8 +151,8 @@ namespace Anthropic
typeof(global::Anthropic.JsonConverters.BetaMessageBatchTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaMessageBatchProcessingStatusJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaMessageBatchProcessingStatusNullableJsonConverter),
- typeof(global::Anthropic.JsonConverters.BetaModelResponseTypeJsonConverter),
- typeof(global::Anthropic.JsonConverters.BetaModelResponseTypeNullableJsonConverter),
+ typeof(global::Anthropic.JsonConverters.BetaModelInfoTypeJsonConverter),
+ typeof(global::Anthropic.JsonConverters.BetaModelInfoTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaMessageTypeJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaMessageTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.BetaMessageRoleJsonConverter),
@@ -235,6 +237,8 @@ namespace Anthropic
typeof(global::Anthropic.JsonConverters.RequestDocumentBlockSourceDiscriminatorTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.InputContentBlockDiscriminatorTypeJsonConverter),
typeof(global::Anthropic.JsonConverters.InputContentBlockDiscriminatorTypeNullableJsonConverter),
+ typeof(global::Anthropic.JsonConverters.DeleteMessageBatchResponseTypeJsonConverter),
+ typeof(global::Anthropic.JsonConverters.DeleteMessageBatchResponseTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.ErrorResponseTypeJsonConverter),
typeof(global::Anthropic.JsonConverters.ErrorResponseTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.InvalidRequestErrorTypeJsonConverter),
@@ -261,8 +265,8 @@ namespace Anthropic
typeof(global::Anthropic.JsonConverters.MessageBatchTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.MessageBatchProcessingStatusJsonConverter),
typeof(global::Anthropic.JsonConverters.MessageBatchProcessingStatusNullableJsonConverter),
- typeof(global::Anthropic.JsonConverters.ModelResponseTypeJsonConverter),
- typeof(global::Anthropic.JsonConverters.ModelResponseTypeNullableJsonConverter),
+ typeof(global::Anthropic.JsonConverters.ModelInfoTypeJsonConverter),
+ typeof(global::Anthropic.JsonConverters.ModelInfoTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.MessageTypeJsonConverter),
typeof(global::Anthropic.JsonConverters.MessageTypeNullableJsonConverter),
typeof(global::Anthropic.JsonConverters.MessageRoleJsonConverter),
diff --git a/src/libs/Anthropic/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Anthropic/Generated/JsonSerializerContextTypes.g.cs
index 97edb2d..9cab8d8 100644
--- a/src/libs/Anthropic/Generated/JsonSerializerContextTypes.g.cs
+++ b/src/libs/Anthropic/Generated/JsonSerializerContextTypes.g.cs
@@ -550,842 +550,858 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Anthropic.BetaErrorResponse? Type133 { get; set; }
+ public global::Anthropic.BetaDeleteMessageBatchResponse? Type133 { get; set; }
///
///
///
- public global::Anthropic.BetaErrorResponseType? Type134 { get; set; }
+ public global::Anthropic.BetaDeleteMessageBatchResponseType? Type134 { get; set; }
///
///
///
- public global::Anthropic.Error? Type135 { get; set; }
+ public global::Anthropic.BetaErrorResponse? Type135 { get; set; }
///
///
///
- public global::Anthropic.BetaInvalidRequestError? Type136 { get; set; }
+ public global::Anthropic.BetaErrorResponseType? Type136 { get; set; }
///
///
///
- public global::Anthropic.BetaInvalidRequestErrorType? Type137 { get; set; }
+ public global::Anthropic.Error? Type137 { get; set; }
///
///
///
- public global::Anthropic.BetaPermissionError? Type138 { get; set; }
+ public global::Anthropic.BetaInvalidRequestError? Type138 { get; set; }
///
///
///
- public global::Anthropic.BetaPermissionErrorType? Type139 { get; set; }
+ public global::Anthropic.BetaInvalidRequestErrorType? Type139 { get; set; }
///
///
///
- public global::Anthropic.BetaNotFoundError? Type140 { get; set; }
+ public global::Anthropic.BetaPermissionError? Type140 { get; set; }
///
///
///
- public global::Anthropic.BetaNotFoundErrorType? Type141 { get; set; }
+ public global::Anthropic.BetaPermissionErrorType? Type141 { get; set; }
///
///
///
- public global::Anthropic.BetaRateLimitError? Type142 { get; set; }
+ public global::Anthropic.BetaNotFoundError? Type142 { get; set; }
///
///
///
- public global::Anthropic.BetaRateLimitErrorType? Type143 { get; set; }
+ public global::Anthropic.BetaNotFoundErrorType? Type143 { get; set; }
///
///
///
- public global::Anthropic.BetaGatewayTimeoutError? Type144 { get; set; }
+ public global::Anthropic.BetaRateLimitError? Type144 { get; set; }
///
///
///
- public global::Anthropic.BetaGatewayTimeoutErrorType? Type145 { get; set; }
+ public global::Anthropic.BetaRateLimitErrorType? Type145 { get; set; }
///
///
///
- public global::Anthropic.BetaOverloadedError? Type146 { get; set; }
+ public global::Anthropic.BetaGatewayTimeoutError? Type146 { get; set; }
///
///
///
- public global::Anthropic.BetaOverloadedErrorType? Type147 { get; set; }
+ public global::Anthropic.BetaGatewayTimeoutErrorType? Type147 { get; set; }
///
///
///
- public global::Anthropic.BetaErrorResponseErrorDiscriminator? Type148 { get; set; }
+ public global::Anthropic.BetaOverloadedError? Type148 { get; set; }
///
///
///
- public global::Anthropic.BetaErrorResponseErrorDiscriminatorType? Type149 { get; set; }
+ public global::Anthropic.BetaOverloadedErrorType? Type149 { get; set; }
///
///
///
- public global::Anthropic.BetaErroredResult? Type150 { get; set; }
+ public global::Anthropic.BetaErrorResponseErrorDiscriminator? Type150 { get; set; }
///
///
///
- public global::Anthropic.BetaErroredResultType? Type151 { get; set; }
+ public global::Anthropic.BetaErrorResponseErrorDiscriminatorType? Type151 { get; set; }
///
///
///
- public global::Anthropic.BetaExpiredResult? Type152 { get; set; }
+ public global::Anthropic.BetaErroredResult? Type152 { get; set; }
///
///
///
- public global::Anthropic.BetaExpiredResultType? Type153 { get; set; }
+ public global::Anthropic.BetaErroredResultType? Type153 { get; set; }
///
///
///
- public global::Anthropic.BetaInputSchema? Type154 { get; set; }
+ public global::Anthropic.BetaExpiredResult? Type154 { get; set; }
///
///
///
- public global::Anthropic.BetaInputSchemaType? Type155 { get; set; }
+ public global::Anthropic.BetaExpiredResultType? Type155 { get; set; }
///
///
///
- public global::Anthropic.BetaListResponseMessageBatch? Type156 { get; set; }
+ public global::Anthropic.BetaInputSchema? Type156 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type157 { get; set; }
+ public global::Anthropic.BetaInputSchemaType? Type157 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageBatch? Type158 { get; set; }
+ public global::Anthropic.BetaListResponseMessageBatch? Type158 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageBatchType? Type159 { get; set; }
+ public global::System.Collections.Generic.IList? Type159 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageBatchProcessingStatus? Type160 { get; set; }
+ public global::Anthropic.BetaMessageBatch? Type160 { get; set; }
///
///
///
- public global::Anthropic.BetaRequestCounts? Type161 { get; set; }
+ public global::Anthropic.BetaMessageBatchType? Type161 { get; set; }
///
///
///
- public global::System.DateTime? Type162 { get; set; }
+ public global::Anthropic.BetaMessageBatchProcessingStatus? Type162 { get; set; }
///
///
///
- public global::Anthropic.BetaListResponseModelResponse? Type163 { get; set; }
+ public global::Anthropic.BetaRequestCounts? Type163 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type164 { get; set; }
+ public global::System.DateTime? Type164 { get; set; }
///
///
///
- public global::Anthropic.BetaModelResponse? Type165 { get; set; }
+ public global::Anthropic.BetaListResponseModelInfo? Type165 { get; set; }
///
///
///
- public global::Anthropic.BetaModelResponseType? Type166 { get; set; }
+ public global::System.Collections.Generic.IList? Type166 { get; set; }
///
///
///
- public global::Anthropic.BetaMessage? Type167 { get; set; }
+ public global::Anthropic.BetaModelInfo? Type167 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageType? Type168 { get; set; }
+ public global::Anthropic.BetaModelInfoType? Type168 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageRole? Type169 { get; set; }
+ public global::Anthropic.BetaMessage? Type169 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type170 { get; set; }
+ public global::Anthropic.BetaMessageType? Type170 { get; set; }
///
///
///
- public global::Anthropic.BetaContentBlock? Type171 { get; set; }
+ public global::Anthropic.BetaMessageRole? Type171 { get; set; }
///
///
///
- public global::Anthropic.BetaContentBlockDiscriminator? Type172 { get; set; }
+ public global::System.Collections.Generic.IList? Type172 { get; set; }
///
///
///
- public global::Anthropic.BetaContentBlockDiscriminatorType? Type173 { get; set; }
+ public global::Anthropic.BetaContentBlock? Type173 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageStopReason? Type174 { get; set; }
+ public global::Anthropic.BetaContentBlockDiscriminator? Type174 { get; set; }
///
///
///
- public global::Anthropic.BetaUsage? Type175 { get; set; }
+ public global::Anthropic.BetaContentBlockDiscriminatorType? Type175 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageBatchIndividualResponse? Type176 { get; set; }
+ public global::Anthropic.BetaMessageStopReason? Type176 { get; set; }
///
///
///
- public global::Anthropic.Result? Type177 { get; set; }
+ public global::Anthropic.BetaUsage? Type177 { get; set; }
///
///
///
- public global::Anthropic.BetaSucceededResult? Type178 { get; set; }
+ public global::Anthropic.BetaMessageBatchIndividualResponse? Type178 { get; set; }
///
///
///
- public global::Anthropic.BetaSucceededResultType? Type179 { get; set; }
+ public global::Anthropic.Result? Type179 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageBatchIndividualResponseResultDiscriminator? Type180 { get; set; }
+ public global::Anthropic.BetaSucceededResult? Type180 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageBatchIndividualResponseResultDiscriminatorType? Type181 { get; set; }
+ public global::Anthropic.BetaSucceededResultType? Type181 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageDelta? Type182 { get; set; }
+ public global::Anthropic.BetaMessageBatchIndividualResponseResultDiscriminator? Type182 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageDeltaStopReason? Type183 { get; set; }
+ public global::Anthropic.BetaMessageBatchIndividualResponseResultDiscriminatorType? Type183 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageDeltaEvent? Type184 { get; set; }
+ public global::Anthropic.BetaMessageDelta? Type184 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageDeltaEventType? Type185 { get; set; }
+ public global::Anthropic.BetaMessageDeltaStopReason? Type185 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageDeltaUsage? Type186 { get; set; }
+ public global::Anthropic.BetaMessageDeltaEvent? Type186 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageStartEvent? Type187 { get; set; }
+ public global::Anthropic.BetaMessageDeltaEventType? Type187 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageStartEventType? Type188 { get; set; }
+ public global::Anthropic.BetaMessageDeltaUsage? Type188 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageStopEvent? Type189 { get; set; }
+ public global::Anthropic.BetaMessageStartEvent? Type189 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageStopEventType? Type190 { get; set; }
+ public global::Anthropic.BetaMessageStartEventType? Type190 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageStreamEvent? Type191 { get; set; }
+ public global::Anthropic.BetaMessageStopEvent? Type191 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageStreamEventDiscriminator? Type192 { get; set; }
+ public global::Anthropic.BetaMessageStopEventType? Type192 { get; set; }
///
///
///
- public global::Anthropic.BetaMessageStreamEventDiscriminatorType? Type193 { get; set; }
+ public global::Anthropic.BetaMessageStreamEvent? Type193 { get; set; }
///
///
///
- public global::Anthropic.BillingError? Type194 { get; set; }
+ public global::Anthropic.BetaMessageStreamEventDiscriminator? Type194 { get; set; }
///
///
///
- public global::Anthropic.BillingErrorType? Type195 { get; set; }
+ public global::Anthropic.BetaMessageStreamEventDiscriminatorType? Type195 { get; set; }
///
///
///
- public global::Anthropic.CacheControlEphemeral? Type196 { get; set; }
+ public global::Anthropic.BillingError? Type196 { get; set; }
///
///
///
- public global::Anthropic.CacheControlEphemeralType? Type197 { get; set; }
+ public global::Anthropic.BillingErrorType? Type197 { get; set; }
///
///
///
- public global::Anthropic.CanceledResult? Type198 { get; set; }
+ public global::Anthropic.CacheControlEphemeral? Type198 { get; set; }
///
///
///
- public global::Anthropic.CanceledResultType? Type199 { get; set; }
+ public global::Anthropic.CacheControlEphemeralType? Type199 { get; set; }
///
///
///
- public global::Anthropic.CompletionRequest? Type200 { get; set; }
+ public global::Anthropic.CanceledResult? Type200 { get; set; }
///
///
///
- public global::Anthropic.Metadata? Type201 { get; set; }
+ public global::Anthropic.CanceledResultType? Type201 { get; set; }
///
///
///
- public global::Anthropic.CompletionResponse? Type202 { get; set; }
+ public global::Anthropic.CompletionRequest? Type202 { get; set; }
///
///
///
- public global::Anthropic.CompletionResponseType? Type203 { get; set; }
+ public global::Anthropic.Metadata? Type203 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockDeltaEvent? Type204 { get; set; }
+ public global::Anthropic.CompletionResponse? Type204 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockDeltaEventType? Type205 { get; set; }
+ public global::Anthropic.CompletionResponseType? Type205 { get; set; }
///
///
///
- public global::Anthropic.AnyOf? Type206 { get; set; }
+ public global::Anthropic.ContentBlockDeltaEvent? Type206 { get; set; }
///
///
///
- public global::Anthropic.TextContentBlockDelta? Type207 { get; set; }
+ public global::Anthropic.ContentBlockDeltaEventType? Type207 { get; set; }
///
///
///
- public global::Anthropic.TextContentBlockDeltaType? Type208 { get; set; }
+ public global::Anthropic.AnyOf? Type208 { get; set; }
///
///
///
- public global::Anthropic.InputJsonContentBlockDelta? Type209 { get; set; }
+ public global::Anthropic.TextContentBlockDelta? Type209 { get; set; }
///
///
///
- public global::Anthropic.InputJsonContentBlockDeltaType? Type210 { get; set; }
+ public global::Anthropic.TextContentBlockDeltaType? Type210 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockStartEvent? Type211 { get; set; }
+ public global::Anthropic.InputJsonContentBlockDelta? Type211 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockStartEventType? Type212 { get; set; }
+ public global::Anthropic.InputJsonContentBlockDeltaType? Type212 { get; set; }
///
///
///
- public global::Anthropic.ContentBlock2? Type213 { get; set; }
+ public global::Anthropic.ContentBlockStartEvent? Type213 { get; set; }
///
///
///
- public global::Anthropic.ResponseTextBlock? Type214 { get; set; }
+ public global::Anthropic.ContentBlockStartEventType? Type214 { get; set; }
///
///
///
- public global::Anthropic.ResponseTextBlockType? Type215 { get; set; }
+ public global::Anthropic.ContentBlock2? Type215 { get; set; }
///
///
///
- public global::Anthropic.ResponseToolUseBlock? Type216 { get; set; }
+ public global::Anthropic.ResponseTextBlock? Type216 { get; set; }
///
///
///
- public global::Anthropic.ResponseToolUseBlockType? Type217 { get; set; }
+ public global::Anthropic.ResponseTextBlockType? Type217 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockStartEventContentBlockDiscriminator? Type218 { get; set; }
+ public global::Anthropic.ResponseToolUseBlock? Type218 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockStartEventContentBlockDiscriminatorType? Type219 { get; set; }
+ public global::Anthropic.ResponseToolUseBlockType? Type219 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockStopEvent? Type220 { get; set; }
+ public global::Anthropic.ContentBlockStartEventContentBlockDiscriminator? Type220 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockStopEventType? Type221 { get; set; }
+ public global::Anthropic.ContentBlockStartEventContentBlockDiscriminatorType? Type221 { get; set; }
///
///
///
- public global::Anthropic.CountMessageTokensParams? Type222 { get; set; }
+ public global::Anthropic.ContentBlockStopEvent? Type222 { get; set; }
///
///
///
- public global::Anthropic.ToolChoice? Type223 { get; set; }
+ public global::Anthropic.ContentBlockStopEventType? Type223 { get; set; }
///
///
///
- public global::Anthropic.ToolChoiceAuto? Type224 { get; set; }
+ public global::Anthropic.CountMessageTokensParams? Type224 { get; set; }
///
///
///
- public global::Anthropic.ToolChoiceAutoType? Type225 { get; set; }
+ public global::Anthropic.ToolChoice? Type225 { get; set; }
///
///
///
- public global::Anthropic.ToolChoiceAny? Type226 { get; set; }
+ public global::Anthropic.ToolChoiceAuto? Type226 { get; set; }
///
///
///
- public global::Anthropic.ToolChoiceAnyType? Type227 { get; set; }
+ public global::Anthropic.ToolChoiceAutoType? Type227 { get; set; }
///
///
///
- public global::Anthropic.ToolChoiceTool? Type228 { get; set; }
+ public global::Anthropic.ToolChoiceAny? Type228 { get; set; }
///
///
///
- public global::Anthropic.ToolChoiceToolType? Type229 { get; set; }
+ public global::Anthropic.ToolChoiceAnyType? Type229 { get; set; }
///
///
///
- public global::Anthropic.ToolChoiceDiscriminator? Type230 { get; set; }
+ public global::Anthropic.ToolChoiceTool? Type230 { get; set; }
///
///
///
- public global::Anthropic.ToolChoiceDiscriminatorType? Type231 { get; set; }
+ public global::Anthropic.ToolChoiceToolType? Type231 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type232 { get; set; }
+ public global::Anthropic.ToolChoiceDiscriminator? Type232 { get; set; }
///
///
///
- public global::Anthropic.Tool? Type233 { get; set; }
+ public global::Anthropic.ToolChoiceDiscriminatorType? Type233 { get; set; }
///
///
///
- public global::Anthropic.ToolCacheControlDiscriminator? Type234 { get; set; }
+ public global::System.Collections.Generic.IList? Type234 { get; set; }
///
///
///
- public global::Anthropic.ToolCacheControlDiscriminatorType? Type235 { get; set; }
+ public global::Anthropic.Tool? Type235 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type236 { get; set; }
+ public global::Anthropic.ToolCacheControlDiscriminator? Type236 { get; set; }
///
///
///
- public global::Anthropic.InputMessage? Type237 { get; set; }
+ public global::Anthropic.ToolCacheControlDiscriminatorType? Type237 { get; set; }
///
///
///
- public global::Anthropic.InputMessageRole? Type238 { get; set; }
+ public global::System.Collections.Generic.IList? Type238 { get; set; }
///
///
///
- public global::Anthropic.AnyOf>? Type239 { get; set; }
+ public global::Anthropic.InputMessage? Type239 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type240 { get; set; }
+ public global::Anthropic.InputMessageRole? Type240 { get; set; }
///
///
///
- public global::Anthropic.InputContentBlock? Type241 { get; set; }
+ public global::Anthropic.AnyOf>? Type241 { get; set; }
///
///
///
- public global::Anthropic.RequestTextBlock? Type242 { get; set; }
+ public global::System.Collections.Generic.IList? Type242 { get; set; }
///
///
///
- public global::Anthropic.RequestTextBlockCacheControlDiscriminator? Type243 { get; set; }
+ public global::Anthropic.InputContentBlock? Type243 { get; set; }
///
///
///
- public global::Anthropic.RequestTextBlockCacheControlDiscriminatorType? Type244 { get; set; }
+ public global::Anthropic.RequestTextBlock? Type244 { get; set; }
///
///
///
- public global::Anthropic.RequestTextBlockType? Type245 { get; set; }
+ public global::Anthropic.RequestTextBlockCacheControlDiscriminator? Type245 { get; set; }
///
///
///
- public global::Anthropic.RequestImageBlock? Type246 { get; set; }
+ public global::Anthropic.RequestTextBlockCacheControlDiscriminatorType? Type246 { get; set; }
///
///
///
- public global::Anthropic.RequestImageBlockCacheControlDiscriminator? Type247 { get; set; }
+ public global::Anthropic.RequestTextBlockType? Type247 { get; set; }
///
///
///
- public global::Anthropic.RequestImageBlockCacheControlDiscriminatorType? Type248 { get; set; }
+ public global::Anthropic.RequestImageBlock? Type248 { get; set; }
///
///
///
- public global::Anthropic.RequestImageBlockType? Type249 { get; set; }
+ public global::Anthropic.RequestImageBlockCacheControlDiscriminator? Type249 { get; set; }
///
///
///
- public global::Anthropic.RequestToolUseBlock? Type250 { get; set; }
+ public global::Anthropic.RequestImageBlockCacheControlDiscriminatorType? Type250 { get; set; }
///
///
///
- public global::Anthropic.RequestToolUseBlockCacheControlDiscriminator? Type251 { get; set; }
+ public global::Anthropic.RequestImageBlockType? Type251 { get; set; }
///
///
///
- public global::Anthropic.RequestToolUseBlockCacheControlDiscriminatorType? Type252 { get; set; }
+ public global::Anthropic.RequestToolUseBlock? Type252 { get; set; }
///
///
///
- public global::Anthropic.RequestToolUseBlockType? Type253 { get; set; }
+ public global::Anthropic.RequestToolUseBlockCacheControlDiscriminator? Type253 { get; set; }
///
///
///
- public global::Anthropic.RequestToolResultBlock? Type254 { get; set; }
+ public global::Anthropic.RequestToolUseBlockCacheControlDiscriminatorType? Type254 { get; set; }
///
///
///
- public global::Anthropic.RequestToolResultBlockCacheControlDiscriminator? Type255 { get; set; }
+ public global::Anthropic.RequestToolUseBlockType? Type255 { get; set; }
///
///
///
- public global::Anthropic.RequestToolResultBlockCacheControlDiscriminatorType? Type256 { get; set; }
+ public global::Anthropic.RequestToolResultBlock? Type256 { get; set; }
///
///
///
- public global::Anthropic.RequestToolResultBlockType? Type257 { get; set; }
+ public global::Anthropic.RequestToolResultBlockCacheControlDiscriminator? Type257 { get; set; }
///
///
///
- public global::Anthropic.AnyOf>? Type258 { get; set; }
+ public global::Anthropic.RequestToolResultBlockCacheControlDiscriminatorType? Type258 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type259 { get; set; }
+ public global::Anthropic.RequestToolResultBlockType? Type259 { get; set; }
///
///
///
- public global::Anthropic.ContentVariant2Item2? Type260 { get; set; }
+ public global::Anthropic.AnyOf>? Type260 { get; set; }
///
///
///
- public global::Anthropic.RequestToolResultBlockContentVariant2ItemDiscriminator? Type261 { get; set; }
+ public global::System.Collections.Generic.IList? Type261 { get; set; }
///
///
///
- public global::Anthropic.RequestToolResultBlockContentVariant2ItemDiscriminatorType? Type262 { get; set; }
+ public global::Anthropic.ContentVariant2Item2? Type262 { get; set; }
///
///
///
- public global::Anthropic.RequestDocumentBlock? Type263 { get; set; }
+ public global::Anthropic.RequestToolResultBlockContentVariant2ItemDiscriminator? Type263 { get; set; }
///
///
///
- public global::Anthropic.RequestDocumentBlockCacheControlDiscriminator? Type264 { get; set; }
+ public global::Anthropic.RequestToolResultBlockContentVariant2ItemDiscriminatorType? Type264 { get; set; }
///
///
///
- public global::Anthropic.RequestDocumentBlockCacheControlDiscriminatorType? Type265 { get; set; }
+ public global::Anthropic.RequestDocumentBlock? Type265 { get; set; }
///
///
///
- public global::Anthropic.RequestDocumentBlockType? Type266 { get; set; }
+ public global::Anthropic.RequestDocumentBlockCacheControlDiscriminator? Type266 { get; set; }
///
///
///
- public global::Anthropic.RequestDocumentBlockSourceDiscriminator? Type267 { get; set; }
+ public global::Anthropic.RequestDocumentBlockCacheControlDiscriminatorType? Type267 { get; set; }
///
///
///
- public global::Anthropic.RequestDocumentBlockSourceDiscriminatorType? Type268 { get; set; }
+ public global::Anthropic.RequestDocumentBlockType? Type268 { get; set; }
///
///
///
- public global::Anthropic.InputContentBlockDiscriminator? Type269 { get; set; }
+ public global::Anthropic.RequestDocumentBlockSourceDiscriminator? Type269 { get; set; }
///
///
///
- public global::Anthropic.InputContentBlockDiscriminatorType? Type270 { get; set; }
+ public global::Anthropic.RequestDocumentBlockSourceDiscriminatorType? Type270 { get; set; }
///
///
///
- public global::Anthropic.AnyOf>? Type271 { get; set; }
+ public global::Anthropic.InputContentBlockDiscriminator? Type271 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type272 { get; set; }
+ public global::Anthropic.InputContentBlockDiscriminatorType? Type272 { get; set; }
///
///
///
- public global::Anthropic.CountMessageTokensResponse? Type273 { get; set; }
+ public global::Anthropic.AnyOf>? Type273 { get; set; }
///
///
///
- public global::Anthropic.CreateMessageBatchParams? Type274 { get; set; }
+ public global::System.Collections.Generic.IList? Type274 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type275 { get; set; }
+ public global::Anthropic.CountMessageTokensResponse? Type275 { get; set; }
///
///
///
- public global::Anthropic.MessageBatchIndividualRequestParams? Type276 { get; set; }
+ public global::Anthropic.CreateMessageBatchParams? Type276 { get; set; }
///
///
///
- public global::Anthropic.CreateMessageParams? Type277 { get; set; }
+ public global::System.Collections.Generic.IList? Type277 { get; set; }
///
///
///
- public global::Anthropic.ErrorResponse? Type278 { get; set; }
+ public global::Anthropic.MessageBatchIndividualRequestParams? Type278 { get; set; }
///
///
///
- public global::Anthropic.ErrorResponseType? Type279 { get; set; }
+ public global::Anthropic.CreateMessageParams? Type279 { get; set; }
///
///
///
- public global::Anthropic.Error2? Type280 { get; set; }
+ public global::Anthropic.DeleteMessageBatchResponse? Type280 { get; set; }
///
///
///
- public global::Anthropic.InvalidRequestError? Type281 { get; set; }
+ public global::Anthropic.DeleteMessageBatchResponseType? Type281 { get; set; }
///
///
///
- public global::Anthropic.InvalidRequestErrorType? Type282 { get; set; }
+ public global::Anthropic.ErrorResponse? Type282 { get; set; }
///
///
///
- public global::Anthropic.PermissionError? Type283 { get; set; }
+ public global::Anthropic.ErrorResponseType? Type283 { get; set; }
///
///
///
- public global::Anthropic.PermissionErrorType? Type284 { get; set; }
+ public global::Anthropic.Error2? Type284 { get; set; }
///
///
///
- public global::Anthropic.NotFoundError? Type285 { get; set; }
+ public global::Anthropic.InvalidRequestError? Type285 { get; set; }
///
///
///
- public global::Anthropic.NotFoundErrorType? Type286 { get; set; }
+ public global::Anthropic.InvalidRequestErrorType? Type286 { get; set; }
///
///
///
- public global::Anthropic.RateLimitError? Type287 { get; set; }
+ public global::Anthropic.PermissionError? Type287 { get; set; }
///
///
///
- public global::Anthropic.RateLimitErrorType? Type288 { get; set; }
+ public global::Anthropic.PermissionErrorType? Type288 { get; set; }
///
///
///
- public global::Anthropic.GatewayTimeoutError? Type289 { get; set; }
+ public global::Anthropic.NotFoundError? Type289 { get; set; }
///
///
///
- public global::Anthropic.GatewayTimeoutErrorType? Type290 { get; set; }
+ public global::Anthropic.NotFoundErrorType? Type290 { get; set; }
///
///
///
- public global::Anthropic.OverloadedError? Type291 { get; set; }
+ public global::Anthropic.RateLimitError? Type291 { get; set; }
///
///
///
- public global::Anthropic.OverloadedErrorType? Type292 { get; set; }
+ public global::Anthropic.RateLimitErrorType? Type292 { get; set; }
///
///
///
- public global::Anthropic.ErrorResponseErrorDiscriminator? Type293 { get; set; }
+ public global::Anthropic.GatewayTimeoutError? Type293 { get; set; }
///
///
///
- public global::Anthropic.ErrorResponseErrorDiscriminatorType? Type294 { get; set; }
+ public global::Anthropic.GatewayTimeoutErrorType? Type294 { get; set; }
///
///
///
- public global::Anthropic.ErroredResult? Type295 { get; set; }
+ public global::Anthropic.OverloadedError? Type295 { get; set; }
///
///
///
- public global::Anthropic.ErroredResultType? Type296 { get; set; }
+ public global::Anthropic.OverloadedErrorType? Type296 { get; set; }
///
///
///
- public global::Anthropic.ExpiredResult? Type297 { get; set; }
+ public global::Anthropic.ErrorResponseErrorDiscriminator? Type297 { get; set; }
///
///
///
- public global::Anthropic.ExpiredResultType? Type298 { get; set; }
+ public global::Anthropic.ErrorResponseErrorDiscriminatorType? Type298 { get; set; }
///
///
///
- public global::Anthropic.InputSchema? Type299 { get; set; }
+ public global::Anthropic.ErroredResult? Type299 { get; set; }
///
///
///
- public global::Anthropic.InputSchemaType? Type300 { get; set; }
+ public global::Anthropic.ErroredResultType? Type300 { get; set; }
///
///
///
- public global::Anthropic.ListResponseMessageBatch? Type301 { get; set; }
+ public global::Anthropic.ExpiredResult? Type301 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type302 { get; set; }
+ public global::Anthropic.ExpiredResultType? Type302 { get; set; }
///
///
///
- public global::Anthropic.MessageBatch? Type303 { get; set; }
+ public global::Anthropic.InputSchema? Type303 { get; set; }
///
///
///
- public global::Anthropic.MessageBatchType? Type304 { get; set; }
+ public global::Anthropic.InputSchemaType? Type304 { get; set; }
///
///
///
- public global::Anthropic.MessageBatchProcessingStatus? Type305 { get; set; }
+ public global::Anthropic.ListResponseMessageBatch? Type305 { get; set; }
///
///
///
- public global::Anthropic.RequestCounts? Type306 { get; set; }
+ public global::System.Collections.Generic.IList? Type306 { get; set; }
///
///
///
- public global::Anthropic.ListResponseModelResponse? Type307 { get; set; }
+ public global::Anthropic.MessageBatch? Type307 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type308 { get; set; }
+ public global::Anthropic.MessageBatchType? Type308 { get; set; }
///
///
///
- public global::Anthropic.ModelResponse? Type309 { get; set; }
+ public global::Anthropic.MessageBatchProcessingStatus? Type309 { get; set; }
///
///
///
- public global::Anthropic.ModelResponseType? Type310 { get; set; }
+ public global::Anthropic.RequestCounts? Type310 { get; set; }
///
///
///
- public global::Anthropic.Message? Type311 { get; set; }
+ public global::Anthropic.ListResponseModelInfo? Type311 { get; set; }
///
///
///
- public global::Anthropic.MessageType? Type312 { get; set; }
+ public global::System.Collections.Generic.IList? Type312 { get; set; }
///
///
///
- public global::Anthropic.MessageRole? Type313 { get; set; }
+ public global::Anthropic.ModelInfo? Type313 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type314 { get; set; }
+ public global::Anthropic.ModelInfoType? Type314 { get; set; }
///
///
///
- public global::Anthropic.ContentBlock3? Type315 { get; set; }
+ public global::Anthropic.Message? Type315 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockDiscriminator? Type316 { get; set; }
+ public global::Anthropic.MessageType? Type316 { get; set; }
///
///
///
- public global::Anthropic.ContentBlockDiscriminatorType? Type317 { get; set; }
+ public global::Anthropic.MessageRole? Type317 { get; set; }
///
///
///
- public global::Anthropic.MessageStopReason? Type318 { get; set; }
+ public global::System.Collections.Generic.IList? Type318 { get; set; }
///
///
///
- public global::Anthropic.Usage? Type319 { get; set; }
+ public global::Anthropic.ContentBlock3? Type319 { get; set; }
///
///
///
- public global::Anthropic.MessageBatchIndividualResponse? Type320 { get; set; }
+ public global::Anthropic.ContentBlockDiscriminator? Type320 { get; set; }
///
///
///
- public global::Anthropic.Result2? Type321 { get; set; }
+ public global::Anthropic.ContentBlockDiscriminatorType? Type321 { get; set; }
///
///
///
- public global::Anthropic.SucceededResult? Type322 { get; set; }
+ public global::Anthropic.MessageStopReason? Type322 { get; set; }
///
///
///
- public global::Anthropic.SucceededResultType? Type323 { get; set; }
+ public global::Anthropic.Usage? Type323 { get; set; }
///
///
///
- public global::Anthropic.MessageBatchIndividualResponseResultDiscriminator? Type324 { get; set; }
+ public global::Anthropic.MessageBatchIndividualResponse? Type324 { get; set; }
///
///
///
- public global::Anthropic.MessageBatchIndividualResponseResultDiscriminatorType? Type325 { get; set; }
+ public global::Anthropic.Result2? Type325 { get; set; }
///
///
///
- public global::Anthropic.MessageDelta? Type326 { get; set; }
+ public global::Anthropic.SucceededResult? Type326 { get; set; }
///
///
///
- public global::Anthropic.MessageDeltaStopReason? Type327 { get; set; }
+ public global::Anthropic.SucceededResultType? Type327 { get; set; }
///
///
///
- public global::Anthropic.MessageDeltaEvent? Type328 { get; set; }
+ public global::Anthropic.MessageBatchIndividualResponseResultDiscriminator? Type328 { get; set; }
///
///
///
- public global::Anthropic.MessageDeltaEventType? Type329 { get; set; }
+ public global::Anthropic.MessageBatchIndividualResponseResultDiscriminatorType? Type329 { get; set; }
///
///
///
- public global::Anthropic.MessageDeltaUsage? Type330 { get; set; }
+ public global::Anthropic.MessageDelta? Type330 { get; set; }
///
///
///
- public global::Anthropic.MessageStartEvent? Type331 { get; set; }
+ public global::Anthropic.MessageDeltaStopReason? Type331 { get; set; }
///
///
///
- public global::Anthropic.MessageStartEventType? Type332 { get; set; }
+ public global::Anthropic.MessageDeltaEvent? Type332 { get; set; }
///
///
///
- public global::Anthropic.MessageStopEvent? Type333 { get; set; }
+ public global::Anthropic.MessageDeltaEventType? Type333 { get; set; }
///
///
///
- public global::Anthropic.MessageStopEventType? Type334 { get; set; }
+ public global::Anthropic.MessageDeltaUsage? Type334 { get; set; }
///
///
///
- public global::Anthropic.MessageStreamEvent? Type335 { get; set; }
+ public global::Anthropic.MessageStartEvent? Type335 { get; set; }
///
///
///
- public global::Anthropic.Ping? Type336 { get; set; }
+ public global::Anthropic.MessageStartEventType? Type336 { get; set; }
///
///
///
- public global::Anthropic.PingType? Type337 { get; set; }
+ public global::Anthropic.MessageStopEvent? Type337 { get; set; }
///
///
///
- public global::Anthropic.MessageStreamEventDiscriminator? Type338 { get; set; }
+ public global::Anthropic.MessageStopEventType? Type338 { get; set; }
///
///
///
- public global::Anthropic.MessageStreamEventDiscriminatorType? Type339 { get; set; }
+ public global::Anthropic.MessageStreamEvent? Type339 { get; set; }
///
///
///
- public global::Anthropic.CreateMessageParamsWithoutStream? Type340 { get; set; }
+ public global::Anthropic.Ping? Type340 { get; set; }
///
///
///
- public global::Anthropic.AnthropicBeta? Type341 { get; set; }
+ public global::Anthropic.PingType? Type341 { get; set; }
///
///
///
- public global::Anthropic.AnthropicBetaEnum? Type342 { get; set; }
+ public global::Anthropic.MessageStreamEventDiscriminator? Type342 { get; set; }
+ ///
+ ///
+ ///
+ public global::Anthropic.MessageStreamEventDiscriminatorType? Type343 { get; set; }
+ ///
+ ///
+ ///
+ public global::Anthropic.CreateMessageParamsWithoutStream? Type344 { get; set; }
+ ///
+ ///
+ ///
+ public global::Anthropic.AnthropicBeta? Type345 { get; set; }
+ ///
+ ///
+ ///
+ public global::Anthropic.AnthropicBetaEnum? Type346 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/Anthropic/openapi.yaml b/src/libs/Anthropic/openapi.yaml
index d282f04..041af5e 100644
--- a/src/libs/Anthropic/openapi.yaml
+++ b/src/libs/Anthropic/openapi.yaml
@@ -123,7 +123,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ListResponse_ModelResponse_'
+ $ref: '#/components/schemas/ListResponse_ModelInfo_'
4XX:
description: "Error response.\n\nSee our [errors documentation](https://docs.anthropic.com/en/api/errors) for more details."
content:
@@ -164,7 +164,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ModelResponse'
+ $ref: '#/components/schemas/ModelInfo'
4XX:
description: "Error response.\n\nSee our [errors documentation](https://docs.anthropic.com/en/api/errors) for more details."
content:
@@ -306,6 +306,48 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
+ delete:
+ tags:
+ - Message Batches
+ summary: Delete a Message Batch
+ description: 'This endpoint is idempotent and can be used to poll for Message Batch completion. To access the results of a Message Batch, make a request to the `results_url` field in the response.'
+ operationId: message_batches_delete
+ parameters:
+ - name: message_batch_id
+ in: path
+ description: ID of the Message Batch.
+ required: true
+ schema:
+ title: Message Batch Id
+ type: string
+ description: ID of the Message Batch.
+ - name: anthropic-version
+ in: header
+ description: "The version of the Anthropic API you want to use.\n\nRead more about versioning and our version history [here](https://docs.anthropic.com/en/api/versioning)."
+ schema:
+ title: Anthropic-Version
+ type: string
+ description: "The version of the Anthropic API you want to use.\n\nRead more about versioning and our version history [here](https://docs.anthropic.com/en/api/versioning)."
+ - name: x-api-key
+ in: header
+ description: "Your unique API key for authentication. \n\nThis key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace."
+ schema:
+ title: X-Api-Key
+ type: string
+ description: "Your unique API key for authentication. \n\nThis key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace."
+ responses:
+ '200':
+ description: Successful Response
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DeleteMessageBatchResponse'
+ 4XX:
+ description: "Error response.\n\nSee our [errors documentation](https://docs.anthropic.com/en/api/errors) for more details."
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
'/v1/messages/batches/{message_batch_id}/cancel':
post:
tags:
@@ -522,7 +564,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/BetaListResponse_ModelResponse_'
+ $ref: '#/components/schemas/BetaListResponse_ModelInfo_'
4XX:
description: "Error response.\n\nSee our [errors documentation](https://docs.anthropic.com/en/api/errors) for more details."
content:
@@ -563,7 +605,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/BetaModelResponse'
+ $ref: '#/components/schemas/BetaModelInfo'
4XX:
description: "Error response.\n\nSee our [errors documentation](https://docs.anthropic.com/en/api/errors) for more details."
content:
@@ -753,6 +795,64 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/BetaErrorResponse'
+ delete:
+ tags:
+ - Message Batches
+ summary: Delete a Message Batch
+ description: 'This endpoint is idempotent and can be used to poll for Message Batch completion. To access the results of a Message Batch, make a request to the `results_url` field in the response.'
+ operationId: beta_message_batches_delete
+ parameters:
+ - name: message_batch_id
+ in: path
+ description: ID of the Message Batch.
+ required: true
+ schema:
+ title: Message Batch Id
+ type: string
+ description: ID of the Message Batch.
+ - name: anthropic-beta
+ in: header
+ description: "Optional header to specify the beta version(s) you want to use.\n\nTo use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta."
+ schema:
+ title: Anthropic-Beta
+ type: string
+ items:
+ type: string
+ description: "Optional header to specify the beta version(s) you want to use.\n\nTo use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta."
+ x-stainless-override-schema:
+ x-stainless-param: betas
+ x-stainless-extend-default: true
+ type: array
+ description: Optional header to specify the beta version(s) you want to use.
+ items:
+ $ref: '#/components/schemas/AnthropicBeta'
+ - name: anthropic-version
+ in: header
+ description: "The version of the Anthropic API you want to use.\n\nRead more about versioning and our version history [here](https://docs.anthropic.com/en/api/versioning)."
+ schema:
+ title: Anthropic-Version
+ type: string
+ description: "The version of the Anthropic API you want to use.\n\nRead more about versioning and our version history [here](https://docs.anthropic.com/en/api/versioning)."
+ - name: x-api-key
+ in: header
+ description: "Your unique API key for authentication. \n\nThis key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace."
+ schema:
+ title: X-Api-Key
+ type: string
+ description: "Your unique API key for authentication. \n\nThis key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace."
+ responses:
+ '200':
+ description: Successful Response
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/BetaDeleteMessageBatchResponse'
+ 4XX:
+ description: "Error response.\n\nSee our [errors documentation](https://docs.anthropic.com/en/api/errors) for more details."
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/BetaErrorResponse'
'/v1/messages/batches/{message_batch_id}/cancel?beta=true':
post:
tags:
@@ -1346,6 +1446,8 @@ components:
properties:
requests:
title: Requests
+ maxItems: 10000
+ minItems: 1
type: array
items:
$ref: '#/components/schemas/BetaMessageBatchIndividualRequestParams'
@@ -1454,6 +1556,25 @@ components:
- content: 'Hello, world'
role: user
model: claude-3-5-sonnet-20241022
+ BetaDeleteMessageBatchResponse:
+ title: DeleteMessageBatchResponse
+ required:
+ - id
+ - type
+ type: object
+ properties:
+ id:
+ title: Id
+ type: string
+ description: ID of the Message Batch.
+ example: msgbatch_013Zva2CMHLNnXjNJJKqJ2EF
+ type:
+ title: Type
+ enum:
+ - message_batch_deleted
+ type: string
+ description: "Deleted object type.\n\nFor Message Batches, this is always `\"message_batch_deleted\"`."
+ default: message_batch_deleted
BetaErrorResponse:
title: ErrorResponse
required:
@@ -1638,8 +1759,8 @@ components:
type: string
description: Last ID in the `data` list. Can be used as the `after_id` for the next page.
nullable: true
- BetaListResponse_ModelResponse_:
- title: 'ListResponse[ModelResponse]'
+ BetaListResponse_ModelInfo_:
+ title: 'ListResponse[ModelInfo]'
required:
- data
- has_more
@@ -1651,7 +1772,7 @@ components:
title: Data
type: array
items:
- $ref: '#/components/schemas/BetaModelResponse'
+ $ref: '#/components/schemas/BetaModelInfo'
has_more:
title: Has More
type: boolean
@@ -1984,8 +2105,8 @@ components:
nullable: true
example: 13803d75-b4b5-4c3e-b2a2-6f21399b021b
additionalProperties: false
- BetaModelResponse:
- title: ModelResponse
+ BetaModelInfo:
+ title: ModelInfo
required:
- type
- id
@@ -2259,6 +2380,8 @@ components:
x-stainless-naming:
python:
type_name: Content
+ ruby:
+ type_name: Content
additionalProperties: false
BetaRequestToolUseBlock:
title: RequestToolUseBlock
@@ -2836,6 +2959,8 @@ components:
properties:
requests:
title: Requests
+ maxItems: 10000
+ minItems: 1
type: array
items:
$ref: '#/components/schemas/MessageBatchIndividualRequestParams'
@@ -2940,6 +3065,25 @@ components:
- content: 'Hello, world'
role: user
model: claude-3-5-sonnet-20241022
+ DeleteMessageBatchResponse:
+ title: DeleteMessageBatchResponse
+ required:
+ - id
+ - type
+ type: object
+ properties:
+ id:
+ title: Id
+ type: string
+ description: ID of the Message Batch.
+ example: msgbatch_013Zva2CMHLNnXjNJJKqJ2EF
+ type:
+ title: Type
+ enum:
+ - message_batch_deleted
+ type: string
+ description: "Deleted object type.\n\nFor Message Batches, this is always `\"message_batch_deleted\"`."
+ default: message_batch_deleted
ErrorResponse:
title: ErrorResponse
required:
@@ -3124,8 +3268,8 @@ components:
type: string
description: Last ID in the `data` list. Can be used as the `after_id` for the next page.
nullable: true
- ListResponse_ModelResponse_:
- title: 'ListResponse[ModelResponse]'
+ ListResponse_ModelInfo_:
+ title: 'ListResponse[ModelInfo]'
required:
- data
- has_more
@@ -3137,7 +3281,7 @@ components:
title: Data
type: array
items:
- $ref: '#/components/schemas/ModelResponse'
+ $ref: '#/components/schemas/ModelInfo'
has_more:
title: Has More
type: boolean
@@ -3483,8 +3627,8 @@ components:
nullable: true
example: 13803d75-b4b5-4c3e-b2a2-6f21399b021b
additionalProperties: false
- ModelResponse:
- title: ModelResponse
+ ModelInfo:
+ title: ModelInfo
required:
- type
- id
@@ -3758,6 +3902,8 @@ components:
x-stainless-naming:
python:
type_name: Content
+ ruby:
+ type_name: Content
additionalProperties: false
RequestToolUseBlock:
title: RequestToolUseBlock