Agents.js: Enable tool access for LLMs in JavaScript
AI Impact Summary
Agents.js provides a JavaScript runtime (HfAgent) to empower LLMs with external tools in the browser or Node, with out-of-the-box multi-modal tools and an extensible tool model. It enables browser- and server-side copilots by wiring LLMs to custom tools and models, with a default OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5 hosted Inference API and the option to plug in OpenAI via a custom llm function. A security warning cautions that evaluating arbitrary code in untrusted environments is risky and recommends using generateCode/evaluateCode instead of run, which has implications for production tooling and governance.
Affected Systems
- Date
- Date not specified
- Change type
- capability
- Severity
- info