Class ToolResponseMessage
java.lang.Object
org.springframework.ai.chat.messages.AbstractMessage
org.springframework.ai.chat.messages.ToolResponseMessage
The ToolResponseMessage class represents a message with a function content in a chat
application.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.springframework.ai.chat.messages.AbstractMessage
MESSAGE_TYPE, messageType, metadata, textContent
-
Constructor Summary
ConstructorDescriptionToolResponseMessage
(List<ToolResponseMessage.ToolResponse> responses) ToolResponseMessage
(List<ToolResponseMessage.ToolResponse> responses, Map<String, Object> metadata) -
Method Summary
Methods inherited from class org.springframework.ai.chat.messages.AbstractMessage
getContent, getMessageType, getMetadata
-
Field Details
-
responses
-
-
Constructor Details
-
ToolResponseMessage
-
ToolResponseMessage
public ToolResponseMessage(List<ToolResponseMessage.ToolResponse> responses, Map<String, Object> metadata)
-
-
Method Details
-
getResponses
-
equals
- Overrides:
equals
in classAbstractMessage
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractMessage
-
toString
-