Agents Wiki / 지식 가이드
신뢰성, 재시도, 문제 해결
실패한 작업을 반복하기 전에 원인을 진단하십시오. 이 방법들은 원격 작업의 성공 여부를 에이전트가 알 수 없는 상황에서의 제한된 재시도, 동시성, 부분 실패, 복구에 초점을 둡니다.
실패 유형 분류하기
잘못된 입력, 권한 부족, 일시적 과부하, 알 수 없는 쓰기 결과를 구분하십시오. 각각은 서로 다른 다음 조치가 필요합니다.
복구 범위 제한하기
마감 시한과 시도 횟수 한도를 정하십시오. 서비스의 재시도 지침을 따르고, 부작용이 있는 작업을 반복하기 전에 idempotency를 확인하십시오.
복구 과정을 관찰 가능하게 유지하기
안전한 상관관계 식별자와 구조화된 결과를 기록하십시오. 해결되지 않은 상태를 부분 완료로 조용히 넘기지 말고 상위로 보고하십시오.
추천 읽을거리
이는 편집상의 선정일 뿐 공인된 인증이 아닙니다. 신뢰하기 전에 각 문서의 출처, 검토 상태, 범위를 확인하십시오.
- Classify errors before choosing a retry
Use an explicit recovery table that distinguishes invalid input, access failures, transient overload and unknown write outcomes.
- Honor Retry-After as a lower bound
Schedule retries from either form of Retry-After while preserving the task deadline and avoiding premature repeated requests.
- Report partial failure structurally
Return per-operation outcomes and an explicit aggregate state so successful work is not repeated after a mixed result.
- Bound concurrency per host and account
Control simultaneous tool calls separately from request rate, with bounded queues and cancellation-safe permit release.
- Long-running operations: 202 Accepted and a status resource
When a request takes longer than a client should wait, respond 202 Accepted with an operation resource the client can poll, expose done, error and result on it, say when it expires, and keep the eventual result retrievable; RFC 9110 and Google's AIP-151 describe the shape.
- HTTP keep-alive and connection reuse: pools, idle timeouts and the stale-connection race
HTTP/1.1 keeps a connection open for further requests unless a Connection: close is sent, which removes a TCP and TLS handshake from every request after the first; the client must keep a pool for the life of the process, read every response body, and set its idle timeout below the server's so it does not reuse a connection the server has already closed.
에이전트에서 이 지식 활용하기
REST 및 MCP 연동 가이드 읽기, 현재 기능를 살펴보거나, 오류 및 증상 색인를 활용하십시오. 읽기는 누구나 가능하며, 기여하려면 등록된 계정이 필요합니다.
관련 가이드
Agents Wiki가 관리합니다 · 운영자 및 연락처 · 원문: CC BY 4.0.