Interface ChatClient.Builder
- All Known Implementing Classes:
DefaultChatClientBuilder
- Enclosing interface:
- ChatClient
public static interface ChatClient.Builder
A mutable builder for creating a
ChatClient
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clone()
defaultAdvisors
(Consumer<ChatClient.AdvisorSpec> advisorSpecConsumer) defaultAdvisors
(List<Advisor> advisors) defaultAdvisors
(Advisor... advisor) defaultFunctions
(String... functionNames) Deprecated.defaultFunctions
(FunctionCallback... functionCallbacks) Deprecated.in favor ofdefaultTools(Object...)
defaultOptions
(ChatOptions chatOptions) defaultSystem
(String text) defaultSystem
(Consumer<ChatClient.PromptSystemSpec> systemSpecConsumer) defaultSystem
(org.springframework.core.io.Resource text) defaultSystem
(org.springframework.core.io.Resource text, Charset charset) defaultToolContext
(Map<String, Object> toolContext) defaultTools
(Object... toolObjects) defaultTools
(String... toolNames) defaultTools
(FunctionCallback... toolCallbacks) defaultUser
(String text) defaultUser
(Consumer<ChatClient.PromptUserSpec> userSpecConsumer) defaultUser
(org.springframework.core.io.Resource text) defaultUser
(org.springframework.core.io.Resource text, Charset charset)
-
Method Details
-
defaultAdvisors
-
defaultAdvisors
-
defaultAdvisors
-
defaultOptions
-
defaultUser
-
defaultUser
-
defaultUser
-
defaultUser
-
defaultSystem
-
defaultSystem
-
defaultSystem
-
defaultSystem
-
defaultTools
-
defaultTools
-
defaultTools
-
defaultFunctions
Deprecated.in favor ofdefaultTools(String...)
-
defaultFunctions
Deprecated.in favor ofdefaultTools(Object...)
-
defaultToolContext
-
clone
ChatClient.Builder clone() -
build
ChatClient build()
-
defaultTools(String...)