Types:
APIErrorObject
AuthenticationError
BillingError
ErrorObject
ErrorResponse
GatewayTimeoutError
InvalidRequestError
NotFoundError
OverloadedError
PermissionError
RateLimitError
Types:
Base64PDFSource
CacheControlEphemeral
ContentBlock
ContentBlockDeltaEvent
ContentBlockParam
ContentBlockStartEvent
ContentBlockStopEvent
DocumentBlockParam
ImageBlockParam
InputJSONDelta
Message
MessageDeltaEvent
MessageDeltaUsage
MessageParam
MessageStartEvent
MessageStopEvent
MessageStreamEvent
MessageTokensCount
Metadata
Model
RawContentBlockDeltaEvent
RawContentBlockStartEvent
RawContentBlockStopEvent
RawMessageDeltaEvent
RawMessageStartEvent
RawMessageStopEvent
RawMessageStreamEvent
TextBlock
TextBlockParam
TextDelta
Tool
ToolChoice
ToolChoiceAny
ToolChoiceAuto
ToolChoiceTool
ToolResultBlockParam
ToolUseBlock
ToolUseBlockParam
Usage
Methods:
client.messages.create({ ...params }) -> Message
client.messages.countTokens({ ...params }) -> MessageTokensCount
client.messages.stream(body, options?) -> MessageStream
Types:
DeletedMessageBatch
MessageBatch
MessageBatchCanceledResult
MessageBatchErroredResult
MessageBatchExpiredResult
MessageBatchIndividualResponse
MessageBatchRequestCounts
MessageBatchResult
MessageBatchSucceededResult
Methods:
client.messages.batches.create({ ...params }) -> MessageBatch
client.messages.batches.retrieve(messageBatchId) -> MessageBatch
client.messages.batches.list({ ...params }) -> MessageBatchesPage
client.messages.batches.delete(messageBatchId) -> DeletedMessageBatch
client.messages.batches.cancel(messageBatchId) -> MessageBatch
client.messages.batches.results(messageBatchId) -> Response
Types:
Methods:
Types:
AnthropicBeta
BetaAPIError
BetaAuthenticationError
BetaBillingError
BetaError
BetaErrorResponse
BetaGatewayTimeoutError
BetaInvalidRequestError
BetaNotFoundError
BetaOverloadedError
BetaPermissionError
BetaRateLimitError
Types:
Methods:
client.beta.models.retrieve(modelId) -> BetaModelInfo
client.beta.models.list({ ...params }) -> BetaModelInfosPage
Types:
BetaBase64PDFBlock
BetaBase64PDFSource
BetaCacheControlEphemeral
BetaContentBlock
BetaContentBlockParam
BetaImageBlockParam
BetaInputJSONDelta
BetaMessage
BetaMessageDeltaUsage
BetaMessageParam
BetaMessageTokensCount
BetaMetadata
BetaRawContentBlockDeltaEvent
BetaRawContentBlockStartEvent
BetaRawContentBlockStopEvent
BetaRawMessageDeltaEvent
BetaRawMessageStartEvent
BetaRawMessageStopEvent
BetaRawMessageStreamEvent
BetaTextBlock
BetaTextBlockParam
BetaTextDelta
BetaTool
BetaToolBash20241022
BetaToolChoice
BetaToolChoiceAny
BetaToolChoiceAuto
BetaToolChoiceTool
BetaToolComputerUse20241022
BetaToolResultBlockParam
BetaToolTextEditor20241022
BetaToolUnion
BetaToolUseBlock
BetaToolUseBlockParam
BetaUsage
Methods:
client.beta.messages.create({ ...params }) -> BetaMessage
client.beta.messages.countTokens({ ...params }) -> BetaMessageTokensCount
Types:
BetaDeletedMessageBatch
BetaMessageBatch
BetaMessageBatchCanceledResult
BetaMessageBatchErroredResult
BetaMessageBatchExpiredResult
BetaMessageBatchIndividualResponse
BetaMessageBatchRequestCounts
BetaMessageBatchResult
BetaMessageBatchSucceededResult
Methods:
client.beta.messages.batches.create({ ...params }) -> BetaMessageBatch
client.beta.messages.batches.retrieve(messageBatchId, { ...params }) -> BetaMessageBatch
client.beta.messages.batches.list({ ...params }) -> BetaMessageBatchesPage
client.beta.messages.batches.delete(messageBatchId, { ...params }) -> BetaDeletedMessageBatch
client.beta.messages.batches.cancel(messageBatchId, { ...params }) -> BetaMessageBatch
client.beta.messages.batches.results(messageBatchId, { ...params }) -> Response