Class AdvisorParams
java.lang.Object
org.springframework.ai.chat.client.AdvisorParams
Configuration options for the ChatClient request.
Preset advisors parameters that can be passed as configuration options to the Advisor
context.
- Author:
- Christian Tzolov
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Consumer<ChatClient.AdvisorSpec>toolCallAdvisorAutoRegister(boolean enabled) Controls whether aToolCallAdvisoris automatically added to the chain when tools are configured on theChatClientand no explicitToolAdvisoris already present.
-
Field Details
-
ENABLE_NATIVE_STRUCTURED_OUTPUT
-
-
Method Details
-
toolCallAdvisorAutoRegister
Controls whether aToolCallAdvisoris automatically added to the chain when tools are configured on theChatClientand no explicitToolAdvisoris already present. Auto-registration is enabled by default; passfalseto opt out:client.prompt() .tools(myTool) .advisors(AdvisorParams.toolCallAdvisorAutoRegister(false)) .call();
-