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 Parameter | Default type |
|---|---|
TOutput | unknown |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
agentId | readonly | string | - | packages/agent/src/fanout/index.ts:162 |
children | readonly | readonly { agentId: string; historyAdjustment?: number; invoke: () => Promise<TOutput>; 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) => void | Optional event emitter for agent.fanout.spawned / merged. | packages/agent/src/fanout/index.ts:149 |
fanOutId? | readonly | string | Default - generated from runId + Date.now(). | packages/agent/src/fanout/index.ts:164 |
maxConcurrentChildren? | readonly | number | Default 4 per the canonical 2026 production lesson. | packages/agent/src/fanout/index.ts:140 |
mergeGuard? | readonly | MergeGuardConfig | Sideways-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? | readonly | MergeStrategy<TOutput> | Default { kind: 'concat' }. | packages/agent/src/fanout/index.ts:144 |
onChildResult? | readonly | (result) => void | Optional callback for per-child completion observability. | packages/agent/src/fanout/index.ts:147 |
perBudget? | readonly | PerChildBudget | Per-child budget; default unset. | packages/agent/src/fanout/index.ts:142 |
runId | readonly | string | Identifiers required to populate the events. | packages/agent/src/fanout/index.ts:160 |
sessionId | readonly | string | - | packages/agent/src/fanout/index.ts:161 |
signal? | readonly | AbortSignal | - | packages/agent/src/fanout/index.ts:145 |