Licence
Apache-2.0
Version
1.0.3
Deps
1
Size
14 kB
Vulns
0
Weekly
96
/model-anthropic
Anthropic Claude adapter — auto prompt-cache breakpoints + 1-hour TTL.
Part of wasmagent — a TypeScript + WASM agent runtime.
Install
npm install /model-anthropic /core @anthropic-ai/sdkUsage
import { AnthropicModel, AnthropicModels } from "/model-anthropic";
const model = new AnthropicModel(AnthropicModels.SONNET_LATEST, {
apiKey: process.env.ANTHROPIC_API_KEY,
});License
Apache-2.0 — wasmagent contributors