Genkit JS API reference
    Preparing search index...

    Interface FlowConfig<I, O, S, Init>

    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,
        Init extends z.ZodTypeAny = z.ZodTypeAny,
    > {
        initJsonSchema?: JSONSchema7;
        initSchema?: Init;
        inputSchema?: I;
        metadata?: Record<string, any>;
        name: string;
        outputSchema?: O;
        streamSchema?: S;
    }

    Type Parameters

    Index

    Properties

    initJsonSchema?: JSONSchema7

    JSON schema of the initialization data.

    initSchema?: Init

    Schema of the initialization data.

    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.