remora-monorepo / lib / createWorkflowGeneratorTool
Function: createWorkflowGeneratorTool()
createWorkflowGeneratorTool(
options):Tool<{task:string; },GenerateWorkflowResult>
Defined in: packages/core/src/generator/index.ts:141
Creates an AI SDK tool that generates validated workflow definitions from natural language task descriptions. Useful for giving an agent the ability to create workflows on the fly.
Parameters
options
Configuration including the model and available tools.
Returns
Tool<{ task: string; }, GenerateWorkflowResult>
An AI SDK tool that accepts a { task: string } input and returns a GenerateWorkflowResult.