@@ -26,7 +26,7 @@ const TEMPLATE_TYPES_PATH = path.join(AGENT_TEMPLATES_DIR, AGENT_CONFIG_FILE)
2626const TOOL_DEFINITIONS_FILE = 'tools.d.ts'
2727const TOOL_DEFINITIONS_PATH = path . join (
2828 AGENT_TEMPLATES_DIR ,
29- TOOL_DEFINITIONS_FILE
29+ TOOL_DEFINITIONS_FILE ,
3030)
3131
3232export const agentBuilder = ( model : Model ) : Omit < AgentTemplate , 'id' > => {
@@ -39,6 +39,7 @@ export const agentBuilder = (model: Model): Omit<AgentTemplate, 'id'> => {
3939 console . warn ( `Could not read ${ AGENT_CONFIG_FILE } :` , error )
4040 agentTemplateContent = '// Agent template types not available'
4141 }
42+ const toolDefinitionsContent = compileToolDefinitions ( )
4243
4344 return {
4445 displayName : 'Bob the Agent Builder' ,
@@ -48,7 +49,7 @@ export const agentBuilder = (model: Model): Omit<AgentTemplate, 'id'> => {
4849 . string ( )
4950 . optional ( )
5051 . describe (
51- 'What agent type you would like to create or edit. Include as many details as possible.'
52+ 'What agent type you would like to create or edit. Include as many details as possible.' ,
5253 ) ,
5354 params : z
5455 . object ( {
@@ -101,11 +102,18 @@ export const agentBuilder = (model: Model): Omit<AgentTemplate, 'id'> => {
101102 '## Complete Agent Template Type Definitions' ,
102103 '' ,
103104 'Here are the complete TypeScript type definitions for creating custom Codebuff agents:' ,
104- '' ,
105105 '```typescript' ,
106106 agentTemplateContent ,
107107 '```' ,
108108 '' ,
109+ '## Available Tools Type Definitions' ,
110+ '' ,
111+ 'Here are the complete TypeScript type definitions for all available tools:' ,
112+ '' ,
113+ '```typescript' ,
114+ toolDefinitionsContent ,
115+ '```' ,
116+ '' ,
109117 '## Agent Template Patterns:' ,
110118 '' ,
111119 '1. **Base Agent Pattern**: Full-featured agents with comprehensive tool access' ,
@@ -176,7 +184,6 @@ IMPORTANT: Always end your response with the end_turn tool when you have complet
176184 }
177185
178186 // Step 3: Write the tool definitions file
179- const toolDefinitionsContent = compileToolDefinitions ( )
180187 yield {
181188 toolName : 'write_file' ,
182189 args : {
0 commit comments