spring-projects / spring-ai

An Application Framework for AI Engineering
https://docs.spring.io/spring-ai/reference/index.html
Apache License 2.0
3.32k stars 850 forks source link

removed duplicate validation and initialization logic in constructors #1761

Open jitokim opened 2 days ago

jitokim commented 2 days ago

centralized constructor for improving code readability and maintainability by centralizing logic.


verified the changes using debugging with breakpoints to ensure correct constructor delegation and initialization logic.

image

test case to confirm that the functionality remains consistent and correct after refactoring.

image