엔지니어링 리더를 위한 안내서 · 2026년 5월
에이전트는 도구가 아니라 팀원이다.— 2026 AI Engineering Summit, 서울
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic();
async function runAgent(task: string): Promise<string> {
const response = await client.messages.create({
model: "claude-sonnet-4-6",
max_tokens: 4096,
tools: [searchTool, writeTool, reviewTool],
messages: [{ role: "user", content: task }],
});
// Handle tool_use blocks and recurse until stop_reason === "end_turn"
return processAgentLoop(client, response);
}
const result = await runAgent("분기 보고서를 분석하고 핵심 인사이트 3개를 추출하라");