Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/agent / fanout

fanout

Agent-step-level fan-out — Agent.fanOut(...) convenience that spawns N sub-agents in parallel under a bounded-fanout cap with per-child budgets and four built-in merge strategies.

Boundary discipline against the workflow Dispatch(...) primitive: fan-out is agent-step-level inline result (children share parent RunContext lineage; result consumed by parent's continuing loop within one or few agent.run(...) calls). Dispatch(...) is workflow-step-level checkpointed durable graph. The two compose orthogonally.

Interfaces

InterfaceDescription
ChildResultPer-child outcome surfaced on FanOutResult.children. Failed-child isolation: a child that throws produces a ChildResult with status: 'failed' — never an exception thrown from the fan-out call itself.
FanOutOptionsPer-call options accepted by Agent.fanOut(...).
FanOutResultAggregate result returned by Agent.fanOut(...).
PerChildBudgetPer-child budget. Defaults derived from the canonical 2026 scaling-rule table for agent fan-out workloads.

Type Aliases

Type AliasDescription
MergeStrategyBuilt-in merge-strategy taxonomy.

Functions

FunctionDescription
runFanOutRun a fan-out and produce the aggregate FanOutResult. Pure with respect to side effects — the runtime emits events / audit rows / counter increments via the supplied emit callback.