Preparing search index...
The search index is not available
Genkit JS API reference
Genkit JS API reference
genkit
/
StreamingResponse
Interface StreamingResponse<O, S>
Streaming response from an action.
interface
StreamingResponse
<
O
extends
ZodTypeAny
=
ZodTypeAny
,
S
extends
ZodTypeAny
=
ZodTypeAny
,
>
{
output
:
Promise
<
TypeOf
<
O
>
>
;
stream
:
AsyncGenerator
<
TypeOf
<
S
>
,
any
,
unknown
>
;
}
Type Parameters
O
extends
ZodTypeAny
=
ZodTypeAny
S
extends
ZodTypeAny
=
ZodTypeAny
Index
Properties
output
stream
Properties
output
output
:
Promise
<
TypeOf
<
O
>
>
Final output of the action.
stream
stream
:
AsyncGenerator
<
TypeOf
<
S
>
,
any
,
unknown
>
Iterator over the streaming chunks.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
output
stream
Genkit JS API reference
Loading...
Streaming response from an action.