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;
    name: string;
    outputSchema?: O;
    streamSchema?: S;
}

Type Parameters

Properties

inputSchema?: I

Schema of the input to the flow.

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.