- shared.APIErrorObject
- shared.AuthenticationError
- shared.BillingError
- shared.ErrorObject
- shared.ErrorResponse
- shared.GatewayTimeoutError
- shared.InvalidRequestError
- shared.NotFoundError
- shared.OverloadedError
- shared.PermissionError
- shared.RateLimitError
Params Types:
- anthropic.Base64PDFSourceParam
- anthropic.CacheControlEphemeralParam
- anthropic.ContentBlockParamUnion
- anthropic.DocumentBlockParam
- anthropic.ImageBlockParam
- anthropic.MessageParam
- anthropic.MetadataParam
- anthropic.Model
- anthropic.TextBlockParam
- anthropic.ToolParam
- anthropic.ToolChoiceUnionParam
- anthropic.ToolChoiceAnyParam
- anthropic.ToolChoiceAutoParam
- anthropic.ToolChoiceToolParam
- anthropic.ToolResultBlockParam
- anthropic.ToolUseBlockParam
Response Types:
- anthropic.ContentBlock
- anthropic.InputJSONDelta
- anthropic.Message
- anthropic.MessageDeltaUsage
- anthropic.MessageTokensCount
- anthropic.Model
- anthropic.ContentBlockDeltaEvent
- anthropic.ContentBlockStartEvent
- anthropic.ContentBlockStopEvent
- anthropic.MessageDeltaEvent
- anthropic.MessageStartEvent
- anthropic.MessageStopEvent
- anthropic.MessageStreamEvent
- anthropic.TextBlock
- anthropic.TextDelta
- anthropic.ToolUseBlock
- anthropic.Usage
Methods:
client.Messages.New(ctx context.Context, body anthropic.MessageNewParams) (anthropic.Message, error)
client.Messages.CountTokens(ctx context.Context, body anthropic.MessageCountTokensParams) (anthropic.MessageTokensCount, error)
Response Types:
- anthropic.MessageBatch
- anthropic.MessageBatchCanceledResult
- anthropic.MessageBatchErroredResult
- anthropic.MessageBatchExpiredResult
- anthropic.MessageBatchIndividualResponse
- anthropic.MessageBatchRequestCounts
- anthropic.MessageBatchResult
- anthropic.MessageBatchSucceededResult
Methods:
client.Messages.Batches.New(ctx context.Context, body anthropic.MessageBatchNewParams) (anthropic.MessageBatch, error)
client.Messages.Batches.Get(ctx context.Context, messageBatchID string) (anthropic.MessageBatch, error)
client.Messages.Batches.List(ctx context.Context, query anthropic.MessageBatchListParams) (pagination.Page[anthropic.MessageBatch], error)
client.Messages.Batches.Cancel(ctx context.Context, messageBatchID string) (anthropic.MessageBatch, error)
client.Messages.Batches.Results(ctx context.Context, messageBatchID string) (http.Response, error)
Response Types:
Methods:
client.Models.Get(ctx context.Context, modelID string) (anthropic.ModelInfo, error)
client.Models.List(ctx context.Context, query anthropic.ModelListParams) (pagination.Page[anthropic.ModelInfo], error)
Params Types:
Response Types:
- anthropic.BetaAPIError
- anthropic.BetaAuthenticationError
- anthropic.BetaBillingError
- anthropic.BetaError
- anthropic.BetaErrorResponse
- anthropic.BetaGatewayTimeoutError
- anthropic.BetaInvalidRequestError
- anthropic.BetaNotFoundError
- anthropic.BetaOverloadedError
- anthropic.BetaPermissionError
- anthropic.BetaRateLimitError
Response Types:
Methods:
client.Beta.Models.Get(ctx context.Context, modelID string) (anthropic.BetaModelInfo, error)
client.Beta.Models.List(ctx context.Context, query anthropic.BetaModelListParams) (pagination.Page[anthropic.BetaModelInfo], error)
Params Types:
- anthropic.BetaBase64PDFBlockParam
- anthropic.BetaBase64PDFSourceParam
- anthropic.BetaCacheControlEphemeralParam
- anthropic.BetaContentBlockParamUnion
- anthropic.BetaImageBlockParam
- anthropic.BetaMessageParam
- anthropic.BetaMetadataParam
- anthropic.BetaTextBlockParam
- anthropic.BetaToolParam
- anthropic.BetaToolBash20241022Param
- anthropic.BetaToolChoiceUnionParam
- anthropic.BetaToolChoiceAnyParam
- anthropic.BetaToolChoiceAutoParam
- anthropic.BetaToolChoiceToolParam
- anthropic.BetaToolComputerUse20241022Param
- anthropic.BetaToolResultBlockParam
- anthropic.BetaToolTextEditor20241022Param
- anthropic.BetaToolUnionUnionParam
- anthropic.BetaToolUseBlockParam
Response Types:
- anthropic.BetaContentBlock
- anthropic.BetaInputJSONDelta
- anthropic.BetaMessage
- anthropic.BetaMessageDeltaUsage
- anthropic.BetaMessageTokensCount
- anthropic.BetaRawContentBlockDeltaEvent
- anthropic.BetaRawContentBlockStartEvent
- anthropic.BetaRawContentBlockStopEvent
- anthropic.BetaRawMessageDeltaEvent
- anthropic.BetaRawMessageStartEvent
- anthropic.BetaRawMessageStopEvent
- anthropic.BetaRawMessageStreamEvent
- anthropic.BetaTextBlock
- anthropic.BetaTextDelta
- anthropic.BetaToolUseBlock
- anthropic.BetaUsage
Methods:
client.Beta.Messages.New(ctx context.Context, params anthropic.BetaMessageNewParams) (anthropic.BetaMessage, error)
client.Beta.Messages.CountTokens(ctx context.Context, params anthropic.BetaMessageCountTokensParams) (anthropic.BetaMessageTokensCount, error)
Response Types:
- anthropic.BetaMessageBatch
- anthropic.BetaMessageBatchCanceledResult
- anthropic.BetaMessageBatchErroredResult
- anthropic.BetaMessageBatchExpiredResult
- anthropic.BetaMessageBatchIndividualResponse
- anthropic.BetaMessageBatchRequestCounts
- anthropic.BetaMessageBatchResult
- anthropic.BetaMessageBatchSucceededResult
Methods:
client.Beta.Messages.Batches.New(ctx context.Context, params anthropic.BetaMessageBatchNewParams) (anthropic.BetaMessageBatch, error)
client.Beta.Messages.Batches.Get(ctx context.Context, messageBatchID string, query anthropic.BetaMessageBatchGetParams) (anthropic.BetaMessageBatch, error)
client.Beta.Messages.Batches.List(ctx context.Context, params anthropic.BetaMessageBatchListParams) (pagination.Page[anthropic.BetaMessageBatch], error)
client.Beta.Messages.Batches.Cancel(ctx context.Context, messageBatchID string, body anthropic.BetaMessageBatchCancelParams) (anthropic.BetaMessageBatch, error)
client.Beta.Messages.Batches.Results(ctx context.Context, messageBatchID string, query anthropic.BetaMessageBatchResultsParams) (http.Response, error)