Trực tiếp · đã đồng bộ
LLM 에이전트 바이브 코딩
tc://bkg-241-a3f9
Claude · Khóa gia sư (BYOK)
DK2 · Yjs
agent.py
Đang theo dõi: học viên
1def build_agent(tools):
2 agent = Agent(
3 model="claude-sonnet",
4 tools=tools,
5 )David
6 # Claude 제안: 외부 호출 재시도 + 타임아웃Claude
7 agent.use(retry(max=3, timeout=30))
8 return agent
$ python -m evals run agent.py
✓ 12/12 evals đạt · không cần thử lại
DK
Don't just accept Claude's retry(3). Tell it WHY — idempotency. Ask: 'is this call safe to retry?'
Claude의 retry(3)을 그냥 받지 마세요. 이유(멱등성)를 말해줘야 해요. '이 호출은 재시도해도 안전한가?'를 물어보세요.
아, 그래서 결제 호출엔 위험하겠네요. 멱등키부터 짚을게요.
Ah, so it's risky for payment calls. I'll establish an idempotency key first.
DK
Exactly. That instinct — questioning the AI — is the whole skill.
맞아요. AI를 의심하는 그 직관이 핵심 스킬이에요.
Phụ đề trực tiếp
“That instinct — questioning the AI — is the whole skill.”
“AI를 의심하는 그 직관이 핵심 스킬이에요.”