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.functions(FunctionCallback... functionCallbacks) Deprecated.mutate()Return aChatClient.Builderto create a newChatClientwhose 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) tools(List<ToolCallback> toolCallbacks) tools(FunctionCallback... toolCallbacks) tools(ToolCallbackProvider... toolCallbackProviders) user(Consumer<ChatClient.PromptUserSpec> consumer) user(org.springframework.core.io.Resource text)
-
Method Details
-
mutate
ChatClient.Builder mutate()Return aChatClient.Builderto create a newChatClientwhose settings are replicated from thisChatClientRequest. -
advisors
-
advisors
-
advisors
-
messages
-
messages
-
options
-
tools
-
tools
-
tools
-
tools
-
tools
-
functions
@Deprecated <I,O> ChatClient.ChatClientRequestSpec functions(FunctionCallback... functionCallbacks) Deprecated. -
functions
Deprecated. -
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()
-