Class OpenAiAssistantMessage
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.OpenAiAssistantMessage
- All Implemented Interfaces:
OpenAiMessage
Represents a chat message as 'assistant' to OpenAI service.
When OpenAiAssistantMessage is received from OpenAiChatCompletionResponse, it
may contain tool calls that need to be executed. The tool calls are represented as OpenAiToolCall.
- Since:
- 1.4.0
-
Method Summary
-
Method Details
-
role
The role associated with this message.- Specified by:
rolein interfaceOpenAiMessage- Returns:
- the role.
-
equals
-
hashCode
public int hashCode() -
toString
-
content
The content of the message.May contain an empty list of
OpenAiContentItemwhen tool calls are present.- Specified by:
contentin interfaceOpenAiMessage- Returns:
- the content.
-
toolCalls
The tool calls associated with this message if present.- Since:
- 1.6.0
-