A wrapper around the user defined fn handler function.
fn
Callers pass values accepted by inputSchema (z.input). The wrapper parses input, invokes fn, parses output, and returns z.infer<outputSchema>.
inputSchema
z.input
z.infer<outputSchema>
The step input before inputSchema parse.
The step output after outputSchema parse.
outputSchema
A wrapper around the user defined
fnhandler function.Callers pass values accepted by
inputSchema(z.input). The wrapper parses input, invokesfn, parses output, and returnsz.infer<outputSchema>.