Build a custom Agent Router to autonomously solve bugs.
1. Initialize your project
2. Install the required dependencies
3. Add TypeScript support
package.json
:plannerAgent
: Analyzes code and plans fixes using code search capabilitieseditorAgent
: Implements the planned fixes using file system operationswriteFile
should always return a value to inform the Agent that the action has been completed.writeFile
: Write content to a filereadFile
: Read content from a filesearchCode
: Search for patterns in project filesplannerAgent
uses the searchCode
Tool to analyze code and plan fixeseditorAgent
uses the readFile
and writeFile
Tools to implement fixescreateRoutingAgent
helper function:
system
function that returns a promptsystem
function is used to define the prompt dynamically based on the Agents available in the Network
select_agent
Tool is used to validate that the Agent selected is available in the Network
onRoute
lifecycle callback is used to determine which Agent to call next
http://localhost:3010
and ready to help fix bugs in your TypeScript projects!