@agentforce/adk
Version:
AgentForce Agent Development Kit - A powerful framework for building AI agents and servers
14 lines (13 loc) • 577 B
text/typescript
import type { AgentForceWorkflow } from "../../workflow";
import type { AgentForceAgent } from "../../agent";
/**
* Adds a 'parallel' step to the execution plan.
*
* @param this - The AgentForceWorkflow instance.
* @param agents - An array of agents to execute in parallel.
* @returns The AgentForceWorkflow instance for method chaining.
*/
export function parallel(this: AgentForceWorkflow, agents: AgentForceAgent[]): AgentForceWorkflow {
this.executionPlan.push({ type: "parallel", description: "Execute agents in parallel", payload: agents });
return this;
}