@robinpath/anthropic
v0.1.1
Published
> Anthropic module for RobinPath.
Downloads
194
Keywords
Readme
@robinpath/anthropic
Anthropic module for RobinPath.
Why use this module?
The anthropic module lets you:
- createMessage
- chat
- summarize
- translate
- extract
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/anthropicQuick Start
1. Set up credentials
anthropic.setCredentials "your-credentials"2. createMessage
anthropic.createMessageAvailable Functions
| Function | Description |
|----------|-------------|
| anthropic.setCredentials | Configure anthropic credentials. |
| anthropic.createMessage | createMessage |
| anthropic.chat | chat |
| anthropic.summarize | summarize |
| anthropic.translate | translate |
| anthropic.extract | extract |
| anthropic.classify | classify |
| anthropic.analyzeImage | analyzeImage |
| anthropic.countTokens | countTokens |
| anthropic.listModels | listModels |
| anthropic.createBatch | createBatch |
| anthropic.getBatch | getBatch |
| anthropic.listBatches | listBatches |
| anthropic.cancelBatch | cancelBatch |
| anthropic.getBatchResults | getBatchResults |
| anthropic.complete | complete |
| anthropic.generateCode | generateCode |
Examples
createMessage
anthropic.createMessagechat
anthropic.chatsummarize
anthropic.summarizeIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/anthropic";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
anthropic.setCredentials "your-credentials"
anthropic.createMessage
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/openai— OpenAI module for complementary functionality@robinpath/ai— AI module for complementary functionality@robinpath/deepl— DeepL module for complementary functionality@robinpath/translate— Translate module for complementary functionality@robinpath/json— JSON module for complementary functionality
License
MIT
