Agent Architecture

Agent architecture는 model call을 workflow로 바꾸는 component를 설명합니다. 유용한 agent는 LLM 하나가 아니라 state, tool, memory, policy, verification을 가진 loop입니다.

간단한 agent는 아래처럼 쓸 수 있습니다.

여기서 는 task state, 는 current context, 는 retrieved memory, 는 next action입니다.

Architecture를 볼 때 핵심은 component 이름이 아니라 information flow입니다. 같은 LLM을 써도 context selection, tool boundary, state update, verification policy가 다르면 완전히 다른 agent가 됩니다.

Component

  • Model: plan, tool call, edit, answer를 생성합니다.
  • State: goal, constraint, evidence, progress를 추적합니다.
  • Context: current call에서 보이는 selected information입니다.
  • Tools: external state를 inspect하거나 change하는 action입니다.
  • Memory: context window 밖의 durable 또는 retrieved information입니다.
  • Verifier: artifact가 correct한지 확인합니다.
  • Human boundary: approval 또는 judgment가 필요한 위치를 정의합니다.

Architecture Patterns

Pattern구조잘 맞는 작업
Single-loop agent하나의 loop가 observe, act, verify를 반복작은 coding task, note cleanup, local automation
Planner-executorplan 생성과 실행 step을 분리긴 작업, 여러 파일 수정, review 가능한 workflow
Tool-using assistantmodel이 schema-bound tool을 호출search, retrieval, calculation, repository inspection
Supervisor-workersupervisor가 bounded subtask를 delegate병렬 review, 후보 수집, draft generation
Human-gated agenthigh-risk transition을 human approval 뒤에 실행publication, deployment, destructive edit, security-sensitive work

Boundary

Agent architecture는 AI architecture와 다릅니다. Transformer, RNN, diffusion backbone 같은 model-internal structure는 AI에 두고, 여기서는 그 model을 둘러싼 context, tool, state, verifier, human gate를 다룹니다.

확인할 것

  • 어떤 state가 conversation history에 숨어 있지 않고 explicit한가?
  • 어떤 tool이 side effect를 만들 수 있는가?
  • 각 side effect를 무엇으로 verify하는가?
  • 무엇이 loop를 멈추게 하는가?
  • 어떤 decision에 human review가 필요한가?
  • architecture diagram이 실제 artifact flow를 설명하는가, 아니면 role 이름만 나열하는가?
  • model error와 workflow error를 분리해서 debug할 수 있는가?