@alint-js/agent-apeira
v0.0.34
Published
Readme
@alint-js/agent-apeira
[!IMPORTANT] This package is a WIP. APIs may be subject to major changes.
An Apeira-backed AgentAdapter for alint. One of the swappable vendor adapters behind @alint-js/agent.
What it does
createApeiraAdapter() returns an AgentAdapter that runs a rule's request through
Apeira's chat runner: it translates the framework-agnostic AgentTools to xsai tools,
runs the tool loop (capped at 8 steps), and reads back the final answer and usage.
How to use
import { createApeiraAdapter } from '@alint-js/agent-apeira'
const adapter = createApeiraAdapter()Pass { createRunner } to inject a custom Apeira runner.
When to use
- You want tool-using rules powered by Apeira on the xsai stack.
When not to use
- You use a different agent framework. Pick that vendor's adapter (e.g.
@alint-js/agent-pi) or write your ownAgentAdapter. - Your rule needs no tools. Keep it on the plain
@alint-js/corerule DSL.
