Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/agent / fanout / FanOutOptions
Interface: FanOutOptions<TOutput>
Defined in: packages/agent/src/fanout/index.ts:82
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:107 |
children | readonly | readonly { agentId: string; invoke: () => Promise<TOutput>; }[] | 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:89 |
emit? | readonly | (event) => void | Optional event emitter for agent.fanout.spawned / merged. | packages/agent/src/fanout/index.ts:103 |
fanOutId? | readonly | string | Default — generated from runId + Date.now(). | packages/agent/src/fanout/index.ts:109 |
maxConcurrentChildren? | readonly | number | Default 4 per the canonical 2026 production lesson. | packages/agent/src/fanout/index.ts:94 |
mergeStrategy? | readonly | MergeStrategy<TOutput> | Default { kind: 'concat' }. | packages/agent/src/fanout/index.ts:98 |
onChildResult? | readonly | (result) => void | Optional callback for per-child completion observability. | packages/agent/src/fanout/index.ts:101 |
perBudget? | readonly | PerChildBudget | Per-child budget; default unset. | packages/agent/src/fanout/index.ts:96 |
runId | readonly | string | Identifiers required to populate the events. | packages/agent/src/fanout/index.ts:105 |
sessionId | readonly | string | - | packages/agent/src/fanout/index.ts:106 |
signal? | readonly | AbortSignal | - | packages/agent/src/fanout/index.ts:99 |