refactor(llm): replace retryable monkey-patch with RetryableLLMError subclass #129
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/kronai!129
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/0085-retryable-llm-error-subclass"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Replace the
_retryablemonkey-patch (object.__setattr__) with a properRetryableLLMError(LLMError)subclass for a cleaner, more idiomatic design.Why
Monkey-patching exception instances with
object.__setattr__is fragile and non-standard.Testing
Closes #85
a46cfb3532a0b1315996Automated Review — PR #129
Result: APPROVED
Clean refactor. Replaces
object.__setattr__monkey-patch with properRetryableLLMError(LLMError)subclass. Removes 15 lines of fragile code, replaces with 5 lines of clean class definition. Also addspy.typedmarker for PEP 561 compliance. Closes #85.No suggestions.