Create a new StreamOrchestrator.
constructor<
StateType extends Record<string, unknown> = Record<string, unknown>,
Bag extends BagTemplate = BagTemplate
>(
options: AnyStreamOptions<StateType, Bag>,
accessors: OrchestratorAccessors
): StreamOrchestrator<StateType, Bag>| Name | Type | Description |
|---|---|---|
options* | AnyStreamOptions<StateType, Bag> | Configuration options for the stream, including callbacks, throttle settings, reconnect behaviour, and subagent filters. |
accessors* | OrchestratorAccessors | Framework-specific accessors that resolve reactive primitives (client, assistant ID, messages key) at call time. |