Package com.embabel.chat
Class ToolResultMessage
-
- All Implemented Interfaces:
-
com.embabel.agent.domain.library.HasContent,com.embabel.chat.Message,com.embabel.common.core.types.Timestamped
public final class ToolResultMessage extends BaseMessage
Message containing the result of a tool execution. This is sent back to the LLM after executing a tool.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringtoolCallIdprivate final StringtoolNameprivate final Instanttimestampprivate final Stringcontentprivate final StringtextContentprivate final List<ImagePart>imagePartsprivate final BooleanisMultimodalprivate final Stringsenderprivate final MessageRoleroleprivate final List<ContentPart>partsprivate final Stringname
-
Constructor Summary
Constructors Constructor Description ToolResultMessage(String toolCallId, String toolName, String content, Instant timestamp)ToolResultMessage(String toolCallId, String toolName, String content)
-
Method Summary
Modifier and Type Method Description final StringgetToolCallId()final StringgetToolName()InstantgetTimestamp()StringtoString()-
Methods inherited from class com.embabel.chat.BaseMessage
getContent, getImageParts, getName, getParts, getRole, getSender, getTextContent, isMultimodal -
Methods inherited from class com.embabel.common.core.types.Timestamped
isLaterThan -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getToolCallId
final String getToolCallId()
-
getToolName
final String getToolName()
-
getTimestamp
Instant getTimestamp()
-
-
-
-