Subscribe to raw wire channels and receive protocol events.
For assembled projections, use the lazy getters instead:
thread.messages, thread.values, thread.toolCalls,
thread.subgraphs, thread.subagents, thread.output.
subscribe<
TChannel extends Channel
>(
channel: TChannel,
options: SubscribeOptions
): Promise<SubscriptionHandle<EventForChannel<TChannel>, YieldForChannel<TChannel>>>| Name | Type | Description |
|---|---|---|
channel* | TChannel | |
options | SubscribeOptions |