Package com.sap.ai.sdk.orchestration
Class ToolMessage
java.lang.Object
com.sap.ai.sdk.orchestration.ToolMessage
- All Implemented Interfaces:
Message
Represents a chat message as 'tool' to the orchestration service.
- Since:
- 1.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionToolMessage(String id, String content) Constructs ToolMessage objectToolMessage(String id, String content, CacheControl cacheControl) -
Method Summary
-
Constructor Details
-
ToolMessage
Constructs ToolMessage object- Parameters:
id- tool call idcontent- message content
-
ToolMessage
public ToolMessage(@Nonnull String id, @Nonnull String content, @Nullable CacheControl cacheControl)
-
-
Method Details
-
content
Description copied from interface:MessageReturns the content of the message. -
createChatMessage
Description copied from interface:MessageConverts the message to a serializable ChatMessage object.- Specified by:
createChatMessagein interfaceMessage- Returns:
- the corresponding
ChatMessageobject.
-
role
The role of the assistant. -
id
-
cacheControl
-