> Discover all available pages from the documentation index: https://mastra.zisheng.pro/llms.txt # Workflow\.commit() `.commit()` 方法完成 workflow 并返回最终结果。 ## 使用示例 ```typescript workflow.then(step1).commit() ``` ## 返回值 **workflow** (`Workflow`): 用于方法链式调用的 workflow 实例 ## 相关内容 - [控制流](https://mastra.zisheng.pro/docs/workflows/control-flow)