Skip to content

Latest commit

 

History

History
197 lines (161 loc) · 13.5 KB

api.md

File metadata and controls

197 lines (161 loc) · 13.5 KB

Anthropic

Shared

Types:

Messages

Types:

Methods:

  • client.messages.create({ ...params }) -> Message
  • client.messages.countTokens({ ...params }) -> MessageTokensCount
  • client.messages.stream(body, options?) -> MessageStream

Batches

Types:

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

Models

Types:

Methods:

  • client.models.retrieve(modelId) -> ModelInfo
  • client.models.list({ ...params }) -> ModelInfosPage

Beta

Types:

Models

Types:

Methods:

  • client.beta.models.retrieve(modelId) -> BetaModelInfo
  • client.beta.models.list({ ...params }) -> BetaModelInfosPage

Messages

Types:

Methods:

  • client.beta.messages.create({ ...params }) -> BetaMessage
  • client.beta.messages.countTokens({ ...params }) -> BetaMessageTokensCount

Batches

Types:

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