Refactor Advisor builder methods

- Deprecate the builder methods with the prefix `with`
 - Update references and docs
This commit is contained in:
Ilayaperumal Gopinathan
2024-12-16 21:48:11 +00:00
committed by Mark Pollack
parent da45244d99
commit 429bd2af35
17 changed files with 388 additions and 67 deletions

View File

@@ -272,11 +272,11 @@ public class ReReadingAdvisor implements CallAroundAdvisor, StreamAroundAdvisor
advisedUserParams.put("re2_input_query", advisedRequest.userText());
return AdvisedRequest.from(advisedRequest)
.withUserText("""
.userText("""
{re2_input_query}
Read the question again: {re2_input_query}
""")
.withUserParams(advisedUserParams)
.userParams(advisedUserParams)
.build();
}