Interface ChatClient.ChatClientRequestSpec
- All Known Implementing Classes:
DefaultChatClient.DefaultChatClientRequestSpec
- Enclosing interface:
- ChatClient
public static interface ChatClient.ChatClientRequestSpec
-
Method Summary
Modifier and TypeMethodDescriptionadvisors
(Consumer<ChatClient.AdvisorSpec> consumer) call()
function
(String name, String description, BiFunction<I, ToolContext, O> function) functions
(FunctionCallback... functionCallbacks) mutate()
Return aChatClient.Builder
to create a newChatClient
whose settings are replicated from thisChatClientRequest
.<T extends ChatOptions>
ChatClient.ChatClientRequestSpecoptions
(T options) stream()
system
(Consumer<ChatClient.PromptSystemSpec> consumer) system
(org.springframework.core.io.Resource text) toolContext
(Map<String, Object> toolContext) user
(Consumer<ChatClient.PromptUserSpec> consumer) user
(org.springframework.core.io.Resource text)
-
Method Details
-
mutate
ChatClient.Builder mutate()Return aChatClient.Builder
to create a newChatClient
whose settings are replicated from thisChatClientRequest
. -
advisors
-
advisors
-
advisors
-
messages
-
messages
-
options
-
function
<I,O> ChatClient.ChatClientRequestSpec function(String name, String description, Function<I, O> function) -
function
<I,O> ChatClient.ChatClientRequestSpec function(String name, String description, BiFunction<I, ToolContext, O> function) -
functions
-
function
<I,O> ChatClient.ChatClientRequestSpec function(String name, String description, Class<I> inputType, Function<I, O> function) -
functions
-
toolContext
-
system
-
system
ChatClient.ChatClientRequestSpec system(org.springframework.core.io.Resource textResource, Charset charset) -
system
-
system
-
user
-
user
-
user
-
user
-
call
ChatClient.CallResponseSpec call() -
stream
ChatClient.StreamResponseSpec stream()
-