agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
25 lines (24 loc) • 1.31 kB
TypeScript
/**
* patterns/ — factory functions that compose primitives + core-flow
* into well-known agent patterns from the research literature.
*
* Each pattern is:
* - A factory function returning a `Runner` — drops into any
* `Sequence.step()`, `Parallel.branch()`, etc.
* - Purely composed — no new primitives, no state machinery beyond
* what the underlying compositions provide.
* - Documented with the canonical paper reference.
*
* Build-time-fixed cardinality: all patterns take a FIXED
* shard/branch/agent count at build time. Run-time-variable branching
* is a separate (not-yet-shipped) feature and would need a
* `DynamicParallel` primitive.
*/
export { selfConsistency, type SelfConsistencyOptions } from './SelfConsistency.js';
export { reflection, type ReflectionOptions } from './Reflection.js';
export { debate, type DebateOptions } from './Debate.js';
export { mapReduce, type MapReduceOptions } from './MapReduce.js';
export { tot, type ToTOptions } from './ToT.js';
export { swarm, type SwarmOptions, type SwarmAgent } from './Swarm.js';
export { llmRouter, RoutingDecisionError, type LlmRouter, type LlmRouterOptions, type RouterAgent, type RoutingDecision, } from './LlmRouter.js';
export { llmSwarm, type LlmSwarmAgent, type LlmSwarmOptions } from './LlmSwarm.js';