mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 22:37:29 +00:00
feat(agentswarm): M2 — peer-coordination swarm (router + handoffs)
createSwarm() composes named agents into one SwarmRunner: a router picks the first agent; any agent hands control to a named peer via `HANDOFF: <name>`, bounded by maxHandoffs. createLLMRouter() is a cheap-model router. Composes with the rubric loop and HTTP handler since a swarm is itself a SwarmRunner. 6 new tests (routing, handoff, maxHandoffs cap, unknown-peer/unknown-route fallbacks, empty-agents guard); 19/19 pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
018a583a00
commit
925894359f
3 changed files with 223 additions and 0 deletions
|
|
@ -8,6 +8,15 @@ export { createSwarmHandler } from "./handler.js";
|
|||
export type { SwarmHandlerOptions } from "./handler.js";
|
||||
export { createDeepAgentRunner } from "./runner.js";
|
||||
export type { DeepAgentRunnerOptions } from "./runner.js";
|
||||
export { createSwarm, createLLMRouter } from "./swarm.js";
|
||||
export type {
|
||||
SwarmAgent,
|
||||
SwarmRouter,
|
||||
SwarmRouterInput,
|
||||
SwarmHandoff,
|
||||
SwarmOptions,
|
||||
LLMRouterOptions
|
||||
} from "./swarm.js";
|
||||
export { createRubricRunner, createLLMJudge } from "./rubric.js";
|
||||
export type {
|
||||
RubricEvaluation,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue