Interface FlowConfig<I, O, S>

Configuration for a streaming flow.

interface FlowConfig<
    I extends ZodTypeAny = ZodTypeAny,
    O extends ZodTypeAny = ZodTypeAny,
    S extends ZodTypeAny = 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.