UNPKG

@tosin2013/mcp-shrimp-task-manager

Version:

Enhanced MCP Shrimp Task Manager with comprehensive LLM integration. A task management tool built for AI Agents, emphasizing chain-of-thought, reflection, and style consistency. Features real GPT-4 ↔ MCP tools communication, comprehensive testing pipeline

33 lines 1.19 kB
import { z } from "zod"; import { getReflectTaskPrompt } from "../../prompts/index.js"; // 反思構想工具 export const reflectTaskSchema = z.object({ summary: z .string() .min(10, { message: "任務摘要不能少於10個字符,請提供更詳細的描述以確保任務目標明確", }) .describe("結構化的任務摘要,保持與分析階段一致以確保連續性"), analysis: z .string() .min(100, { message: "技術分析內容不夠詳盡,請提供完整的技術分析和實施方案", }) .describe("完整詳盡的技術分析結果,包括所有技術細節、依賴組件和實施方案,如果需要提供程式碼請使用 pseudocode 格式且僅提供高級邏輯流程和關鍵步驟避免完整代碼"), }); export async function reflectTask({ summary, analysis, }) { // 使用prompt生成器獲取最終prompt const prompt = getReflectTaskPrompt({ summary, analysis, }); return { content: [ { type: "text", text: prompt, }, ], }; } //# sourceMappingURL=reflectTask.js.map