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()
Deprecated.function
(String name, String description, BiFunction<I, ToolContext, O> function) Deprecated.usefunctions(FunctionCallback...)
instead.Deprecated.usefunctions(FunctionCallback...)
instead.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
@Deprecated <I,O> ChatClient.ChatClientRequestSpec function(String name, String description, Function<I, O> function) Deprecated.usefunctions(FunctionCallback...)
instead. -
function
@Deprecated <I,O> ChatClient.ChatClientRequestSpec function(String name, String description, BiFunction<I, ToolContext, O> function) Deprecated.usefunctions(FunctionCallback...)
instead. -
functions
-
function
@Deprecated <I,O> ChatClient.ChatClientRequestSpec function(String name, String description, Class<I> inputType, Function<I, O> function) Deprecated.usefunctions(FunctionCallback...)
instead. -
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()
-
functions(FunctionCallback...)
instead.