Refactor: Create standardized provider interfaces with type-safe protocols #1534
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
python
Pull requests that update python code
Currently, each provider implements similar but slightly different interfaces, making it difficult to ensure consistent behavior and understand what each provider supports. We should create a standardized provider interface that all implementations must adhere to.
Current problems:
Proposed solution:
Define a clear provider interface using Protocol/ABC:
Additionally, provide a base class implementation with default behaviors and utility methods that providers can inherit from.
Implementation steps:
providers/base.py
Benefits:
The text was updated successfully, but these errors were encountered: