Skip to content

AgenticTaskOptions

Defined in: mcp.ts:647

optional maxSteps: number

Defined in: mcp.ts:655

Maximum steps for the agentic loop (default: 15)


optional mcpClients: MCPClientOptions

Defined in: mcp.ts:653

MCP clients to enable


optional onStepFinish: (step) => void

Defined in: mcp.ts:659

Callback for each step completion

string

unknown[]

void


optional onToolCall: (toolName, args) => void

Defined in: mcp.ts:657

Callback for each tool call

string

unknown

void


systemPrompt: string

Defined in: mcp.ts:649

System prompt defining the AI’s role and behavior


userPrompt: string

Defined in: mcp.ts:651

User prompt with the actual task