UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

17 lines (10 loc) 323 B
# Workflow\.commit() The `.commit()` method finalizes the workflow and returns the final result. ## Usage example ```typescript workflow.then(step1).commit() ``` ## Returns **workflow** (`Workflow`): The workflow instance for method chaining ## Related - [Control Flow](https://mastra.ai/docs/workflows/control-flow)