@sbo3l/babyagi
v1.2.0
Published
BabyAGI task-execution adapter for SBO3L — gate each task before execution.
Readme
@sbo3l/babyagi
SBO3L adapter for the BabyAGI agent framework.
npm i @sbo3l/babyagi @sbo3l/sdkWiring
import { SBO3LClient } from "@sbo3l/sdk";
import { sbo3lTaskGate, runSbo3lTaskGate } from "@sbo3l/babyagi";
const sbo3l = new SBO3LClient({ endpoint: "http://localhost:8730" });
const tool = sbo3lTaskGate({ client: sbo3l });
// Hand `tool.descriptor` to BabyAGI's tool registry.
// Pair each emitted tool call with `runSbo3lTaskGate` to dispatch through SBO3L.Behaviour
- allow →
{ ok: true, output: PolicyReceipt } - deny / requires_human →
{ ok: false, output: { error, deny_code, audit_event_id } } - transport fail →
{ ok: false, output: { error: "transport.failed", detail } }
The runner never re-throws — every outcome is a structured envelope so the framework's loop can branch and self-correct.
Tests
npm test # 9 vitest passing
npm run typecheck
npm run build # ESM + CJS + d.ts