workflow
fun workflow(name: String, description: String = "", maxConcurrency: Int? = null, rerunOnResume: Boolean = true, waitForOutput: Boolean = false, config: NodeConfig = NodeConfig(), inputSchema: Schema? = null, outputSchema: Schema? = null, stateSchema: Schema? = null, block: EdgesDslBlock<EdgesBuilder>): Workflow
Builds a Workflow from the edges block declares.
val support = workflow("support_triage") {
Start.then(classify).route {
on("billing") then billing
otherwise(summarize)
}
billing.then(summarize)
}Content copied to clipboard
The other parameters are passed to the Workflow constructor unchanged.
Throws
if the declared graph is invalid, such as a routing map with no entry; most graph errors throw its subtype GraphValidationException.
if an on was never completed with then.