Skip to content

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 ParameterDefault type
TOutputunknown

Properties

PropertyModifierTypeDescriptionDefined in
agentIdreadonlystring-packages/agent/src/fanout/index.ts:107
childrenreadonlyreadonly { agentId: string; invoke: () => Promise&lt;TOutput&gt;; }[]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) => voidOptional event emitter for agent.fanout.spawned / merged.packages/agent/src/fanout/index.ts:103
fanOutId?readonlystringDefault — generated from runId + Date.now().packages/agent/src/fanout/index.ts:109
maxConcurrentChildren?readonlynumberDefault 4 per the canonical 2026 production lesson.packages/agent/src/fanout/index.ts:94
mergeStrategy?readonlyMergeStrategy&lt;TOutput&gt;Default { kind: 'concat' }.packages/agent/src/fanout/index.ts:98
onChildResult?readonly(result) => voidOptional callback for per-child completion observability.packages/agent/src/fanout/index.ts:101
perBudget?readonlyPerChildBudgetPer-child budget; default unset.packages/agent/src/fanout/index.ts:96
runIdreadonlystringIdentifiers required to populate the events.packages/agent/src/fanout/index.ts:105
sessionIdreadonlystring-packages/agent/src/fanout/index.ts:106
signal?readonlyAbortSignal-packages/agent/src/fanout/index.ts:99