AgenticTaskOptions
Defined in: mcp.ts:647
Properties
Section titled “Properties”maxSteps?
Section titled “maxSteps?”
optionalmaxSteps:number
Defined in: mcp.ts:655
Maximum steps for the agentic loop (default: 15)
mcpClients?
Section titled “mcpClients?”
optionalmcpClients:MCPClientOptions
Defined in: mcp.ts:653
MCP clients to enable
onStepFinish()?
Section titled “onStepFinish()?”
optionalonStepFinish: (step) =>void
Defined in: mcp.ts:659
Callback for each step completion
Parameters
Section titled “Parameters”string
toolCalls?
Section titled “toolCalls?”unknown[]
Returns
Section titled “Returns”void
onToolCall()?
Section titled “onToolCall()?”
optionalonToolCall: (toolName,args) =>void
Defined in: mcp.ts:657
Callback for each tool call
Parameters
Section titled “Parameters”toolName
Section titled “toolName”string
unknown
Returns
Section titled “Returns”void
systemPrompt
Section titled “systemPrompt”systemPrompt:
string
Defined in: mcp.ts:649
System prompt defining the AI’s role and behavior
userPrompt
Section titled “userPrompt”userPrompt:
string
Defined in: mcp.ts:651
User prompt with the actual task