circuit-breaker

Solid

Agent hata toleransi ve devre kesici pattern. Ust uste hata yapan agent'i durdur, cooldown uygula, fallback'e gec. Kaskatli hatalari ve sonsuz retry dongularini onler.

AI & Automation 496 stars 41 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
90
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Circuit Breaker for Agents Agent'lar da servisler gibi basarisiz olabilir. Ayni hatayi tekrar tekrar denemek token israf eder ve sorunu cozmez. Circuit breaker bunu onler. ## 3 Durum ``` CLOSED (Normal) Agent calisir, hatalar sayilir. Hata esigi asilirsa → OPEN'a gec. OPEN (Devre Kesik) Agent CALISTIRILMAZ. Cooldown suresi boyunca bekle. Cooldown bitince → HALF-OPEN'a gec. HALF-OPEN (Test) Tek bir istek gonder. Basarili → CLOSED'a don. Basarisiz → OPEN'a geri don (cooldown uzat). ``` ``` basarili hata esigi ┌──────────┐ ┌───────────┐ │ │ │ │ ▼ │ ▼ │ CLOSED ──────┼── OPEN ────── HALF-OPEN ▲ │ │ │ │ │ │ │ └──────────┘ └───────────┘ normal cooldown bitti ``` ## Konfigrasyon ```typescript interface CircuitBreakerConfig { failureThreshold: number // Kac hata sonrasi OPEN (default: 3) cooldownMs: number // OPEN'da bekleme suresi (default: 60000 = 1 dk) halfOpenMaxAttempts: number // HALF-OPEN'da max deneme (default: 1) resetAfterMs: number // Hata sayacini sifirla (default: 300000 = 5 dk) onOpen?: () => void // OPEN'a gecince cagrilir onClose?: () => void // CLOSED'a donunce cagrilir } const DEFAULT_CONFIG: CircuitBreakerConfig = { failureThreshold: 3, cooldownMs: 60000, halfOpenMaxAttempts: 1, resetAfterMs: 300000, } ``` ## Uygulama ### Agent Seviyesinde ...

Details

Author
vibeeval
Repository
vibeeval/vibecosystem
Created
2 months ago
Last Updated
1 months ago
Language
C#
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category