@robinpath/anthropic
Advanced tools
+111
| # @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 | ||
| ```bash | ||
| npm install @robinpath/anthropic | ||
| ``` | ||
| ## Quick Start | ||
| **1. Set up credentials** | ||
| ```robinpath | ||
| anthropic.setCredentials "your-credentials" | ||
| ``` | ||
| **2. createMessage** | ||
| ```robinpath | ||
| anthropic.createMessage | ||
| ``` | ||
| ## Available 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 | ||
| ```robinpath | ||
| anthropic.createMessage | ||
| ``` | ||
| ### chat | ||
| ```robinpath | ||
| anthropic.chat | ||
| ``` | ||
| ### summarize | ||
| ```robinpath | ||
| anthropic.summarize | ||
| ``` | ||
| ## Integration with RobinPath | ||
| ```typescript | ||
| 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](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples. | ||
| ## Related Modules | ||
| - [`@robinpath/openai`](../openai) — OpenAI module for complementary functionality | ||
| - [`@robinpath/ai`](../ai) — AI module for complementary functionality | ||
| - [`@robinpath/deepl`](../deepl) — DeepL module for complementary functionality | ||
| - [`@robinpath/translate`](../translate) — Translate module for complementary functionality | ||
| - [`@robinpath/json`](../json) — JSON module for complementary functionality | ||
| ## License | ||
| MIT |
+1
-1
| { | ||
| "name": "@robinpath/anthropic", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
28068
10.67%10
11.11%0
-100%112
Infinity%2
100%