Table of Contents

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<T>

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<T>

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.