v0.2.0 — builder API rename
Breaking change: the workflow builder's start() and then() methods are replaced by a single step() method. AgentWorkflow::start() (creating a run) is unchanged and is now the only start in the API.
Migration: in your workflow definitions, replace ->start(X) and ->then(X) with ->step(X):
AgentWorkflow::define('ticket-reply')
->step(DraftReplyAgent::class)
->awaitHuman(reason: 'Review the drafted reply', schema: ['final_reply' => 'required|string'])
->step(SendReply::class);when(then:, else:) named arguments are unchanged. Also renamed: the internal WorkflowDefinition::step($id) lookup is now findStep($id).