- Remove unused imports (List, Optional, MagicMock)
- Fix type annotation: change 'any' to 'Any' in oauth2_token_manager.py
- All OAuth2 tests still pass after fixes
Co-Authored-By: João <joao@crewai.com>
- Add OAuth2Config and OAuth2ConfigLoader for litellm_config.json configuration
- Add OAuth2TokenManager for token acquisition, caching, and refresh
- Extend LLM class to support OAuth2 authentication with custom providers
- Add comprehensive tests covering OAuth2 flow and error handling
- Add documentation and usage examples
- Support Client Credentials OAuth2 flow for server-to-server authentication
- Maintain backward compatibility with existing LLM providers
Fixes#3114
Co-Authored-By: João <joao@crewai.com>