@rcrsr/rill-agent
v0.20.0
Published
Readme
@rcrsr/rill-agent
Core agent runtime for the rill language. Loads agent manifests, builds an AgentRouter, and validates parameters. Transport-agnostic: pair it with a harness package (@rcrsr/rill-agent-http, -foundry, or -chat) to serve agents. 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
