remora-monorepo / lib / GenerateWorkflowSuccess
Interface: GenerateWorkflowSuccess
Defined in: packages/core/src/generator/index.ts:98
The result of a successful generateWorkflow call.
Properties
attempts
attempts:
number
Defined in: packages/core/src/generator/index.ts:106
Total number of createWorkflow attempts made.
diagnostics
diagnostics:
Diagnostic[]
Defined in: packages/core/src/generator/index.ts:104
Diagnostics from the final (successful) compilation attempt.
failureCode?
optionalfailureCode:undefined
Defined in: packages/core/src/generator/index.ts:108
Always undefined on success. Declared here so the field is accessible on the broad union type.
failureMessage?
optionalfailureMessage:undefined
Defined in: packages/core/src/generator/index.ts:110
Always undefined on success. Declared here so the field is accessible on the broad union type.
success
success:
true
Defined in: packages/core/src/generator/index.ts:100
Discriminant — true when the workflow was successfully generated.
workflow
workflow:
object
Defined in: packages/core/src/generator/index.ts:102
The validated workflow definition (possibly optimized by the compiler).
initialStepId
initialStepId:
string="string"
inputSchema?
optionalinputSchema:object
outputSchema?
optionaloutputSchema:object
steps
steps: ({
description:string;id:string;name:string;nextStepId?:string;params: {toolInput: {[key:string]: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; }; };toolName:string; };type:"tool-call"; } | {description:string;id:string;name:string;nextStepId?:string;params: {outputFormat:object;prompt:string; };type:"llm-prompt"; } | {description:string;id:string;name:string;nextStepId?:string;params: {outputFormat:object;sourceData: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; }; };type:"extract-data"; } | {description:string;id:string;name:string;nextStepId?:string;params: {cases:object[];switchOn: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; }; };type:"switch-case"; } | {description:string;id:string;name:string;nextStepId?:string;params: {itemName:string;loopBodyStepId:string;target: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; }; };type:"for-each"; } | {description:string;id:string;name:string;nextStepId?:string;params: {durationMs: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; }; };type:"sleep"; } | {description:string;id:string;name:string;nextStepId?:string;params: {backoffMultiplier?: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; };condition: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; };conditionStepId:string;intervalMs?: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; };maxAttempts?: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; };timeoutMs?: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; }; };type:"wait-for-condition"; } | {description:string;id:string;name:string;nextStepId?:string;params: {instructions:string;maxSteps?: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; };outputFormat:object;tools:string[]; };type:"agent-loop"; } | {description:string;id:string;name:string;nextStepId?:string;type:"start"; } | {description:string;id:string;name:string;nextStepId?:string;params?: {output: {type:"literal";value:unknown; } | {expression:string;type:"jmespath"; } | {template:string;type:"template"; }; };type:"end"; })[]