@agentforce/adk
Version:
AgentForce Agent Development Kit - A powerful framework for building AI agents and servers
15 lines (13 loc) • 497 B
text/typescript
import type { AgentForceWorkflow } from "../../workflow";
import type { AgentForceAgent } from "../../agent";
/**
* Sets the dispatcher agent for the workflow.
*
* @param this - The AgentForceWorkflow instance.
* @param agent - The AgentForceAgent to set as the dispatcher.
* @returns The AgentForceWorkflow instance for method chaining.
*/
export function dispatcher(this: AgentForceWorkflow, agent: AgentForceAgent): AgentForceWorkflow {
this.setDispatcher(agent);
return this;
}