UNPKG

@agentforce/adk

Version:

AgentForce Agent Development Kit - A powerful framework for building AI agents and servers

14 lines (13 loc) 577 B
import type { AgentForceWorkflow } from "../../workflow"; import type { AgentForceAgent } from "../../agent"; /** * Adds a 'sequence' step to the execution plan. * * @param this - The AgentForceWorkflow instance. * @param agents - An array of agents to execute in sequence. * @returns The AgentForceWorkflow instance for method chaining. */ export function sequence(this: AgentForceWorkflow, agents: AgentForceAgent[]): AgentForceWorkflow { this.executionPlan.push({ type: "sequence", description: "Execute agents in sequence", payload: agents }); return this; }