Skip to content

Conversation

ghdcksgml1
Copy link
Contributor

Hello,

I would like to propose a refactoring.
While working on CustomAdvisor, I found that the onFinishReason() method could be extracted into a utility class.

This method is particularly useful when implementing StreamAroundAdvisor, as it helps determine whether the stream has finished.
Copying and using this method every time we implement CustomAdvisor seems quite cumbersome.
How about extracting it into a utility class?

Thank you.

(cherry picked from commit 0ad59e4)
Signed-off-by: ghdcksgml1 <[email protected]>
(cherry picked from commit a4dc130)
Signed-off-by: ghdcksgml1 <[email protected]>
Signed-off-by: ghdcksgml1 <[email protected]>
(cherry picked from commit cb11592)
Signed-off-by: ghdcksgml1 <[email protected]>
@ilayaperumalg ilayaperumalg self-assigned this Mar 21, 2025
@ilayaperumalg ilayaperumalg added this to the 1.0.0-M7 milestone Mar 21, 2025
Signed-off-by: ghdcksgml1 <[email protected]>
@ghdcksgml1
Copy link
Contributor Author

sorry. I applied spring javaformat.

@ilayaperumalg
Copy link
Member

@ghdcksgml1 No problem, thanks for the PR! Rebased, squashed and merged as e4357ba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants