Class DefaultChatClient
java.lang.Object
org.springframework.ai.chat.client.DefaultChatClient
- All Implemented Interfaces:
ChatClient
The default implementation of
ChatClient
as created by the
ChatClient.Builder.build()
} method.- Since:
- 1.0.0
- Author:
- Mark Pollack, Christian Tzolov, Josh Long, Arjen Poutsma, Soby Chacko, Dariusz Jedrzejczyk, Thomas Vitale
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from interface org.springframework.ai.chat.client.ChatClient
ChatClient.AdvisorSpec, ChatClient.Builder, ChatClient.CallPromptResponseSpec, ChatClient.CallResponseSpec, ChatClient.ChatClientRequestSpec, ChatClient.PromptSystemSpec, ChatClient.PromptUserSpec, ChatClient.StreamPromptResponseSpec, ChatClient.StreamResponseSpec
-
Constructor Summary
ConstructorDescriptionDefaultChatClient
(DefaultChatClient.DefaultChatClientRequestSpec defaultChatClientRequest) -
Method Summary
Modifier and TypeMethodDescriptionmutate()
Return aChatClient2Builder
to create a newChatClient
whose settings are replicated from thisChatClientRequest
.prompt()
toDefaultChatClientRequestSpec
(AdvisedRequest advisedRequest, io.micrometer.observation.ObservationRegistry observationRegistry, ChatClientObservationConvention customObservationConvention)
-
Constructor Details
-
DefaultChatClient
-
-
Method Details
-
prompt
- Specified by:
prompt
in interfaceChatClient
-
prompt
- Specified by:
prompt
in interfaceChatClient
-
prompt
- Specified by:
prompt
in interfaceChatClient
-
mutate
Return aChatClient2Builder
to create a newChatClient
whose settings are replicated from thisChatClientRequest
.- Specified by:
mutate
in interfaceChatClient
-
toDefaultChatClientRequestSpec
public static DefaultChatClient.DefaultChatClientRequestSpec toDefaultChatClientRequestSpec(AdvisedRequest advisedRequest, io.micrometer.observation.ObservationRegistry observationRegistry, ChatClientObservationConvention customObservationConvention)
-