Modules@robinpath/anthropic

@robinpath/anthropic

0.1.1Public

Anthropic module for RobinPath.

@robinpath/anthropic

Anthropic module for RobinPath.

Category Functions Auth License

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/anthropic

Quick Start

1. Set up credentials

anthropic.setCredentials "your-credentials"

2. createMessage

anthropic.createMessage

Available Functions

FunctionDescription
anthropic.setCredentialsConfigure anthropic credentials.
anthropic.createMessagecreateMessage
anthropic.chatchat
anthropic.summarizesummarize
anthropic.translatetranslate
anthropic.extractextract
anthropic.classifyclassify
anthropic.analyzeImageanalyzeImage
anthropic.countTokenscountTokens
anthropic.listModelslistModels
anthropic.createBatchcreateBatch
anthropic.getBatchgetBatch
anthropic.listBatcheslistBatches
anthropic.cancelBatchcancelBatch
anthropic.getBatchResultsgetBatchResults
anthropic.completecomplete
anthropic.generateCodegenerateCode

Examples

createMessage

anthropic.createMessage

chat

anthropic.chat

summarize

anthropic.summarize

Integration 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

License

MIT

Versions (1)

VersionTagPublished
0.1.1latestyesterday
Install
$ robinpath install @robinpath/anthropic
Version0.1.1
LicenseMIT
Unpacked Size4.3 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

ai