HuggingFace Agents.js adds JavaScript tool access for LLMs via HfAgent
AI Impact Summary
Agents.js enables JavaScript-based tool access to LLMs via the HfAgent entry point, allowing multi-modal tools and extensible custom tools and models. It ships with multi-modal capabilities and can swap the LLM backend (default OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5 hosted Inference API) or a custom llm function (e.g., OpenAI API with text-davinci-003). It also supports passing input files to generateCode and evaluateCode and provides sample tools like englishToGerman, illustrating how to compose toolchains within a browser or server runtime. A security warning cautions about evaluating arbitrary code in trusted environments, underscoring the need for governance around client-side code execution and API key exposure.
Affected Systems
- Date
- Date not specified
- Change type
- capability
- Severity
- info