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) <I,
O> ChatClient.Builder defaultFunction
(String name, String description, BiFunction<I, ToolContext, O> function) Deprecated.<I,
O> ChatClient.Builder defaultFunction
(String name, String description, Function<I, O> function) Deprecated.usedefaultFunctions(FunctionCallback...)
instead.defaultFunctions
(String... functionNames) defaultFunctions
(FunctionCallback... functionCallbacks) 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) 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
-
defaultFunction
@Deprecated <I,O> ChatClient.Builder defaultFunction(String name, String description, Function<I, O> function) Deprecated.usedefaultFunctions(FunctionCallback...)
instead. -
defaultFunction
@Deprecated <I,O> ChatClient.Builder defaultFunction(String name, String description, BiFunction<I, ToolContext, O> function) Deprecated.usedefaultFunctions(FunctionCallback...)
instead. -
defaultFunctions
-
defaultFunctions
-
defaultToolContext
-
clone
ChatClient.Builder clone() -
build
ChatClient build()
-
defaultFunctions(FunctionCallback...)
instead.