Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/agent / fanout / FanOutOptions

Interface: FanOutOptions<TOutput>

Defined in: packages/agent/src/fanout/index.ts:115

Per-call options accepted by Agent.fanOut(...).

Stable

Type Parameters

Type ParameterDefault type
TOutputunknown

Properties

PropertyModifierTypeDescriptionDefined in
agentIdreadonlystring-packages/agent/src/fanout/index.ts:162
childrenreadonlyreadonly { agentId: string; historyAdjustment?: number; invoke: () => Promise&lt;TOutput&gt;; origin?: ContentOriginKind; trustClass?: TrustClass; }[]The sub-agents to invoke. Each entry is invoked as a function returning a Promise<TOutput> - the fan-out helper does not impose an Agent shape on the children so the runtime can adapt any callable surface.packages/agent/src/fanout/index.ts:122
emit?readonly(event) => voidOptional event emitter for agent.fanout.spawned / merged.packages/agent/src/fanout/index.ts:149
fanOutId?readonlystringDefault - generated from runId + Date.now().packages/agent/src/fanout/index.ts:164
maxConcurrentChildren?readonlynumberDefault 4 per the canonical 2026 production lesson.packages/agent/src/fanout/index.ts:140
mergeGuard?readonlyMergeGuardConfigSideways-injection merge guard (AG-7): on 'judge-merge' the fan-out scores each child's source trust and contribution weight against the judge's merged output; a biased merge emits agent.lateral-leak.detected (vector sideways-injection) and - under strictness: 'detect-and-block' - throws MergeBlockedError.packages/agent/src/fanout/index.ts:158
mergeStrategy?readonlyMergeStrategy&lt;TOutput&gt;Default { kind: 'concat' }.packages/agent/src/fanout/index.ts:144
onChildResult?readonly(result) => voidOptional callback for per-child completion observability.packages/agent/src/fanout/index.ts:147
perBudget?readonlyPerChildBudgetPer-child budget; default unset.packages/agent/src/fanout/index.ts:142
runIdreadonlystringIdentifiers required to populate the events.packages/agent/src/fanout/index.ts:160
sessionIdreadonlystring-packages/agent/src/fanout/index.ts:161
signal?readonlyAbortSignal-packages/agent/src/fanout/index.ts:145