Examples
Methods
Methods
next
Returns
Promise<GraphOutputStreamResponse<any>>
abort
context.isCancelled)
Returns
voidDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Realtime TTS-2 is live. Built for realtime conversation that feels human. Learn more
Handles output streaming from a graph execution. Provides methods to iterate over execution results and control execution flow. Key Features: - Async iteration over graph execution results - Cancellation support via abort() - Automatic cleanup and resource management Returned by as part of the execution result.
// With cancellation
const { outputStream } = await graph.start(input);
setTimeout(() => outputStream.abort(), 5000); // Cancel after 5 seconds
for await (const result of outputStream) {
// Processing will stop when abort() is called
}
next(): Promise<GraphOutputStreamResponse<any>>
Promise<GraphOutputStreamResponse<any>>
abort(): void
context.isCancelled)
voidWas this page helpful?