use Revolution\Copilot\Contracts\CopilotSession;
use Revolution\Copilot\Facades\Copilot;
use Revolution\Copilot\Types\SessionConfig;
Copilot::start(function (CopilotSession $session) {
$response = $session->sendAndWait(prompt: '인증 관련 설계를 조사해서 개선안을 제안해줘');
dump($response->content());
}, config: new SessionConfig(
customAgents: [
[
'name' => 'researcher',
'displayName' => 'Research Agent',
'description' => '코드를 조사해서 요점을 정리한다',
'tools' => ['grep', 'glob', 'view'],
'prompt' => 'You are a research assistant. Analyze code and summarize findings.',
],
[
'name' => 'editor',
'displayName' => 'Editor Agent',
'description' => '필요 최소한의 코드 변경을 수행한다',
'tools' => ['view', 'edit', 'bash'],
'prompt' => 'You are a code editor. Make minimal, surgical changes only.',
],
],
));