Class OpenAiChatMessage.OpenAiChatToolMessage
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.model.OpenAiChatMessage.OpenAiChatToolMessage
- All Implemented Interfaces:
OpenAiChatMessage
- Enclosing interface:
OpenAiChatMessage
public static class OpenAiChatMessage.OpenAiChatToolMessage
extends Object
implements OpenAiChatMessage
OpenAI tool message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.ai.sdk.foundationmodels.openai.model.OpenAiChatMessage
OpenAiChatMessage.OpenAiChatAssistantMessage, OpenAiChatMessage.OpenAiChatFunctionMessage, OpenAiChatMessage.OpenAiChatSystemMessage, OpenAiChatMessage.OpenAiChatToolMessage, OpenAiChatMessage.OpenAiChatUserMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe contents of the tool message.getRole()The role of the messages author.inthashCode()setContent(String content) The contents of the tool message.setToolCallId(String toolCallId) Tool call that this message is responding to.toString()
-
Constructor Details
-
OpenAiChatToolMessage
public OpenAiChatToolMessage()
-
-
Method Details
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getRole
The role of the messages author.- Specified by:
getRolein interfaceOpenAiChatMessage- Returns:
- The role of the messages author.
-
getContent
The contents of the tool message.- Specified by:
getContentin interfaceOpenAiChatMessage- Returns:
- The contents of the message.
-
setContent
The contents of the tool message.- Returns:
this.
-
setToolCallId
Tool call that this message is responding to.- Returns:
this.
-