@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 useapiKey
(string, required): The API key for AnthropicmaxTokens
(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,
});