TurnHandle
Extends
Section titled “Extends”Promise<TurnResult>
Properties
Section titled “Properties”events
Section titled “events”readonly events: AsyncIterable<StreamPart>;readonly runId: Promise<string>;Resolves as soon as the run is opened — before the turn body finishes —
so a caller minting kind: 'flow' can persist the id it must resume with
even if the turn later throws.
Methods
Section titled “Methods”cancel()
Section titled “cancel()”cancel(reason?): void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”void
toResponseStream()
Section titled “toResponseStream()”toResponseStream(format?): ReadableStream;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”ReadableStream
toUIMessageStreamResponse()
Section titled “toUIMessageStreamResponse()”toUIMessageStreamResponse(opts?): Response;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
{ |
|
|
|
Returns
Section titled “Returns”Response