Uses of Interface
org.springframework.ai.chat.client.ChatClient.Builder
Package
Description
Chat client.
RAG Sub-Module: Query Expansion.
RAG Sub-Module: Query Transformation.
-
Uses of ChatClient.Builder in org.springframework.ai.autoconfigure.chat.client
Modifier and TypeMethodDescriptionChatClientBuilderConfigurer.configure
(ChatClient.Builder builder) Configure the specifiedChatClient.Builder
.Modifier and TypeMethodDescriptionChatClientBuilderConfigurer.configure
(ChatClient.Builder builder) Configure the specifiedChatClient.Builder
. -
Uses of ChatClient.Builder in org.springframework.ai.chat.client
Modifier and TypeClassDescriptionclass
DefaultChatClientBuilder is a builder class for creating a ChatClient.Modifier and TypeMethodDescriptionstatic ChatClient.Builder
static ChatClient.Builder
ChatClient.builder
(ChatModel chatModel, io.micrometer.observation.ObservationRegistry observationRegistry, ChatClientObservationConvention customObservationConvention) ChatClient.Builder.clone()
DefaultChatClientBuilder.clone()
ChatClient.Builder.defaultAdvisors
(Consumer<ChatClient.AdvisorSpec> advisorSpecConsumer) ChatClient.Builder.defaultAdvisors
(List<Advisor> advisors) ChatClient.Builder.defaultAdvisors
(Advisor... advisor) DefaultChatClientBuilder.defaultAdvisors
(Consumer<ChatClient.AdvisorSpec> advisorSpecConsumer) DefaultChatClientBuilder.defaultAdvisors
(List<Advisor> advisors) DefaultChatClientBuilder.defaultAdvisors
(Advisor... advisors) <I,
O> ChatClient.Builder ChatClient.Builder.defaultFunction
(String name, String description, BiFunction<I, ToolContext, O> function) Deprecated.<I,
O> ChatClient.Builder ChatClient.Builder.defaultFunction
(String name, String description, Function<I, O> function) Deprecated.usedefaultFunctions(FunctionCallback...)
instead.<I,
O> ChatClient.Builder DefaultChatClientBuilder.defaultFunction
(String name, String description, BiFunction<I, ToolContext, O> biFunction) <I,
O> ChatClient.Builder DefaultChatClientBuilder.defaultFunction
(String name, String description, Function<I, O> function) ChatClient.Builder.defaultFunctions
(String... functionNames) ChatClient.Builder.defaultFunctions
(FunctionCallback... functionCallbacks) DefaultChatClientBuilder.defaultFunctions
(String... functionNames) DefaultChatClientBuilder.defaultFunctions
(FunctionCallback... functionCallbacks) ChatClient.Builder.defaultOptions
(ChatOptions chatOptions) DefaultChatClientBuilder.defaultOptions
(ChatOptions chatOptions) ChatClient.Builder.defaultSystem
(String text) ChatClient.Builder.defaultSystem
(Consumer<ChatClient.PromptSystemSpec> systemSpecConsumer) ChatClient.Builder.defaultSystem
(org.springframework.core.io.Resource text) ChatClient.Builder.defaultSystem
(org.springframework.core.io.Resource text, Charset charset) DefaultChatClientBuilder.defaultSystem
(String text) DefaultChatClientBuilder.defaultSystem
(Consumer<ChatClient.PromptSystemSpec> systemSpecConsumer) DefaultChatClientBuilder.defaultSystem
(org.springframework.core.io.Resource text) DefaultChatClientBuilder.defaultSystem
(org.springframework.core.io.Resource text, Charset charset) ChatClient.Builder.defaultToolContext
(Map<String, Object> toolContext) DefaultChatClientBuilder.defaultToolContext
(Map<String, Object> toolContext) ChatClient.Builder.defaultUser
(String text) ChatClient.Builder.defaultUser
(Consumer<ChatClient.PromptUserSpec> userSpecConsumer) ChatClient.Builder.defaultUser
(org.springframework.core.io.Resource text) ChatClient.Builder.defaultUser
(org.springframework.core.io.Resource text, Charset charset) DefaultChatClientBuilder.defaultUser
(String text) DefaultChatClientBuilder.defaultUser
(Consumer<ChatClient.PromptUserSpec> userSpecConsumer) DefaultChatClientBuilder.defaultUser
(org.springframework.core.io.Resource text) DefaultChatClientBuilder.defaultUser
(org.springframework.core.io.Resource text, Charset charset) ChatClient.ChatClientRequestSpec.mutate()
Return aChatClient.Builder
to create a newChatClient
whose settings are replicated from thisChatClientRequest
.ChatClient.mutate()
Return aChatClient.Builder
to create a newChatClient
whose settings are replicated from the defaultChatClient.ChatClientRequestSpec
of this client.DefaultChatClient.DefaultChatClientRequestSpec.mutate()
Return aChatClient2Builder
to create a newChatClient2
whose settings are replicated from thisChatClientRequest
.DefaultChatClient.mutate()
Return aChatClient2Builder
to create a newChatClient
whose settings are replicated from thisChatClientRequest
.Modifier and TypeMethodDescriptionvoid
ChatClientCustomizer.customize
(ChatClient.Builder chatClientBuilder) Callback to customize aChatClient.Builder
instance. -
Uses of ChatClient.Builder in org.springframework.ai.evaluation
ModifierConstructorDescriptionFactCheckingEvaluator
(ChatClient.Builder chatClientBuilder) Constructs a new FactCheckingEvaluator with the provided ChatClient.Builder.RelevancyEvaluator
(ChatClient.Builder chatClientBuilder) -
Uses of ChatClient.Builder in org.springframework.ai.rag.preretrieval.query.expansion
Modifier and TypeMethodDescriptionMultiQueryExpander.Builder.chatClientBuilder
(ChatClient.Builder chatClientBuilder) ModifierConstructorDescriptionMultiQueryExpander
(ChatClient.Builder chatClientBuilder, PromptTemplate promptTemplate, Boolean includeOriginal, Integer numberOfQueries) -
Uses of ChatClient.Builder in org.springframework.ai.rag.preretrieval.query.transformation
Modifier and TypeMethodDescriptionTranslationQueryTransformer.Builder.chatClientBuilder
(ChatClient.Builder chatClientBuilder) ModifierConstructorDescriptionTranslationQueryTransformer
(ChatClient.Builder chatClientBuilder, PromptTemplate promptTemplate, String targetLanguage)
defaultFunctions(FunctionCallback...)
instead.