Genkit JS API reference
    Preparing search index...

    Interface StreamingResponse<O, S>

    Streaming response from an action.

    interface StreamingResponse<
        O extends z.ZodTypeAny = z.ZodTypeAny,
        S extends z.ZodTypeAny = z.ZodTypeAny,
    > {
        output: Promise<z.TypeOf<O>>;
        stream: AsyncGenerator<z.TypeOf<S>>;
    }

    Type Parameters

    Index

    Properties

    Properties

    output: Promise<z.TypeOf<O>>

    Final output of the action.

    stream: AsyncGenerator<z.TypeOf<S>>

    Iterator over the streaming chunks.