await step.custom('custom', async () => { return { hello: 'world', } }, { outputSchema: z.object({ hello: z.string(), }), });
const { hello } = await step.custom('custom', resolver);
Used to execute any custom code as a step in the workflow.
outputSchema
Was this page helpful?