Package com.sap.ai.sdk.orchestration
Class AssistantMessage
java.lang.Object
com.sap.ai.sdk.orchestration.Message
com.sap.ai.sdk.orchestration.AssistantMessage
Represents a chat message as 'assistant' to the orchestration service.
-
Constructor Summary
ConstructorsConstructorDescriptionAssistantMessage(String singleMessage) Creates a new assistant message with the given single message. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontent()The content of the message.booleaninthashCode()role()The role of the assistant.Tool call if there is any.toString()withToolCalls(List<MessageToolCall> toolCalls) Returns a new AssistantMessage instance with the provided tool calls added to the existing ones.
-
Constructor Details
-
AssistantMessage
Creates a new assistant message with the given single message.- Parameters:
singleMessage- the single message.
-
-
Method Details
-
withToolCalls
Returns a new AssistantMessage instance with the provided tool calls added to the existing ones.- Parameters:
toolCalls- the list of tool calls to add.- Returns:
- a new AssistantMessage instance with the combined tool calls.
-
createChatMessage
-
role
The role of the assistant. -
content
The content of the message. -
toolCalls
Tool call if there is any. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-