(modelConfig: ModelConfig)
| 9 | * @returns The initial agent. |
| 10 | */ |
| 11 | export function createInitialAgent(modelConfig: ModelConfig): Agent { |
| 12 | const systemTools = ['ThinkTool.execute', 'FileEditor.read', 'FileEditor.write']; |
| 13 | |
| 14 | return new Agent({ |
| 15 | name: 'InitialAgent', |
| 16 | profile: 'Expert Frontend Engineer specialized in project scaffolding with React, TypeScript, and Tailwind CSS V4.', |
| 17 | system: INITIAL_AGENT_SYSTEM_PROMPT, |
| 18 | tools: systemTools, |
| 19 | modelConfig, |
| 20 | verbose: true, |
| 21 | }); |
| 22 | } |