C.W.K.
Stream
Lesson 05 of 05 · published

비용, 지연, 디버깅 표면

~26 min · cost, latency, debugging

Level 0Observer
0 XP0/40 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

멀티 에이전트 비용은 곱해져

manager가 specialist 셋을 부르고, 각 specialist가 tool loop를 다섯 번 돌고, reviewer가 두 번 돌면 사용자 요청 하나가 순식간에 수십 번의 model call이 된다. 가치 있을 수도 있어. 공짜는 아니야.

디버깅도 곱해져. agent별 trace, shared correlation id, handoff summary, 실패 branch만 replay하는 방법이 필요하다.

architecture 전에 budget

agent별 step limit과 전체 run limit을 정해. 전체 run 비용만 보지 말고 branch별 비용을 추적해. worker가 N step 안에 유용한 결과를 못 내면 멈추고 partial failure를 돌려줘.

parallelism은 wall-clock time을 줄이지만 총비용을 키울 수 있어. 둘 다 측정해.

Code

Trace identifiers·json
{"run_id":"run_abc","parent_agent":"manager","agent":"researcher","branch":"sources","step":4,"cost_usd":0.032,"status":"tool_call"}

External links

Exercise

worker 3명을 둔 manager, 각 worker 6 step 허용, review pass 2번인 시스템의 call count를 대략 계산해봐. 그다음 더 싼 budget을 정해.
Hint
숫자가 무서운 게 lesson이야. 좋아.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.