UNPKG

@agentics.org/agentic-mcp

Version:

Agentic MCP Server with advanced AI capabilities including web search, summarization, database querying, and customer support. Built by the Agentics Foundation to enhance AI agents with powerful tools for research, content generation, and data analysis.

42 lines 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HandoffTool = void 0; class HandoffTool { name = 'handoff_to_agent'; description = 'Transfer the conversation to another specialized agent'; inputSchema = { type: 'object', properties: { agent_name: { type: 'string', description: 'The name of the agent to hand off to', enum: ['researcher', 'database_expert', 'customer_support'] }, reason: { type: 'string', description: 'The reason for the handoff' } }, required: ['agent_name', 'reason'] }; async execute(params, context) { // Track the handoff action context.trackAction('handoff_initiated'); context.remember(`handoff_${Date.now()}`, { to_agent: params.agent_name, reason: params.reason }); return { status: 'success', message: `Handing off to ${params.agent_name} agent. Reason: ${params.reason}`, metadata: { timestamp: new Date().toISOString(), target_agent: params.agent_name, reason: params.reason, workflow_id: context.getWorkflowId() } }; } } exports.HandoffTool = HandoffTool; //# sourceMappingURL=handoff.js.map