Package akka.javasdk.agent
Record Class SessionMessage.MultimodalToolCallResponse
- All Implemented Interfaces:
SessionMessage
- Enclosing interface:
SessionMessage
public static record SessionMessage.MultimodalToolCallResponse(Instant timestamp, String componentId, String id, String name, List<SessionMessage.MessageContent> contents)
extends Record
implements SessionMessage
The multimodal result of a tool call, fed back to the model as input.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.agent.SessionMessage
SessionMessage.AiMessage, SessionMessage.MessageContent, SessionMessage.MultimodalToolCallResponse, SessionMessage.MultimodalUserMessage, SessionMessage.TokenUsage, SessionMessage.ToolCallRequest, SessionMessage.ToolCallResponse, SessionMessage.UserMessage -
Constructor Summary
ConstructorsConstructorDescriptionMultimodalToolCallResponse(Instant timestamp, String componentId, String id, String name, List<SessionMessage.MessageContent> contents) Creates an instance of aMultimodalToolCallResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentIdrecord component.contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.intsize()The approximate size of this message in bytes, used to enforce memory size limits.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MultimodalToolCallResponse
public MultimodalToolCallResponse(Instant timestamp, String componentId, String id, String name, List<SessionMessage.MessageContent> contents) Creates an instance of aMultimodalToolCallResponserecord class.- Parameters:
timestamp- the value for thetimestamprecord componentcomponentId- the value for thecomponentIdrecord componentid- the value for theidrecord componentname- the value for thenamerecord componentcontents- the value for thecontentsrecord component
-
-
Method Details
-
size
public int size()Description copied from interface:SessionMessageThe approximate size of this message in bytes, used to enforce memory size limits.- Specified by:
sizein interfaceSessionMessage
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
componentId
Returns the value of thecomponentIdrecord component.- Specified by:
componentIdin interfaceSessionMessage- Returns:
- the value of the
componentIdrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-