Class ChatDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiagentruntime.model.ChatDetails.Builder
-
- Enclosing class:
- ChatDetails
public static class ChatDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
userMessage
public ChatDetails.Builder userMessage(String userMessage)
The input user message content for the chat.- Parameters:
userMessage
- the value to set- Returns:
- this builder
-
shouldStream
public ChatDetails.Builder shouldStream(Boolean shouldStream)
Whether to stream the response.- Parameters:
shouldStream
- the value to set- Returns:
- this builder
-
sessionId
public ChatDetails.Builder sessionId(String sessionId)
Optional sessionId.If not provided, will chat without any prior context.
- Parameters:
sessionId
- the value to set- Returns:
- this builder
-
toolParameters
public 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.- Parameters:
toolParameters
- the value to set- Returns:
- this builder
-
performedActions
public ChatDetails.Builder performedActions(List<PerformedAction> performedActions)
A list of actions that have been performed based on prior required actions.- Parameters:
performedActions
- the value to set- Returns:
- this builder
-
build
public ChatDetails build()
-
copy
public ChatDetails.Builder copy(ChatDetails model)
-
-