
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@robinpath/ai
Advanced tools
Provider-agnostic LLM helpers (OpenAI, Anthropic, OpenRouter, or any OpenAI-compatible endpoint). Uses the encrypted credential vault.
LLM integration: chat, complete, summarize, extract, classify, translate, sentiment analysis, and embeddings
The ai module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
robinpath add @robinpath/ai
1. Set up credentials
ai.configure "openai" {"provider": "openai", "apiKey": $key}
2. Send a chat message and get a response
ai.chat "openai" "Explain quantum computing" {"system": "You are a teacher"}
| Function | Description |
|---|---|
ai.configure | Configure an AI provider (OpenAI, Anthropic, or custom) |
ai.chat | Send a chat message and get a response |
ai.complete | Get a simple text completion (returns just the text) |
ai.summarize | Summarize text using AI |
ai.extract | Extract structured data from text using AI |
ai.classify | Classify text into one of given categories |
ai.translate | Translate text to a target language |
ai.sentiment | Analyze the sentiment of text |
ai.generateJson | Generate structured JSON from a prompt |
ai.embedding | Generate text embeddings (OpenAI only) |
ai.chat "openai" "Explain quantum computing" {"system": "You are a teacher"}
ai.complete "openai" "Write a haiku about automation"
ai.summarize "openai" $longText {"maxLength": 100}
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/ai";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
ai.configure "openai" {"provider": "openai", "apiKey": $key}
ai.chat "openai" "Explain quantum computing" {"system": "You are a teacher"}
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/openai — OpenAI module for complementary functionality@robinpath/anthropic — Anthropic module for complementary functionality@robinpath/deepl — DeepL module for complementary functionality@robinpath/translate — Translate module for complementary functionality@robinpath/json — JSON module for complementary functionalityMIT
FAQs
Provider-agnostic LLM helpers (OpenAI, Anthropic, OpenRouter, or any OpenAI-compatible endpoint). Uses the encrypted credential vault.
The npm package @robinpath/ai receives a total of 18 weekly downloads. As such, @robinpath/ai popularity was classified as not popular.
We found that @robinpath/ai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.