跳到正文
DEV Community· Sanu Sharma·· 13 天前AI 評分50

SelfHeal:為正在運行的 Python 應用程式提供 AI 修復、驗證與回滾

SelfHeal: AI repair for running Python apps, with verification and rollback

AI 導讀

SelfHeal 會在 Python 函數出錯或健康檢查失敗時,請 LLM 提供修補程式,並在複製的工作區中進行語法檢查及 pytest 驗證。獲用戶批准後才會更新運行中的函數;若啟用失敗則會回滾。其 Python SDK(Rust 核心)現處於 beta,可透過 `pip install pyselfheal-rt` 安裝。

正文

Sanu Sharma

When a Python function raises an error or fails a health check, SelfHeal asks an LLM for a patch, verifies it in a copied workspace (syntax + pytest), and updates the running function only after you approve. If activation fails, it rolls back.
Python SDK with a Rust core, currently in beta: pip install pyselfheal-rt (import it as selfheal).
GitHub: https://github.com/sanusharma-ui/selfheal

來源:DEV Community · dev.to