@rcrsr/rill-agent
v0.19.0
Published
Core agent runtime for the [rill](https://github.com/rcrsr/rill) language. Loads agent manifests, builds an `AgentRouter`, and serves agents over HTTP via the included Hono harness. Supports single-agent and multi-agent deployments.
Downloads
214
Readme
@rcrsr/rill-agent
Core agent runtime for the rill language. Loads agent manifests, builds an AgentRouter, and serves agents over HTTP via the included Hono harness. Supports single-agent and multi-agent deployments.
Install
npm install @rcrsr/rill-agentFor the HTTP harness, install the separate package:
npm install @rcrsr/rill-agent-httpQuick Start
import { loadManifest, createRouter } from '@rcrsr/rill-agent';
import { httpHarness } from '@rcrsr/rill-agent-http';
const manifest = await loadManifest('./build');
const router = await createRouter(manifest, {
globalVars: { ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY ?? '' },
});
const harness = httpHarness(router);
await harness.listen(3000);A handler module exports four functions: describe, init, execute, dispose. Place a handler.js in a directory for single-agent mode, or a manifest.json listing multiple agents for multi-agent mode.
Documentation
See full documentation for handler contract, router behavior, manifest format, and HTTP routes.
License
MIT
