Types:
APIErrorObjectAuthenticationErrorBillingErrorErrorObjectErrorResponseGatewayTimeoutErrorInvalidRequestErrorNotFoundErrorOverloadedErrorPermissionErrorRateLimitError
Types:
Base64ImageSourceBase64PDFSourceCacheControlEphemeralCacheCreationCitationCharLocationCitationCharLocationParamCitationContentBlockLocationCitationContentBlockLocationParamCitationPageLocationCitationPageLocationParamCitationSearchResultLocationParamCitationWebSearchResultLocationParamCitationsConfigParamCitationsDeltaCitationsSearchResultLocationCitationsWebSearchResultLocationContentBlockContentBlockParamContentBlockSourceContentBlockSourceContentContentBlockStartEventContentBlockStopEventDocumentBlockParamImageBlockParamInputJSONDeltaMessageMessageCountTokensToolMessageDeltaEventMessageDeltaUsageMessageParamMessageTokensCountMetadataModelPlainTextSourceRawContentBlockDeltaRawContentBlockDeltaEventRawContentBlockStartEventRawContentBlockStopEventRawMessageDeltaEventRawMessageStartEventRawMessageStopEventRawMessageStreamEventRedactedThinkingBlockRedactedThinkingBlockParamSearchResultBlockParamServerToolUsageServerToolUseBlockServerToolUseBlockParamSignatureDeltaStopReasonTextBlockTextBlockParamTextCitationTextCitationParamTextDeltaThinkingBlockThinkingBlockParamThinkingConfigDisabledThinkingConfigEnabledThinkingConfigParamThinkingDeltaToolToolBash20250124ToolChoiceToolChoiceAnyToolChoiceAutoToolChoiceNoneToolChoiceToolToolResultBlockParamToolTextEditor20250124ToolTextEditor20250429ToolTextEditor20250728ToolUnionToolUseBlockToolUseBlockParamURLImageSourceURLPDFSourceUsageWebSearchResultBlockWebSearchResultBlockParamWebSearchTool20250305WebSearchToolRequestErrorWebSearchToolResultBlockWebSearchToolResultBlockContentWebSearchToolResultBlockParamWebSearchToolResultBlockParamContentWebSearchToolResultErrorMessageStreamEventMessageStartEventMessageDeltaEventMessageStopEventContentBlockStartEventContentBlockDeltaEventContentBlockStopEvent
Methods:
client.messages.create({ ...params }) -> Messageclient.messages.countTokens({ ...params }) -> MessageTokensCountclient.messages.stream(body, options?) -> MessageStream
Types:
DeletedMessageBatchMessageBatchMessageBatchCanceledResultMessageBatchErroredResultMessageBatchExpiredResultMessageBatchIndividualResponseMessageBatchRequestCountsMessageBatchResultMessageBatchSucceededResult
Methods:
client.messages.batches.create({ ...params }) -> MessageBatchclient.messages.batches.retrieve(messageBatchID) -> MessageBatchclient.messages.batches.list({ ...params }) -> MessageBatchesPageclient.messages.batches.delete(messageBatchID) -> DeletedMessageBatchclient.messages.batches.cancel(messageBatchID) -> MessageBatchclient.messages.batches.results(messageBatchID) -> MessageBatchIndividualResponse
Types:
Methods:
client.models.retrieve(modelID, { ...params }) -> ModelInfoclient.models.list({ ...params }) -> ModelInfosPage
Types:
AnthropicBetaBetaAPIErrorBetaAuthenticationErrorBetaBillingErrorBetaErrorBetaErrorResponseBetaGatewayTimeoutErrorBetaInvalidRequestErrorBetaNotFoundErrorBetaOverloadedErrorBetaPermissionErrorBetaRateLimitError
Types:
Methods:
client.beta.models.retrieve(modelID, { ...params }) -> BetaModelInfoclient.beta.models.list({ ...params }) -> BetaModelInfosPage
Types:
BetaAllThinkingTurnsBetaBase64ImageSourceBetaBase64PDFSourceBetaBashCodeExecutionOutputBlockBetaBashCodeExecutionOutputBlockParamBetaBashCodeExecutionResultBlockBetaBashCodeExecutionResultBlockParamBetaBashCodeExecutionToolResultBlockBetaBashCodeExecutionToolResultBlockParamBetaBashCodeExecutionToolResultErrorBetaBashCodeExecutionToolResultErrorParamBetaCacheControlEphemeralBetaCacheCreationBetaCitationCharLocationBetaCitationCharLocationParamBetaCitationConfigBetaCitationContentBlockLocationBetaCitationContentBlockLocationParamBetaCitationPageLocationBetaCitationPageLocationParamBetaCitationSearchResultLocationBetaCitationSearchResultLocationParamBetaCitationWebSearchResultLocationParamBetaCitationsConfigParamBetaCitationsDeltaBetaCitationsWebSearchResultLocationBetaClearThinking20251015EditBetaClearThinking20251015EditResponseBetaClearToolUses20250919EditBetaClearToolUses20250919EditResponseBetaCodeExecutionOutputBlockBetaCodeExecutionOutputBlockParamBetaCodeExecutionResultBlockBetaCodeExecutionResultBlockParamBetaCodeExecutionTool20250522BetaCodeExecutionTool20250825BetaCodeExecutionToolResultBlockBetaCodeExecutionToolResultBlockContentBetaCodeExecutionToolResultBlockParamBetaCodeExecutionToolResultBlockParamContentBetaCodeExecutionToolResultErrorBetaCodeExecutionToolResultErrorCodeBetaCodeExecutionToolResultErrorParamBetaContainerBetaContainerParamsBetaContainerUploadBlockBetaContainerUploadBlockParamBetaContentBlockBetaContentBlockParamBetaContentBlockSourceBetaContentBlockSourceContentBetaContextManagementConfigBetaContextManagementResponseBetaCountTokensContextManagementResponseBetaDirectCallerBetaDocumentBlockBetaFileDocumentSourceBetaFileImageSourceBetaImageBlockParamBetaInputJSONDeltaBetaJSONOutputFormatBetaInputTokensClearAtLeastBetaInputTokensTriggerBetaJSONOutputFormatBetaMCPToolConfigBetaMCPToolDefaultConfigBetaMCPToolResultBlockBetaMCPToolUseBlockBetaMCPToolUseBlockParamBetaMCPToolsetBetaMemoryTool20250818BetaMemoryTool20250818CommandBetaMemoryTool20250818CreateCommandBetaMemoryTool20250818DeleteCommandBetaMemoryTool20250818InsertCommandBetaMemoryTool20250818RenameCommandBetaMemoryTool20250818StrReplaceCommandBetaMemoryTool20250818ViewCommandBetaMessageBetaMessageDeltaUsageBetaMessageParamBetaMessageTokensCountBetaMetadataBetaOutputConfigBetaPlainTextSourceBetaRawContentBlockDeltaBetaRawContentBlockDeltaEventBetaRawContentBlockStartEventBetaRawContentBlockStopEventBetaRawMessageDeltaEventBetaRawMessageStartEventBetaRawMessageStopEventBetaRawMessageStreamEventBetaRedactedThinkingBlockBetaRedactedThinkingBlockParamBetaRequestDocumentBlockBetaRequestMCPServerToolConfigurationBetaRequestMCPServerURLDefinitionBetaRequestMCPToolResultBlockParamBetaSearchResultBlockParamBetaServerToolCallerBetaServerToolUsageBetaServerToolUseBlockBetaServerToolUseBlockParamBetaSignatureDeltaBetaSkillBetaSkillParamsBetaStopReasonBetaTextBlockBetaTextBlockParamBetaTextCitationBetaTextCitationParamBetaTextDeltaBetaTextEditorCodeExecutionCreateResultBlockBetaTextEditorCodeExecutionCreateResultBlockParamBetaTextEditorCodeExecutionStrReplaceResultBlockBetaTextEditorCodeExecutionStrReplaceResultBlockParamBetaTextEditorCodeExecutionToolResultBlockBetaTextEditorCodeExecutionToolResultBlockParamBetaTextEditorCodeExecutionToolResultErrorBetaTextEditorCodeExecutionToolResultErrorParamBetaTextEditorCodeExecutionViewResultBlockBetaTextEditorCodeExecutionViewResultBlockParamBetaThinkingBlockBetaThinkingBlockParamBetaThinkingConfigDisabledBetaThinkingConfigEnabledBetaThinkingConfigParamBetaThinkingDeltaBetaThinkingTurnsBetaToolBetaToolBash20241022BetaToolBash20250124BetaToolChoiceBetaToolChoiceAnyBetaToolChoiceAutoBetaToolChoiceNoneBetaToolChoiceToolBetaToolComputerUse20241022BetaToolComputerUse20250124BetaToolComputerUse20251124BetaToolReferenceBlockBetaToolReferenceBlockParamBetaToolResultBlockParamBetaToolSearchToolBm25_20251119BetaToolSearchToolRegex20251119BetaToolSearchToolResultBlockBetaToolSearchToolResultBlockParamBetaToolSearchToolResultErrorBetaToolSearchToolResultErrorParamBetaToolSearchToolSearchResultBlockBetaToolSearchToolSearchResultBlockParamBetaToolTextEditor20241022BetaToolTextEditor20250124BetaToolTextEditor20250429BetaToolTextEditor20250728BetaToolUnionBetaToolUseBlockBetaToolUseBlockParamBetaToolUsesKeepBetaToolUsesTriggerBetaURLImageSourceBetaURLPDFSourceBetaUsageBetaWebFetchBlockBetaWebFetchBlockParamBetaWebFetchTool20250910BetaWebFetchToolResultBlockBetaWebFetchToolResultBlockParamBetaWebFetchToolResultErrorBlockBetaWebFetchToolResultErrorBlockParamBetaWebFetchToolResultErrorCodeBetaWebSearchResultBlockBetaWebSearchResultBlockParamBetaWebSearchTool20250305BetaWebSearchToolRequestErrorBetaWebSearchToolResultBlockBetaWebSearchToolResultBlockContentBetaWebSearchToolResultBlockParamBetaWebSearchToolResultBlockParamContentBetaWebSearchToolResultErrorBetaWebSearchToolResultErrorCodeBetaBase64PDFBlock
Methods:
client.beta.messages.create({ ...params }) -> BetaMessageclient.beta.messages.countTokens({ ...params }) -> BetaMessageTokensCount
Types:
BetaDeletedMessageBatchBetaMessageBatchBetaMessageBatchCanceledResultBetaMessageBatchErroredResultBetaMessageBatchExpiredResultBetaMessageBatchIndividualResponseBetaMessageBatchRequestCountsBetaMessageBatchResultBetaMessageBatchSucceededResult
Methods:
client.beta.messages.batches.create({ ...params }) -> BetaMessageBatchclient.beta.messages.batches.retrieve(messageBatchID, { ...params }) -> BetaMessageBatchclient.beta.messages.batches.list({ ...params }) -> BetaMessageBatchesPageclient.beta.messages.batches.delete(messageBatchID, { ...params }) -> BetaDeletedMessageBatchclient.beta.messages.batches.cancel(messageBatchID, { ...params }) -> BetaMessageBatchclient.beta.messages.batches.results(messageBatchID, { ...params }) -> BetaMessageBatchIndividualResponse
Types:
Methods:
client.beta.files.list({ ...params }) -> FileMetadataPageclient.beta.files.delete(fileID, { ...params }) -> DeletedFileclient.beta.files.download(fileID, { ...params }) -> Responseclient.beta.files.retrieveMetadata(fileID, { ...params }) -> FileMetadataclient.beta.files.upload({ ...params }) -> FileMetadata
Types:
Methods:
client.beta.skills.create({ ...params }) -> SkillCreateResponseclient.beta.skills.retrieve(skillID, { ...params }) -> SkillRetrieveResponseclient.beta.skills.list({ ...params }) -> SkillListResponsesPageCursorclient.beta.skills.delete(skillID, { ...params }) -> SkillDeleteResponse
Types:
Methods:
client.beta.skills.versions.create(skillID, { ...params }) -> VersionCreateResponseclient.beta.skills.versions.retrieve(version, { ...params }) -> VersionRetrieveResponseclient.beta.skills.versions.list(skillID, { ...params }) -> VersionListResponsesPageCursorclient.beta.skills.versions.delete(version, { ...params }) -> VersionDeleteResponse