Status | Description |
Closed (Normal) | Requests are forwarded to the backend normally, and the error rate/slow call rate is continuously counted. |
Open (Circuit Breaking) | After a circuit breaker is triggered, all requests are immediately returned with degraded responses and are no longer forwarded to the backend. After a period of time, the circuit breaker goes to the half-open state. |
Half-Open (Probing) | A small number of probe requests are allowed to pass to the backend. If the number of successful probes reaches the threshold, the circuit breaker is restored to the closed state. If a probe fails, the circuit breaker is triggered again. |
Configuration Item | Default Value | Value Range | Description |
Statistical Duration | 10 seconds | 1 to 60 seconds | Sliding time window for error rate / slow call rate statistics |
Minimum request count | 10 times | 1 to 100 times | The circuit breaker is not triggered when the number of requests within the window is insufficient, preventing false positives due to low traffic. |
Configuration Item | Default Value | Value Range | Description |
Trigger status codes | 500,502,503,504 | 400 to 599, up to 32 | Which HTTP status codes are counted as errors (for example, 429 can be added as needed). |
Error rate threshold | 50% | 1~100 | Circuit breaking is triggered when the error rate reaches this threshold. |
Configuration Item | Default Value | Value Range | Description |
Maximum response time | 3000 ms | 100~60000 ms | A call that exceeds this duration is considered a "slow call". This value must be less than the request timeout of the backend service, otherwise slow calls cannot be counted. |
Slow call ratio threshold | 80% | 1~100 | Circuit breaking is triggered when the slow call rate reaches this threshold. |
Configuration Item | Default Value | Value Range | Description |
Circuit Breaker Duration | 30 seconds | 5 to 600 seconds | After the circuit breaker is opened, it remains in this state for the configured duration. After the duration expires, it goes to the half-open state for probing. |
Number of Probing Requests in Half-Open State | 3 | 1 to 10 | Number of Probing Requests Allowed to Pass to the Backend in Half-Open State |
Success Threshold in Half-Open State | 2 | 1 to the number of probing requests | If the number of successful probes reaches this threshold, the circuit breaker is restored to the normal (closed) state. |
Skip Retry During Circuit Breaking | Enable | On / Off | Keep this option enabled. During a circuit breaker, retries for this Tool are skipped to avoid invalid loops. |
Degradation Policy | Default Return Code | Returned Content | Applicable Scenarios |
No degradation | 503 | Standard error message (Circuit breaker open) | The caller (Agent) can identify errors and handle them independently, and does not require a "false success" response. |
Fixed JSON response | 200 | Returns the fixed JSON content you preset. | The caller can accept empty results or fallback prompts and does not require real data. |

Scenario | Symptom | Recommended Configuration |
Backend persistently slows down. | Backend tool response time degrades from milliseconds to seconds, and retries cause a large accumulation of requests. | Enable "slow call triggering" (maximum response time: 3000ms, ratio: 80%), and return a fixed JSON response upon degradation. |
Backend persistently reports errors. | The backend dependency fault continuously returns 5xx, and retries amplify invalid requests. | Enable "error ratio triggering" (status codes: 500/502/503/504, threshold: 50%), and keep "skip retries during circuit breaker" enabled. |
Third-party API Rate Limiting | The third-party API continuously returns 429, and the Agent falls into an invalid call loop. | Add 429 to the "trigger status codes", enable error ratio triggering, and return a fixed JSON response as a fallback upon degradation. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback