remora-monorepo / lib / generateWorkflow
Function: generateWorkflow()
generateWorkflow(
options):Promise<GenerateWorkflowResult>
Defined in: packages/core/src/generator/index.ts:64
Uses an LLM to generate a validated workflow definition from a natural language task description. The LLM produces a workflow via tool call, which is then compiled and validated. If compilation fails, diagnostics are fed back to the LLM for correction, up to maxRetries attempts.
Parameters
options
Generation options including model, tools, and task description.
Returns
Promise<GenerateWorkflowResult>
A GenerateWorkflowResult with the generated workflow (or null), diagnostics, and attempt count.
Throws
If any tool in options.tools is missing an outputSchema.