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 |
sessionId(String sessionId)
Optional sessionId.
|
ChatDetails.Builder |
shouldStream(Boolean shouldStream)
Whether to stream the response.
|
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 build()
public ChatDetails.Builder copy(ChatDetails model)
Copyright © 2016–2024. All rights reserved.