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()
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) <I,
O> ChatClient.Builder defaultFunction
(String name, String description, Function<I, O> function) 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
-
defaultFunction
<I,O> ChatClient.Builder defaultFunction(String name, String description, BiFunction<I, ToolContext, O> function) -
defaultFunctions
-
defaultFunctions
-
defaultToolContext
-
build
ChatClient build()
-