Class ResponseChatMessage
java.lang.Object
com.sap.ai.sdk.orchestration.model.ResponseChatMessage
ResponseChatMessage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static enumGets or Sets role -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for ResponseChatMessage. -
Method Summary
Modifier and TypeMethodDescriptionaddToolCallsItem(MessageToolCall toolCallsItem) Add one toolCalls instance to thisResponseChatMessage.Set the content of thisResponseChatMessageinstance and return the same instance.static ResponseChatMessage.Buildercreate()Create a type-safe, fluent-api builder object to construct a newResponseChatMessageinstance with all required arguments.booleanGet contentgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theResponseChatMessage.Get refusalgetRole()Get roleThe tool calls generated by the model, such as function calls.inthashCode()Set the refusal of thisResponseChatMessageinstance and return the same instance.Set the role of thisResponseChatMessageinstance and return the same instance.voidsetContent(String content) Set the content of thisResponseChatMessageinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisResponseChatMessageinstance.voidsetRefusal(String refusal) Set the refusal of thisResponseChatMessageinstance.voidSet the role of thisResponseChatMessageinstance.voidsetToolCalls(List<MessageToolCall> toolCalls) Set the toolCalls of thisResponseChatMessageinstance.toMap()Get the value of all properties of thisResponseChatMessageinstance including unrecognized properties.toolCalls(List<MessageToolCall> toolCalls) Set the toolCalls of thisResponseChatMessageinstance and return the same instance.toString()
-
Constructor Details
-
ResponseChatMessage
protected ResponseChatMessage()Default constructor for ResponseChatMessage.
-
-
Method Details
-
role
Set the role of thisResponseChatMessageinstance and return the same instance.- Parameters:
role- The role of thisResponseChatMessage- Returns:
- The same instance of this
ResponseChatMessageclass
-
getRole
Get role- Returns:
- role The role of this
ResponseChatMessageinstance.
-
setRole
Set the role of thisResponseChatMessageinstance.- Parameters:
role- The role of thisResponseChatMessage
-
content
Set the content of thisResponseChatMessageinstance and return the same instance.- Parameters:
content- The content of thisResponseChatMessage- Returns:
- The same instance of this
ResponseChatMessageclass
-
getContent
Get content- Returns:
- content The content of this
ResponseChatMessageinstance.
-
setContent
Set the content of thisResponseChatMessageinstance.- Parameters:
content- The content of thisResponseChatMessage
-
refusal
Set the refusal of thisResponseChatMessageinstance and return the same instance.- Parameters:
refusal- The refusal of thisResponseChatMessage- Returns:
- The same instance of this
ResponseChatMessageclass
-
getRefusal
Get refusal- Returns:
- refusal The refusal of this
ResponseChatMessageinstance.
-
setRefusal
Set the refusal of thisResponseChatMessageinstance.- Parameters:
refusal- The refusal of thisResponseChatMessage
-
toolCalls
Set the toolCalls of thisResponseChatMessageinstance and return the same instance.- Parameters:
toolCalls- The tool calls generated by the model, such as function calls.- Returns:
- The same instance of this
ResponseChatMessageclass
-
addToolCallsItem
Add one toolCalls instance to thisResponseChatMessage.- Parameters:
toolCallsItem- The toolCalls that should be added- Returns:
- The same instance of type
ResponseChatMessage
-
getToolCalls
The tool calls generated by the model, such as function calls.- Returns:
- toolCalls The toolCalls of this
ResponseChatMessageinstance.
-
setToolCalls
Set the toolCalls of thisResponseChatMessageinstance.- Parameters:
toolCalls- The tool calls generated by the model, such as function calls.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theResponseChatMessage.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisResponseChatMessageinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisResponseChatMessageinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisResponseChatMessageinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newResponseChatMessageinstance with all required arguments.
-
toMap()instead.