index.ts
829 Bytes
import { Agent, type ModelConfig } from 'evoltagent';
import { INITIAL_AGENT_SYSTEM_PROMPT } from './prompt';
/**
* Creates an initial agent for scaffolding a project.
* @param options - The options for creating the agent.
* @param options.modelConfig - The model configuration.
* @param options.appPath - The path to the app.
* @returns The initial agent.
*/
export function createInitialAgent(modelConfig: ModelConfig): Agent {
const systemTools = ['ThinkTool.execute', 'FileEditor.read', 'FileEditor.write'];
return new Agent({
name: 'InitialAgent',
profile: 'Expert Frontend Engineer specialized in project scaffolding with React, TypeScript, and Tailwind CSS V4.',
system: INITIAL_AGENT_SYSTEM_PROMPT,
tools: systemTools,
modelConfig,
verbose: true,
});
}