// adaptive-prompt-routing.md\n# Adaptive Prompt Routing\n\n## Overview\nAdaptive prompt routing is a system that automatically classifies tasks into four tiers based on their complexity and generates a prompt accordingly. The tiers are:\n* Tier 1: Reflex - Identity only\n* Tier 2: Essential - Identity + core tools (max 5 tools)\n* Tier 3: Standard - Identity + most tools (all core tools + up to 5 additional)\n* Tier 4: Extended - All tools + large context (rarely needed)\n\n## Implementation\nThe adaptive prompt router function takes in a task, identity, and tools as input and returns a prompt based on the task's complexity. The function uses a simple auto-classification system to determine the tier of the task based on its complexity.\n\n## Usage\nTo use the adaptive prompt router function, simply call the function with the task, identity, and tools as input. For example:\n```javascript\nconst task = { complexity: 5 };\nconst identity = 'Timmy';\nconst tools = [{ name: 'Tool 1', description: 'This is tool 1' }, { name: 'Tool 2', description: 'This is tool 2' }];\nconst prompt = adaptivePromptRouter(task, identity, tools);\nconsole.log(prompt);\n```