Class ToolMessage
java.lang.Object
dev.langchain4j.model.openai.internal.chat.ToolMessage
- All Implemented Interfaces:
Message
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolMessage.Builderbuilder()content()Returns the content set as a plain string, ornullwhen it was set as a list of content blocks instead (seecontents()).contents()Returns the content set as a list of content blocks, ornullwhen it was set as a plain string instead (seecontent()).booleanstatic ToolMessageinthashCode()role()toString()
-
Constructor Details
-
ToolMessage
-
-
Method Details
-
role
-
toolCallId
-
content
Returns the content set as a plain string, ornullwhen it was set as a list of content blocks instead (seecontents()). -
contents
-
equals
-
hashCode
-
toString
-
from
-
builder
-