Anthropic

@agentscript-ai/anthropic

This package provides integration with Anthropic's language models.

AnthropicModel(options)

Configures a language model using Anthropic's API.

Options

  • model (string, required): The name of the model to use
  • apiKey (string, required): The API key for Anthropic
  • maxTokens (number, optional): The maximum number of tokens to generate

Example

import { AnthropicModel } from 'agentscript-ai/anthropic';
 
const llm = AnthropicModel({
    model: 'claude-3-5-sonnet-latest',
    apiKey: process.env.ANTHROPIC_API_KEY,
});