Production Agent Platform Patterns

Mental model

Production agent không phải một prompt hay một model. Nó là platform gồm model, orchestrator, tool harness, context retrieval, sandbox, security boundary, eval stack, tracing và rollout strategy. Càng agentic, hệ thống càng phải coi model như thành phần không deterministic cần containment.

Các lớp thiết kế

LớpConceptCâu hỏi cần trả lời
OrchestrationAgent Orchestrator-Worker Pattern, Agent Effort ScalingTask có đáng parallelize không, và effort có khớp độ khó không?
EvidenceCitation Agent, Evidence-Grounded GenerationClaim cuối có truy vết được về source không?
ReliabilityAgent State Checkpointing, Agent TracingAgent dài hơi recover và debug thế nào?
Coding workflowDiff Problem, Sandboxed Agent ExecutionPatch có apply đúng và được verify an toàn không?
SecurityZero-Secret Agent Architecture, Safe Outputs Pipeline, Agent Trust Boundary LoggingAgent bị prompt-injected thì blast radius dừng ở đâu?
ProtocolAgent Protocol Interoperability, Model Context ProtocolTool/agent/server giao tiếp bằng contract nào?
EvaluationAgent Evaluation Stack, LLM-as-JudgeEvals bắt lỗi end-to-end và lỗi từng layer chưa?

Bài học

  • Multi-agent phù hợp bài toán cần breadth; coding thường cần coordination chặt hơn nên không tự động hưởng lợi.
  • Tool description là API design cho model; mô tả kém làm agent chọn sai tool.
  • Coding agent production cần giải diff problem, latency compound và sandbox startup.
  • Agent security nên dựa vào architecture: agent không thấy secret, output bị vet, trust boundary được log.
  • Eval agent phải đo task outcome, tool efficiency, evidence quality và user trust.

Liên kết