diff --git a/docs/api/AnthropicClient.AnthropicApiClient.html b/docs/api/AnthropicClient.AnthropicApiClient.html index 50e79b2..eaf28d1 100644 --- a/docs/api/AnthropicClient.AnthropicApiClient.html +++ b/docs/api/AnthropicClient.AnthropicApiClient.html @@ -89,7 +89,7 @@

-Class AnthropicApiClient +Class AnthropicApiClient

@@ -163,7 +163,7 @@ Class AnthropicApiClient AnthropicApiClient(string, HttpClient) - +

Initializes a new instance of the AnthropicApiClient class.

@@ -205,11 +205,50 @@ Class AnthropicApiClient + +

+ CancelMessageBatchAsync(string) + +

+ +

Cancels a message batch asynchronously.

+
+
+ +
+
public Task<AnthropicResult<MessageBatchResponse>> CancelMessageBatchAsync(string batchId)
+
+ +

Parameters

+
+
batchId string
+

The ID of the message batch to cancel.

+
+
+ +

Returns

+
+
Task<AnthropicResult<MessageBatchResponse>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + +

CountMessageTokensAsync(CountMessageTokensRequest) - +

Counts the tokens in a message asynchronously.

@@ -248,7 +287,7 @@ Class AnthropicApiClient CreateMessageAsync(MessageRequest) - +

Creates a message asynchronously.

@@ -287,7 +326,7 @@ Class AnthropicApiClient CreateMessageAsync(StreamMessageRequest) - +

Creates a message asynchronously and streams the response.

@@ -322,11 +361,167 @@ Class AnthropicApiClient + +

+ CreateMessageBatchAsync(MessageBatchRequest) + +

+ +

Creates a batch of messages asynchronously.

+
+
+ +
+
public Task<AnthropicResult<MessageBatchResponse>> CreateMessageBatchAsync(MessageBatchRequest request)
+
+ +

Parameters

+
+
request MessageBatchRequest
+

The message batch request to create.

+
+
+ +

Returns

+
+
Task<AnthropicResult<MessageBatchResponse>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + + + + +

+ DeleteMessageBatchAsync(string) + +

+ +

Deletes a message batch asynchronously.

+
+
+ +
+
public Task<AnthropicResult<MessageBatchDeleteResponse>> DeleteMessageBatchAsync(string batchId)
+
+ +

Parameters

+
+
batchId string
+

The ID of the message batch to delete.

+
+
+ +

Returns

+
+
Task<AnthropicResult<MessageBatchDeleteResponse>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is MessageBatchDeleteResponse.

+
+
+ + + + + + + + + + + + + +

+ GetMessageBatchAsync(string) + +

+ +

Gets a message batch asynchronously.

+
+
+ +
+
public Task<AnthropicResult<MessageBatchResponse>> GetMessageBatchAsync(string batchId)
+
+ +

Parameters

+
+
batchId string
+

The ID of the message batch to get.

+
+
+ +

Returns

+
+
Task<AnthropicResult<MessageBatchResponse>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + + + + +

+ GetMessageBatchResultsAsync(string) + +

+ +

Gets the results of a message batch asynchronously.

+
+
+ +
+
public Task<AnthropicResult<IAsyncEnumerable<MessageBatchResultItem>>> GetMessageBatchResultsAsync(string batchId)
+
+ +

Parameters

+
+
batchId string
+

The ID of the message batch to get the results for.

+
+
+ +

Returns

+
+
Task<AnthropicResult<IAsyncEnumerable<MessageBatchResultItem>>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is IAsyncEnumerable<T> where T is MessageBatchResultItem.

+
+
+ + + + + + + + + + +

GetModelAsync(string) - +

Gets a model by its ID asynchronously.

@@ -361,11 +556,50 @@ Class AnthropicApiClient + +

+ ListAllMessageBatchesAsync(int) + +

+ +

Lists all message batches asynchronously.

+
+
+ +
+
public IAsyncEnumerable<AnthropicResult<Page<MessageBatchResponse>>> ListAllMessageBatchesAsync(int limit = 20)
+
+ +

Parameters

+
+
limit int
+

The maximum number of message batches to return in each page.

+
+
+ +

Returns

+
+
IAsyncEnumerable<AnthropicResult<Page<MessageBatchResponse>>>
+

An asynchronous enumerable that yields the response as an AnthropicResult<T> where T is Page<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + +

ListAllModelsAsync(int) - +

Lists the models asynchronously

@@ -400,11 +634,50 @@ Class AnthropicApiClient + +

+ ListMessageBatchesAsync(PagingRequest?) + +

+ +

Lists the message batches asynchronously.

+
+
+ +
+
public Task<AnthropicResult<Page<MessageBatchResponse>>> ListMessageBatchesAsync(PagingRequest? request = null)
+
+ +

Parameters

+
+
request PagingRequest
+

The paging request to use for listing the message batches.

+
+
+ +

Returns

+
+
Task<AnthropicResult<Page<MessageBatchResponse>>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is Page<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + +

ListModelsAsync(PagingRequest?) - +

Lists the models asynchronously.

@@ -443,7 +716,7 @@ Class AnthropicApiClient - Edit this page + Edit this page
diff --git a/docs/api/AnthropicClient.IAnthropicApiClient.html b/docs/api/AnthropicClient.IAnthropicApiClient.html index 151fba9..6493268 100644 --- a/docs/api/AnthropicClient.IAnthropicApiClient.html +++ b/docs/api/AnthropicClient.IAnthropicApiClient.html @@ -89,7 +89,7 @@

-Interface IAnthropicApiClient +Interface IAnthropicApiClient

@@ -121,11 +121,50 @@ Interface IAnthropicApiClient + +

+ CancelMessageBatchAsync(string) + +

+ +

Cancels a message batch asynchronously.

+
+
+ +
+
Task<AnthropicResult<MessageBatchResponse>> CancelMessageBatchAsync(string batchId)
+
+ +

Parameters

+
+
batchId string
+

The ID of the message batch to cancel.

+
+
+ +

Returns

+
+
Task<AnthropicResult<MessageBatchResponse>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + +

CountMessageTokensAsync(CountMessageTokensRequest) - +

Counts the tokens in a message asynchronously.

@@ -164,7 +203,7 @@ Interface IAnthropicApiClient CreateMessageAsync(MessageRequest) - +

Creates a message asynchronously.

@@ -203,7 +242,7 @@ Interface IAnthropicApiClient CreateMessageAsync(StreamMessageRequest) - +

Creates a message asynchronously and streams the response.

@@ -238,11 +277,167 @@ Interface IAnthropicApiClient + +

+ CreateMessageBatchAsync(MessageBatchRequest) + +

+ +

Creates a batch of messages asynchronously.

+
+
+ +
+
Task<AnthropicResult<MessageBatchResponse>> CreateMessageBatchAsync(MessageBatchRequest request)
+
+ +

Parameters

+
+
request MessageBatchRequest
+

The message batch request to create.

+
+
+ +

Returns

+
+
Task<AnthropicResult<MessageBatchResponse>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + + + + +

+ DeleteMessageBatchAsync(string) + +

+ +

Deletes a message batch asynchronously.

+
+
+ +
+
Task<AnthropicResult<MessageBatchDeleteResponse>> DeleteMessageBatchAsync(string batchId)
+
+ +

Parameters

+
+
batchId string
+

The ID of the message batch to delete.

+
+
+ +

Returns

+
+
Task<AnthropicResult<MessageBatchDeleteResponse>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is MessageBatchDeleteResponse.

+
+
+ + + + + + + + + + + + + +

+ GetMessageBatchAsync(string) + +

+ +

Gets a message batch asynchronously.

+
+
+ +
+
Task<AnthropicResult<MessageBatchResponse>> GetMessageBatchAsync(string batchId)
+
+ +

Parameters

+
+
batchId string
+

The ID of the message batch to get.

+
+
+ +

Returns

+
+
Task<AnthropicResult<MessageBatchResponse>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + + + + +

+ GetMessageBatchResultsAsync(string) + +

+ +

Gets the results of a message batch asynchronously.

+
+
+ +
+
Task<AnthropicResult<IAsyncEnumerable<MessageBatchResultItem>>> GetMessageBatchResultsAsync(string batchId)
+
+ +

Parameters

+
+
batchId string
+

The ID of the message batch to get the results for.

+
+
+ +

Returns

+
+
Task<AnthropicResult<IAsyncEnumerable<MessageBatchResultItem>>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is IAsyncEnumerable<T> where T is MessageBatchResultItem.

+
+
+ + + + + + + + + + +

GetModelAsync(string) - +

Gets a model by its ID asynchronously.

@@ -277,11 +472,50 @@ Interface IAnthropicApiClient + +

+ ListAllMessageBatchesAsync(int) + +

+ +

Lists all message batches asynchronously.

+
+
+ +
+
IAsyncEnumerable<AnthropicResult<Page<MessageBatchResponse>>> ListAllMessageBatchesAsync(int limit = 20)
+
+ +

Parameters

+
+
limit int
+

The maximum number of message batches to return in each page.

+
+
+ +

Returns

+
+
IAsyncEnumerable<AnthropicResult<Page<MessageBatchResponse>>>
+

An asynchronous enumerable that yields the response as an AnthropicResult<T> where T is Page<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + +

ListAllModelsAsync(int) - +

Lists the models asynchronously

@@ -316,11 +550,50 @@ Interface IAnthropicApiClient + +

+ ListMessageBatchesAsync(PagingRequest?) + +

+ +

Lists the message batches asynchronously.

+
+
+ +
+
Task<AnthropicResult<Page<MessageBatchResponse>>> ListMessageBatchesAsync(PagingRequest? request = null)
+
+ +

Parameters

+
+
request PagingRequest
+

The paging request to use for listing the message batches.

+
+
+ +

Returns

+
+
Task<AnthropicResult<Page<MessageBatchResponse>>>
+

A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult<T> where T is Page<T> where T is MessageBatchResponse.

+
+
+ + + + + + + + + + +

ListModelsAsync(PagingRequest?) - +

Lists the models asynchronously.

@@ -359,7 +632,7 @@ Interface IAnthropicApiClient - Edit this page + Edit this page
diff --git a/docs/api/AnthropicClient.Models.CanceledMessageBatchResult.html b/docs/api/AnthropicClient.Models.CanceledMessageBatchResult.html new file mode 100644 index 0000000..0dedd48 --- /dev/null +++ b/docs/api/AnthropicClient.Models.CanceledMessageBatchResult.html @@ -0,0 +1,212 @@ + + + + + Class CanceledMessageBatchResult | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class CanceledMessageBatchResult +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents a message batch result that was cancelled.

+
+
+ +
+
public class CanceledMessageBatchResult : MessageBatchResult
+
+ + + + +
+
Inheritance
+
+ + +
CanceledMessageBatchResult
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + + +
+ + + + + + +

Constructors +

+ + + + +

+ CanceledMessageBatchResult() + +

+ +

Initializes a new instance of the CanceledMessageBatchResult class.

+
+
+ +
+
public CanceledMessageBatchResult()
+
+ + + + + + + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.ErroredMessageBatchResult.html b/docs/api/AnthropicClient.Models.ErroredMessageBatchResult.html new file mode 100644 index 0000000..57ce315 --- /dev/null +++ b/docs/api/AnthropicClient.Models.ErroredMessageBatchResult.html @@ -0,0 +1,248 @@ + + + + + Class ErroredMessageBatchResult | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class ErroredMessageBatchResult +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents a message batch result that contains an error response.

+
+
+ +
+
public class ErroredMessageBatchResult : MessageBatchResult
+
+ + + + +
+
Inheritance
+
+ + +
ErroredMessageBatchResult
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + + +
+ + + + + + +

Constructors +

+ + + + +

+ ErroredMessageBatchResult() + +

+ +

Initializes a new instance of the ErroredMessageBatchResult class.

+
+
+ +
+
public ErroredMessageBatchResult()
+
+ + + + + + + + + + + + + +

Properties +

+ + + + +

+ Error + +

+ +

Gets the error of the message batch result.

+
+
+ +
+
public AnthropicError Error { get; init; }
+
+ + + + + +

Property Value

+
+
AnthropicError
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.ExpiredMessageBatchResult.html b/docs/api/AnthropicClient.Models.ExpiredMessageBatchResult.html new file mode 100644 index 0000000..95d25ee --- /dev/null +++ b/docs/api/AnthropicClient.Models.ExpiredMessageBatchResult.html @@ -0,0 +1,212 @@ + + + + + Class ExpiredMessageBatchResult | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class ExpiredMessageBatchResult +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents a message batch result that has expired.

+
+
+ +
+
public class ExpiredMessageBatchResult : MessageBatchResult
+
+ + + + +
+
Inheritance
+
+ + +
ExpiredMessageBatchResult
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + + +
+ + + + + + +

Constructors +

+ + + + +

+ ExpiredMessageBatchResult() + +

+ +

Initializes a new instance of the ExpiredMessageBatchResult class.

+
+
+ +
+
public ExpiredMessageBatchResult()
+
+ + + + + + + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.MessageBatchDeleteResponse.html b/docs/api/AnthropicClient.Models.MessageBatchDeleteResponse.html new file mode 100644 index 0000000..63a19c1 --- /dev/null +++ b/docs/api/AnthropicClient.Models.MessageBatchDeleteResponse.html @@ -0,0 +1,245 @@ + + + + + Class MessageBatchDeleteResponse | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class MessageBatchDeleteResponse +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents a message batch delete response.

+
+
+ +
+
public class MessageBatchDeleteResponse
+
+ + + + +
+
Inheritance
+
+ +
MessageBatchDeleteResponse
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + +
+ + + + + + +

Properties +

+ + + + +

+ Id + +

+ +

Gets the ID of the message batch that was deleted.

+
+
+ +
+
public string Id { get; init; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + + +

+ Type + +

+ +

Gets the type of the message batch response.

+
+
+ +
+
public string Type { get; init; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.MessageBatchRequest.html b/docs/api/AnthropicClient.Models.MessageBatchRequest.html new file mode 100644 index 0000000..85075fe --- /dev/null +++ b/docs/api/AnthropicClient.Models.MessageBatchRequest.html @@ -0,0 +1,256 @@ + + + + + Class MessageBatchRequest | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class MessageBatchRequest +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents a request to create a batch of messages.

+
+
+ +
+
public class MessageBatchRequest
+
+ + + + +
+
Inheritance
+
+ +
MessageBatchRequest
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + +
+ + + + + + +

Constructors +

+ + + + +

+ MessageBatchRequest(List<MessageBatchRequestItem>) + +

+ +

Initializes a new instance of the MessageBatchRequest class.

+
+
+ +
+
public MessageBatchRequest(List<MessageBatchRequestItem> requests)
+
+ +

Parameters

+
+
requests List<MessageBatchRequestItem>
+

The requests to create messages.

+
+
+ + + + + + + + + +

Exceptions

+
+
ArgumentException
+

Thrown when requests is empty.

+
+
+ + + +

Properties +

+ + + + +

+ Requests + +

+ +

Gets the requests to create messages.

+
+
+ +
+
public List<MessageBatchRequestItem> Requests { get; init; }
+
+ + + + + +

Property Value

+
+
List<MessageBatchRequestItem>
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.MessageBatchRequestCounts.html b/docs/api/AnthropicClient.Models.MessageBatchRequestCounts.html new file mode 100644 index 0000000..1b48f92 --- /dev/null +++ b/docs/api/AnthropicClient.Models.MessageBatchRequestCounts.html @@ -0,0 +1,341 @@ + + + + + Class MessageBatchRequestCounts | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class MessageBatchRequestCounts +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents the counts of requests in a batch of messages.

+
+
+ +
+
public class MessageBatchRequestCounts
+
+ + + + +
+
Inheritance
+
+ +
MessageBatchRequestCounts
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + +
+ + + + + + +

Properties +

+ + + + +

+ Canceled + +

+ +

Gets the number of requests in the batch that were cancelled.

+
+
+ +
+
public int Canceled { get; init; }
+
+ + + + + +

Property Value

+
+
int
+
+
+ + + + + + + + + + +

+ Errored + +

+ +

Gets the number of requests in the batch that errored.

+
+
+ +
+
public int Errored { get; init; }
+
+ + + + + +

Property Value

+
+
int
+
+
+ + + + + + + + + + +

+ Expired + +

+ +

Gets the number of requests in the batch that expired.

+
+
+ +
+
public int Expired { get; init; }
+
+ + + + + +

Property Value

+
+
int
+
+
+ + + + + + + + + + +

+ Processing + +

+ +

Gets the number of requests in the batch that are processing.

+
+
+ +
+
public int Processing { get; init; }
+
+ + + + + +

Property Value

+
+
int
+
+
+ + + + + + + + + + +

+ Succeeded + +

+ +

Gets the number of requests in the batch that succeeded.

+
+
+ +
+
public int Succeeded { get; init; }
+
+ + + + + +

Property Value

+
+
int
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.MessageBatchRequestItem.html b/docs/api/AnthropicClient.Models.MessageBatchRequestItem.html new file mode 100644 index 0000000..08efb87 --- /dev/null +++ b/docs/api/AnthropicClient.Models.MessageBatchRequestItem.html @@ -0,0 +1,295 @@ + + + + + Class MessageBatchRequestItem | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class MessageBatchRequestItem +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents an item in a batch of messages.

+
+
+ +
+
public class MessageBatchRequestItem
+
+ + + + +
+
Inheritance
+
+ +
MessageBatchRequestItem
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + +
+ + + + + + +

Constructors +

+ + + + +

+ MessageBatchRequestItem(string, MessageRequest) + +

+ +

Initializes a new instance of the MessageBatchRequestItem class.

+
+
+ +
+
public MessageBatchRequestItem(string customId, MessageRequest messageRequest)
+
+ +

Parameters

+
+
customId string
+

The custom identifier for the message.

+
+
messageRequest MessageRequest
+

The message request parameters.

+
+
+ + + + + + + + + +

Exceptions

+
+
ArgumentException
+

Thrown when customId is null or whitespace.

+
+
ArgumentException
+

Thrown when messageRequest is null.

+
+
+ + + +

Properties +

+ + + + +

+ CustomId + +

+ +

Gets the custom identifier for the message.

+
+
+ +
+
[JsonPropertyName("custom_id")]
+public string CustomId { get; init; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + + +

+ Params + +

+ +

Gets the message request parameters.

+
+
+ +
+
public MessageRequest Params { get; init; }
+
+ + + + + +

Property Value

+
+
MessageRequest
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.MessageBatchResponse.html b/docs/api/AnthropicClient.Models.MessageBatchResponse.html new file mode 100644 index 0000000..4478d51 --- /dev/null +++ b/docs/api/AnthropicClient.Models.MessageBatchResponse.html @@ -0,0 +1,509 @@ + + + + + Class MessageBatchResponse | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class MessageBatchResponse +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents a response to a batch of messages.

+
+
+ +
+
public class MessageBatchResponse
+
+ + + + +
+
Inheritance
+
+ +
MessageBatchResponse
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + +
+ + + + + + +

Properties +

+ + + + +

+ ArchivedAt + +

+ +

Gets the date and time when the batch was archived.

+
+
+ +
+
[JsonPropertyName("archived_at")]
+public DateTimeOffset? ArchivedAt { get; init; }
+
+ + + + + +

Property Value

+
+
DateTimeOffset?
+
+
+ + + + + + + + + + +

+ CancelInitiatedAt + +

+ +

Gets the date and time when the batch cancellation was initiated.

+
+
+ +
+
[JsonPropertyName("cancel_initiated_at")]
+public DateTimeOffset? CancelInitiatedAt { get; init; }
+
+ + + + + +

Property Value

+
+
DateTimeOffset?
+
+
+ + + + + + + + + + +

+ CreatedAt + +

+ +

Gets the date and time when the batch was created.

+
+
+ +
+
[JsonPropertyName("created_at")]
+public DateTimeOffset CreatedAt { get; init; }
+
+ + + + + +

Property Value

+
+
DateTimeOffset
+
+
+ + + + + + + + + + +

+ EndedAt + +

+ +

Gets the date and time when the batch ended.

+
+
+ +
+
[JsonPropertyName("ended_at")]
+public DateTimeOffset? EndedAt { get; init; }
+
+ + + + + +

Property Value

+
+
DateTimeOffset?
+
+
+ + + + + + + + + + +

+ ExpiresAt + +

+ +

Gets the date and time when the batch expires.

+
+
+ +
+
[JsonPropertyName("expires_at")]
+public DateTimeOffset ExpiresAt { get; init; }
+
+ + + + + +

Property Value

+
+
DateTimeOffset
+
+
+ + + + + + + + + + +

+ Id + +

+ +

Gets the identifier of the batch.

+
+
+ +
+
public string Id { get; init; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + + +

+ ProcessingStatus + +

+ +

Gets the processing status of the batch.

+
+
+ +
+
[JsonPropertyName("processing_status")]
+public string ProcessingStatus { get; init; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + + +

+ RequestCounts + +

+ +

Gets the counts of requests in the batch.

+
+
+ +
+
[JsonPropertyName("request_counts")]
+public MessageBatchRequestCounts RequestCounts { get; init; }
+
+ + + + + +

Property Value

+
+
MessageBatchRequestCounts
+
+
+ + + + + + + + + + +

+ ResultsUrl + +

+ +

Gets the URL to the results of the batch.

+
+
+ +
+
[JsonPropertyName("results_url")]
+public string? ResultsUrl { get; init; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + + +

+ Type + +

+ +

Gets the type of the batch.

+
+
+ +
+
public string Type { get; init; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.MessageBatchResult.html b/docs/api/AnthropicClient.Models.MessageBatchResult.html new file mode 100644 index 0000000..bf3967e --- /dev/null +++ b/docs/api/AnthropicClient.Models.MessageBatchResult.html @@ -0,0 +1,259 @@ + + + + + Class MessageBatchResult | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class MessageBatchResult +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents a message batch result.

+
+
+ +
+
public abstract class MessageBatchResult
+
+ + + + +
+
Inheritance
+
+ +
MessageBatchResult
+
+
+ + +
+
Derived
+
+ + + + +
+
+ +
+
Inherited Members
+
+ + + + + + + +
+ + + + + + +

Constructors +

+ + + + +

+ MessageBatchResult(string) + +

+ +

Initializes a new instance of the MessageBatchResult class.

+
+
+ +
+
public MessageBatchResult(string type)
+
+ +

Parameters

+
+
type string
+

The type of the message batch result.

+
+
+ + + + + + + + + + + + +

Properties +

+ + + + +

+ Type + +

+ +

Gets the type of the message batch result.

+
+
+ +
+
public string Type { get; init; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.MessageBatchResultItem.html b/docs/api/AnthropicClient.Models.MessageBatchResultItem.html new file mode 100644 index 0000000..6cdd479 --- /dev/null +++ b/docs/api/AnthropicClient.Models.MessageBatchResultItem.html @@ -0,0 +1,246 @@ + + + + + Class MessageBatchResultItem | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class MessageBatchResultItem +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents a message batch result item.

+
+
+ +
+
public class MessageBatchResultItem
+
+ + + + +
+
Inheritance
+
+ +
MessageBatchResultItem
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + +
+ + + + + + +

Properties +

+ + + + +

+ CustomId + +

+ +

Gets the custom ID of the message batch result item.

+
+
+ +
+
[JsonPropertyName("custom_id")]
+public string CustomId { get; init; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + + +

+ Result + +

+ +

Gets the result of the message batch result item.

+
+
+ +
+
public MessageBatchResult Result { get; init; }
+
+ + + + + +

Property Value

+
+
MessageBatchResult
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.MessageBatchResultType.html b/docs/api/AnthropicClient.Models.MessageBatchResultType.html new file mode 100644 index 0000000..b2ba44f --- /dev/null +++ b/docs/api/AnthropicClient.Models.MessageBatchResultType.html @@ -0,0 +1,305 @@ + + + + + Class MessageBatchResultType | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class MessageBatchResultType +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents the types of message batch results.

+
+
+ +
+
public static class MessageBatchResultType
+
+ + + + +
+
Inheritance
+
+ +
MessageBatchResultType
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + +
+ + + + + + +

Fields +

+ + + +

+ Canceled + +

+ +

Represents a canceled message batch result.

+
+
+ +
+
public const string Canceled = "canceled"
+
+ + + + +

Field Value

+
+
string
+
+
+ + + + + + + + + + +

+ Errored + +

+ +

Represents an errored message batch result.

+
+
+ +
+
public const string Errored = "errored"
+
+ + + + +

Field Value

+
+
string
+
+
+ + + + + + + + + + +

+ Expired + +

+ +

Represents an expired message batch result.

+
+
+ +
+
public const string Expired = "expired"
+
+ + + + +

Field Value

+
+
string
+
+
+ + + + + + + + + + +

+ Succeeded + +

+ +

Represents a succeeded message batch result.

+
+
+ +
+
public const string Succeeded = "succeeded"
+
+ + + + +

Field Value

+
+
string
+
+
+ + + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.MessageBatchStatus.html b/docs/api/AnthropicClient.Models.MessageBatchStatus.html new file mode 100644 index 0000000..1dd1c8a --- /dev/null +++ b/docs/api/AnthropicClient.Models.MessageBatchStatus.html @@ -0,0 +1,274 @@ + + + + + Class MessageBatchStatus | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class MessageBatchStatus +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents the status of a message batch.

+
+
+ +
+
public static class MessageBatchStatus
+
+ + + + +
+
Inheritance
+
+ +
MessageBatchStatus
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + +
+ + + + + + +

Fields +

+ + + +

+ Canceling + +

+ +

The status of a message batch that is being canceled.

+
+
+ +
+
public const string Canceling = "canceling"
+
+ + + + +

Field Value

+
+
string
+
+
+ + + + + + + + + + +

+ Ended + +

+ +

The status of a message batch that has ended.

+
+
+ +
+
public const string Ended = "ended"
+
+ + + + +

Field Value

+
+
string
+
+
+ + + + + + + + + + +

+ InProgress + +

+ +

The status of a message batch that is in progress.

+
+
+ +
+
public const string InProgress = "in_progress"
+
+ + + + +

Field Value

+
+
string
+
+
+ + + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.SucceededMessageBatchResult.html b/docs/api/AnthropicClient.Models.SucceededMessageBatchResult.html new file mode 100644 index 0000000..02663be --- /dev/null +++ b/docs/api/AnthropicClient.Models.SucceededMessageBatchResult.html @@ -0,0 +1,248 @@ + + + + + Class SucceededMessageBatchResult | AnthropicClient + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class SucceededMessageBatchResult +

+ +
+
Namespace
AnthropicClient.Models
+
Assembly
AnthropicClient.dll
+
+ +

Represents a message batch result that contains a message response.

+
+
+ +
+
public class SucceededMessageBatchResult : MessageBatchResult
+
+ + + + +
+
Inheritance
+
+ + +
SucceededMessageBatchResult
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + + +
+ + + + + + +

Constructors +

+ + + + +

+ SucceededMessageBatchResult() + +

+ +

Initializes a new instance of the SucceededMessageBatchResult class.

+
+
+ +
+
public SucceededMessageBatchResult()
+
+ + + + + + + + + + + + + +

Properties +

+ + + + +

+ Message + +

+ +

Gets the message of the message batch result.

+
+
+ +
+
public MessageResponse Message { get; init; }
+
+ + + + + +

Property Value

+
+
MessageResponse
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ +
+
+
+ Made with docfx +
+
+
+ + diff --git a/docs/api/AnthropicClient.Models.html b/docs/api/AnthropicClient.Models.html index 6e13e94..57a455e 100644 --- a/docs/api/AnthropicClient.Models.html +++ b/docs/api/AnthropicClient.Models.html @@ -157,6 +157,11 @@ Classes
CacheControlType

Provides constants for cache control types.

+
+
+
+
CanceledMessageBatchResult
+

Represents a message batch result that was cancelled.

@@ -227,6 +232,11 @@ Classes
ErrorType

Represents the error type.

+
+
+
+
ErroredMessageBatchResult
+

Represents a message batch result that contains an error response.

@@ -237,6 +247,11 @@ Classes
EventType

Provides constants for event types.

+
+
+
+
ExpiredMessageBatchResult
+

Represents a message batch result that has expired.

@@ -287,6 +302,51 @@ Classes
Message

Represents a message.

+
+
+
+
MessageBatchDeleteResponse
+

Represents a message batch delete response.

+
+
+
+
MessageBatchRequest
+

Represents a request to create a batch of messages.

+
+
+
+
MessageBatchRequestCounts
+

Represents the counts of requests in a batch of messages.

+
+
+
+
MessageBatchRequestItem
+

Represents an item in a batch of messages.

+
+
+
+
MessageBatchResponse
+

Represents a response to a batch of messages.

+
+
+
+
MessageBatchResult
+

Represents a message batch result.

+
+
+
+
MessageBatchResultItem
+

Represents a message batch result item.

+
+
+
+
MessageBatchResultType
+

Represents the types of message batch results.

+
+
+
+
MessageBatchStatus
+

Represents the status of a message batch.

@@ -382,6 +442,11 @@ Classes
StreamMessageRequest

Represents a message request.

+
+
+
+
SucceededMessageBatchResult
+

Represents a message batch result that contains a message response.

diff --git a/docs/api/toc.html b/docs/api/toc.html index 32d15ba..405de48 100644 --- a/docs/api/toc.html +++ b/docs/api/toc.html @@ -69,6 +69,9 @@
  • CacheControlType
  • +
  • + CanceledMessageBatchResult +
  • Content
  • @@ -111,12 +114,18 @@
  • ErrorType
  • +
  • + ErroredMessageBatchResult +
  • EventData
  • EventType
  • +
  • + ExpiredMessageBatchResult +
  • FunctionParameterAttribute
  • @@ -150,6 +159,33 @@
  • Message
  • +
  • + MessageBatchDeleteResponse +
  • +
  • + MessageBatchRequest +
  • +
  • + MessageBatchRequestCounts +
  • +
  • + MessageBatchRequestItem +
  • +
  • + MessageBatchResponse +
  • +
  • + MessageBatchResult +
  • +
  • + MessageBatchResultItem +
  • +
  • + MessageBatchResultType +
  • +
  • + MessageBatchStatus +
  • MessageCompleteEventData
  • @@ -207,6 +243,9 @@
  • StreamMessageRequest
  • +
  • + SucceededMessageBatchResult +
  • TextContent
  • diff --git a/docs/api/toc.json b/docs/api/toc.json index 7eec995..a3cbcc4 100644 --- a/docs/api/toc.json +++ b/docs/api/toc.json @@ -1,2 +1,2 @@ -{"items":[{"name":"AnthropicClient","href":"AnthropicClient.html","topicHref":"AnthropicClient.html","topicUid":"AnthropicClient","type":"Namespace","items":[{"name":"AnthropicApiClient","href":"AnthropicClient.AnthropicApiClient.html","topicHref":"AnthropicClient.AnthropicApiClient.html","topicUid":"AnthropicClient.AnthropicApiClient","type":"Class"},{"name":"IAnthropicApiClient","href":"AnthropicClient.IAnthropicApiClient.html","topicHref":"AnthropicClient.IAnthropicApiClient.html","topicUid":"AnthropicClient.IAnthropicApiClient","type":"Interface"}]},{"name":"AnthropicClient.Models","href":"AnthropicClient.Models.html","topicHref":"AnthropicClient.Models.html","topicUid":"AnthropicClient.Models","type":"Namespace","items":[{"name":"AnthropicError","href":"AnthropicClient.Models.AnthropicError.html","topicHref":"AnthropicClient.Models.AnthropicError.html","topicUid":"AnthropicClient.Models.AnthropicError","type":"Class"},{"name":"AnthropicEvent","href":"AnthropicClient.Models.AnthropicEvent.html","topicHref":"AnthropicClient.Models.AnthropicEvent.html","topicUid":"AnthropicClient.Models.AnthropicEvent","type":"Class"},{"name":"AnthropicFunction","href":"AnthropicClient.Models.AnthropicFunction.html","topicHref":"AnthropicClient.Models.AnthropicFunction.html","topicUid":"AnthropicClient.Models.AnthropicFunction","type":"Class"},{"name":"AnthropicHeaders","href":"AnthropicClient.Models.AnthropicHeaders.html","topicHref":"AnthropicClient.Models.AnthropicHeaders.html","topicUid":"AnthropicClient.Models.AnthropicHeaders","type":"Class"},{"name":"AnthropicModel","href":"AnthropicClient.Models.AnthropicModel.html","topicHref":"AnthropicClient.Models.AnthropicModel.html","topicUid":"AnthropicClient.Models.AnthropicModel","type":"Class"},{"name":"AnthropicModels","href":"AnthropicClient.Models.AnthropicModels.html","topicHref":"AnthropicClient.Models.AnthropicModels.html","topicUid":"AnthropicClient.Models.AnthropicModels","type":"Class"},{"name":"AnyToolChoice","href":"AnthropicClient.Models.AnyToolChoice.html","topicHref":"AnthropicClient.Models.AnyToolChoice.html","topicUid":"AnthropicClient.Models.AnyToolChoice","type":"Class"},{"name":"ApiError","href":"AnthropicClient.Models.ApiError.html","topicHref":"AnthropicClient.Models.ApiError.html","topicUid":"AnthropicClient.Models.ApiError","type":"Class"},{"name":"AuthenticationError","href":"AnthropicClient.Models.AuthenticationError.html","topicHref":"AnthropicClient.Models.AuthenticationError.html","topicUid":"AnthropicClient.Models.AuthenticationError","type":"Class"},{"name":"AutoToolChoice","href":"AnthropicClient.Models.AutoToolChoice.html","topicHref":"AnthropicClient.Models.AutoToolChoice.html","topicUid":"AnthropicClient.Models.AutoToolChoice","type":"Class"},{"name":"BaseMessageRequest","href":"AnthropicClient.Models.BaseMessageRequest.html","topicHref":"AnthropicClient.Models.BaseMessageRequest.html","topicUid":"AnthropicClient.Models.BaseMessageRequest","type":"Class"},{"name":"CacheControl","href":"AnthropicClient.Models.CacheControl.html","topicHref":"AnthropicClient.Models.CacheControl.html","topicUid":"AnthropicClient.Models.CacheControl","type":"Class"},{"name":"CacheControlType","href":"AnthropicClient.Models.CacheControlType.html","topicHref":"AnthropicClient.Models.CacheControlType.html","topicUid":"AnthropicClient.Models.CacheControlType","type":"Class"},{"name":"Content","href":"AnthropicClient.Models.Content.html","topicHref":"AnthropicClient.Models.Content.html","topicUid":"AnthropicClient.Models.Content","type":"Class"},{"name":"ContentDelta","href":"AnthropicClient.Models.ContentDelta.html","topicHref":"AnthropicClient.Models.ContentDelta.html","topicUid":"AnthropicClient.Models.ContentDelta","type":"Class"},{"name":"ContentDeltaEventData","href":"AnthropicClient.Models.ContentDeltaEventData.html","topicHref":"AnthropicClient.Models.ContentDeltaEventData.html","topicUid":"AnthropicClient.Models.ContentDeltaEventData","type":"Class"},{"name":"ContentDeltaType","href":"AnthropicClient.Models.ContentDeltaType.html","topicHref":"AnthropicClient.Models.ContentDeltaType.html","topicUid":"AnthropicClient.Models.ContentDeltaType","type":"Class"},{"name":"ContentStartEventData","href":"AnthropicClient.Models.ContentStartEventData.html","topicHref":"AnthropicClient.Models.ContentStartEventData.html","topicUid":"AnthropicClient.Models.ContentStartEventData","type":"Class"},{"name":"ContentStopEventData","href":"AnthropicClient.Models.ContentStopEventData.html","topicHref":"AnthropicClient.Models.ContentStopEventData.html","topicUid":"AnthropicClient.Models.ContentStopEventData","type":"Class"},{"name":"ContentType","href":"AnthropicClient.Models.ContentType.html","topicHref":"AnthropicClient.Models.ContentType.html","topicUid":"AnthropicClient.Models.ContentType","type":"Class"},{"name":"CountMessageTokensRequest","href":"AnthropicClient.Models.CountMessageTokensRequest.html","topicHref":"AnthropicClient.Models.CountMessageTokensRequest.html","topicUid":"AnthropicClient.Models.CountMessageTokensRequest","type":"Class"},{"name":"DocumentContent","href":"AnthropicClient.Models.DocumentContent.html","topicHref":"AnthropicClient.Models.DocumentContent.html","topicUid":"AnthropicClient.Models.DocumentContent","type":"Class"},{"name":"DocumentSource","href":"AnthropicClient.Models.DocumentSource.html","topicHref":"AnthropicClient.Models.DocumentSource.html","topicUid":"AnthropicClient.Models.DocumentSource","type":"Class"},{"name":"EphemeralCacheControl","href":"AnthropicClient.Models.EphemeralCacheControl.html","topicHref":"AnthropicClient.Models.EphemeralCacheControl.html","topicUid":"AnthropicClient.Models.EphemeralCacheControl","type":"Class"},{"name":"Error","href":"AnthropicClient.Models.Error.html","topicHref":"AnthropicClient.Models.Error.html","topicUid":"AnthropicClient.Models.Error","type":"Class"},{"name":"ErrorEventData","href":"AnthropicClient.Models.ErrorEventData.html","topicHref":"AnthropicClient.Models.ErrorEventData.html","topicUid":"AnthropicClient.Models.ErrorEventData","type":"Class"},{"name":"ErrorType","href":"AnthropicClient.Models.ErrorType.html","topicHref":"AnthropicClient.Models.ErrorType.html","topicUid":"AnthropicClient.Models.ErrorType","type":"Class"},{"name":"EventData","href":"AnthropicClient.Models.EventData.html","topicHref":"AnthropicClient.Models.EventData.html","topicUid":"AnthropicClient.Models.EventData","type":"Class"},{"name":"EventType","href":"AnthropicClient.Models.EventType.html","topicHref":"AnthropicClient.Models.EventType.html","topicUid":"AnthropicClient.Models.EventType","type":"Class"},{"name":"FunctionParameterAttribute","href":"AnthropicClient.Models.FunctionParameterAttribute.html","topicHref":"AnthropicClient.Models.FunctionParameterAttribute.html","topicUid":"AnthropicClient.Models.FunctionParameterAttribute","type":"Class"},{"name":"FunctionPropertyAttribute","href":"AnthropicClient.Models.FunctionPropertyAttribute.html","topicHref":"AnthropicClient.Models.FunctionPropertyAttribute.html","topicUid":"AnthropicClient.Models.FunctionPropertyAttribute","type":"Class"},{"name":"ITool","href":"AnthropicClient.Models.ITool.html","topicHref":"AnthropicClient.Models.ITool.html","topicUid":"AnthropicClient.Models.ITool","type":"Interface"},{"name":"ImageContent","href":"AnthropicClient.Models.ImageContent.html","topicHref":"AnthropicClient.Models.ImageContent.html","topicUid":"AnthropicClient.Models.ImageContent","type":"Class"},{"name":"ImageSource","href":"AnthropicClient.Models.ImageSource.html","topicHref":"AnthropicClient.Models.ImageSource.html","topicUid":"AnthropicClient.Models.ImageSource","type":"Class"},{"name":"ImageType","href":"AnthropicClient.Models.ImageType.html","topicHref":"AnthropicClient.Models.ImageType.html","topicUid":"AnthropicClient.Models.ImageType","type":"Class"},{"name":"InputProperty","href":"AnthropicClient.Models.InputProperty.html","topicHref":"AnthropicClient.Models.InputProperty.html","topicUid":"AnthropicClient.Models.InputProperty","type":"Class"},{"name":"InputSchema","href":"AnthropicClient.Models.InputSchema.html","topicHref":"AnthropicClient.Models.InputSchema.html","topicUid":"AnthropicClient.Models.InputSchema","type":"Class"},{"name":"InvalidRequestError","href":"AnthropicClient.Models.InvalidRequestError.html","topicHref":"AnthropicClient.Models.InvalidRequestError.html","topicUid":"AnthropicClient.Models.InvalidRequestError","type":"Class"},{"name":"JsonDelta","href":"AnthropicClient.Models.JsonDelta.html","topicHref":"AnthropicClient.Models.JsonDelta.html","topicUid":"AnthropicClient.Models.JsonDelta","type":"Class"},{"name":"Message","href":"AnthropicClient.Models.Message.html","topicHref":"AnthropicClient.Models.Message.html","topicUid":"AnthropicClient.Models.Message","type":"Class"},{"name":"MessageCompleteEventData","href":"AnthropicClient.Models.MessageCompleteEventData.html","topicHref":"AnthropicClient.Models.MessageCompleteEventData.html","topicUid":"AnthropicClient.Models.MessageCompleteEventData","type":"Class"},{"name":"MessageDelta","href":"AnthropicClient.Models.MessageDelta.html","topicHref":"AnthropicClient.Models.MessageDelta.html","topicUid":"AnthropicClient.Models.MessageDelta","type":"Class"},{"name":"MessageDeltaEventData","href":"AnthropicClient.Models.MessageDeltaEventData.html","topicHref":"AnthropicClient.Models.MessageDeltaEventData.html","topicUid":"AnthropicClient.Models.MessageDeltaEventData","type":"Class"},{"name":"MessageRequest","href":"AnthropicClient.Models.MessageRequest.html","topicHref":"AnthropicClient.Models.MessageRequest.html","topicUid":"AnthropicClient.Models.MessageRequest","type":"Class"},{"name":"MessageResponse","href":"AnthropicClient.Models.MessageResponse.html","topicHref":"AnthropicClient.Models.MessageResponse.html","topicUid":"AnthropicClient.Models.MessageResponse","type":"Class"},{"name":"MessageRole","href":"AnthropicClient.Models.MessageRole.html","topicHref":"AnthropicClient.Models.MessageRole.html","topicUid":"AnthropicClient.Models.MessageRole","type":"Class"},{"name":"MessageStartEventData","href":"AnthropicClient.Models.MessageStartEventData.html","topicHref":"AnthropicClient.Models.MessageStartEventData.html","topicUid":"AnthropicClient.Models.MessageStartEventData","type":"Class"},{"name":"MessageStopEventData","href":"AnthropicClient.Models.MessageStopEventData.html","topicHref":"AnthropicClient.Models.MessageStopEventData.html","topicUid":"AnthropicClient.Models.MessageStopEventData","type":"Class"},{"name":"NotFoundError","href":"AnthropicClient.Models.NotFoundError.html","topicHref":"AnthropicClient.Models.NotFoundError.html","topicUid":"AnthropicClient.Models.NotFoundError","type":"Class"},{"name":"OverloadedError","href":"AnthropicClient.Models.OverloadedError.html","topicHref":"AnthropicClient.Models.OverloadedError.html","topicUid":"AnthropicClient.Models.OverloadedError","type":"Class"},{"name":"Page","href":"AnthropicClient.Models.Page.html","topicHref":"AnthropicClient.Models.Page.html","topicUid":"AnthropicClient.Models.Page","type":"Class"},{"name":"Page","href":"AnthropicClient.Models.Page-1.html","topicHref":"AnthropicClient.Models.Page-1.html","topicUid":"AnthropicClient.Models.Page`1","type":"Class"},{"name":"PagingRequest","href":"AnthropicClient.Models.PagingRequest.html","topicHref":"AnthropicClient.Models.PagingRequest.html","topicUid":"AnthropicClient.Models.PagingRequest","type":"Class"},{"name":"PermissionError","href":"AnthropicClient.Models.PermissionError.html","topicHref":"AnthropicClient.Models.PermissionError.html","topicUid":"AnthropicClient.Models.PermissionError","type":"Class"},{"name":"PingEventData","href":"AnthropicClient.Models.PingEventData.html","topicHref":"AnthropicClient.Models.PingEventData.html","topicUid":"AnthropicClient.Models.PingEventData","type":"Class"},{"name":"RateLimitError","href":"AnthropicClient.Models.RateLimitError.html","topicHref":"AnthropicClient.Models.RateLimitError.html","topicUid":"AnthropicClient.Models.RateLimitError","type":"Class"},{"name":"SpecificToolChoice","href":"AnthropicClient.Models.SpecificToolChoice.html","topicHref":"AnthropicClient.Models.SpecificToolChoice.html","topicUid":"AnthropicClient.Models.SpecificToolChoice","type":"Class"},{"name":"StopReasonType","href":"AnthropicClient.Models.StopReasonType.html","topicHref":"AnthropicClient.Models.StopReasonType.html","topicUid":"AnthropicClient.Models.StopReasonType","type":"Class"},{"name":"StreamMessageRequest","href":"AnthropicClient.Models.StreamMessageRequest.html","topicHref":"AnthropicClient.Models.StreamMessageRequest.html","topicUid":"AnthropicClient.Models.StreamMessageRequest","type":"Class"},{"name":"TextContent","href":"AnthropicClient.Models.TextContent.html","topicHref":"AnthropicClient.Models.TextContent.html","topicUid":"AnthropicClient.Models.TextContent","type":"Class"},{"name":"TextDelta","href":"AnthropicClient.Models.TextDelta.html","topicHref":"AnthropicClient.Models.TextDelta.html","topicUid":"AnthropicClient.Models.TextDelta","type":"Class"},{"name":"TokenCountResponse","href":"AnthropicClient.Models.TokenCountResponse.html","topicHref":"AnthropicClient.Models.TokenCountResponse.html","topicUid":"AnthropicClient.Models.TokenCountResponse","type":"Class"},{"name":"Tool","href":"AnthropicClient.Models.Tool.html","topicHref":"AnthropicClient.Models.Tool.html","topicUid":"AnthropicClient.Models.Tool","type":"Class"},{"name":"ToolCall","href":"AnthropicClient.Models.ToolCall.html","topicHref":"AnthropicClient.Models.ToolCall.html","topicUid":"AnthropicClient.Models.ToolCall","type":"Class"},{"name":"ToolCallResult","href":"AnthropicClient.Models.ToolCallResult-1.html","topicHref":"AnthropicClient.Models.ToolCallResult-1.html","topicUid":"AnthropicClient.Models.ToolCallResult`1","type":"Class"},{"name":"ToolChoice","href":"AnthropicClient.Models.ToolChoice.html","topicHref":"AnthropicClient.Models.ToolChoice.html","topicUid":"AnthropicClient.Models.ToolChoice","type":"Class"},{"name":"ToolChoiceType","href":"AnthropicClient.Models.ToolChoiceType.html","topicHref":"AnthropicClient.Models.ToolChoiceType.html","topicUid":"AnthropicClient.Models.ToolChoiceType","type":"Class"},{"name":"ToolResultContent","href":"AnthropicClient.Models.ToolResultContent.html","topicHref":"AnthropicClient.Models.ToolResultContent.html","topicUid":"AnthropicClient.Models.ToolResultContent","type":"Class"},{"name":"ToolUseContent","href":"AnthropicClient.Models.ToolUseContent.html","topicHref":"AnthropicClient.Models.ToolUseContent.html","topicUid":"AnthropicClient.Models.ToolUseContent","type":"Class"},{"name":"Usage","href":"AnthropicClient.Models.Usage.html","topicHref":"AnthropicClient.Models.Usage.html","topicUid":"AnthropicClient.Models.Usage","type":"Class"}]}],"memberLayout":"SamePage"} +{"items":[{"name":"AnthropicClient","href":"AnthropicClient.html","topicHref":"AnthropicClient.html","topicUid":"AnthropicClient","type":"Namespace","items":[{"name":"AnthropicApiClient","href":"AnthropicClient.AnthropicApiClient.html","topicHref":"AnthropicClient.AnthropicApiClient.html","topicUid":"AnthropicClient.AnthropicApiClient","type":"Class"},{"name":"IAnthropicApiClient","href":"AnthropicClient.IAnthropicApiClient.html","topicHref":"AnthropicClient.IAnthropicApiClient.html","topicUid":"AnthropicClient.IAnthropicApiClient","type":"Interface"}]},{"name":"AnthropicClient.Models","href":"AnthropicClient.Models.html","topicHref":"AnthropicClient.Models.html","topicUid":"AnthropicClient.Models","type":"Namespace","items":[{"name":"AnthropicError","href":"AnthropicClient.Models.AnthropicError.html","topicHref":"AnthropicClient.Models.AnthropicError.html","topicUid":"AnthropicClient.Models.AnthropicError","type":"Class"},{"name":"AnthropicEvent","href":"AnthropicClient.Models.AnthropicEvent.html","topicHref":"AnthropicClient.Models.AnthropicEvent.html","topicUid":"AnthropicClient.Models.AnthropicEvent","type":"Class"},{"name":"AnthropicFunction","href":"AnthropicClient.Models.AnthropicFunction.html","topicHref":"AnthropicClient.Models.AnthropicFunction.html","topicUid":"AnthropicClient.Models.AnthropicFunction","type":"Class"},{"name":"AnthropicHeaders","href":"AnthropicClient.Models.AnthropicHeaders.html","topicHref":"AnthropicClient.Models.AnthropicHeaders.html","topicUid":"AnthropicClient.Models.AnthropicHeaders","type":"Class"},{"name":"AnthropicModel","href":"AnthropicClient.Models.AnthropicModel.html","topicHref":"AnthropicClient.Models.AnthropicModel.html","topicUid":"AnthropicClient.Models.AnthropicModel","type":"Class"},{"name":"AnthropicModels","href":"AnthropicClient.Models.AnthropicModels.html","topicHref":"AnthropicClient.Models.AnthropicModels.html","topicUid":"AnthropicClient.Models.AnthropicModels","type":"Class"},{"name":"AnyToolChoice","href":"AnthropicClient.Models.AnyToolChoice.html","topicHref":"AnthropicClient.Models.AnyToolChoice.html","topicUid":"AnthropicClient.Models.AnyToolChoice","type":"Class"},{"name":"ApiError","href":"AnthropicClient.Models.ApiError.html","topicHref":"AnthropicClient.Models.ApiError.html","topicUid":"AnthropicClient.Models.ApiError","type":"Class"},{"name":"AuthenticationError","href":"AnthropicClient.Models.AuthenticationError.html","topicHref":"AnthropicClient.Models.AuthenticationError.html","topicUid":"AnthropicClient.Models.AuthenticationError","type":"Class"},{"name":"AutoToolChoice","href":"AnthropicClient.Models.AutoToolChoice.html","topicHref":"AnthropicClient.Models.AutoToolChoice.html","topicUid":"AnthropicClient.Models.AutoToolChoice","type":"Class"},{"name":"BaseMessageRequest","href":"AnthropicClient.Models.BaseMessageRequest.html","topicHref":"AnthropicClient.Models.BaseMessageRequest.html","topicUid":"AnthropicClient.Models.BaseMessageRequest","type":"Class"},{"name":"CacheControl","href":"AnthropicClient.Models.CacheControl.html","topicHref":"AnthropicClient.Models.CacheControl.html","topicUid":"AnthropicClient.Models.CacheControl","type":"Class"},{"name":"CacheControlType","href":"AnthropicClient.Models.CacheControlType.html","topicHref":"AnthropicClient.Models.CacheControlType.html","topicUid":"AnthropicClient.Models.CacheControlType","type":"Class"},{"name":"CanceledMessageBatchResult","href":"AnthropicClient.Models.CanceledMessageBatchResult.html","topicHref":"AnthropicClient.Models.CanceledMessageBatchResult.html","topicUid":"AnthropicClient.Models.CanceledMessageBatchResult","type":"Class"},{"name":"Content","href":"AnthropicClient.Models.Content.html","topicHref":"AnthropicClient.Models.Content.html","topicUid":"AnthropicClient.Models.Content","type":"Class"},{"name":"ContentDelta","href":"AnthropicClient.Models.ContentDelta.html","topicHref":"AnthropicClient.Models.ContentDelta.html","topicUid":"AnthropicClient.Models.ContentDelta","type":"Class"},{"name":"ContentDeltaEventData","href":"AnthropicClient.Models.ContentDeltaEventData.html","topicHref":"AnthropicClient.Models.ContentDeltaEventData.html","topicUid":"AnthropicClient.Models.ContentDeltaEventData","type":"Class"},{"name":"ContentDeltaType","href":"AnthropicClient.Models.ContentDeltaType.html","topicHref":"AnthropicClient.Models.ContentDeltaType.html","topicUid":"AnthropicClient.Models.ContentDeltaType","type":"Class"},{"name":"ContentStartEventData","href":"AnthropicClient.Models.ContentStartEventData.html","topicHref":"AnthropicClient.Models.ContentStartEventData.html","topicUid":"AnthropicClient.Models.ContentStartEventData","type":"Class"},{"name":"ContentStopEventData","href":"AnthropicClient.Models.ContentStopEventData.html","topicHref":"AnthropicClient.Models.ContentStopEventData.html","topicUid":"AnthropicClient.Models.ContentStopEventData","type":"Class"},{"name":"ContentType","href":"AnthropicClient.Models.ContentType.html","topicHref":"AnthropicClient.Models.ContentType.html","topicUid":"AnthropicClient.Models.ContentType","type":"Class"},{"name":"CountMessageTokensRequest","href":"AnthropicClient.Models.CountMessageTokensRequest.html","topicHref":"AnthropicClient.Models.CountMessageTokensRequest.html","topicUid":"AnthropicClient.Models.CountMessageTokensRequest","type":"Class"},{"name":"DocumentContent","href":"AnthropicClient.Models.DocumentContent.html","topicHref":"AnthropicClient.Models.DocumentContent.html","topicUid":"AnthropicClient.Models.DocumentContent","type":"Class"},{"name":"DocumentSource","href":"AnthropicClient.Models.DocumentSource.html","topicHref":"AnthropicClient.Models.DocumentSource.html","topicUid":"AnthropicClient.Models.DocumentSource","type":"Class"},{"name":"EphemeralCacheControl","href":"AnthropicClient.Models.EphemeralCacheControl.html","topicHref":"AnthropicClient.Models.EphemeralCacheControl.html","topicUid":"AnthropicClient.Models.EphemeralCacheControl","type":"Class"},{"name":"Error","href":"AnthropicClient.Models.Error.html","topicHref":"AnthropicClient.Models.Error.html","topicUid":"AnthropicClient.Models.Error","type":"Class"},{"name":"ErrorEventData","href":"AnthropicClient.Models.ErrorEventData.html","topicHref":"AnthropicClient.Models.ErrorEventData.html","topicUid":"AnthropicClient.Models.ErrorEventData","type":"Class"},{"name":"ErrorType","href":"AnthropicClient.Models.ErrorType.html","topicHref":"AnthropicClient.Models.ErrorType.html","topicUid":"AnthropicClient.Models.ErrorType","type":"Class"},{"name":"ErroredMessageBatchResult","href":"AnthropicClient.Models.ErroredMessageBatchResult.html","topicHref":"AnthropicClient.Models.ErroredMessageBatchResult.html","topicUid":"AnthropicClient.Models.ErroredMessageBatchResult","type":"Class"},{"name":"EventData","href":"AnthropicClient.Models.EventData.html","topicHref":"AnthropicClient.Models.EventData.html","topicUid":"AnthropicClient.Models.EventData","type":"Class"},{"name":"EventType","href":"AnthropicClient.Models.EventType.html","topicHref":"AnthropicClient.Models.EventType.html","topicUid":"AnthropicClient.Models.EventType","type":"Class"},{"name":"ExpiredMessageBatchResult","href":"AnthropicClient.Models.ExpiredMessageBatchResult.html","topicHref":"AnthropicClient.Models.ExpiredMessageBatchResult.html","topicUid":"AnthropicClient.Models.ExpiredMessageBatchResult","type":"Class"},{"name":"FunctionParameterAttribute","href":"AnthropicClient.Models.FunctionParameterAttribute.html","topicHref":"AnthropicClient.Models.FunctionParameterAttribute.html","topicUid":"AnthropicClient.Models.FunctionParameterAttribute","type":"Class"},{"name":"FunctionPropertyAttribute","href":"AnthropicClient.Models.FunctionPropertyAttribute.html","topicHref":"AnthropicClient.Models.FunctionPropertyAttribute.html","topicUid":"AnthropicClient.Models.FunctionPropertyAttribute","type":"Class"},{"name":"ITool","href":"AnthropicClient.Models.ITool.html","topicHref":"AnthropicClient.Models.ITool.html","topicUid":"AnthropicClient.Models.ITool","type":"Interface"},{"name":"ImageContent","href":"AnthropicClient.Models.ImageContent.html","topicHref":"AnthropicClient.Models.ImageContent.html","topicUid":"AnthropicClient.Models.ImageContent","type":"Class"},{"name":"ImageSource","href":"AnthropicClient.Models.ImageSource.html","topicHref":"AnthropicClient.Models.ImageSource.html","topicUid":"AnthropicClient.Models.ImageSource","type":"Class"},{"name":"ImageType","href":"AnthropicClient.Models.ImageType.html","topicHref":"AnthropicClient.Models.ImageType.html","topicUid":"AnthropicClient.Models.ImageType","type":"Class"},{"name":"InputProperty","href":"AnthropicClient.Models.InputProperty.html","topicHref":"AnthropicClient.Models.InputProperty.html","topicUid":"AnthropicClient.Models.InputProperty","type":"Class"},{"name":"InputSchema","href":"AnthropicClient.Models.InputSchema.html","topicHref":"AnthropicClient.Models.InputSchema.html","topicUid":"AnthropicClient.Models.InputSchema","type":"Class"},{"name":"InvalidRequestError","href":"AnthropicClient.Models.InvalidRequestError.html","topicHref":"AnthropicClient.Models.InvalidRequestError.html","topicUid":"AnthropicClient.Models.InvalidRequestError","type":"Class"},{"name":"JsonDelta","href":"AnthropicClient.Models.JsonDelta.html","topicHref":"AnthropicClient.Models.JsonDelta.html","topicUid":"AnthropicClient.Models.JsonDelta","type":"Class"},{"name":"Message","href":"AnthropicClient.Models.Message.html","topicHref":"AnthropicClient.Models.Message.html","topicUid":"AnthropicClient.Models.Message","type":"Class"},{"name":"MessageBatchDeleteResponse","href":"AnthropicClient.Models.MessageBatchDeleteResponse.html","topicHref":"AnthropicClient.Models.MessageBatchDeleteResponse.html","topicUid":"AnthropicClient.Models.MessageBatchDeleteResponse","type":"Class"},{"name":"MessageBatchRequest","href":"AnthropicClient.Models.MessageBatchRequest.html","topicHref":"AnthropicClient.Models.MessageBatchRequest.html","topicUid":"AnthropicClient.Models.MessageBatchRequest","type":"Class"},{"name":"MessageBatchRequestCounts","href":"AnthropicClient.Models.MessageBatchRequestCounts.html","topicHref":"AnthropicClient.Models.MessageBatchRequestCounts.html","topicUid":"AnthropicClient.Models.MessageBatchRequestCounts","type":"Class"},{"name":"MessageBatchRequestItem","href":"AnthropicClient.Models.MessageBatchRequestItem.html","topicHref":"AnthropicClient.Models.MessageBatchRequestItem.html","topicUid":"AnthropicClient.Models.MessageBatchRequestItem","type":"Class"},{"name":"MessageBatchResponse","href":"AnthropicClient.Models.MessageBatchResponse.html","topicHref":"AnthropicClient.Models.MessageBatchResponse.html","topicUid":"AnthropicClient.Models.MessageBatchResponse","type":"Class"},{"name":"MessageBatchResult","href":"AnthropicClient.Models.MessageBatchResult.html","topicHref":"AnthropicClient.Models.MessageBatchResult.html","topicUid":"AnthropicClient.Models.MessageBatchResult","type":"Class"},{"name":"MessageBatchResultItem","href":"AnthropicClient.Models.MessageBatchResultItem.html","topicHref":"AnthropicClient.Models.MessageBatchResultItem.html","topicUid":"AnthropicClient.Models.MessageBatchResultItem","type":"Class"},{"name":"MessageBatchResultType","href":"AnthropicClient.Models.MessageBatchResultType.html","topicHref":"AnthropicClient.Models.MessageBatchResultType.html","topicUid":"AnthropicClient.Models.MessageBatchResultType","type":"Class"},{"name":"MessageBatchStatus","href":"AnthropicClient.Models.MessageBatchStatus.html","topicHref":"AnthropicClient.Models.MessageBatchStatus.html","topicUid":"AnthropicClient.Models.MessageBatchStatus","type":"Class"},{"name":"MessageCompleteEventData","href":"AnthropicClient.Models.MessageCompleteEventData.html","topicHref":"AnthropicClient.Models.MessageCompleteEventData.html","topicUid":"AnthropicClient.Models.MessageCompleteEventData","type":"Class"},{"name":"MessageDelta","href":"AnthropicClient.Models.MessageDelta.html","topicHref":"AnthropicClient.Models.MessageDelta.html","topicUid":"AnthropicClient.Models.MessageDelta","type":"Class"},{"name":"MessageDeltaEventData","href":"AnthropicClient.Models.MessageDeltaEventData.html","topicHref":"AnthropicClient.Models.MessageDeltaEventData.html","topicUid":"AnthropicClient.Models.MessageDeltaEventData","type":"Class"},{"name":"MessageRequest","href":"AnthropicClient.Models.MessageRequest.html","topicHref":"AnthropicClient.Models.MessageRequest.html","topicUid":"AnthropicClient.Models.MessageRequest","type":"Class"},{"name":"MessageResponse","href":"AnthropicClient.Models.MessageResponse.html","topicHref":"AnthropicClient.Models.MessageResponse.html","topicUid":"AnthropicClient.Models.MessageResponse","type":"Class"},{"name":"MessageRole","href":"AnthropicClient.Models.MessageRole.html","topicHref":"AnthropicClient.Models.MessageRole.html","topicUid":"AnthropicClient.Models.MessageRole","type":"Class"},{"name":"MessageStartEventData","href":"AnthropicClient.Models.MessageStartEventData.html","topicHref":"AnthropicClient.Models.MessageStartEventData.html","topicUid":"AnthropicClient.Models.MessageStartEventData","type":"Class"},{"name":"MessageStopEventData","href":"AnthropicClient.Models.MessageStopEventData.html","topicHref":"AnthropicClient.Models.MessageStopEventData.html","topicUid":"AnthropicClient.Models.MessageStopEventData","type":"Class"},{"name":"NotFoundError","href":"AnthropicClient.Models.NotFoundError.html","topicHref":"AnthropicClient.Models.NotFoundError.html","topicUid":"AnthropicClient.Models.NotFoundError","type":"Class"},{"name":"OverloadedError","href":"AnthropicClient.Models.OverloadedError.html","topicHref":"AnthropicClient.Models.OverloadedError.html","topicUid":"AnthropicClient.Models.OverloadedError","type":"Class"},{"name":"Page","href":"AnthropicClient.Models.Page.html","topicHref":"AnthropicClient.Models.Page.html","topicUid":"AnthropicClient.Models.Page","type":"Class"},{"name":"Page","href":"AnthropicClient.Models.Page-1.html","topicHref":"AnthropicClient.Models.Page-1.html","topicUid":"AnthropicClient.Models.Page`1","type":"Class"},{"name":"PagingRequest","href":"AnthropicClient.Models.PagingRequest.html","topicHref":"AnthropicClient.Models.PagingRequest.html","topicUid":"AnthropicClient.Models.PagingRequest","type":"Class"},{"name":"PermissionError","href":"AnthropicClient.Models.PermissionError.html","topicHref":"AnthropicClient.Models.PermissionError.html","topicUid":"AnthropicClient.Models.PermissionError","type":"Class"},{"name":"PingEventData","href":"AnthropicClient.Models.PingEventData.html","topicHref":"AnthropicClient.Models.PingEventData.html","topicUid":"AnthropicClient.Models.PingEventData","type":"Class"},{"name":"RateLimitError","href":"AnthropicClient.Models.RateLimitError.html","topicHref":"AnthropicClient.Models.RateLimitError.html","topicUid":"AnthropicClient.Models.RateLimitError","type":"Class"},{"name":"SpecificToolChoice","href":"AnthropicClient.Models.SpecificToolChoice.html","topicHref":"AnthropicClient.Models.SpecificToolChoice.html","topicUid":"AnthropicClient.Models.SpecificToolChoice","type":"Class"},{"name":"StopReasonType","href":"AnthropicClient.Models.StopReasonType.html","topicHref":"AnthropicClient.Models.StopReasonType.html","topicUid":"AnthropicClient.Models.StopReasonType","type":"Class"},{"name":"StreamMessageRequest","href":"AnthropicClient.Models.StreamMessageRequest.html","topicHref":"AnthropicClient.Models.StreamMessageRequest.html","topicUid":"AnthropicClient.Models.StreamMessageRequest","type":"Class"},{"name":"SucceededMessageBatchResult","href":"AnthropicClient.Models.SucceededMessageBatchResult.html","topicHref":"AnthropicClient.Models.SucceededMessageBatchResult.html","topicUid":"AnthropicClient.Models.SucceededMessageBatchResult","type":"Class"},{"name":"TextContent","href":"AnthropicClient.Models.TextContent.html","topicHref":"AnthropicClient.Models.TextContent.html","topicUid":"AnthropicClient.Models.TextContent","type":"Class"},{"name":"TextDelta","href":"AnthropicClient.Models.TextDelta.html","topicHref":"AnthropicClient.Models.TextDelta.html","topicUid":"AnthropicClient.Models.TextDelta","type":"Class"},{"name":"TokenCountResponse","href":"AnthropicClient.Models.TokenCountResponse.html","topicHref":"AnthropicClient.Models.TokenCountResponse.html","topicUid":"AnthropicClient.Models.TokenCountResponse","type":"Class"},{"name":"Tool","href":"AnthropicClient.Models.Tool.html","topicHref":"AnthropicClient.Models.Tool.html","topicUid":"AnthropicClient.Models.Tool","type":"Class"},{"name":"ToolCall","href":"AnthropicClient.Models.ToolCall.html","topicHref":"AnthropicClient.Models.ToolCall.html","topicUid":"AnthropicClient.Models.ToolCall","type":"Class"},{"name":"ToolCallResult","href":"AnthropicClient.Models.ToolCallResult-1.html","topicHref":"AnthropicClient.Models.ToolCallResult-1.html","topicUid":"AnthropicClient.Models.ToolCallResult`1","type":"Class"},{"name":"ToolChoice","href":"AnthropicClient.Models.ToolChoice.html","topicHref":"AnthropicClient.Models.ToolChoice.html","topicUid":"AnthropicClient.Models.ToolChoice","type":"Class"},{"name":"ToolChoiceType","href":"AnthropicClient.Models.ToolChoiceType.html","topicHref":"AnthropicClient.Models.ToolChoiceType.html","topicUid":"AnthropicClient.Models.ToolChoiceType","type":"Class"},{"name":"ToolResultContent","href":"AnthropicClient.Models.ToolResultContent.html","topicHref":"AnthropicClient.Models.ToolResultContent.html","topicUid":"AnthropicClient.Models.ToolResultContent","type":"Class"},{"name":"ToolUseContent","href":"AnthropicClient.Models.ToolUseContent.html","topicHref":"AnthropicClient.Models.ToolUseContent.html","topicUid":"AnthropicClient.Models.ToolUseContent","type":"Class"},{"name":"Usage","href":"AnthropicClient.Models.Usage.html","topicHref":"AnthropicClient.Models.Usage.html","topicUid":"AnthropicClient.Models.Usage","type":"Class"}]}],"memberLayout":"SamePage"} diff --git a/docs/index.html b/docs/index.html index d0cf14b..e2d5af2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -916,6 +916,166 @@ foreach (var content in response.Value.Content) } } +

    Message Batches

    +

    Anthropic provides a feature called Message Batches that allows you to send multiple messages in a single request. This feature is covered in depth in Anthropic's API Documentation.

    +

    Create a message batch

    +

    You can create a message batch that will consist of one or more requests to create messages.

    +
    using AnthropicClient;
    +using AnthropicClient.Models;
    +
    +var request = new MessageBatchRequest([
    +  new(
    +    Guid.NewGuid().ToString(),
    +    new(
    +      model: AnthropicModels.Claude3Haiku,
    +      messages: [new(MessageRole.User, [new TextContent("Hello!")])]
    +    )
    +  ),
    +]);
    +
    +var response = await client.CreateMessageBatchAsync(request);
    +
    +if (response.IsFailure)
    +{
    +  Console.WriteLine("Failed to create message batch");
    +  Console.WriteLine("Error Type: {0}", response.Error.Error.Type);
    +  Console.WriteLine("Error Message: {0}", response.Error.Error.Message);
    +  return;
    +}
    +
    +Console.WriteLine("Message Batch Id: {0}", response.Value.Id);
    +
    +

    Get a message batch

    +

    You can retrieve a message batch by its id.

    +
    using AnthropicClient;
    +using AnthropicClient.Models;
    +
    +var response = await client.GetMessageBatchAsync("batch-id");
    +
    +if (response.IsFailure)
    +{
    +  Console.WriteLine("Failed to get message batch");
    +  Console.WriteLine("Error Type: {0}", response.Error.Error.Type);
    +  Console.WriteLine("Error Message: {0}", response.Error.Error.Message);
    +  return;
    +}
    +
    +Console.WriteLine("Message Batch Id: {0}", response.Value.Id);
    +
    +

    Get a message batch results

    +

    You can retrieve the results of a message batch by its id. The results are returned as an IAsyncEnumerable collection so that they can be streamed and processed as they are received.

    +
    using AnthropicClient;
    +using AnthropicClient.Models;
    +
    +var response = await client.GetMessageBatchResultsAsync("batch-id");
    +
    +if (response.IsFailure)
    +{
    +  Console.WriteLine("Failed to get message batch results");
    +  Console.WriteLine("Error Type: {0}", response.Error.Error.Type);
    +  Console.WriteLine("Error Message: {0}", response.Error.Error.Message);
    +  return;
    +}
    +
    +await foreach (var item in response.Value)
    +{
    +  Console.WriteLine("Item Custom Id: {0}", result.CustomId);
    +  
    +  switch (item.Result)
    +  {
    +    case SucceededMessageBatchResult successResult:
    +      foreach (var content in successResult.Message.Content)
    +      {
    +        if (content is TextContent textContent)
    +        {
    +          Console.WriteLine("Message Batch Result: {0}", textContent.Text);
    +        }
    +      }
    +      break;
    +    default:
    +      Console.WriteLine("Message Batch Result: {0}", item.Result.Type);
    +      break;
    +  }
    +}
    +
    +

    List message batches

    +

    You can retrieve a page of message batches.

    +
    using AnthropicClient;
    +using AnthropicClient.Models;
    +
    +var response = await client.ListMessageBatchesAsync();
    +
    +if (response.IsFailure)
    +{
    +  Console.WriteLine("Failed to list message batches");
    +  Console.WriteLine("Error Type: {0}", response.Error.Error.Type);
    +  Console.WriteLine("Error Message: {0}", response.Error.Error.Message);
    +  return;
    +}
    +
    +foreach (var batch in response.Value.Data)
    +{
    +  Console.WriteLine("Message Batch Id: {0}", batch.Id);
    +}
    +
    +

    List all message batches

    +

    You can also retrieve all the pages of message batches without having to implement pagination yourself. This is done by returning an IAsyncEnumerable collection that can be streamed and processed as the pages are received.

    +
    using AnthropicClient;
    +using AnthropicClient.Models;
    +
    +var pageResponses = client.ListAllMessageBatchesAsync();
    +
    +await foreach (var response in pageResponses)
    +{
    +  if (response.IsFailure)
    +  {
    +    Console.WriteLine("Failed to list message batches");
    +    Console.WriteLine("Error Type: {0}", response.Error.Error.Type);
    +    Console.WriteLine("Error Message: {0}", response.Error.Error.Message);
    +    return;
    +  }
    +
    +  foreach (var batch in response.Value.Data)
    +  {
    +    Console.WriteLine("Message Batch Id: {0}", batch.Id);
    +  }
    +}
    +
    +

    Cancel a message batch

    +

    You can cancel a message batch by its id.

    +
    using AnthropicClient;
    +using AnthropicClient.Models;
    +
    +var response = await client.CancelMessageBatchAsync("batch-id");
    +
    +if (response.IsFailure)
    +{
    +  Console.WriteLine("Failed to cancel message batch");
    +  Console.WriteLine("Error Type: {0}", response.Error.Error.Type);
    +  Console.WriteLine("Error Message: {0}", response.Error.Error.Message);
    +  return;
    +}
    +
    +Console.WriteLine("Message Batch Id: {0}", response.Value.Id);
    +Console.WriteLine("Message Batch Status: {0}", response.Value.ProcessingStatus);
    +
    +

    Delete a message batch

    +

    You can delete a message batch that is no longer being processed by its id.

    +
    using AnthropicClient;
    +using AnthropicClient.Models;
    +
    +var response = await client.DeleteMessageBatchAsync("batch-id");
    +
    +if (response.IsFailure)
    +{
    +  Console.WriteLine("Failed to delete message batch");
    +  Console.WriteLine("Error Type: {0}", response.Error.Error.Type);
    +  Console.WriteLine("Error Message: {0}", response.Error.Error.Message);
    +  return;
    +}
    +
    +Console.WriteLine("Message Batch Id: {0}", response.Value.Id);
    +
    diff --git a/docs/index.json b/docs/index.json index a20aa29..93ccff0 100644 --- a/docs/index.json +++ b/docs/index.json @@ -2,12 +2,12 @@ "api/AnthropicClient.AnthropicApiClient.html": { "href": "api/AnthropicClient.AnthropicApiClient.html", "title": "Class AnthropicApiClient | AnthropicClient", - "keywords": "Class AnthropicApiClient Namespace AnthropicClient Assembly AnthropicClient.dll Represents a client for interacting with the Anthropic API. public class AnthropicApiClient : IAnthropicApiClient Inheritance object AnthropicApiClient Implements IAnthropicApiClient Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors AnthropicApiClient(string, HttpClient) Initializes a new instance of the AnthropicApiClient class. public AnthropicApiClient(string apiKey, HttpClient httpClient) Parameters apiKey string The API key to use for the client. httpClient HttpClient The HTTP client to use for the client. Exceptions ArgumentNullException Thrown when the API key or HTTP client is null. Methods CountMessageTokensAsync(CountMessageTokensRequest) Counts the tokens in a message asynchronously. public Task> CountMessageTokensAsync(CountMessageTokensRequest request) Parameters request CountMessageTokensRequest The count message tokens request. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is TokenCountResponse. CreateMessageAsync(MessageRequest) Creates a message asynchronously. public Task> CreateMessageAsync(MessageRequest request) Parameters request MessageRequest The message request to create. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult. CreateMessageAsync(StreamMessageRequest) Creates a message asynchronously and streams the response. public IAsyncEnumerable CreateMessageAsync(StreamMessageRequest request) Parameters request StreamMessageRequest The message request to create. Returns IAsyncEnumerable An asynchronous enumerable that yields the response event by event. GetModelAsync(string) Gets a model by its ID asynchronously. public Task> GetModelAsync(string modelId) Parameters modelId string The ID of the model to get. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is AnthropicModel. ListAllModelsAsync(int) Lists the models asynchronously public IAsyncEnumerable>> ListAllModelsAsync(int limit = 20) Parameters limit int The maximum number of models to return in each page. Returns IAsyncEnumerable>> An asynchronous enumerable that yields the response as an AnthropicResult where T is Page where T is AnthropicModel. ListModelsAsync(PagingRequest?) Lists the models asynchronously. public Task>> ListModelsAsync(PagingRequest? request = null) Parameters request PagingRequest The paging request to use for listing the models. Returns Task>> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is Page where T is AnthropicModel." + "keywords": "Class AnthropicApiClient Namespace AnthropicClient Assembly AnthropicClient.dll Represents a client for interacting with the Anthropic API. public class AnthropicApiClient : IAnthropicApiClient Inheritance object AnthropicApiClient Implements IAnthropicApiClient Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors AnthropicApiClient(string, HttpClient) Initializes a new instance of the AnthropicApiClient class. public AnthropicApiClient(string apiKey, HttpClient httpClient) Parameters apiKey string The API key to use for the client. httpClient HttpClient The HTTP client to use for the client. Exceptions ArgumentNullException Thrown when the API key or HTTP client is null. Methods CancelMessageBatchAsync(string) Cancels a message batch asynchronously. public Task> CancelMessageBatchAsync(string batchId) Parameters batchId string The ID of the message batch to cancel. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is MessageBatchResponse. CountMessageTokensAsync(CountMessageTokensRequest) Counts the tokens in a message asynchronously. public Task> CountMessageTokensAsync(CountMessageTokensRequest request) Parameters request CountMessageTokensRequest The count message tokens request. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is TokenCountResponse. CreateMessageAsync(MessageRequest) Creates a message asynchronously. public Task> CreateMessageAsync(MessageRequest request) Parameters request MessageRequest The message request to create. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult. CreateMessageAsync(StreamMessageRequest) Creates a message asynchronously and streams the response. public IAsyncEnumerable CreateMessageAsync(StreamMessageRequest request) Parameters request StreamMessageRequest The message request to create. Returns IAsyncEnumerable An asynchronous enumerable that yields the response event by event. CreateMessageBatchAsync(MessageBatchRequest) Creates a batch of messages asynchronously. public Task> CreateMessageBatchAsync(MessageBatchRequest request) Parameters request MessageBatchRequest The message batch request to create. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is MessageBatchResponse. DeleteMessageBatchAsync(string) Deletes a message batch asynchronously. public Task> DeleteMessageBatchAsync(string batchId) Parameters batchId string The ID of the message batch to delete. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is MessageBatchDeleteResponse. GetMessageBatchAsync(string) Gets a message batch asynchronously. public Task> GetMessageBatchAsync(string batchId) Parameters batchId string The ID of the message batch to get. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is MessageBatchResponse. GetMessageBatchResultsAsync(string) Gets the results of a message batch asynchronously. public Task>> GetMessageBatchResultsAsync(string batchId) Parameters batchId string The ID of the message batch to get the results for. Returns Task>> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is IAsyncEnumerable where T is MessageBatchResultItem. GetModelAsync(string) Gets a model by its ID asynchronously. public Task> GetModelAsync(string modelId) Parameters modelId string The ID of the model to get. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is AnthropicModel. ListAllMessageBatchesAsync(int) Lists all message batches asynchronously. public IAsyncEnumerable>> ListAllMessageBatchesAsync(int limit = 20) Parameters limit int The maximum number of message batches to return in each page. Returns IAsyncEnumerable>> An asynchronous enumerable that yields the response as an AnthropicResult where T is Page where T is MessageBatchResponse. ListAllModelsAsync(int) Lists the models asynchronously public IAsyncEnumerable>> ListAllModelsAsync(int limit = 20) Parameters limit int The maximum number of models to return in each page. Returns IAsyncEnumerable>> An asynchronous enumerable that yields the response as an AnthropicResult where T is Page where T is AnthropicModel. ListMessageBatchesAsync(PagingRequest?) Lists the message batches asynchronously. public Task>> ListMessageBatchesAsync(PagingRequest? request = null) Parameters request PagingRequest The paging request to use for listing the message batches. Returns Task>> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is Page where T is MessageBatchResponse. ListModelsAsync(PagingRequest?) Lists the models asynchronously. public Task>> ListModelsAsync(PagingRequest? request = null) Parameters request PagingRequest The paging request to use for listing the models. Returns Task>> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is Page where T is AnthropicModel." }, "api/AnthropicClient.IAnthropicApiClient.html": { "href": "api/AnthropicClient.IAnthropicApiClient.html", "title": "Interface IAnthropicApiClient | AnthropicClient", - "keywords": "Interface IAnthropicApiClient Namespace AnthropicClient Assembly AnthropicClient.dll Represents a client for interacting with the Anthropic API. public interface IAnthropicApiClient Methods CountMessageTokensAsync(CountMessageTokensRequest) Counts the tokens in a message asynchronously. Task> CountMessageTokensAsync(CountMessageTokensRequest request) Parameters request CountMessageTokensRequest The count message tokens request. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is TokenCountResponse. CreateMessageAsync(MessageRequest) Creates a message asynchronously. Task> CreateMessageAsync(MessageRequest request) Parameters request MessageRequest The message request to create. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult. CreateMessageAsync(StreamMessageRequest) Creates a message asynchronously and streams the response. IAsyncEnumerable CreateMessageAsync(StreamMessageRequest request) Parameters request StreamMessageRequest The message request to create. Returns IAsyncEnumerable An asynchronous enumerable that yields the response event by event. GetModelAsync(string) Gets a model by its ID asynchronously. Task> GetModelAsync(string modelId) Parameters modelId string The ID of the model to get. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is AnthropicModel. ListAllModelsAsync(int) Lists the models asynchronously IAsyncEnumerable>> ListAllModelsAsync(int limit = 20) Parameters limit int The maximum number of models to return in each page. Returns IAsyncEnumerable>> An asynchronous enumerable that yields the response as an AnthropicResult where T is Page where T is AnthropicModel. ListModelsAsync(PagingRequest?) Lists the models asynchronously. Task>> ListModelsAsync(PagingRequest? request = null) Parameters request PagingRequest The paging request to use for listing the models. Returns Task>> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is Page where T is AnthropicModel." + "keywords": "Interface IAnthropicApiClient Namespace AnthropicClient Assembly AnthropicClient.dll Represents a client for interacting with the Anthropic API. public interface IAnthropicApiClient Methods CancelMessageBatchAsync(string) Cancels a message batch asynchronously. Task> CancelMessageBatchAsync(string batchId) Parameters batchId string The ID of the message batch to cancel. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is MessageBatchResponse. CountMessageTokensAsync(CountMessageTokensRequest) Counts the tokens in a message asynchronously. Task> CountMessageTokensAsync(CountMessageTokensRequest request) Parameters request CountMessageTokensRequest The count message tokens request. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is TokenCountResponse. CreateMessageAsync(MessageRequest) Creates a message asynchronously. Task> CreateMessageAsync(MessageRequest request) Parameters request MessageRequest The message request to create. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult. CreateMessageAsync(StreamMessageRequest) Creates a message asynchronously and streams the response. IAsyncEnumerable CreateMessageAsync(StreamMessageRequest request) Parameters request StreamMessageRequest The message request to create. Returns IAsyncEnumerable An asynchronous enumerable that yields the response event by event. CreateMessageBatchAsync(MessageBatchRequest) Creates a batch of messages asynchronously. Task> CreateMessageBatchAsync(MessageBatchRequest request) Parameters request MessageBatchRequest The message batch request to create. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is MessageBatchResponse. DeleteMessageBatchAsync(string) Deletes a message batch asynchronously. Task> DeleteMessageBatchAsync(string batchId) Parameters batchId string The ID of the message batch to delete. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is MessageBatchDeleteResponse. GetMessageBatchAsync(string) Gets a message batch asynchronously. Task> GetMessageBatchAsync(string batchId) Parameters batchId string The ID of the message batch to get. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is MessageBatchResponse. GetMessageBatchResultsAsync(string) Gets the results of a message batch asynchronously. Task>> GetMessageBatchResultsAsync(string batchId) Parameters batchId string The ID of the message batch to get the results for. Returns Task>> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is IAsyncEnumerable where T is MessageBatchResultItem. GetModelAsync(string) Gets a model by its ID asynchronously. Task> GetModelAsync(string modelId) Parameters modelId string The ID of the model to get. Returns Task> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is AnthropicModel. ListAllMessageBatchesAsync(int) Lists all message batches asynchronously. IAsyncEnumerable>> ListAllMessageBatchesAsync(int limit = 20) Parameters limit int The maximum number of message batches to return in each page. Returns IAsyncEnumerable>> An asynchronous enumerable that yields the response as an AnthropicResult where T is Page where T is MessageBatchResponse. ListAllModelsAsync(int) Lists the models asynchronously IAsyncEnumerable>> ListAllModelsAsync(int limit = 20) Parameters limit int The maximum number of models to return in each page. Returns IAsyncEnumerable>> An asynchronous enumerable that yields the response as an AnthropicResult where T is Page where T is AnthropicModel. ListMessageBatchesAsync(PagingRequest?) Lists the message batches asynchronously. Task>> ListMessageBatchesAsync(PagingRequest? request = null) Parameters request PagingRequest The paging request to use for listing the message batches. Returns Task>> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is Page where T is MessageBatchResponse. ListModelsAsync(PagingRequest?) Lists the models asynchronously. Task>> ListModelsAsync(PagingRequest? request = null) Parameters request PagingRequest The paging request to use for listing the models. Returns Task>> A task that represents the asynchronous operation. The task result contains the response as an AnthropicResult where T is Page where T is AnthropicModel." }, "api/AnthropicClient.Models.AnthropicError.html": { "href": "api/AnthropicClient.Models.AnthropicError.html", @@ -74,6 +74,11 @@ "title": "Class CacheControlType | AnthropicClient", "keywords": "Class CacheControlType Namespace AnthropicClient.Models Assembly AnthropicClient.dll Provides constants for cache control types. public static class CacheControlType Inheritance object CacheControlType Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Fields Ephemeral The cache control type for an ephemeral cache. public const string Ephemeral = \"ephemeral\" Field Value string" }, + "api/AnthropicClient.Models.CanceledMessageBatchResult.html": { + "href": "api/AnthropicClient.Models.CanceledMessageBatchResult.html", + "title": "Class CanceledMessageBatchResult | AnthropicClient", + "keywords": "Class CanceledMessageBatchResult Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message batch result that was cancelled. public class CanceledMessageBatchResult : MessageBatchResult Inheritance object MessageBatchResult CanceledMessageBatchResult Inherited Members MessageBatchResult.Type object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors CanceledMessageBatchResult() Initializes a new instance of the CanceledMessageBatchResult class. public CanceledMessageBatchResult()" + }, "api/AnthropicClient.Models.Content.html": { "href": "api/AnthropicClient.Models.Content.html", "title": "Class Content | AnthropicClient", @@ -144,6 +149,11 @@ "title": "Class ErrorType | AnthropicClient", "keywords": "Class ErrorType Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents the error type. public class ErrorType Inheritance object ErrorType Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Fields ApiError Represents the api_error type. public const string ApiError = \"api_error\" Field Value string AuthenticationError Represents the authentication_error type. public const string AuthenticationError = \"authentication_error\" Field Value string InvalidRequestError Represents the invalid_request error type. public const string InvalidRequestError = \"invalid_request_error\" Field Value string NotFoundError Represents the not_found_error type. public const string NotFoundError = \"not_found_error\" Field Value string OverloadedError Represents the overloaded_error type. public const string OverloadedError = \"overloaded_error\" Field Value string PermissionError Represents the permission_error type. public const string PermissionError = \"permission_error\" Field Value string RateLimitError Represents the rate_limit_error type. public const string RateLimitError = \"rate_limit_error\" Field Value string" }, + "api/AnthropicClient.Models.ErroredMessageBatchResult.html": { + "href": "api/AnthropicClient.Models.ErroredMessageBatchResult.html", + "title": "Class ErroredMessageBatchResult | AnthropicClient", + "keywords": "Class ErroredMessageBatchResult Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message batch result that contains an error response. public class ErroredMessageBatchResult : MessageBatchResult Inheritance object MessageBatchResult ErroredMessageBatchResult Inherited Members MessageBatchResult.Type object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors ErroredMessageBatchResult() Initializes a new instance of the ErroredMessageBatchResult class. public ErroredMessageBatchResult() Properties Error Gets the error of the message batch result. public AnthropicError Error { get; init; } Property Value AnthropicError" + }, "api/AnthropicClient.Models.EventData.html": { "href": "api/AnthropicClient.Models.EventData.html", "title": "Class EventData | AnthropicClient", @@ -154,6 +164,11 @@ "title": "Class EventType | AnthropicClient", "keywords": "Class EventType Namespace AnthropicClient.Models Assembly AnthropicClient.dll Provides constants for event types. public static class EventType Inheritance object EventType Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Fields ContentBlockDelta Represents the content_block_delta event type. public const string ContentBlockDelta = \"content_block_delta\" Field Value string ContentBlockStart Represents the content_block_start event type. public const string ContentBlockStart = \"content_block_start\" Field Value string ContentBlockStop Represents the content_block_stop event type. public const string ContentBlockStop = \"content_block_stop\" Field Value string Error Represents the error event type. public const string Error = \"error\" Field Value string MessageComplete Represents the message_complete event type. public const string MessageComplete = \"message_complete\" Field Value string MessageDelta Represents the message_delta event type. public const string MessageDelta = \"message_delta\" Field Value string MessageStart Represents the message_start event type. public const string MessageStart = \"message_start\" Field Value string MessageStop Represents the message_stop event type. public const string MessageStop = \"message_stop\" Field Value string Ping Represents the ping event type. public const string Ping = \"ping\" Field Value string" }, + "api/AnthropicClient.Models.ExpiredMessageBatchResult.html": { + "href": "api/AnthropicClient.Models.ExpiredMessageBatchResult.html", + "title": "Class ExpiredMessageBatchResult | AnthropicClient", + "keywords": "Class ExpiredMessageBatchResult Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message batch result that has expired. public class ExpiredMessageBatchResult : MessageBatchResult Inheritance object MessageBatchResult ExpiredMessageBatchResult Inherited Members MessageBatchResult.Type object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors ExpiredMessageBatchResult() Initializes a new instance of the ExpiredMessageBatchResult class. public ExpiredMessageBatchResult()" + }, "api/AnthropicClient.Models.FunctionParameterAttribute.html": { "href": "api/AnthropicClient.Models.FunctionParameterAttribute.html", "title": "Class FunctionParameterAttribute | AnthropicClient", @@ -209,6 +224,51 @@ "title": "Class Message | AnthropicClient", "keywords": "Class Message Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message. public class Message Inheritance object Message Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors Message(string, List) Initializes a new instance of the Message class. public Message(string role, List content) Parameters role string The role of the message. content List The contents of the message. Exceptions ArgumentException Thrown when the role is invalid. ArgumentNullException Thrown when the role or content is null. Properties Content Gets the contents of the message. public List Content { get; init; } Property Value List Role Gets the role of the message. public string Role { get; init; } Property Value string" }, + "api/AnthropicClient.Models.MessageBatchDeleteResponse.html": { + "href": "api/AnthropicClient.Models.MessageBatchDeleteResponse.html", + "title": "Class MessageBatchDeleteResponse | AnthropicClient", + "keywords": "Class MessageBatchDeleteResponse Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message batch delete response. public class MessageBatchDeleteResponse Inheritance object MessageBatchDeleteResponse Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Properties Id Gets the ID of the message batch that was deleted. public string Id { get; init; } Property Value string Type Gets the type of the message batch response. public string Type { get; init; } Property Value string" + }, + "api/AnthropicClient.Models.MessageBatchRequest.html": { + "href": "api/AnthropicClient.Models.MessageBatchRequest.html", + "title": "Class MessageBatchRequest | AnthropicClient", + "keywords": "Class MessageBatchRequest Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a request to create a batch of messages. public class MessageBatchRequest Inheritance object MessageBatchRequest Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors MessageBatchRequest(List) Initializes a new instance of the MessageBatchRequest class. public MessageBatchRequest(List requests) Parameters requests List The requests to create messages. Exceptions ArgumentException Thrown when requests is empty. Properties Requests Gets the requests to create messages. public List Requests { get; init; } Property Value List" + }, + "api/AnthropicClient.Models.MessageBatchRequestCounts.html": { + "href": "api/AnthropicClient.Models.MessageBatchRequestCounts.html", + "title": "Class MessageBatchRequestCounts | AnthropicClient", + "keywords": "Class MessageBatchRequestCounts Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents the counts of requests in a batch of messages. public class MessageBatchRequestCounts Inheritance object MessageBatchRequestCounts Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Properties Canceled Gets the number of requests in the batch that were cancelled. public int Canceled { get; init; } Property Value int Errored Gets the number of requests in the batch that errored. public int Errored { get; init; } Property Value int Expired Gets the number of requests in the batch that expired. public int Expired { get; init; } Property Value int Processing Gets the number of requests in the batch that are processing. public int Processing { get; init; } Property Value int Succeeded Gets the number of requests in the batch that succeeded. public int Succeeded { get; init; } Property Value int" + }, + "api/AnthropicClient.Models.MessageBatchRequestItem.html": { + "href": "api/AnthropicClient.Models.MessageBatchRequestItem.html", + "title": "Class MessageBatchRequestItem | AnthropicClient", + "keywords": "Class MessageBatchRequestItem Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents an item in a batch of messages. public class MessageBatchRequestItem Inheritance object MessageBatchRequestItem Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors MessageBatchRequestItem(string, MessageRequest) Initializes a new instance of the MessageBatchRequestItem class. public MessageBatchRequestItem(string customId, MessageRequest messageRequest) Parameters customId string The custom identifier for the message. messageRequest MessageRequest The message request parameters. Exceptions ArgumentException Thrown when customId is null or whitespace. ArgumentException Thrown when messageRequest is null. Properties CustomId Gets the custom identifier for the message. [JsonPropertyName(\"custom_id\")] public string CustomId { get; init; } Property Value string Params Gets the message request parameters. public MessageRequest Params { get; init; } Property Value MessageRequest" + }, + "api/AnthropicClient.Models.MessageBatchResponse.html": { + "href": "api/AnthropicClient.Models.MessageBatchResponse.html", + "title": "Class MessageBatchResponse | AnthropicClient", + "keywords": "Class MessageBatchResponse Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a response to a batch of messages. public class MessageBatchResponse Inheritance object MessageBatchResponse Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Properties ArchivedAt Gets the date and time when the batch was archived. [JsonPropertyName(\"archived_at\")] public DateTimeOffset? ArchivedAt { get; init; } Property Value DateTimeOffset? CancelInitiatedAt Gets the date and time when the batch cancellation was initiated. [JsonPropertyName(\"cancel_initiated_at\")] public DateTimeOffset? CancelInitiatedAt { get; init; } Property Value DateTimeOffset? CreatedAt Gets the date and time when the batch was created. [JsonPropertyName(\"created_at\")] public DateTimeOffset CreatedAt { get; init; } Property Value DateTimeOffset EndedAt Gets the date and time when the batch ended. [JsonPropertyName(\"ended_at\")] public DateTimeOffset? EndedAt { get; init; } Property Value DateTimeOffset? ExpiresAt Gets the date and time when the batch expires. [JsonPropertyName(\"expires_at\")] public DateTimeOffset ExpiresAt { get; init; } Property Value DateTimeOffset Id Gets the identifier of the batch. public string Id { get; init; } Property Value string ProcessingStatus Gets the processing status of the batch. [JsonPropertyName(\"processing_status\")] public string ProcessingStatus { get; init; } Property Value string RequestCounts Gets the counts of requests in the batch. [JsonPropertyName(\"request_counts\")] public MessageBatchRequestCounts RequestCounts { get; init; } Property Value MessageBatchRequestCounts ResultsUrl Gets the URL to the results of the batch. [JsonPropertyName(\"results_url\")] public string? ResultsUrl { get; init; } Property Value string Type Gets the type of the batch. public string Type { get; init; } Property Value string" + }, + "api/AnthropicClient.Models.MessageBatchResult.html": { + "href": "api/AnthropicClient.Models.MessageBatchResult.html", + "title": "Class MessageBatchResult | AnthropicClient", + "keywords": "Class MessageBatchResult Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message batch result. public abstract class MessageBatchResult Inheritance object MessageBatchResult Derived CanceledMessageBatchResult ErroredMessageBatchResult ExpiredMessageBatchResult SucceededMessageBatchResult Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors MessageBatchResult(string) Initializes a new instance of the MessageBatchResult class. public MessageBatchResult(string type) Parameters type string The type of the message batch result. Properties Type Gets the type of the message batch result. public string Type { get; init; } Property Value string" + }, + "api/AnthropicClient.Models.MessageBatchResultItem.html": { + "href": "api/AnthropicClient.Models.MessageBatchResultItem.html", + "title": "Class MessageBatchResultItem | AnthropicClient", + "keywords": "Class MessageBatchResultItem Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message batch result item. public class MessageBatchResultItem Inheritance object MessageBatchResultItem Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Properties CustomId Gets the custom ID of the message batch result item. [JsonPropertyName(\"custom_id\")] public string CustomId { get; init; } Property Value string Result Gets the result of the message batch result item. public MessageBatchResult Result { get; init; } Property Value MessageBatchResult" + }, + "api/AnthropicClient.Models.MessageBatchResultType.html": { + "href": "api/AnthropicClient.Models.MessageBatchResultType.html", + "title": "Class MessageBatchResultType | AnthropicClient", + "keywords": "Class MessageBatchResultType Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents the types of message batch results. public static class MessageBatchResultType Inheritance object MessageBatchResultType Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Fields Canceled Represents a canceled message batch result. public const string Canceled = \"canceled\" Field Value string Errored Represents an errored message batch result. public const string Errored = \"errored\" Field Value string Expired Represents an expired message batch result. public const string Expired = \"expired\" Field Value string Succeeded Represents a succeeded message batch result. public const string Succeeded = \"succeeded\" Field Value string" + }, + "api/AnthropicClient.Models.MessageBatchStatus.html": { + "href": "api/AnthropicClient.Models.MessageBatchStatus.html", + "title": "Class MessageBatchStatus | AnthropicClient", + "keywords": "Class MessageBatchStatus Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents the status of a message batch. public static class MessageBatchStatus Inheritance object MessageBatchStatus Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Fields Canceling The status of a message batch that is being canceled. public const string Canceling = \"canceling\" Field Value string Ended The status of a message batch that has ended. public const string Ended = \"ended\" Field Value string InProgress The status of a message batch that is in progress. public const string InProgress = \"in_progress\" Field Value string" + }, "api/AnthropicClient.Models.MessageCompleteEventData.html": { "href": "api/AnthropicClient.Models.MessageCompleteEventData.html", "title": "Class MessageCompleteEventData | AnthropicClient", @@ -304,6 +364,11 @@ "title": "Class StreamMessageRequest | AnthropicClient", "keywords": "Class StreamMessageRequest Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message request. public class StreamMessageRequest : BaseMessageRequest Inheritance object BaseMessageRequest StreamMessageRequest Inherited Members BaseMessageRequest.Model BaseMessageRequest.System BaseMessageRequest.SystemMessages BaseMessageRequest.SystemPrompt BaseMessageRequest.Messages BaseMessageRequest.MaxTokens BaseMessageRequest.Metadata BaseMessageRequest.StopSequences BaseMessageRequest.Temperature BaseMessageRequest.TopK BaseMessageRequest.TopP BaseMessageRequest.ToolChoice BaseMessageRequest.Tools BaseMessageRequest.Stream object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors StreamMessageRequest(string, List, int, string?, Dictionary?, decimal, int?, decimal?, ToolChoice?, List?, List?, List?) Initializes a new instance of the StreamMessageRequest class. public StreamMessageRequest(string model, List messages, int maxTokens = 1024, string? system = null, Dictionary? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List? tools = null, List? stopSequences = null, List? systemMessages = null) Parameters model string The model ID to use for the request. messages List The messages to send to the model. maxTokens int The maximum number of tokens to generate. system string The system prompt to use for the request. metadata Dictionary The metadata to include with the request. temperature decimal The temperature to use for the request. topK int? The top-K value to use for the request. topP decimal? The top-P value to use for the request. toolChoice ToolChoice The tool choice mode to use for the request. tools List The tools to use for the request. stopSequences List The prompt stop sequences. systemMessages List The system messages to include with the request. Exceptions ArgumentNullException Thrown when the model or messages is null. ArgumentException Thrown when the messages contain no messages. ArgumentException Thrown when the max tokens is less than one. ArgumentException Thrown when the temperature is less than zero or greater than one." }, + "api/AnthropicClient.Models.SucceededMessageBatchResult.html": { + "href": "api/AnthropicClient.Models.SucceededMessageBatchResult.html", + "title": "Class SucceededMessageBatchResult | AnthropicClient", + "keywords": "Class SucceededMessageBatchResult Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message batch result that contains a message response. public class SucceededMessageBatchResult : MessageBatchResult Inheritance object MessageBatchResult SucceededMessageBatchResult Inherited Members MessageBatchResult.Type object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors SucceededMessageBatchResult() Initializes a new instance of the SucceededMessageBatchResult class. public SucceededMessageBatchResult() Properties Message Gets the message of the message batch result. public MessageResponse Message { get; init; } Property Value MessageResponse" + }, "api/AnthropicClient.Models.TextContent.html": { "href": "api/AnthropicClient.Models.TextContent.html", "title": "Class TextContent | AnthropicClient", @@ -362,7 +427,7 @@ "api/AnthropicClient.Models.html": { "href": "api/AnthropicClient.Models.html", "title": "Namespace AnthropicClient.Models | AnthropicClient", - "keywords": "Namespace AnthropicClient.Models Classes AnthropicError Represents an error response from the Anthropic API. AnthropicEvent Represents an event from the Anthropic API. AnthropicFunction Represents a function that can be provided as a tool. AnthropicHeaders Represents headers included in Anthropic API responses. AnthropicModel Represents an Anthropic model. AnthropicModels Provides constants for the Anthropic models. AnyToolChoice Represents the any tool choice mode. ApiError Represents an api_error response from the Anthropic API. AuthenticationError Represents an authentication_error response from the Anthropic API. AutoToolChoice Represents the auto tool choice mode. BaseMessageRequest Represents a message request. CacheControl Represents the cache control to be used for content. CacheControlType Provides constants for cache control types. Content Represents part of the content of a message. ContentDelta Represents a content delta. ContentDeltaEventData Represents data for a content_block_delta event. ContentDeltaType Provides constants for content delta types. ContentStartEventData Represents data for a content_block_start event. ContentStopEventData Represents data for a content_block_stop event. ContentType Represents the content type. CountMessageTokensRequest Represents a request to count the number of tokens in a message. DocumentContent Represents content from a document that is part of a message. DocumentSource Represents a document source. EphemeralCacheControl Represents the cache control to be used for content. Error Represents an error. ErrorEventData Represents data for an error event. ErrorType Represents the error type. EventData Represents data for an event. EventType Provides constants for event types. FunctionParameterAttribute Attribute to describe a function parameter. FunctionPropertyAttribute Attribute to describe a property of a type that is used as a function parameter. ImageContent Represents image content that is part of a message. ImageSource Represents an image source. ImageType Represents the image type. InputProperty Represents an input property. InputSchema Represents an input schema. InvalidRequestError Represents an invalid_request error. JsonDelta Represents a JSON delta. Message Represents a message. MessageCompleteEventData Represents data for the message_complete event. MessageDelta Represents a message delta. MessageDeltaEventData Represents data for a message_delta event. MessageRequest Represents a message request. MessageResponse Represents a response. MessageRole Represents the message role. MessageStartEventData Represents data for a message_start event. MessageStopEventData Represents data for a message_stop event. NotFoundError Represents a not_found error. OverloadedError Represents an overloaded error. Page Represents a page. Page Represents a page with data. PagingRequest Represents a request to page through a collection of items. PermissionError Represents a permission error. PingEventData Represents data for a ping event. RateLimitError Represents a rate_limit error. SpecificToolChoice Represents the specific tool choice mode. StopReasonType Represents the stop reason type. StreamMessageRequest Represents a message request. TextContent Represents text content that is part of a message. TextDelta Represents a text delta. TokenCountResponse Represents a response to a token count request. Tool Represents a tool that can be used. ToolCall Represents a tool call. ToolCallResult Represents a tool call result. ToolChoice Represents a tool choice mode. ToolChoiceType Represents the tool choice type. ToolResultContent Represents tool result content that is part of a message. ToolUseContent Represents tool use content that is part of a message. Usage Represents the usage of a response. Interfaces ITool Interface that a class can implement to be used to create a tool." + "keywords": "Namespace AnthropicClient.Models Classes AnthropicError Represents an error response from the Anthropic API. AnthropicEvent Represents an event from the Anthropic API. AnthropicFunction Represents a function that can be provided as a tool. AnthropicHeaders Represents headers included in Anthropic API responses. AnthropicModel Represents an Anthropic model. AnthropicModels Provides constants for the Anthropic models. AnyToolChoice Represents the any tool choice mode. ApiError Represents an api_error response from the Anthropic API. AuthenticationError Represents an authentication_error response from the Anthropic API. AutoToolChoice Represents the auto tool choice mode. BaseMessageRequest Represents a message request. CacheControl Represents the cache control to be used for content. CacheControlType Provides constants for cache control types. CanceledMessageBatchResult Represents a message batch result that was cancelled. Content Represents part of the content of a message. ContentDelta Represents a content delta. ContentDeltaEventData Represents data for a content_block_delta event. ContentDeltaType Provides constants for content delta types. ContentStartEventData Represents data for a content_block_start event. ContentStopEventData Represents data for a content_block_stop event. ContentType Represents the content type. CountMessageTokensRequest Represents a request to count the number of tokens in a message. DocumentContent Represents content from a document that is part of a message. DocumentSource Represents a document source. EphemeralCacheControl Represents the cache control to be used for content. Error Represents an error. ErrorEventData Represents data for an error event. ErrorType Represents the error type. ErroredMessageBatchResult Represents a message batch result that contains an error response. EventData Represents data for an event. EventType Provides constants for event types. ExpiredMessageBatchResult Represents a message batch result that has expired. FunctionParameterAttribute Attribute to describe a function parameter. FunctionPropertyAttribute Attribute to describe a property of a type that is used as a function parameter. ImageContent Represents image content that is part of a message. ImageSource Represents an image source. ImageType Represents the image type. InputProperty Represents an input property. InputSchema Represents an input schema. InvalidRequestError Represents an invalid_request error. JsonDelta Represents a JSON delta. Message Represents a message. MessageBatchDeleteResponse Represents a message batch delete response. MessageBatchRequest Represents a request to create a batch of messages. MessageBatchRequestCounts Represents the counts of requests in a batch of messages. MessageBatchRequestItem Represents an item in a batch of messages. MessageBatchResponse Represents a response to a batch of messages. MessageBatchResult Represents a message batch result. MessageBatchResultItem Represents a message batch result item. MessageBatchResultType Represents the types of message batch results. MessageBatchStatus Represents the status of a message batch. MessageCompleteEventData Represents data for the message_complete event. MessageDelta Represents a message delta. MessageDeltaEventData Represents data for a message_delta event. MessageRequest Represents a message request. MessageResponse Represents a response. MessageRole Represents the message role. MessageStartEventData Represents data for a message_start event. MessageStopEventData Represents data for a message_stop event. NotFoundError Represents a not_found error. OverloadedError Represents an overloaded error. Page Represents a page. Page Represents a page with data. PagingRequest Represents a request to page through a collection of items. PermissionError Represents a permission error. PingEventData Represents data for a ping event. RateLimitError Represents a rate_limit error. SpecificToolChoice Represents the specific tool choice mode. StopReasonType Represents the stop reason type. StreamMessageRequest Represents a message request. SucceededMessageBatchResult Represents a message batch result that contains a message response. TextContent Represents text content that is part of a message. TextDelta Represents a text delta. TokenCountResponse Represents a response to a token count request. Tool Represents a tool that can be used. ToolCall Represents a tool call. ToolCallResult Represents a tool call result. ToolChoice Represents a tool choice mode. ToolChoiceType Represents the tool choice type. ToolResultContent Represents tool result content that is part of a message. ToolUseContent Represents tool use content that is part of a message. Usage Represents the usage of a response. Interfaces ITool Interface that a class can implement to be used to create a tool." }, "api/AnthropicClient.html": { "href": "api/AnthropicClient.html", @@ -372,6 +437,6 @@ "index.html": { "href": "index.html", "title": "AnthropicClient | AnthropicClient", - "keywords": "AnthropicClient This library for the Anthropic API is meant to simplify development in C# for Anthropic users. Note This is an unofficial SDK for the Anthropic API. It was not built in consultation with Anthropic or any member of their organization. This SDK was developed independently using existing libraries and the Anthropic API documentation as the starting point with the intention of making development of integrations done in C# with Anthropic quicker and more convenient. Note This client library is heavily inspired by the Anthropic.SDK library. I chose to create a new library because I wanted to handle streaming and tool calling differently as well as have control over the client library as I plan to use it to build a connector for SemanticKernel. However if you are looking for a client library the Anthropic.SDK is a great place to start. \uD83D\uDCDD Issues If you encounter any issues while using this library please open an issue here. \uD83D\uDCDC License This library is licensed under the MIT License and is free to use and modify. \uD83D\uDCDD Contributing If you would like to contribute to this library please open a pull request here. \uD83D\uDEE0️ Dependencies Microsoft.Bcl.AsyncInterfaces Used to support async interfaces when streaming messages System.Text.Json Used for JSON serialization and deserialization \uD83D\uDCBE Installation Install the package from NuGet using the following command: dotnet add package AnthropicClient \uD83D\uDD11 API Key In order to use the Anthropic API you will need an API key. You can get one by signing up at Anthropic. Please keep your API key secure and do not share it with others. Be mindful of where you store your API key and do not commit it to a public repository. \uD83D\uDC68\uD83C\uDFFB‍\uD83D\uDCBB Start Coding AnthropicApiClient The most common way to use the SDK is to create an AnthropicApiClient instance and call its methods. Its constructor requires two parameters: apiKey - your Anthropic API key httpClient - an HttpClient instance. You can configure and customize the HttpClient instance as needed. This library however will perform the necessary configuration to work with the Anthropic API. Such as setting the base address and adding the proper headers. Note This library does not manage the lifecycle of the HttpClient instance. You should create and manage the lifecycle of the HttpClient instance in your application. It is best practice to read the API key from a secure location such as a configuration file or environment variable. For example using the appsettings.json file: { \"AnthropicApiKey\": \"YOUR_API\" } Example constructing an AnthropicApiClient instance: using AnthropicClient; using Microsoft.Extensions.Configuration; var configuration = new ConfigurationBuilder() .AddJsonFile(\"appsettings.json\") .Build(); var apiKey = configuration[\"AnthropicApiKey\"]; var client = new AnthropicApiClient(apiKey, new HttpClient()); IAnthropicApiClient The library does expose an interface IAnthropicApiClient that can be used for dependency injection and testing. The interface is implemented by the AnthropicApiClient class. Full API Documentation This library was developed to make using the Anthropic API easier within a .NET application. If you are looking for the full API documentation you can find it at Anthropic API Documentation. Usage The primary use case for working with the Anthropic API is to create a message in response to a request that includes one or more other messages. The created message can then be received either as a complete response or a stream of events. This can be used to create a conversation between the caller and Anthropic's AI models and/or to use Anthropic's AI models to perform a task. Note The following examples assume that you have already created an instance of the AnthropicApiClient class named client. You can also find these snippets in the examples directory. Count Message Tokens The AnthropicApiClient exposes a method named CountMessageTokensAsync that can be used to count the number of tokens in a message. The method requires a CountMessageTokensRequest instance as a parameter. using AnthropicClient; using AnthropicClient.Models; var response = await client.CountMessageTokensAsync(new CountMessageTokensRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); if (response.IsFailure) { Console.WriteLine(\"Failed to count message tokens\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } Console.WriteLine(\"Token Count: {0}\", response.Value.InputTokens); List Models The AnthropicApiClient exposes a method named ListModelsAsync that can be used to list the available models. The method takes an optional PagingRequest instance as a parameter. using AnthropicClient; var response = await client.ListModelsAsync(); if (response.IsFailure) { Console.WriteLine(\"Failed to list models\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var model in response.Value.Data) { Console.WriteLine(\"Model Id: {0}\", model.Id); Console.WriteLine(\"Model Name: {0}\", model.DisplayName); } Using the PagingRequest instance allows you to specify the number of models to return and the page of models to return. using AnthropicClient; using AnthropicClient.Models; var response = await client.ListModelsAsync(new PagingRequest(afterId: \"claude-3-5-sonnet-20241022\", limit: 2)); if (response.IsFailure) { Console.WriteLine(\"Failed to list models\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var model in response.Value.Data) { Console.WriteLine(\"Model Id: {0}\", model.Id); Console.WriteLine(\"Model Name: {0}\", model.DisplayName); } Get Model The AnthropicApiClient exposes a method named GetModelAsync that can be used to get a model by its id. using AnthropicClient; var response = await client.GetModelAsync(\"claude-3-5-sonnet-20241022\"); if (response.IsFailure) { Console.WriteLine(\"Failed to get model\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } Console.WriteLine(\"Model Id: {0}\", response.Value.Id); Create a message The AnthropicApiClient exposes a method named CreateMessageAsync that can be used to create a message. The method requires a MessageRequest or a StreamMessageRequest instance as a parameter. The MessageRequest class is used to create a message whose response is not streamed and the StreamMessageRequest class is used to create a message whose response is streamed. The MessageRequest instance's properties can be set to configure how the message is created. Non-Streaming using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Streaming Anthropic uses Server-Sent Events (SSE) to stream messages. The possible events and the format of those events are documented in the Anthropic API Documentation. This library provides a way to consume them after they have been deserialized into strongly-typed C# objects that are returned in an IAsyncEnumerable collection. This allows you to consume the events as they are received and process them in the way that best fits your use case. The following example demonstrates how to consume the streamed events and build up the complete text response from the model. using AnthropicClient; using AnthropicClient.Models; var events = client.CreateMessageAsync(new StreamMessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); var msgBuilder = new StringBuilder(); await foreach (var e in events) { switch (e.Data) { case var data when data is ContentDeltaEventData contentData: switch (contentData.Delta) { case var delta when delta is TextDelta textDelta: msgBuilder.Append(textDelta.Text); break; } break; } } Console.WriteLine(msgBuilder.ToString()); Message Complete Event This library also provides a custom message_complete event that is yielded when all the message's events have been received. This event is not part of Anthropic's SSE events but is provided to allow for easier consumption of the entire message response if desired and make it easier to implement built-in tool calling. using AnthropicClient; using AnthropicClient.Models; var events = client.CreateMessageAsync(new StreamMessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); MessageResponse? response = null; await foreach (var e in events) { switch (e.Data) { case var data when data is MessageCompleteEventData msgData: response = msgData.Message; break; } } var textContent = response?.Content .OfType() .Aggregate(new StringBuilder(), (sb, c) => sb.Append(c.Text)) .ToString(); Console.WriteLine(textContent); Tool Use Anthropic's models support the use of tools to perform tasks. This allows the models to interact with external client-side tools that can perform actions the models cannot do natively. This gives you the ability to further extend the model's abilities with your own custom tools. This feature is covered in depth in Anthropic's API Documentation. This library aims to make using tools convenient by allowing you to create, provide, and call tools from within your application by leveraging the reflection capabilities of C#. Note All tools are user provided. The models do no not have access to any built-in server-side tools. Create a tool You can create a tool in 4 different ways and then provide that tool when creating a message. Create a tool from a class Create a tool from a static method Create a tool from an instance method Create a tool from a delegate Create a tool from a class When creating a tool from a class the class must implement the ITool interface. using AnthropicClient.Models; class GetWeatherTool : ITool { public string Name => \"Get Weather\"; public string Description => \"Get the weather for a location in the specified units\"; public MethodInfo Function => typeof(GetWeatherTool).GetMethod(nameof(GetWeather))!; public static string GetWeather(string location, string units) { return $\"The weather in {location} is 72 degrees {units}\"; } } var getWeatherTool = Tool.CreateFromClass(); Create a tool from a static method When creating a tool from a static method the method must be public and static. using AnthropicClient.Models; class GetWeatherTool { public static string GetWeather(string location) { return $\"The weather in {location} is 72 degrees Fahrenheit\"; } } var getWeatherTool = Tool.CreateFromStaticMethod( \"Get Weather\", \"Get the weather for a location in the specified units\", typeof(GetWeatherTool), nameof(GetWeatherTool.GetWeather) ); Create a tool from an instance method When creating a tool from an instance method the method must be public and non-static. using AnthropicClient.Models; class GetWeatherTool { public string GetWeather(string location) { return $\"The weather in {location} is 72 degrees Fahrenheit\"; } } var toolInstance = new GetWeatherTool(); var getWeatherTool = Tool.CreateFromInstanceMethod( \"Get Weather\", \"Get the weather for a location in the specified units\", toolInstance, nameof(toolInstance.GetWeather) ); Create a tool from a delegate When creating a tool from a delegate the delegate must be a Func, Func, or Func. If you need to create a tool from a delegate that takes more than 2 parameters you should create a complex type and pass that as the parameter. using AnthropicClient.Models; var tool = (string location, string units) => $\"The weather in {location} is 72 degrees {units}\"; var getWeatherTool = Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool ); Function Parameter Attribute When you create a tool from one of the methods above and send it to Anthropic in your request a JSON representation of the tool is provided in the message. This JSON representation includes the name, description, and input schema of the tool. This information is used by Anthropic's models to discern if and when it should use a tool. This library provides a FunctionParameterAttribute that can be used to provide additional information about the parameters of the tool. This information is used to provide a more detailed input schema for the tool. using AnthropicClient.Models; var tool = ( [FunctionParameter(description: \"The location of the weather being got\", name: \"Location\", required: true)] string location, string units ) => $\"The weather in {location} is 72 degrees {units}\"; var getWeatherTool = Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool ); Function Property Attribute This library also provides a FunctionPropertyAttribute that can be used to provide additional information about the members of complex types used as parameters in the tool. This information is used to provide a more detailed input schema for the tool. using AnthropicClient.Models; class GetWeatherInput { [FunctionProperty( description: \"The location of the weather being got\", required: true )] public string Location { get; } = string.Empty; [FunctionProperty( description: \"The units to get the weather in\", required: false, defaultValue: \"Fahrenheit\", possibleValues: [\"Fahrenheit\", \"Celsius\"] )] public string Units { get; } = \"Fahrenheit\"; } var tool = (GetWeatherInput input) => $\"The weather in {input.Location} is 72 degrees {input.Units}\"; var getWeatherTool = Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool ); Call a tool It is important to remember that while Anthropic's models do support tool use they don't actually have access to any built-in server-side tools. All tools are user provided. This means that while Anthropic's models can respond to a request to create a message with a request to use a tool that is all it is - a request. It is still up to the client to handle the tool request by calling the tool with the input provided by the model and then providing the result of that call back to the model. This library aims to make this process convenient by allowing you to simply provide the tools you want Anthropic's models to consider for use when creating a message, receive the response, check if the response contains a tool call, and if it does invoke the tool to get the result. Note Anthropic's API expects requests to contain messages that alternate between the user and the assistant. In addition if you receive a tool use from the model the API expects you to respond with a message that contains the result of the tool call. The tool use content will always be from the assistant while the tool result will always be from the user. using AnthropicClient; using AnthropicClient.Models; class GetWeatherTool : ITool { public string Name => \"Get Weather\"; public string Description => \"Get the weather for a location in the specified units\"; public MethodInfo Function => typeof(GetWeatherTool).GetMethod(nameof(GetWeather))!; public static string GetWeather(string location, string units) { return $\"The weather in {location} is 72 degrees {units}\"; } } List messages = [ new( MessageRole.User, [new TextContent(\"What is the weather in New York?\")] ) ]; List tools = [Tool.CreateFromClass()]; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, messages, tools: tools )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } messages.Add(new(MessageRole.Assistant, response.Content)); foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; case ToolUseContent toolUseContent: Console.WriteLine(toolUseContent.Name); break; } } if (response.Value.ToolCall is not null) { var toolCallResult = await response.Value.ToolCall.InvokeAsync(); string toolResultContent; if (toolCallResult.IsSuccess && toolCallResult.Value is not null) { Console.WriteLine(toolCallResult.Value); toolResultContent = toolCallResult.Value; } else { Console.WriteLine(toolCallResult.Error.Message); toolResultContent = toolCallResult.Error.Message; } messages.Add( new( MessageRole.User, [ new ToolResultContent( response.Value.ToolCall.ToolUse.Id, toolResultContent ) ] ) ); } var finalResponse = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, messages, tools: tools )); if (finalResponse.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", finalResponse.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", finalResponse.Error.Error.Message); return; } foreach (var content in finalResponse.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } If an exception is thrown while invoking the tool the InvokeAsync method will return a ToolCallResult with the exception contained in the Error property. Note The InvokeAsync method does accept a generic type parameter that can be used to specify the type of the Value property of the ToolCallResult. If it is not specified it will be an object. Call a tool in streamed message Tool calling is also supported when streaming the message response. The following example demonstrates how you can handle a tool call in a streamed message response. using AnthropicClient; using AnthropicClient.Models; var tool = (string location, string units) => $\"The weather in {location} is 72 degrees {units}\"; var messages = [ new( MessageRole.User, [new TextContent(\"What is the weather in New York?\")] ) ]; var tools = [Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool )]; var events = client.CreateMessageAsync(new StreamMessageRequest( AnthropicModels.Claude3Haiku, messages, tools: tools )); MessageResponse? response = null; await foreach (var e in events) { switch (e.Data) { case var data when data is MessageCompleteEventData msgData: response = msgData.Message; break; } } if (response is null) { Console.WriteLine(\"Failed to get message response\"); return; } messages.Add(new(MessageRole.Assistant, response.Content)); if (response?.ToolCall is not null) { var toolCallResult = await response.ToolCall.InvokeAsync(); string toolResultContent; if (toolCallResult.IsSuccess && toolCallResult.Value is not null) { toolResultContent = toolCallResult.Value; } else { toolResultContent = toolCallResult.Error.Message; } messages.Add( new( MessageRole.User, [ new ToolResultContent( response.ToolCall.ToolUse.Id, toolResultContent ) ] ) ); } var finalResponse = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, messages, tools: tools )); if (finalResponse.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", finalResponse.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", finalResponse.Error.Error.Message); return; } foreach (var content in finalResponse.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } If you do find that you need more control over how exactly provided tools are called and how the result of those tools are returned you can avoid using the InvokeAsync method and instead use the Tool and ToolUse properties of the ToolCall instance to implement your own solution. System Prompt Anthropic's models support the use of system prompts to provide additional context to the user. This can be used to provide additional information to the user or to ask for additional information from the user. This feature is covered in depth in Anthropic's API Documentation. This library aims to make using system prompts convenient by allowing you to provide the system prompts you want Anthropic's models to consider for use when creating a message. System Message You can create a system prompt by providing a string as the system parameter in the MessageRequest or StreamMessageRequest constructor. using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ], system: \"You are a internationally renowned poet. You excel at writing haikus. )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } System Messages You can create a more complex system prompt by providing a List as the systemMessages parameter in the MessageRequest or StreamMessageRequest constructor. using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ], systemMessages: [ new TextContent(\"You are a internationally renowned poet. You excel at writing haikus.\"), new TextContent(\"You have been asked to write a haiku about the ocean.\") ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Prompt Caching Anthropic provides a feature called Prompt Caching that allows you to cache all or part of the prompt you send to the model. This can be used to improve the performance of your application by reducing latency and token usage. This feature is covered in depth in Anthropic's API Documentation. Prompt caching can be used to cache all parts of the prompt including system messages, user messages, and tools. You should refer to the Anthropic API Documentation for specifics on limitations and requirements for using prompt caching. This library aims to make using prompt caching convenient and give you complete control over what parts of the prompt are cached. Currently there is only one type of cache control available - EphemeralCacheControl. Caching System Messages System messages can be cached by providing a List as the systemMessages parameter in the MessageRequest or StreamMessageRequest constructor and having one or more of the TextContent instances have the CacheControl property set. using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ], systemMessages: [ new TextContent(\"You are a internationally renowned poet. You excel at writing haikus. Please use the following as examples.\"), new TextContent(exampleHaikus, new EphemeralCacheControl()) ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Caching User Messages User messages can be cached by providing a List as the messages parameter in the MessageRequest or StreamMessageRequest constructor and having one or more of the Content instances have the CacheControl property set. using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [ new TextContent(\"Please write a haiku about the ocean. Here are some examples of haikus I like.\"), new TextContent(exampleHaikus, new EphemeralCacheControl()) ] ), ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Caching Tools Tools can be cached by providing a List as the tools parameter in the MessageRequest or StreamMessageRequest constructor and having one or more of the Tool instances have the CacheControl property set. This property can be set after the tool is created manually or by using one of the static methods on the Tool class. using AnthropicClient; using AnthropicClient.Models; var tool = (string location, string units) => $\"The weather in {location} is 72 degrees {units}\"; var getWeatherTool = Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool, new EphemeralCacheControl() ); var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"What is the weather in New York?\")] ) ], tools: [ // Lots of other tools // ... getWeatherTool ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; case ToolUseContent toolUseContent: Console.WriteLine(toolUseContent.Name); break; } } PDF Support Anthropic provides a feature called PDF Support that allows Claude to support PDF input and understand both text and visual content within documents. This feature is covered in depth in Anthropic's API Documentation. PDF support can be used to provide a PDF document as input to the model. This can be used to provide additional context to the model or to ask for additional information from the model. This library aims to make using PDF support convenient by allowing you to provide the PDF document you want Anthropic's models to consider for use when creating a message. PDF Document You can provide a PDF document by providing its base64 encoded content as a DocumentContent instance in the list of messages in the MessageRequest or StreamMessageRequest constructor. using AnthropicClient; using AnthropicClient.Models; var request = new MessageRequest( model: AnthropicModels.Claude35Sonnet, messages: [ new(MessageRole.User, [new TextContent(\"What is the title of this paper?\")]), new(MessageRole.User, [new DocumentContent(\"application/pdf\", base64Data)]) ] ); var response = await client.CreateMessageAsync(request); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } }" + "keywords": "AnthropicClient This library for the Anthropic API is meant to simplify development in C# for Anthropic users. Note This is an unofficial SDK for the Anthropic API. It was not built in consultation with Anthropic or any member of their organization. This SDK was developed independently using existing libraries and the Anthropic API documentation as the starting point with the intention of making development of integrations done in C# with Anthropic quicker and more convenient. Note This client library is heavily inspired by the Anthropic.SDK library. I chose to create a new library because I wanted to handle streaming and tool calling differently as well as have control over the client library as I plan to use it to build a connector for SemanticKernel. However if you are looking for a client library the Anthropic.SDK is a great place to start. \uD83D\uDCDD Issues If you encounter any issues while using this library please open an issue here. \uD83D\uDCDC License This library is licensed under the MIT License and is free to use and modify. \uD83D\uDCDD Contributing If you would like to contribute to this library please open a pull request here. \uD83D\uDEE0️ Dependencies Microsoft.Bcl.AsyncInterfaces Used to support async interfaces when streaming messages System.Text.Json Used for JSON serialization and deserialization \uD83D\uDCBE Installation Install the package from NuGet using the following command: dotnet add package AnthropicClient \uD83D\uDD11 API Key In order to use the Anthropic API you will need an API key. You can get one by signing up at Anthropic. Please keep your API key secure and do not share it with others. Be mindful of where you store your API key and do not commit it to a public repository. \uD83D\uDC68\uD83C\uDFFB‍\uD83D\uDCBB Start Coding AnthropicApiClient The most common way to use the SDK is to create an AnthropicApiClient instance and call its methods. Its constructor requires two parameters: apiKey - your Anthropic API key httpClient - an HttpClient instance. You can configure and customize the HttpClient instance as needed. This library however will perform the necessary configuration to work with the Anthropic API. Such as setting the base address and adding the proper headers. Note This library does not manage the lifecycle of the HttpClient instance. You should create and manage the lifecycle of the HttpClient instance in your application. It is best practice to read the API key from a secure location such as a configuration file or environment variable. For example using the appsettings.json file: { \"AnthropicApiKey\": \"YOUR_API\" } Example constructing an AnthropicApiClient instance: using AnthropicClient; using Microsoft.Extensions.Configuration; var configuration = new ConfigurationBuilder() .AddJsonFile(\"appsettings.json\") .Build(); var apiKey = configuration[\"AnthropicApiKey\"]; var client = new AnthropicApiClient(apiKey, new HttpClient()); IAnthropicApiClient The library does expose an interface IAnthropicApiClient that can be used for dependency injection and testing. The interface is implemented by the AnthropicApiClient class. Full API Documentation This library was developed to make using the Anthropic API easier within a .NET application. If you are looking for the full API documentation you can find it at Anthropic API Documentation. Usage The primary use case for working with the Anthropic API is to create a message in response to a request that includes one or more other messages. The created message can then be received either as a complete response or a stream of events. This can be used to create a conversation between the caller and Anthropic's AI models and/or to use Anthropic's AI models to perform a task. Note The following examples assume that you have already created an instance of the AnthropicApiClient class named client. You can also find these snippets in the examples directory. Count Message Tokens The AnthropicApiClient exposes a method named CountMessageTokensAsync that can be used to count the number of tokens in a message. The method requires a CountMessageTokensRequest instance as a parameter. using AnthropicClient; using AnthropicClient.Models; var response = await client.CountMessageTokensAsync(new CountMessageTokensRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); if (response.IsFailure) { Console.WriteLine(\"Failed to count message tokens\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } Console.WriteLine(\"Token Count: {0}\", response.Value.InputTokens); List Models The AnthropicApiClient exposes a method named ListModelsAsync that can be used to list the available models. The method takes an optional PagingRequest instance as a parameter. using AnthropicClient; var response = await client.ListModelsAsync(); if (response.IsFailure) { Console.WriteLine(\"Failed to list models\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var model in response.Value.Data) { Console.WriteLine(\"Model Id: {0}\", model.Id); Console.WriteLine(\"Model Name: {0}\", model.DisplayName); } Using the PagingRequest instance allows you to specify the number of models to return and the page of models to return. using AnthropicClient; using AnthropicClient.Models; var response = await client.ListModelsAsync(new PagingRequest(afterId: \"claude-3-5-sonnet-20241022\", limit: 2)); if (response.IsFailure) { Console.WriteLine(\"Failed to list models\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var model in response.Value.Data) { Console.WriteLine(\"Model Id: {0}\", model.Id); Console.WriteLine(\"Model Name: {0}\", model.DisplayName); } Get Model The AnthropicApiClient exposes a method named GetModelAsync that can be used to get a model by its id. using AnthropicClient; var response = await client.GetModelAsync(\"claude-3-5-sonnet-20241022\"); if (response.IsFailure) { Console.WriteLine(\"Failed to get model\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } Console.WriteLine(\"Model Id: {0}\", response.Value.Id); Create a message The AnthropicApiClient exposes a method named CreateMessageAsync that can be used to create a message. The method requires a MessageRequest or a StreamMessageRequest instance as a parameter. The MessageRequest class is used to create a message whose response is not streamed and the StreamMessageRequest class is used to create a message whose response is streamed. The MessageRequest instance's properties can be set to configure how the message is created. Non-Streaming using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Streaming Anthropic uses Server-Sent Events (SSE) to stream messages. The possible events and the format of those events are documented in the Anthropic API Documentation. This library provides a way to consume them after they have been deserialized into strongly-typed C# objects that are returned in an IAsyncEnumerable collection. This allows you to consume the events as they are received and process them in the way that best fits your use case. The following example demonstrates how to consume the streamed events and build up the complete text response from the model. using AnthropicClient; using AnthropicClient.Models; var events = client.CreateMessageAsync(new StreamMessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); var msgBuilder = new StringBuilder(); await foreach (var e in events) { switch (e.Data) { case var data when data is ContentDeltaEventData contentData: switch (contentData.Delta) { case var delta when delta is TextDelta textDelta: msgBuilder.Append(textDelta.Text); break; } break; } } Console.WriteLine(msgBuilder.ToString()); Message Complete Event This library also provides a custom message_complete event that is yielded when all the message's events have been received. This event is not part of Anthropic's SSE events but is provided to allow for easier consumption of the entire message response if desired and make it easier to implement built-in tool calling. using AnthropicClient; using AnthropicClient.Models; var events = client.CreateMessageAsync(new StreamMessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); MessageResponse? response = null; await foreach (var e in events) { switch (e.Data) { case var data when data is MessageCompleteEventData msgData: response = msgData.Message; break; } } var textContent = response?.Content .OfType() .Aggregate(new StringBuilder(), (sb, c) => sb.Append(c.Text)) .ToString(); Console.WriteLine(textContent); Tool Use Anthropic's models support the use of tools to perform tasks. This allows the models to interact with external client-side tools that can perform actions the models cannot do natively. This gives you the ability to further extend the model's abilities with your own custom tools. This feature is covered in depth in Anthropic's API Documentation. This library aims to make using tools convenient by allowing you to create, provide, and call tools from within your application by leveraging the reflection capabilities of C#. Note All tools are user provided. The models do no not have access to any built-in server-side tools. Create a tool You can create a tool in 4 different ways and then provide that tool when creating a message. Create a tool from a class Create a tool from a static method Create a tool from an instance method Create a tool from a delegate Create a tool from a class When creating a tool from a class the class must implement the ITool interface. using AnthropicClient.Models; class GetWeatherTool : ITool { public string Name => \"Get Weather\"; public string Description => \"Get the weather for a location in the specified units\"; public MethodInfo Function => typeof(GetWeatherTool).GetMethod(nameof(GetWeather))!; public static string GetWeather(string location, string units) { return $\"The weather in {location} is 72 degrees {units}\"; } } var getWeatherTool = Tool.CreateFromClass(); Create a tool from a static method When creating a tool from a static method the method must be public and static. using AnthropicClient.Models; class GetWeatherTool { public static string GetWeather(string location) { return $\"The weather in {location} is 72 degrees Fahrenheit\"; } } var getWeatherTool = Tool.CreateFromStaticMethod( \"Get Weather\", \"Get the weather for a location in the specified units\", typeof(GetWeatherTool), nameof(GetWeatherTool.GetWeather) ); Create a tool from an instance method When creating a tool from an instance method the method must be public and non-static. using AnthropicClient.Models; class GetWeatherTool { public string GetWeather(string location) { return $\"The weather in {location} is 72 degrees Fahrenheit\"; } } var toolInstance = new GetWeatherTool(); var getWeatherTool = Tool.CreateFromInstanceMethod( \"Get Weather\", \"Get the weather for a location in the specified units\", toolInstance, nameof(toolInstance.GetWeather) ); Create a tool from a delegate When creating a tool from a delegate the delegate must be a Func, Func, or Func. If you need to create a tool from a delegate that takes more than 2 parameters you should create a complex type and pass that as the parameter. using AnthropicClient.Models; var tool = (string location, string units) => $\"The weather in {location} is 72 degrees {units}\"; var getWeatherTool = Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool ); Function Parameter Attribute When you create a tool from one of the methods above and send it to Anthropic in your request a JSON representation of the tool is provided in the message. This JSON representation includes the name, description, and input schema of the tool. This information is used by Anthropic's models to discern if and when it should use a tool. This library provides a FunctionParameterAttribute that can be used to provide additional information about the parameters of the tool. This information is used to provide a more detailed input schema for the tool. using AnthropicClient.Models; var tool = ( [FunctionParameter(description: \"The location of the weather being got\", name: \"Location\", required: true)] string location, string units ) => $\"The weather in {location} is 72 degrees {units}\"; var getWeatherTool = Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool ); Function Property Attribute This library also provides a FunctionPropertyAttribute that can be used to provide additional information about the members of complex types used as parameters in the tool. This information is used to provide a more detailed input schema for the tool. using AnthropicClient.Models; class GetWeatherInput { [FunctionProperty( description: \"The location of the weather being got\", required: true )] public string Location { get; } = string.Empty; [FunctionProperty( description: \"The units to get the weather in\", required: false, defaultValue: \"Fahrenheit\", possibleValues: [\"Fahrenheit\", \"Celsius\"] )] public string Units { get; } = \"Fahrenheit\"; } var tool = (GetWeatherInput input) => $\"The weather in {input.Location} is 72 degrees {input.Units}\"; var getWeatherTool = Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool ); Call a tool It is important to remember that while Anthropic's models do support tool use they don't actually have access to any built-in server-side tools. All tools are user provided. This means that while Anthropic's models can respond to a request to create a message with a request to use a tool that is all it is - a request. It is still up to the client to handle the tool request by calling the tool with the input provided by the model and then providing the result of that call back to the model. This library aims to make this process convenient by allowing you to simply provide the tools you want Anthropic's models to consider for use when creating a message, receive the response, check if the response contains a tool call, and if it does invoke the tool to get the result. Note Anthropic's API expects requests to contain messages that alternate between the user and the assistant. In addition if you receive a tool use from the model the API expects you to respond with a message that contains the result of the tool call. The tool use content will always be from the assistant while the tool result will always be from the user. using AnthropicClient; using AnthropicClient.Models; class GetWeatherTool : ITool { public string Name => \"Get Weather\"; public string Description => \"Get the weather for a location in the specified units\"; public MethodInfo Function => typeof(GetWeatherTool).GetMethod(nameof(GetWeather))!; public static string GetWeather(string location, string units) { return $\"The weather in {location} is 72 degrees {units}\"; } } List messages = [ new( MessageRole.User, [new TextContent(\"What is the weather in New York?\")] ) ]; List tools = [Tool.CreateFromClass()]; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, messages, tools: tools )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } messages.Add(new(MessageRole.Assistant, response.Content)); foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; case ToolUseContent toolUseContent: Console.WriteLine(toolUseContent.Name); break; } } if (response.Value.ToolCall is not null) { var toolCallResult = await response.Value.ToolCall.InvokeAsync(); string toolResultContent; if (toolCallResult.IsSuccess && toolCallResult.Value is not null) { Console.WriteLine(toolCallResult.Value); toolResultContent = toolCallResult.Value; } else { Console.WriteLine(toolCallResult.Error.Message); toolResultContent = toolCallResult.Error.Message; } messages.Add( new( MessageRole.User, [ new ToolResultContent( response.Value.ToolCall.ToolUse.Id, toolResultContent ) ] ) ); } var finalResponse = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, messages, tools: tools )); if (finalResponse.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", finalResponse.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", finalResponse.Error.Error.Message); return; } foreach (var content in finalResponse.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } If an exception is thrown while invoking the tool the InvokeAsync method will return a ToolCallResult with the exception contained in the Error property. Note The InvokeAsync method does accept a generic type parameter that can be used to specify the type of the Value property of the ToolCallResult. If it is not specified it will be an object. Call a tool in streamed message Tool calling is also supported when streaming the message response. The following example demonstrates how you can handle a tool call in a streamed message response. using AnthropicClient; using AnthropicClient.Models; var tool = (string location, string units) => $\"The weather in {location} is 72 degrees {units}\"; var messages = [ new( MessageRole.User, [new TextContent(\"What is the weather in New York?\")] ) ]; var tools = [Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool )]; var events = client.CreateMessageAsync(new StreamMessageRequest( AnthropicModels.Claude3Haiku, messages, tools: tools )); MessageResponse? response = null; await foreach (var e in events) { switch (e.Data) { case var data when data is MessageCompleteEventData msgData: response = msgData.Message; break; } } if (response is null) { Console.WriteLine(\"Failed to get message response\"); return; } messages.Add(new(MessageRole.Assistant, response.Content)); if (response?.ToolCall is not null) { var toolCallResult = await response.ToolCall.InvokeAsync(); string toolResultContent; if (toolCallResult.IsSuccess && toolCallResult.Value is not null) { toolResultContent = toolCallResult.Value; } else { toolResultContent = toolCallResult.Error.Message; } messages.Add( new( MessageRole.User, [ new ToolResultContent( response.ToolCall.ToolUse.Id, toolResultContent ) ] ) ); } var finalResponse = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, messages, tools: tools )); if (finalResponse.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", finalResponse.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", finalResponse.Error.Error.Message); return; } foreach (var content in finalResponse.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } If you do find that you need more control over how exactly provided tools are called and how the result of those tools are returned you can avoid using the InvokeAsync method and instead use the Tool and ToolUse properties of the ToolCall instance to implement your own solution. System Prompt Anthropic's models support the use of system prompts to provide additional context to the user. This can be used to provide additional information to the user or to ask for additional information from the user. This feature is covered in depth in Anthropic's API Documentation. This library aims to make using system prompts convenient by allowing you to provide the system prompts you want Anthropic's models to consider for use when creating a message. System Message You can create a system prompt by providing a string as the system parameter in the MessageRequest or StreamMessageRequest constructor. using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ], system: \"You are a internationally renowned poet. You excel at writing haikus. )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } System Messages You can create a more complex system prompt by providing a List as the systemMessages parameter in the MessageRequest or StreamMessageRequest constructor. using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ], systemMessages: [ new TextContent(\"You are a internationally renowned poet. You excel at writing haikus.\"), new TextContent(\"You have been asked to write a haiku about the ocean.\") ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Prompt Caching Anthropic provides a feature called Prompt Caching that allows you to cache all or part of the prompt you send to the model. This can be used to improve the performance of your application by reducing latency and token usage. This feature is covered in depth in Anthropic's API Documentation. Prompt caching can be used to cache all parts of the prompt including system messages, user messages, and tools. You should refer to the Anthropic API Documentation for specifics on limitations and requirements for using prompt caching. This library aims to make using prompt caching convenient and give you complete control over what parts of the prompt are cached. Currently there is only one type of cache control available - EphemeralCacheControl. Caching System Messages System messages can be cached by providing a List as the systemMessages parameter in the MessageRequest or StreamMessageRequest constructor and having one or more of the TextContent instances have the CacheControl property set. using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ], systemMessages: [ new TextContent(\"You are a internationally renowned poet. You excel at writing haikus. Please use the following as examples.\"), new TextContent(exampleHaikus, new EphemeralCacheControl()) ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Caching User Messages User messages can be cached by providing a List as the messages parameter in the MessageRequest or StreamMessageRequest constructor and having one or more of the Content instances have the CacheControl property set. using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [ new TextContent(\"Please write a haiku about the ocean. Here are some examples of haikus I like.\"), new TextContent(exampleHaikus, new EphemeralCacheControl()) ] ), ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Caching Tools Tools can be cached by providing a List as the tools parameter in the MessageRequest or StreamMessageRequest constructor and having one or more of the Tool instances have the CacheControl property set. This property can be set after the tool is created manually or by using one of the static methods on the Tool class. using AnthropicClient; using AnthropicClient.Models; var tool = (string location, string units) => $\"The weather in {location} is 72 degrees {units}\"; var getWeatherTool = Tool.CreateFromFunction( \"Get Weather\", \"Get the weather for a location in the specified units\", tool, new EphemeralCacheControl() ); var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"What is the weather in New York?\")] ) ], tools: [ // Lots of other tools // ... getWeatherTool ] )); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; case ToolUseContent toolUseContent: Console.WriteLine(toolUseContent.Name); break; } } PDF Support Anthropic provides a feature called PDF Support that allows Claude to support PDF input and understand both text and visual content within documents. This feature is covered in depth in Anthropic's API Documentation. PDF support can be used to provide a PDF document as input to the model. This can be used to provide additional context to the model or to ask for additional information from the model. This library aims to make using PDF support convenient by allowing you to provide the PDF document you want Anthropic's models to consider for use when creating a message. PDF Document You can provide a PDF document by providing its base64 encoded content as a DocumentContent instance in the list of messages in the MessageRequest or StreamMessageRequest constructor. using AnthropicClient; using AnthropicClient.Models; var request = new MessageRequest( model: AnthropicModels.Claude35Sonnet, messages: [ new(MessageRole.User, [new TextContent(\"What is the title of this paper?\")]), new(MessageRole.User, [new DocumentContent(\"application/pdf\", base64Data)]) ] ); var response = await client.CreateMessageAsync(request); if (response.IsSuccess is false) { Console.WriteLine(\"Failed to create message\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Message Batches Anthropic provides a feature called Message Batches that allows you to send multiple messages in a single request. This feature is covered in depth in Anthropic's API Documentation. Create a message batch You can create a message batch that will consist of one or more requests to create messages. using AnthropicClient; using AnthropicClient.Models; var request = new MessageBatchRequest([ new( Guid.NewGuid().ToString(), new( model: AnthropicModels.Claude3Haiku, messages: [new(MessageRole.User, [new TextContent(\"Hello!\")])] ) ), ]); var response = await client.CreateMessageBatchAsync(request); if (response.IsFailure) { Console.WriteLine(\"Failed to create message batch\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } Console.WriteLine(\"Message Batch Id: {0}\", response.Value.Id); Get a message batch You can retrieve a message batch by its id. using AnthropicClient; using AnthropicClient.Models; var response = await client.GetMessageBatchAsync(\"batch-id\"); if (response.IsFailure) { Console.WriteLine(\"Failed to get message batch\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } Console.WriteLine(\"Message Batch Id: {0}\", response.Value.Id); Get a message batch results You can retrieve the results of a message batch by its id. The results are returned as an IAsyncEnumerable collection so that they can be streamed and processed as they are received. using AnthropicClient; using AnthropicClient.Models; var response = await client.GetMessageBatchResultsAsync(\"batch-id\"); if (response.IsFailure) { Console.WriteLine(\"Failed to get message batch results\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } await foreach (var item in response.Value) { Console.WriteLine(\"Item Custom Id: {0}\", result.CustomId); switch (item.Result) { case SucceededMessageBatchResult successResult: foreach (var content in successResult.Message.Content) { if (content is TextContent textContent) { Console.WriteLine(\"Message Batch Result: {0}\", textContent.Text); } } break; default: Console.WriteLine(\"Message Batch Result: {0}\", item.Result.Type); break; } } List message batches You can retrieve a page of message batches. using AnthropicClient; using AnthropicClient.Models; var response = await client.ListMessageBatchesAsync(); if (response.IsFailure) { Console.WriteLine(\"Failed to list message batches\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var batch in response.Value.Data) { Console.WriteLine(\"Message Batch Id: {0}\", batch.Id); } List all message batches You can also retrieve all the pages of message batches without having to implement pagination yourself. This is done by returning an IAsyncEnumerable collection that can be streamed and processed as the pages are received. using AnthropicClient; using AnthropicClient.Models; var pageResponses = client.ListAllMessageBatchesAsync(); await foreach (var response in pageResponses) { if (response.IsFailure) { Console.WriteLine(\"Failed to list message batches\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var batch in response.Value.Data) { Console.WriteLine(\"Message Batch Id: {0}\", batch.Id); } } Cancel a message batch You can cancel a message batch by its id. using AnthropicClient; using AnthropicClient.Models; var response = await client.CancelMessageBatchAsync(\"batch-id\"); if (response.IsFailure) { Console.WriteLine(\"Failed to cancel message batch\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } Console.WriteLine(\"Message Batch Id: {0}\", response.Value.Id); Console.WriteLine(\"Message Batch Status: {0}\", response.Value.ProcessingStatus); Delete a message batch You can delete a message batch that is no longer being processed by its id. using AnthropicClient; using AnthropicClient.Models; var response = await client.DeleteMessageBatchAsync(\"batch-id\"); if (response.IsFailure) { Console.WriteLine(\"Failed to delete message batch\"); Console.WriteLine(\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine(\"Error Message: {0}\", response.Error.Error.Message); return; } Console.WriteLine(\"Message Batch Id: {0}\", response.Value.Id);" } } \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index aac0f4d..4fa2a1f 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -160,6 +160,16 @@ }, "version": "" }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.CanceledMessageBatchResult.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.CanceledMessageBatchResult.html" + } + }, + "version": "" + }, { "type": "ManagedReference", "source_relative_path": "api/AnthropicClient.Models.Content.yml", @@ -300,6 +310,16 @@ }, "version": "" }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.ErroredMessageBatchResult.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.ErroredMessageBatchResult.html" + } + }, + "version": "" + }, { "type": "ManagedReference", "source_relative_path": "api/AnthropicClient.Models.EventData.yml", @@ -320,6 +340,16 @@ }, "version": "" }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.ExpiredMessageBatchResult.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.ExpiredMessageBatchResult.html" + } + }, + "version": "" + }, { "type": "ManagedReference", "source_relative_path": "api/AnthropicClient.Models.FunctionParameterAttribute.yml", @@ -430,6 +460,96 @@ }, "version": "" }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.MessageBatchDeleteResponse.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.MessageBatchDeleteResponse.html" + } + }, + "version": "" + }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.MessageBatchRequest.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.MessageBatchRequest.html" + } + }, + "version": "" + }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.MessageBatchRequestCounts.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.MessageBatchRequestCounts.html" + } + }, + "version": "" + }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.MessageBatchRequestItem.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.MessageBatchRequestItem.html" + } + }, + "version": "" + }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.MessageBatchResponse.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.MessageBatchResponse.html" + } + }, + "version": "" + }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.MessageBatchResult.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.MessageBatchResult.html" + } + }, + "version": "" + }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.MessageBatchResultItem.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.MessageBatchResultItem.html" + } + }, + "version": "" + }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.MessageBatchResultType.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.MessageBatchResultType.html" + } + }, + "version": "" + }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.MessageBatchStatus.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.MessageBatchStatus.html" + } + }, + "version": "" + }, { "type": "ManagedReference", "source_relative_path": "api/AnthropicClient.Models.MessageCompleteEventData.yml", @@ -620,6 +740,16 @@ }, "version": "" }, + { + "type": "ManagedReference", + "source_relative_path": "api/AnthropicClient.Models.SucceededMessageBatchResult.yml", + "output": { + ".html": { + "relative_path": "api/AnthropicClient.Models.SucceededMessageBatchResult.html" + } + }, + "version": "" + }, { "type": "ManagedReference", "source_relative_path": "api/AnthropicClient.Models.TextContent.yml", diff --git a/docs/xrefmap.yml b/docs/xrefmap.yml index 4c140fd..464cd11 100644 --- a/docs/xrefmap.yml +++ b/docs/xrefmap.yml @@ -32,6 +32,22 @@ references: fullName.vb: AnthropicClient.AnthropicApiClient.New nameWithType: AnthropicApiClient.AnthropicApiClient nameWithType.vb: AnthropicApiClient.New +- uid: AnthropicClient.AnthropicApiClient.CancelMessageBatchAsync(System.String) + name: CancelMessageBatchAsync(string) + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_CancelMessageBatchAsync_System_String_ + commentId: M:AnthropicClient.AnthropicApiClient.CancelMessageBatchAsync(System.String) + name.vb: CancelMessageBatchAsync(String) + fullName: AnthropicClient.AnthropicApiClient.CancelMessageBatchAsync(string) + fullName.vb: AnthropicClient.AnthropicApiClient.CancelMessageBatchAsync(String) + nameWithType: AnthropicApiClient.CancelMessageBatchAsync(string) + nameWithType.vb: AnthropicApiClient.CancelMessageBatchAsync(String) +- uid: AnthropicClient.AnthropicApiClient.CancelMessageBatchAsync* + name: CancelMessageBatchAsync + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_CancelMessageBatchAsync_ + commentId: Overload:AnthropicClient.AnthropicApiClient.CancelMessageBatchAsync + isSpec: "True" + fullName: AnthropicClient.AnthropicApiClient.CancelMessageBatchAsync + nameWithType: AnthropicApiClient.CancelMessageBatchAsync - uid: AnthropicClient.AnthropicApiClient.CountMessageTokensAsync(AnthropicClient.Models.CountMessageTokensRequest) name: CountMessageTokensAsync(CountMessageTokensRequest) href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_CountMessageTokensAsync_AnthropicClient_Models_CountMessageTokensRequest_ @@ -64,6 +80,67 @@ references: isSpec: "True" fullName: AnthropicClient.AnthropicApiClient.CreateMessageAsync nameWithType: AnthropicApiClient.CreateMessageAsync +- uid: AnthropicClient.AnthropicApiClient.CreateMessageBatchAsync(AnthropicClient.Models.MessageBatchRequest) + name: CreateMessageBatchAsync(MessageBatchRequest) + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_CreateMessageBatchAsync_AnthropicClient_Models_MessageBatchRequest_ + commentId: M:AnthropicClient.AnthropicApiClient.CreateMessageBatchAsync(AnthropicClient.Models.MessageBatchRequest) + fullName: AnthropicClient.AnthropicApiClient.CreateMessageBatchAsync(AnthropicClient.Models.MessageBatchRequest) + nameWithType: AnthropicApiClient.CreateMessageBatchAsync(MessageBatchRequest) +- uid: AnthropicClient.AnthropicApiClient.CreateMessageBatchAsync* + name: CreateMessageBatchAsync + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_CreateMessageBatchAsync_ + commentId: Overload:AnthropicClient.AnthropicApiClient.CreateMessageBatchAsync + isSpec: "True" + fullName: AnthropicClient.AnthropicApiClient.CreateMessageBatchAsync + nameWithType: AnthropicApiClient.CreateMessageBatchAsync +- uid: AnthropicClient.AnthropicApiClient.DeleteMessageBatchAsync(System.String) + name: DeleteMessageBatchAsync(string) + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_DeleteMessageBatchAsync_System_String_ + commentId: M:AnthropicClient.AnthropicApiClient.DeleteMessageBatchAsync(System.String) + name.vb: DeleteMessageBatchAsync(String) + fullName: AnthropicClient.AnthropicApiClient.DeleteMessageBatchAsync(string) + fullName.vb: AnthropicClient.AnthropicApiClient.DeleteMessageBatchAsync(String) + nameWithType: AnthropicApiClient.DeleteMessageBatchAsync(string) + nameWithType.vb: AnthropicApiClient.DeleteMessageBatchAsync(String) +- uid: AnthropicClient.AnthropicApiClient.DeleteMessageBatchAsync* + name: DeleteMessageBatchAsync + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_DeleteMessageBatchAsync_ + commentId: Overload:AnthropicClient.AnthropicApiClient.DeleteMessageBatchAsync + isSpec: "True" + fullName: AnthropicClient.AnthropicApiClient.DeleteMessageBatchAsync + nameWithType: AnthropicApiClient.DeleteMessageBatchAsync +- uid: AnthropicClient.AnthropicApiClient.GetMessageBatchAsync(System.String) + name: GetMessageBatchAsync(string) + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_GetMessageBatchAsync_System_String_ + commentId: M:AnthropicClient.AnthropicApiClient.GetMessageBatchAsync(System.String) + name.vb: GetMessageBatchAsync(String) + fullName: AnthropicClient.AnthropicApiClient.GetMessageBatchAsync(string) + fullName.vb: AnthropicClient.AnthropicApiClient.GetMessageBatchAsync(String) + nameWithType: AnthropicApiClient.GetMessageBatchAsync(string) + nameWithType.vb: AnthropicApiClient.GetMessageBatchAsync(String) +- uid: AnthropicClient.AnthropicApiClient.GetMessageBatchAsync* + name: GetMessageBatchAsync + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_GetMessageBatchAsync_ + commentId: Overload:AnthropicClient.AnthropicApiClient.GetMessageBatchAsync + isSpec: "True" + fullName: AnthropicClient.AnthropicApiClient.GetMessageBatchAsync + nameWithType: AnthropicApiClient.GetMessageBatchAsync +- uid: AnthropicClient.AnthropicApiClient.GetMessageBatchResultsAsync(System.String) + name: GetMessageBatchResultsAsync(string) + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_GetMessageBatchResultsAsync_System_String_ + commentId: M:AnthropicClient.AnthropicApiClient.GetMessageBatchResultsAsync(System.String) + name.vb: GetMessageBatchResultsAsync(String) + fullName: AnthropicClient.AnthropicApiClient.GetMessageBatchResultsAsync(string) + fullName.vb: AnthropicClient.AnthropicApiClient.GetMessageBatchResultsAsync(String) + nameWithType: AnthropicApiClient.GetMessageBatchResultsAsync(string) + nameWithType.vb: AnthropicApiClient.GetMessageBatchResultsAsync(String) +- uid: AnthropicClient.AnthropicApiClient.GetMessageBatchResultsAsync* + name: GetMessageBatchResultsAsync + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_GetMessageBatchResultsAsync_ + commentId: Overload:AnthropicClient.AnthropicApiClient.GetMessageBatchResultsAsync + isSpec: "True" + fullName: AnthropicClient.AnthropicApiClient.GetMessageBatchResultsAsync + nameWithType: AnthropicApiClient.GetMessageBatchResultsAsync - uid: AnthropicClient.AnthropicApiClient.GetModelAsync(System.String) name: GetModelAsync(string) href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_GetModelAsync_System_String_ @@ -80,6 +157,22 @@ references: isSpec: "True" fullName: AnthropicClient.AnthropicApiClient.GetModelAsync nameWithType: AnthropicApiClient.GetModelAsync +- uid: AnthropicClient.AnthropicApiClient.ListAllMessageBatchesAsync(System.Int32) + name: ListAllMessageBatchesAsync(int) + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_ListAllMessageBatchesAsync_System_Int32_ + commentId: M:AnthropicClient.AnthropicApiClient.ListAllMessageBatchesAsync(System.Int32) + name.vb: ListAllMessageBatchesAsync(Integer) + fullName: AnthropicClient.AnthropicApiClient.ListAllMessageBatchesAsync(int) + fullName.vb: AnthropicClient.AnthropicApiClient.ListAllMessageBatchesAsync(Integer) + nameWithType: AnthropicApiClient.ListAllMessageBatchesAsync(int) + nameWithType.vb: AnthropicApiClient.ListAllMessageBatchesAsync(Integer) +- uid: AnthropicClient.AnthropicApiClient.ListAllMessageBatchesAsync* + name: ListAllMessageBatchesAsync + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_ListAllMessageBatchesAsync_ + commentId: Overload:AnthropicClient.AnthropicApiClient.ListAllMessageBatchesAsync + isSpec: "True" + fullName: AnthropicClient.AnthropicApiClient.ListAllMessageBatchesAsync + nameWithType: AnthropicApiClient.ListAllMessageBatchesAsync - uid: AnthropicClient.AnthropicApiClient.ListAllModelsAsync(System.Int32) name: ListAllModelsAsync(int) href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_ListAllModelsAsync_System_Int32_ @@ -96,6 +189,22 @@ references: isSpec: "True" fullName: AnthropicClient.AnthropicApiClient.ListAllModelsAsync nameWithType: AnthropicApiClient.ListAllModelsAsync +- uid: AnthropicClient.AnthropicApiClient.ListMessageBatchesAsync(AnthropicClient.Models.PagingRequest) + name: ListMessageBatchesAsync(PagingRequest?) + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_ListMessageBatchesAsync_AnthropicClient_Models_PagingRequest_ + commentId: M:AnthropicClient.AnthropicApiClient.ListMessageBatchesAsync(AnthropicClient.Models.PagingRequest) + name.vb: ListMessageBatchesAsync(PagingRequest) + fullName: AnthropicClient.AnthropicApiClient.ListMessageBatchesAsync(AnthropicClient.Models.PagingRequest?) + fullName.vb: AnthropicClient.AnthropicApiClient.ListMessageBatchesAsync(AnthropicClient.Models.PagingRequest) + nameWithType: AnthropicApiClient.ListMessageBatchesAsync(PagingRequest?) + nameWithType.vb: AnthropicApiClient.ListMessageBatchesAsync(PagingRequest) +- uid: AnthropicClient.AnthropicApiClient.ListMessageBatchesAsync* + name: ListMessageBatchesAsync + href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_ListMessageBatchesAsync_ + commentId: Overload:AnthropicClient.AnthropicApiClient.ListMessageBatchesAsync + isSpec: "True" + fullName: AnthropicClient.AnthropicApiClient.ListMessageBatchesAsync + nameWithType: AnthropicApiClient.ListMessageBatchesAsync - uid: AnthropicClient.AnthropicApiClient.ListModelsAsync(AnthropicClient.Models.PagingRequest) name: ListModelsAsync(PagingRequest?) href: api/AnthropicClient.AnthropicApiClient.html#AnthropicClient_AnthropicApiClient_ListModelsAsync_AnthropicClient_Models_PagingRequest_ @@ -118,6 +227,22 @@ references: commentId: T:AnthropicClient.IAnthropicApiClient fullName: AnthropicClient.IAnthropicApiClient nameWithType: IAnthropicApiClient +- uid: AnthropicClient.IAnthropicApiClient.CancelMessageBatchAsync(System.String) + name: CancelMessageBatchAsync(string) + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_CancelMessageBatchAsync_System_String_ + commentId: M:AnthropicClient.IAnthropicApiClient.CancelMessageBatchAsync(System.String) + name.vb: CancelMessageBatchAsync(String) + fullName: AnthropicClient.IAnthropicApiClient.CancelMessageBatchAsync(string) + fullName.vb: AnthropicClient.IAnthropicApiClient.CancelMessageBatchAsync(String) + nameWithType: IAnthropicApiClient.CancelMessageBatchAsync(string) + nameWithType.vb: IAnthropicApiClient.CancelMessageBatchAsync(String) +- uid: AnthropicClient.IAnthropicApiClient.CancelMessageBatchAsync* + name: CancelMessageBatchAsync + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_CancelMessageBatchAsync_ + commentId: Overload:AnthropicClient.IAnthropicApiClient.CancelMessageBatchAsync + isSpec: "True" + fullName: AnthropicClient.IAnthropicApiClient.CancelMessageBatchAsync + nameWithType: IAnthropicApiClient.CancelMessageBatchAsync - uid: AnthropicClient.IAnthropicApiClient.CountMessageTokensAsync(AnthropicClient.Models.CountMessageTokensRequest) name: CountMessageTokensAsync(CountMessageTokensRequest) href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_CountMessageTokensAsync_AnthropicClient_Models_CountMessageTokensRequest_ @@ -150,6 +275,67 @@ references: isSpec: "True" fullName: AnthropicClient.IAnthropicApiClient.CreateMessageAsync nameWithType: IAnthropicApiClient.CreateMessageAsync +- uid: AnthropicClient.IAnthropicApiClient.CreateMessageBatchAsync(AnthropicClient.Models.MessageBatchRequest) + name: CreateMessageBatchAsync(MessageBatchRequest) + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_CreateMessageBatchAsync_AnthropicClient_Models_MessageBatchRequest_ + commentId: M:AnthropicClient.IAnthropicApiClient.CreateMessageBatchAsync(AnthropicClient.Models.MessageBatchRequest) + fullName: AnthropicClient.IAnthropicApiClient.CreateMessageBatchAsync(AnthropicClient.Models.MessageBatchRequest) + nameWithType: IAnthropicApiClient.CreateMessageBatchAsync(MessageBatchRequest) +- uid: AnthropicClient.IAnthropicApiClient.CreateMessageBatchAsync* + name: CreateMessageBatchAsync + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_CreateMessageBatchAsync_ + commentId: Overload:AnthropicClient.IAnthropicApiClient.CreateMessageBatchAsync + isSpec: "True" + fullName: AnthropicClient.IAnthropicApiClient.CreateMessageBatchAsync + nameWithType: IAnthropicApiClient.CreateMessageBatchAsync +- uid: AnthropicClient.IAnthropicApiClient.DeleteMessageBatchAsync(System.String) + name: DeleteMessageBatchAsync(string) + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_DeleteMessageBatchAsync_System_String_ + commentId: M:AnthropicClient.IAnthropicApiClient.DeleteMessageBatchAsync(System.String) + name.vb: DeleteMessageBatchAsync(String) + fullName: AnthropicClient.IAnthropicApiClient.DeleteMessageBatchAsync(string) + fullName.vb: AnthropicClient.IAnthropicApiClient.DeleteMessageBatchAsync(String) + nameWithType: IAnthropicApiClient.DeleteMessageBatchAsync(string) + nameWithType.vb: IAnthropicApiClient.DeleteMessageBatchAsync(String) +- uid: AnthropicClient.IAnthropicApiClient.DeleteMessageBatchAsync* + name: DeleteMessageBatchAsync + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_DeleteMessageBatchAsync_ + commentId: Overload:AnthropicClient.IAnthropicApiClient.DeleteMessageBatchAsync + isSpec: "True" + fullName: AnthropicClient.IAnthropicApiClient.DeleteMessageBatchAsync + nameWithType: IAnthropicApiClient.DeleteMessageBatchAsync +- uid: AnthropicClient.IAnthropicApiClient.GetMessageBatchAsync(System.String) + name: GetMessageBatchAsync(string) + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_GetMessageBatchAsync_System_String_ + commentId: M:AnthropicClient.IAnthropicApiClient.GetMessageBatchAsync(System.String) + name.vb: GetMessageBatchAsync(String) + fullName: AnthropicClient.IAnthropicApiClient.GetMessageBatchAsync(string) + fullName.vb: AnthropicClient.IAnthropicApiClient.GetMessageBatchAsync(String) + nameWithType: IAnthropicApiClient.GetMessageBatchAsync(string) + nameWithType.vb: IAnthropicApiClient.GetMessageBatchAsync(String) +- uid: AnthropicClient.IAnthropicApiClient.GetMessageBatchAsync* + name: GetMessageBatchAsync + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_GetMessageBatchAsync_ + commentId: Overload:AnthropicClient.IAnthropicApiClient.GetMessageBatchAsync + isSpec: "True" + fullName: AnthropicClient.IAnthropicApiClient.GetMessageBatchAsync + nameWithType: IAnthropicApiClient.GetMessageBatchAsync +- uid: AnthropicClient.IAnthropicApiClient.GetMessageBatchResultsAsync(System.String) + name: GetMessageBatchResultsAsync(string) + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_GetMessageBatchResultsAsync_System_String_ + commentId: M:AnthropicClient.IAnthropicApiClient.GetMessageBatchResultsAsync(System.String) + name.vb: GetMessageBatchResultsAsync(String) + fullName: AnthropicClient.IAnthropicApiClient.GetMessageBatchResultsAsync(string) + fullName.vb: AnthropicClient.IAnthropicApiClient.GetMessageBatchResultsAsync(String) + nameWithType: IAnthropicApiClient.GetMessageBatchResultsAsync(string) + nameWithType.vb: IAnthropicApiClient.GetMessageBatchResultsAsync(String) +- uid: AnthropicClient.IAnthropicApiClient.GetMessageBatchResultsAsync* + name: GetMessageBatchResultsAsync + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_GetMessageBatchResultsAsync_ + commentId: Overload:AnthropicClient.IAnthropicApiClient.GetMessageBatchResultsAsync + isSpec: "True" + fullName: AnthropicClient.IAnthropicApiClient.GetMessageBatchResultsAsync + nameWithType: IAnthropicApiClient.GetMessageBatchResultsAsync - uid: AnthropicClient.IAnthropicApiClient.GetModelAsync(System.String) name: GetModelAsync(string) href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_GetModelAsync_System_String_ @@ -166,6 +352,22 @@ references: isSpec: "True" fullName: AnthropicClient.IAnthropicApiClient.GetModelAsync nameWithType: IAnthropicApiClient.GetModelAsync +- uid: AnthropicClient.IAnthropicApiClient.ListAllMessageBatchesAsync(System.Int32) + name: ListAllMessageBatchesAsync(int) + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_ListAllMessageBatchesAsync_System_Int32_ + commentId: M:AnthropicClient.IAnthropicApiClient.ListAllMessageBatchesAsync(System.Int32) + name.vb: ListAllMessageBatchesAsync(Integer) + fullName: AnthropicClient.IAnthropicApiClient.ListAllMessageBatchesAsync(int) + fullName.vb: AnthropicClient.IAnthropicApiClient.ListAllMessageBatchesAsync(Integer) + nameWithType: IAnthropicApiClient.ListAllMessageBatchesAsync(int) + nameWithType.vb: IAnthropicApiClient.ListAllMessageBatchesAsync(Integer) +- uid: AnthropicClient.IAnthropicApiClient.ListAllMessageBatchesAsync* + name: ListAllMessageBatchesAsync + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_ListAllMessageBatchesAsync_ + commentId: Overload:AnthropicClient.IAnthropicApiClient.ListAllMessageBatchesAsync + isSpec: "True" + fullName: AnthropicClient.IAnthropicApiClient.ListAllMessageBatchesAsync + nameWithType: IAnthropicApiClient.ListAllMessageBatchesAsync - uid: AnthropicClient.IAnthropicApiClient.ListAllModelsAsync(System.Int32) name: ListAllModelsAsync(int) href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_ListAllModelsAsync_System_Int32_ @@ -182,6 +384,22 @@ references: isSpec: "True" fullName: AnthropicClient.IAnthropicApiClient.ListAllModelsAsync nameWithType: IAnthropicApiClient.ListAllModelsAsync +- uid: AnthropicClient.IAnthropicApiClient.ListMessageBatchesAsync(AnthropicClient.Models.PagingRequest) + name: ListMessageBatchesAsync(PagingRequest?) + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_ListMessageBatchesAsync_AnthropicClient_Models_PagingRequest_ + commentId: M:AnthropicClient.IAnthropicApiClient.ListMessageBatchesAsync(AnthropicClient.Models.PagingRequest) + name.vb: ListMessageBatchesAsync(PagingRequest) + fullName: AnthropicClient.IAnthropicApiClient.ListMessageBatchesAsync(AnthropicClient.Models.PagingRequest?) + fullName.vb: AnthropicClient.IAnthropicApiClient.ListMessageBatchesAsync(AnthropicClient.Models.PagingRequest) + nameWithType: IAnthropicApiClient.ListMessageBatchesAsync(PagingRequest?) + nameWithType.vb: IAnthropicApiClient.ListMessageBatchesAsync(PagingRequest) +- uid: AnthropicClient.IAnthropicApiClient.ListMessageBatchesAsync* + name: ListMessageBatchesAsync + href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_ListMessageBatchesAsync_ + commentId: Overload:AnthropicClient.IAnthropicApiClient.ListMessageBatchesAsync + isSpec: "True" + fullName: AnthropicClient.IAnthropicApiClient.ListMessageBatchesAsync + nameWithType: IAnthropicApiClient.ListMessageBatchesAsync - uid: AnthropicClient.IAnthropicApiClient.ListModelsAsync(AnthropicClient.Models.PagingRequest) name: ListModelsAsync(PagingRequest?) href: api/AnthropicClient.IAnthropicApiClient.html#AnthropicClient_IAnthropicApiClient_ListModelsAsync_AnthropicClient_Models_PagingRequest_ @@ -966,6 +1184,31 @@ references: commentId: F:AnthropicClient.Models.CacheControlType.Ephemeral fullName: AnthropicClient.Models.CacheControlType.Ephemeral nameWithType: CacheControlType.Ephemeral +- uid: AnthropicClient.Models.CanceledMessageBatchResult + name: CanceledMessageBatchResult + href: api/AnthropicClient.Models.CanceledMessageBatchResult.html + commentId: T:AnthropicClient.Models.CanceledMessageBatchResult + fullName: AnthropicClient.Models.CanceledMessageBatchResult + nameWithType: CanceledMessageBatchResult +- uid: AnthropicClient.Models.CanceledMessageBatchResult.#ctor + name: CanceledMessageBatchResult() + href: api/AnthropicClient.Models.CanceledMessageBatchResult.html#AnthropicClient_Models_CanceledMessageBatchResult__ctor + commentId: M:AnthropicClient.Models.CanceledMessageBatchResult.#ctor + name.vb: New() + fullName: AnthropicClient.Models.CanceledMessageBatchResult.CanceledMessageBatchResult() + fullName.vb: AnthropicClient.Models.CanceledMessageBatchResult.New() + nameWithType: CanceledMessageBatchResult.CanceledMessageBatchResult() + nameWithType.vb: CanceledMessageBatchResult.New() +- uid: AnthropicClient.Models.CanceledMessageBatchResult.#ctor* + name: CanceledMessageBatchResult + href: api/AnthropicClient.Models.CanceledMessageBatchResult.html#AnthropicClient_Models_CanceledMessageBatchResult__ctor_ + commentId: Overload:AnthropicClient.Models.CanceledMessageBatchResult.#ctor + isSpec: "True" + name.vb: New + fullName: AnthropicClient.Models.CanceledMessageBatchResult.CanceledMessageBatchResult + fullName.vb: AnthropicClient.Models.CanceledMessageBatchResult.New + nameWithType: CanceledMessageBatchResult.CanceledMessageBatchResult + nameWithType.vb: CanceledMessageBatchResult.New - uid: AnthropicClient.Models.Content name: Content href: api/AnthropicClient.Models.Content.html @@ -1621,6 +1864,44 @@ references: commentId: F:AnthropicClient.Models.ErrorType.RateLimitError fullName: AnthropicClient.Models.ErrorType.RateLimitError nameWithType: ErrorType.RateLimitError +- uid: AnthropicClient.Models.ErroredMessageBatchResult + name: ErroredMessageBatchResult + href: api/AnthropicClient.Models.ErroredMessageBatchResult.html + commentId: T:AnthropicClient.Models.ErroredMessageBatchResult + fullName: AnthropicClient.Models.ErroredMessageBatchResult + nameWithType: ErroredMessageBatchResult +- uid: AnthropicClient.Models.ErroredMessageBatchResult.#ctor + name: ErroredMessageBatchResult() + href: api/AnthropicClient.Models.ErroredMessageBatchResult.html#AnthropicClient_Models_ErroredMessageBatchResult__ctor + commentId: M:AnthropicClient.Models.ErroredMessageBatchResult.#ctor + name.vb: New() + fullName: AnthropicClient.Models.ErroredMessageBatchResult.ErroredMessageBatchResult() + fullName.vb: AnthropicClient.Models.ErroredMessageBatchResult.New() + nameWithType: ErroredMessageBatchResult.ErroredMessageBatchResult() + nameWithType.vb: ErroredMessageBatchResult.New() +- uid: AnthropicClient.Models.ErroredMessageBatchResult.#ctor* + name: ErroredMessageBatchResult + href: api/AnthropicClient.Models.ErroredMessageBatchResult.html#AnthropicClient_Models_ErroredMessageBatchResult__ctor_ + commentId: Overload:AnthropicClient.Models.ErroredMessageBatchResult.#ctor + isSpec: "True" + name.vb: New + fullName: AnthropicClient.Models.ErroredMessageBatchResult.ErroredMessageBatchResult + fullName.vb: AnthropicClient.Models.ErroredMessageBatchResult.New + nameWithType: ErroredMessageBatchResult.ErroredMessageBatchResult + nameWithType.vb: ErroredMessageBatchResult.New +- uid: AnthropicClient.Models.ErroredMessageBatchResult.Error + name: Error + href: api/AnthropicClient.Models.ErroredMessageBatchResult.html#AnthropicClient_Models_ErroredMessageBatchResult_Error + commentId: P:AnthropicClient.Models.ErroredMessageBatchResult.Error + fullName: AnthropicClient.Models.ErroredMessageBatchResult.Error + nameWithType: ErroredMessageBatchResult.Error +- uid: AnthropicClient.Models.ErroredMessageBatchResult.Error* + name: Error + href: api/AnthropicClient.Models.ErroredMessageBatchResult.html#AnthropicClient_Models_ErroredMessageBatchResult_Error_ + commentId: Overload:AnthropicClient.Models.ErroredMessageBatchResult.Error + isSpec: "True" + fullName: AnthropicClient.Models.ErroredMessageBatchResult.Error + nameWithType: ErroredMessageBatchResult.Error - uid: AnthropicClient.Models.EventData name: EventData href: api/AnthropicClient.Models.EventData.html @@ -1719,6 +2000,31 @@ references: commentId: F:AnthropicClient.Models.EventType.Ping fullName: AnthropicClient.Models.EventType.Ping nameWithType: EventType.Ping +- uid: AnthropicClient.Models.ExpiredMessageBatchResult + name: ExpiredMessageBatchResult + href: api/AnthropicClient.Models.ExpiredMessageBatchResult.html + commentId: T:AnthropicClient.Models.ExpiredMessageBatchResult + fullName: AnthropicClient.Models.ExpiredMessageBatchResult + nameWithType: ExpiredMessageBatchResult +- uid: AnthropicClient.Models.ExpiredMessageBatchResult.#ctor + name: ExpiredMessageBatchResult() + href: api/AnthropicClient.Models.ExpiredMessageBatchResult.html#AnthropicClient_Models_ExpiredMessageBatchResult__ctor + commentId: M:AnthropicClient.Models.ExpiredMessageBatchResult.#ctor + name.vb: New() + fullName: AnthropicClient.Models.ExpiredMessageBatchResult.ExpiredMessageBatchResult() + fullName.vb: AnthropicClient.Models.ExpiredMessageBatchResult.New() + nameWithType: ExpiredMessageBatchResult.ExpiredMessageBatchResult() + nameWithType.vb: ExpiredMessageBatchResult.New() +- uid: AnthropicClient.Models.ExpiredMessageBatchResult.#ctor* + name: ExpiredMessageBatchResult + href: api/AnthropicClient.Models.ExpiredMessageBatchResult.html#AnthropicClient_Models_ExpiredMessageBatchResult__ctor_ + commentId: Overload:AnthropicClient.Models.ExpiredMessageBatchResult.#ctor + isSpec: "True" + name.vb: New + fullName: AnthropicClient.Models.ExpiredMessageBatchResult.ExpiredMessageBatchResult + fullName.vb: AnthropicClient.Models.ExpiredMessageBatchResult.New + nameWithType: ExpiredMessageBatchResult.ExpiredMessageBatchResult + nameWithType.vb: ExpiredMessageBatchResult.New - uid: AnthropicClient.Models.FunctionParameterAttribute name: FunctionParameterAttribute href: api/AnthropicClient.Models.FunctionParameterAttribute.html @@ -2275,6 +2581,458 @@ references: isSpec: "True" fullName: AnthropicClient.Models.Message.Role nameWithType: Message.Role +- uid: AnthropicClient.Models.MessageBatchDeleteResponse + name: MessageBatchDeleteResponse + href: api/AnthropicClient.Models.MessageBatchDeleteResponse.html + commentId: T:AnthropicClient.Models.MessageBatchDeleteResponse + fullName: AnthropicClient.Models.MessageBatchDeleteResponse + nameWithType: MessageBatchDeleteResponse +- uid: AnthropicClient.Models.MessageBatchDeleteResponse.Id + name: Id + href: api/AnthropicClient.Models.MessageBatchDeleteResponse.html#AnthropicClient_Models_MessageBatchDeleteResponse_Id + commentId: P:AnthropicClient.Models.MessageBatchDeleteResponse.Id + fullName: AnthropicClient.Models.MessageBatchDeleteResponse.Id + nameWithType: MessageBatchDeleteResponse.Id +- uid: AnthropicClient.Models.MessageBatchDeleteResponse.Id* + name: Id + href: api/AnthropicClient.Models.MessageBatchDeleteResponse.html#AnthropicClient_Models_MessageBatchDeleteResponse_Id_ + commentId: Overload:AnthropicClient.Models.MessageBatchDeleteResponse.Id + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchDeleteResponse.Id + nameWithType: MessageBatchDeleteResponse.Id +- uid: AnthropicClient.Models.MessageBatchDeleteResponse.Type + name: Type + href: api/AnthropicClient.Models.MessageBatchDeleteResponse.html#AnthropicClient_Models_MessageBatchDeleteResponse_Type + commentId: P:AnthropicClient.Models.MessageBatchDeleteResponse.Type + fullName: AnthropicClient.Models.MessageBatchDeleteResponse.Type + nameWithType: MessageBatchDeleteResponse.Type +- uid: AnthropicClient.Models.MessageBatchDeleteResponse.Type* + name: Type + href: api/AnthropicClient.Models.MessageBatchDeleteResponse.html#AnthropicClient_Models_MessageBatchDeleteResponse_Type_ + commentId: Overload:AnthropicClient.Models.MessageBatchDeleteResponse.Type + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchDeleteResponse.Type + nameWithType: MessageBatchDeleteResponse.Type +- uid: AnthropicClient.Models.MessageBatchRequest + name: MessageBatchRequest + href: api/AnthropicClient.Models.MessageBatchRequest.html + commentId: T:AnthropicClient.Models.MessageBatchRequest + fullName: AnthropicClient.Models.MessageBatchRequest + nameWithType: MessageBatchRequest +- uid: AnthropicClient.Models.MessageBatchRequest.#ctor(System.Collections.Generic.List{AnthropicClient.Models.MessageBatchRequestItem}) + name: MessageBatchRequest(List) + href: api/AnthropicClient.Models.MessageBatchRequest.html#AnthropicClient_Models_MessageBatchRequest__ctor_System_Collections_Generic_List_AnthropicClient_Models_MessageBatchRequestItem__ + commentId: M:AnthropicClient.Models.MessageBatchRequest.#ctor(System.Collections.Generic.List{AnthropicClient.Models.MessageBatchRequestItem}) + name.vb: New(List(Of MessageBatchRequestItem)) + fullName: AnthropicClient.Models.MessageBatchRequest.MessageBatchRequest(System.Collections.Generic.List) + fullName.vb: AnthropicClient.Models.MessageBatchRequest.New(System.Collections.Generic.List(Of AnthropicClient.Models.MessageBatchRequestItem)) + nameWithType: MessageBatchRequest.MessageBatchRequest(List) + nameWithType.vb: MessageBatchRequest.New(List(Of MessageBatchRequestItem)) +- uid: AnthropicClient.Models.MessageBatchRequest.#ctor* + name: MessageBatchRequest + href: api/AnthropicClient.Models.MessageBatchRequest.html#AnthropicClient_Models_MessageBatchRequest__ctor_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequest.#ctor + isSpec: "True" + name.vb: New + fullName: AnthropicClient.Models.MessageBatchRequest.MessageBatchRequest + fullName.vb: AnthropicClient.Models.MessageBatchRequest.New + nameWithType: MessageBatchRequest.MessageBatchRequest + nameWithType.vb: MessageBatchRequest.New +- uid: AnthropicClient.Models.MessageBatchRequest.Requests + name: Requests + href: api/AnthropicClient.Models.MessageBatchRequest.html#AnthropicClient_Models_MessageBatchRequest_Requests + commentId: P:AnthropicClient.Models.MessageBatchRequest.Requests + fullName: AnthropicClient.Models.MessageBatchRequest.Requests + nameWithType: MessageBatchRequest.Requests +- uid: AnthropicClient.Models.MessageBatchRequest.Requests* + name: Requests + href: api/AnthropicClient.Models.MessageBatchRequest.html#AnthropicClient_Models_MessageBatchRequest_Requests_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequest.Requests + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchRequest.Requests + nameWithType: MessageBatchRequest.Requests +- uid: AnthropicClient.Models.MessageBatchRequestCounts + name: MessageBatchRequestCounts + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html + commentId: T:AnthropicClient.Models.MessageBatchRequestCounts + fullName: AnthropicClient.Models.MessageBatchRequestCounts + nameWithType: MessageBatchRequestCounts +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Canceled + name: Canceled + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Canceled + commentId: P:AnthropicClient.Models.MessageBatchRequestCounts.Canceled + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Canceled + nameWithType: MessageBatchRequestCounts.Canceled +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Canceled* + name: Canceled + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Canceled_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequestCounts.Canceled + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Canceled + nameWithType: MessageBatchRequestCounts.Canceled +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Errored + name: Errored + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Errored + commentId: P:AnthropicClient.Models.MessageBatchRequestCounts.Errored + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Errored + nameWithType: MessageBatchRequestCounts.Errored +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Errored* + name: Errored + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Errored_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequestCounts.Errored + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Errored + nameWithType: MessageBatchRequestCounts.Errored +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Expired + name: Expired + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Expired + commentId: P:AnthropicClient.Models.MessageBatchRequestCounts.Expired + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Expired + nameWithType: MessageBatchRequestCounts.Expired +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Expired* + name: Expired + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Expired_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequestCounts.Expired + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Expired + nameWithType: MessageBatchRequestCounts.Expired +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Processing + name: Processing + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Processing + commentId: P:AnthropicClient.Models.MessageBatchRequestCounts.Processing + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Processing + nameWithType: MessageBatchRequestCounts.Processing +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Processing* + name: Processing + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Processing_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequestCounts.Processing + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Processing + nameWithType: MessageBatchRequestCounts.Processing +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Succeeded + name: Succeeded + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Succeeded + commentId: P:AnthropicClient.Models.MessageBatchRequestCounts.Succeeded + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Succeeded + nameWithType: MessageBatchRequestCounts.Succeeded +- uid: AnthropicClient.Models.MessageBatchRequestCounts.Succeeded* + name: Succeeded + href: api/AnthropicClient.Models.MessageBatchRequestCounts.html#AnthropicClient_Models_MessageBatchRequestCounts_Succeeded_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequestCounts.Succeeded + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchRequestCounts.Succeeded + nameWithType: MessageBatchRequestCounts.Succeeded +- uid: AnthropicClient.Models.MessageBatchRequestItem + name: MessageBatchRequestItem + href: api/AnthropicClient.Models.MessageBatchRequestItem.html + commentId: T:AnthropicClient.Models.MessageBatchRequestItem + fullName: AnthropicClient.Models.MessageBatchRequestItem + nameWithType: MessageBatchRequestItem +- uid: AnthropicClient.Models.MessageBatchRequestItem.#ctor(System.String,AnthropicClient.Models.MessageRequest) + name: MessageBatchRequestItem(string, MessageRequest) + href: api/AnthropicClient.Models.MessageBatchRequestItem.html#AnthropicClient_Models_MessageBatchRequestItem__ctor_System_String_AnthropicClient_Models_MessageRequest_ + commentId: M:AnthropicClient.Models.MessageBatchRequestItem.#ctor(System.String,AnthropicClient.Models.MessageRequest) + name.vb: New(String, MessageRequest) + fullName: AnthropicClient.Models.MessageBatchRequestItem.MessageBatchRequestItem(string, AnthropicClient.Models.MessageRequest) + fullName.vb: AnthropicClient.Models.MessageBatchRequestItem.New(String, AnthropicClient.Models.MessageRequest) + nameWithType: MessageBatchRequestItem.MessageBatchRequestItem(string, MessageRequest) + nameWithType.vb: MessageBatchRequestItem.New(String, MessageRequest) +- uid: AnthropicClient.Models.MessageBatchRequestItem.#ctor* + name: MessageBatchRequestItem + href: api/AnthropicClient.Models.MessageBatchRequestItem.html#AnthropicClient_Models_MessageBatchRequestItem__ctor_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequestItem.#ctor + isSpec: "True" + name.vb: New + fullName: AnthropicClient.Models.MessageBatchRequestItem.MessageBatchRequestItem + fullName.vb: AnthropicClient.Models.MessageBatchRequestItem.New + nameWithType: MessageBatchRequestItem.MessageBatchRequestItem + nameWithType.vb: MessageBatchRequestItem.New +- uid: AnthropicClient.Models.MessageBatchRequestItem.CustomId + name: CustomId + href: api/AnthropicClient.Models.MessageBatchRequestItem.html#AnthropicClient_Models_MessageBatchRequestItem_CustomId + commentId: P:AnthropicClient.Models.MessageBatchRequestItem.CustomId + fullName: AnthropicClient.Models.MessageBatchRequestItem.CustomId + nameWithType: MessageBatchRequestItem.CustomId +- uid: AnthropicClient.Models.MessageBatchRequestItem.CustomId* + name: CustomId + href: api/AnthropicClient.Models.MessageBatchRequestItem.html#AnthropicClient_Models_MessageBatchRequestItem_CustomId_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequestItem.CustomId + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchRequestItem.CustomId + nameWithType: MessageBatchRequestItem.CustomId +- uid: AnthropicClient.Models.MessageBatchRequestItem.Params + name: Params + href: api/AnthropicClient.Models.MessageBatchRequestItem.html#AnthropicClient_Models_MessageBatchRequestItem_Params + commentId: P:AnthropicClient.Models.MessageBatchRequestItem.Params + fullName: AnthropicClient.Models.MessageBatchRequestItem.Params + nameWithType: MessageBatchRequestItem.Params +- uid: AnthropicClient.Models.MessageBatchRequestItem.Params* + name: Params + href: api/AnthropicClient.Models.MessageBatchRequestItem.html#AnthropicClient_Models_MessageBatchRequestItem_Params_ + commentId: Overload:AnthropicClient.Models.MessageBatchRequestItem.Params + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchRequestItem.Params + nameWithType: MessageBatchRequestItem.Params +- uid: AnthropicClient.Models.MessageBatchResponse + name: MessageBatchResponse + href: api/AnthropicClient.Models.MessageBatchResponse.html + commentId: T:AnthropicClient.Models.MessageBatchResponse + fullName: AnthropicClient.Models.MessageBatchResponse + nameWithType: MessageBatchResponse +- uid: AnthropicClient.Models.MessageBatchResponse.ArchivedAt + name: ArchivedAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_ArchivedAt + commentId: P:AnthropicClient.Models.MessageBatchResponse.ArchivedAt + fullName: AnthropicClient.Models.MessageBatchResponse.ArchivedAt + nameWithType: MessageBatchResponse.ArchivedAt +- uid: AnthropicClient.Models.MessageBatchResponse.ArchivedAt* + name: ArchivedAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_ArchivedAt_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.ArchivedAt + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.ArchivedAt + nameWithType: MessageBatchResponse.ArchivedAt +- uid: AnthropicClient.Models.MessageBatchResponse.CancelInitiatedAt + name: CancelInitiatedAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_CancelInitiatedAt + commentId: P:AnthropicClient.Models.MessageBatchResponse.CancelInitiatedAt + fullName: AnthropicClient.Models.MessageBatchResponse.CancelInitiatedAt + nameWithType: MessageBatchResponse.CancelInitiatedAt +- uid: AnthropicClient.Models.MessageBatchResponse.CancelInitiatedAt* + name: CancelInitiatedAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_CancelInitiatedAt_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.CancelInitiatedAt + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.CancelInitiatedAt + nameWithType: MessageBatchResponse.CancelInitiatedAt +- uid: AnthropicClient.Models.MessageBatchResponse.CreatedAt + name: CreatedAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_CreatedAt + commentId: P:AnthropicClient.Models.MessageBatchResponse.CreatedAt + fullName: AnthropicClient.Models.MessageBatchResponse.CreatedAt + nameWithType: MessageBatchResponse.CreatedAt +- uid: AnthropicClient.Models.MessageBatchResponse.CreatedAt* + name: CreatedAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_CreatedAt_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.CreatedAt + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.CreatedAt + nameWithType: MessageBatchResponse.CreatedAt +- uid: AnthropicClient.Models.MessageBatchResponse.EndedAt + name: EndedAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_EndedAt + commentId: P:AnthropicClient.Models.MessageBatchResponse.EndedAt + fullName: AnthropicClient.Models.MessageBatchResponse.EndedAt + nameWithType: MessageBatchResponse.EndedAt +- uid: AnthropicClient.Models.MessageBatchResponse.EndedAt* + name: EndedAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_EndedAt_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.EndedAt + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.EndedAt + nameWithType: MessageBatchResponse.EndedAt +- uid: AnthropicClient.Models.MessageBatchResponse.ExpiresAt + name: ExpiresAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_ExpiresAt + commentId: P:AnthropicClient.Models.MessageBatchResponse.ExpiresAt + fullName: AnthropicClient.Models.MessageBatchResponse.ExpiresAt + nameWithType: MessageBatchResponse.ExpiresAt +- uid: AnthropicClient.Models.MessageBatchResponse.ExpiresAt* + name: ExpiresAt + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_ExpiresAt_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.ExpiresAt + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.ExpiresAt + nameWithType: MessageBatchResponse.ExpiresAt +- uid: AnthropicClient.Models.MessageBatchResponse.Id + name: Id + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_Id + commentId: P:AnthropicClient.Models.MessageBatchResponse.Id + fullName: AnthropicClient.Models.MessageBatchResponse.Id + nameWithType: MessageBatchResponse.Id +- uid: AnthropicClient.Models.MessageBatchResponse.Id* + name: Id + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_Id_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.Id + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.Id + nameWithType: MessageBatchResponse.Id +- uid: AnthropicClient.Models.MessageBatchResponse.ProcessingStatus + name: ProcessingStatus + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_ProcessingStatus + commentId: P:AnthropicClient.Models.MessageBatchResponse.ProcessingStatus + fullName: AnthropicClient.Models.MessageBatchResponse.ProcessingStatus + nameWithType: MessageBatchResponse.ProcessingStatus +- uid: AnthropicClient.Models.MessageBatchResponse.ProcessingStatus* + name: ProcessingStatus + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_ProcessingStatus_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.ProcessingStatus + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.ProcessingStatus + nameWithType: MessageBatchResponse.ProcessingStatus +- uid: AnthropicClient.Models.MessageBatchResponse.RequestCounts + name: RequestCounts + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_RequestCounts + commentId: P:AnthropicClient.Models.MessageBatchResponse.RequestCounts + fullName: AnthropicClient.Models.MessageBatchResponse.RequestCounts + nameWithType: MessageBatchResponse.RequestCounts +- uid: AnthropicClient.Models.MessageBatchResponse.RequestCounts* + name: RequestCounts + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_RequestCounts_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.RequestCounts + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.RequestCounts + nameWithType: MessageBatchResponse.RequestCounts +- uid: AnthropicClient.Models.MessageBatchResponse.ResultsUrl + name: ResultsUrl + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_ResultsUrl + commentId: P:AnthropicClient.Models.MessageBatchResponse.ResultsUrl + fullName: AnthropicClient.Models.MessageBatchResponse.ResultsUrl + nameWithType: MessageBatchResponse.ResultsUrl +- uid: AnthropicClient.Models.MessageBatchResponse.ResultsUrl* + name: ResultsUrl + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_ResultsUrl_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.ResultsUrl + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.ResultsUrl + nameWithType: MessageBatchResponse.ResultsUrl +- uid: AnthropicClient.Models.MessageBatchResponse.Type + name: Type + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_Type + commentId: P:AnthropicClient.Models.MessageBatchResponse.Type + fullName: AnthropicClient.Models.MessageBatchResponse.Type + nameWithType: MessageBatchResponse.Type +- uid: AnthropicClient.Models.MessageBatchResponse.Type* + name: Type + href: api/AnthropicClient.Models.MessageBatchResponse.html#AnthropicClient_Models_MessageBatchResponse_Type_ + commentId: Overload:AnthropicClient.Models.MessageBatchResponse.Type + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResponse.Type + nameWithType: MessageBatchResponse.Type +- uid: AnthropicClient.Models.MessageBatchResult + name: MessageBatchResult + href: api/AnthropicClient.Models.MessageBatchResult.html + commentId: T:AnthropicClient.Models.MessageBatchResult + fullName: AnthropicClient.Models.MessageBatchResult + nameWithType: MessageBatchResult +- uid: AnthropicClient.Models.MessageBatchResult.#ctor(System.String) + name: MessageBatchResult(string) + href: api/AnthropicClient.Models.MessageBatchResult.html#AnthropicClient_Models_MessageBatchResult__ctor_System_String_ + commentId: M:AnthropicClient.Models.MessageBatchResult.#ctor(System.String) + name.vb: New(String) + fullName: AnthropicClient.Models.MessageBatchResult.MessageBatchResult(string) + fullName.vb: AnthropicClient.Models.MessageBatchResult.New(String) + nameWithType: MessageBatchResult.MessageBatchResult(string) + nameWithType.vb: MessageBatchResult.New(String) +- uid: AnthropicClient.Models.MessageBatchResult.#ctor* + name: MessageBatchResult + href: api/AnthropicClient.Models.MessageBatchResult.html#AnthropicClient_Models_MessageBatchResult__ctor_ + commentId: Overload:AnthropicClient.Models.MessageBatchResult.#ctor + isSpec: "True" + name.vb: New + fullName: AnthropicClient.Models.MessageBatchResult.MessageBatchResult + fullName.vb: AnthropicClient.Models.MessageBatchResult.New + nameWithType: MessageBatchResult.MessageBatchResult + nameWithType.vb: MessageBatchResult.New +- uid: AnthropicClient.Models.MessageBatchResult.Type + name: Type + href: api/AnthropicClient.Models.MessageBatchResult.html#AnthropicClient_Models_MessageBatchResult_Type + commentId: P:AnthropicClient.Models.MessageBatchResult.Type + fullName: AnthropicClient.Models.MessageBatchResult.Type + nameWithType: MessageBatchResult.Type +- uid: AnthropicClient.Models.MessageBatchResult.Type* + name: Type + href: api/AnthropicClient.Models.MessageBatchResult.html#AnthropicClient_Models_MessageBatchResult_Type_ + commentId: Overload:AnthropicClient.Models.MessageBatchResult.Type + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResult.Type + nameWithType: MessageBatchResult.Type +- uid: AnthropicClient.Models.MessageBatchResultItem + name: MessageBatchResultItem + href: api/AnthropicClient.Models.MessageBatchResultItem.html + commentId: T:AnthropicClient.Models.MessageBatchResultItem + fullName: AnthropicClient.Models.MessageBatchResultItem + nameWithType: MessageBatchResultItem +- uid: AnthropicClient.Models.MessageBatchResultItem.CustomId + name: CustomId + href: api/AnthropicClient.Models.MessageBatchResultItem.html#AnthropicClient_Models_MessageBatchResultItem_CustomId + commentId: P:AnthropicClient.Models.MessageBatchResultItem.CustomId + fullName: AnthropicClient.Models.MessageBatchResultItem.CustomId + nameWithType: MessageBatchResultItem.CustomId +- uid: AnthropicClient.Models.MessageBatchResultItem.CustomId* + name: CustomId + href: api/AnthropicClient.Models.MessageBatchResultItem.html#AnthropicClient_Models_MessageBatchResultItem_CustomId_ + commentId: Overload:AnthropicClient.Models.MessageBatchResultItem.CustomId + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResultItem.CustomId + nameWithType: MessageBatchResultItem.CustomId +- uid: AnthropicClient.Models.MessageBatchResultItem.Result + name: Result + href: api/AnthropicClient.Models.MessageBatchResultItem.html#AnthropicClient_Models_MessageBatchResultItem_Result + commentId: P:AnthropicClient.Models.MessageBatchResultItem.Result + fullName: AnthropicClient.Models.MessageBatchResultItem.Result + nameWithType: MessageBatchResultItem.Result +- uid: AnthropicClient.Models.MessageBatchResultItem.Result* + name: Result + href: api/AnthropicClient.Models.MessageBatchResultItem.html#AnthropicClient_Models_MessageBatchResultItem_Result_ + commentId: Overload:AnthropicClient.Models.MessageBatchResultItem.Result + isSpec: "True" + fullName: AnthropicClient.Models.MessageBatchResultItem.Result + nameWithType: MessageBatchResultItem.Result +- uid: AnthropicClient.Models.MessageBatchResultType + name: MessageBatchResultType + href: api/AnthropicClient.Models.MessageBatchResultType.html + commentId: T:AnthropicClient.Models.MessageBatchResultType + fullName: AnthropicClient.Models.MessageBatchResultType + nameWithType: MessageBatchResultType +- uid: AnthropicClient.Models.MessageBatchResultType.Canceled + name: Canceled + href: api/AnthropicClient.Models.MessageBatchResultType.html#AnthropicClient_Models_MessageBatchResultType_Canceled + commentId: F:AnthropicClient.Models.MessageBatchResultType.Canceled + fullName: AnthropicClient.Models.MessageBatchResultType.Canceled + nameWithType: MessageBatchResultType.Canceled +- uid: AnthropicClient.Models.MessageBatchResultType.Errored + name: Errored + href: api/AnthropicClient.Models.MessageBatchResultType.html#AnthropicClient_Models_MessageBatchResultType_Errored + commentId: F:AnthropicClient.Models.MessageBatchResultType.Errored + fullName: AnthropicClient.Models.MessageBatchResultType.Errored + nameWithType: MessageBatchResultType.Errored +- uid: AnthropicClient.Models.MessageBatchResultType.Expired + name: Expired + href: api/AnthropicClient.Models.MessageBatchResultType.html#AnthropicClient_Models_MessageBatchResultType_Expired + commentId: F:AnthropicClient.Models.MessageBatchResultType.Expired + fullName: AnthropicClient.Models.MessageBatchResultType.Expired + nameWithType: MessageBatchResultType.Expired +- uid: AnthropicClient.Models.MessageBatchResultType.Succeeded + name: Succeeded + href: api/AnthropicClient.Models.MessageBatchResultType.html#AnthropicClient_Models_MessageBatchResultType_Succeeded + commentId: F:AnthropicClient.Models.MessageBatchResultType.Succeeded + fullName: AnthropicClient.Models.MessageBatchResultType.Succeeded + nameWithType: MessageBatchResultType.Succeeded +- uid: AnthropicClient.Models.MessageBatchStatus + name: MessageBatchStatus + href: api/AnthropicClient.Models.MessageBatchStatus.html + commentId: T:AnthropicClient.Models.MessageBatchStatus + fullName: AnthropicClient.Models.MessageBatchStatus + nameWithType: MessageBatchStatus +- uid: AnthropicClient.Models.MessageBatchStatus.Canceling + name: Canceling + href: api/AnthropicClient.Models.MessageBatchStatus.html#AnthropicClient_Models_MessageBatchStatus_Canceling + commentId: F:AnthropicClient.Models.MessageBatchStatus.Canceling + fullName: AnthropicClient.Models.MessageBatchStatus.Canceling + nameWithType: MessageBatchStatus.Canceling +- uid: AnthropicClient.Models.MessageBatchStatus.Ended + name: Ended + href: api/AnthropicClient.Models.MessageBatchStatus.html#AnthropicClient_Models_MessageBatchStatus_Ended + commentId: F:AnthropicClient.Models.MessageBatchStatus.Ended + fullName: AnthropicClient.Models.MessageBatchStatus.Ended + nameWithType: MessageBatchStatus.Ended +- uid: AnthropicClient.Models.MessageBatchStatus.InProgress + name: InProgress + href: api/AnthropicClient.Models.MessageBatchStatus.html#AnthropicClient_Models_MessageBatchStatus_InProgress + commentId: F:AnthropicClient.Models.MessageBatchStatus.InProgress + fullName: AnthropicClient.Models.MessageBatchStatus.InProgress + nameWithType: MessageBatchStatus.InProgress - uid: AnthropicClient.Models.MessageCompleteEventData name: MessageCompleteEventData href: api/AnthropicClient.Models.MessageCompleteEventData.html @@ -3023,6 +3781,44 @@ references: fullName.vb: AnthropicClient.Models.StreamMessageRequest.New nameWithType: StreamMessageRequest.StreamMessageRequest nameWithType.vb: StreamMessageRequest.New +- uid: AnthropicClient.Models.SucceededMessageBatchResult + name: SucceededMessageBatchResult + href: api/AnthropicClient.Models.SucceededMessageBatchResult.html + commentId: T:AnthropicClient.Models.SucceededMessageBatchResult + fullName: AnthropicClient.Models.SucceededMessageBatchResult + nameWithType: SucceededMessageBatchResult +- uid: AnthropicClient.Models.SucceededMessageBatchResult.#ctor + name: SucceededMessageBatchResult() + href: api/AnthropicClient.Models.SucceededMessageBatchResult.html#AnthropicClient_Models_SucceededMessageBatchResult__ctor + commentId: M:AnthropicClient.Models.SucceededMessageBatchResult.#ctor + name.vb: New() + fullName: AnthropicClient.Models.SucceededMessageBatchResult.SucceededMessageBatchResult() + fullName.vb: AnthropicClient.Models.SucceededMessageBatchResult.New() + nameWithType: SucceededMessageBatchResult.SucceededMessageBatchResult() + nameWithType.vb: SucceededMessageBatchResult.New() +- uid: AnthropicClient.Models.SucceededMessageBatchResult.#ctor* + name: SucceededMessageBatchResult + href: api/AnthropicClient.Models.SucceededMessageBatchResult.html#AnthropicClient_Models_SucceededMessageBatchResult__ctor_ + commentId: Overload:AnthropicClient.Models.SucceededMessageBatchResult.#ctor + isSpec: "True" + name.vb: New + fullName: AnthropicClient.Models.SucceededMessageBatchResult.SucceededMessageBatchResult + fullName.vb: AnthropicClient.Models.SucceededMessageBatchResult.New + nameWithType: SucceededMessageBatchResult.SucceededMessageBatchResult + nameWithType.vb: SucceededMessageBatchResult.New +- uid: AnthropicClient.Models.SucceededMessageBatchResult.Message + name: Message + href: api/AnthropicClient.Models.SucceededMessageBatchResult.html#AnthropicClient_Models_SucceededMessageBatchResult_Message + commentId: P:AnthropicClient.Models.SucceededMessageBatchResult.Message + fullName: AnthropicClient.Models.SucceededMessageBatchResult.Message + nameWithType: SucceededMessageBatchResult.Message +- uid: AnthropicClient.Models.SucceededMessageBatchResult.Message* + name: Message + href: api/AnthropicClient.Models.SucceededMessageBatchResult.html#AnthropicClient_Models_SucceededMessageBatchResult_Message_ + commentId: Overload:AnthropicClient.Models.SucceededMessageBatchResult.Message + isSpec: "True" + fullName: AnthropicClient.Models.SucceededMessageBatchResult.Message + nameWithType: SucceededMessageBatchResult.Message - uid: AnthropicClient.Models.TextContent name: TextContent href: api/AnthropicClient.Models.TextContent.html