@agentforce/adk
Version:
AgentForce Agent Development Kit - A powerful framework for building AI agents and servers
14 lines (12 loc) • 423 B
text/typescript
import type { AgentForceWorkflow } from "../../workflow";
/**
* Sets the initial user prompt for the workflow.
*
* @param this - The AgentForceWorkflow instance.
* @param userPrompt - The prompt to set.
* @returns The AgentForceWorkflow instance for method chaining.
*/
export function prompt(this: AgentForceWorkflow, userPrompt: string): AgentForceWorkflow {
this.setUserPrompt(userPrompt);
return this;
}