Class ChatDetails
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.generativeaiagentruntime.model.ChatDetails
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20240531") public final class ChatDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelChat details for managing user interactions and tool executions.
 Note: Objects should always be created or deserialized using theChatDetails.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theChatDetails.Builder, which maintain a set of all explicitly set fields calledChatDetails.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classChatDetails.Builder
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChatDetails.Builderbuilder()Create a new builder.booleanequals(Object o)List<PerformedAction>getPerformedActions()A list of actions that have been performed based on prior required actions.StringgetSessionId()Optional sessionId.BooleangetShouldStream()Whether to stream the response.List<ToolInput>getToolInputs()Array of tool input objects, each specifying a tool’s ID, type, and corresponding input parameters required for execution.Map<String,String>getToolParameters()A map where each key is a toolId and the value contains tool type and additional dynamic parameters.StringgetUserMessage()The input user message content for the chat.inthashCode()ChatDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
ChatDetails@Deprecated @ConstructorProperties({"userMessage","shouldStream","sessionId","toolParameters","toolInputs","performedActions"}) public ChatDetails(String userMessage, Boolean shouldStream, String sessionId, Map<String,String> toolParameters, List<ToolInput> toolInputs, List<PerformedAction> performedActions) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static ChatDetails.Builder builder() Create a new builder.
 - 
toBuilderpublic ChatDetails.Builder toBuilder() 
 - 
getUserMessagepublic String getUserMessage() The input user message content for the chat.- Returns:
- the value
 
 - 
getShouldStreampublic Boolean getShouldStream() Whether to stream the response.- Returns:
- the value
 
 - 
getSessionIdpublic String getSessionId() Optional sessionId.If not provided, will chat without any prior context. - Returns:
- the value
 
 - 
getToolParameterspublic Map<String,String> getToolParameters() A map where each key is a toolId and the value contains tool type and additional dynamic parameters.This field is deprecated and will be removed after July 02 2026. - Returns:
- the value
 
 - 
getToolInputspublic List<ToolInput> getToolInputs() Array of tool input objects, each specifying a tool’s ID, type, and corresponding input parameters required for execution.- Returns:
- the value
 
 - 
getPerformedActionspublic List<PerformedAction> getPerformedActions() A list of actions that have been performed based on prior required actions.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-