Genkit JS API reference
    Preparing search index...

    Interface FlowConfig<I, O, S>

    Configuration for a streaming flow.

    interface FlowConfig<
        I extends z.ZodTypeAny = z.ZodTypeAny,
        O extends z.ZodTypeAny = z.ZodTypeAny,
        S extends z.ZodTypeAny = z.ZodTypeAny,
    > {
        inputSchema?: I;
        metadata?: Record<string, any>;
        name: string;
        outputSchema?: O;
        streamSchema?: S;
    }

    Type Parameters

    Index

    Properties

    inputSchema?: I

    Schema of the input to the flow.

    metadata?: Record<string, any>

    Metadata of the flow used by tooling.

    name: string

    Name of the flow.

    outputSchema?: O

    Schema of the output from the flow.

    streamSchema?: S

    Schema of the streaming chunks from the flow.