public static class ChatDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ChatDetails |
build() |
ChatDetails.Builder |
copy(ChatDetails model) |
ChatDetails.Builder |
performedActions(List<PerformedAction> performedActions)
A list of actions that have been performed based on prior required actions.
|
ChatDetails.Builder |
sessionId(String sessionId)
Optional sessionId.
|
ChatDetails.Builder |
shouldStream(Boolean shouldStream)
Whether to stream the response.
|
ChatDetails.Builder |
toolParameters(Map<String,String> toolParameters)
A map where each key is a toolId and the value contains tool type and additional dynamic
parameters.
|
ChatDetails.Builder |
userMessage(String userMessage)
The input user message content for the chat.
|
public ChatDetails.Builder userMessage(String userMessage)
The input user message content for the chat.
userMessage
- the value to setpublic ChatDetails.Builder shouldStream(Boolean shouldStream)
Whether to stream the response.
shouldStream
- the value to setpublic ChatDetails.Builder sessionId(String sessionId)
Optional sessionId. If not provided, will chat without any prior context.
sessionId
- the value to setpublic ChatDetails.Builder toolParameters(Map<String,String> toolParameters)
A map where each key is a toolId and the value contains tool type and additional dynamic parameters.
toolParameters
- the value to setpublic ChatDetails.Builder performedActions(List<PerformedAction> performedActions)
A list of actions that have been performed based on prior required actions.
performedActions
- the value to setpublic ChatDetails build()
public ChatDetails.Builder copy(ChatDetails model)
Copyright © 2016–2025. All rights reserved.