Patch Changes
-
#609
942663f
Thanks @omeraplak! - feat: add workflow cancellation support, including cancellation metadata, default controller updates, and a new API endpoint for cancelling executions - #608Usage Example
import { createSuspendController } from "@voltagent/core"; const controller = createSuspendController(); const stream = workflow.stream(input, { suspendController: controller }); // Cancel from application code controller.cancel("User stopped the workflow"); // Or via HTTP await fetch(`/api/workflows/${workflowId}/executions/${executionId}/cancel`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ reason: "User stopped the workflow" }), });
-
Updated dependencies [
942663f
]:- @voltagent/core@1.1.16
- @voltagent/server-core@1.0.10