UNPKG

@mastra/core

Version:

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

21 lines (12 loc) 415 B
# Workflow\.parallel() The `.parallel()` method executes multiple steps in parallel. ## Usage example ```typescript workflow.parallel([step1, step2]) ``` ## Parameters **steps** (`Step[]`): The step instances to execute in parallel ## Returns **workflow** (`Workflow`): The workflow instance for method chaining ## Related - [Simultaneous steps with parallel](https://mastra.ai/docs/workflows/control-flow)