Class ContentsInput
java.lang.Object
dev.langchain4j.model.decision.request.ContentsInput
- All Implemented Interfaces:
DecisionInput
A
DecisionInput that is a list of contents, for example a TextContent
and an ImageContent. Which kinds of contents are supported depends on the
decision model.- Since:
- 1.23.0
-
Method Summary
Modifier and TypeMethodDescriptioncontents()The contents, in order.booleanstatic ContentsInputCreates the input from a copy of the given contents.inthashCode()toString()type()The type of this input.
-
Method Details
-
from
Creates the input from a copy of the given contents.- Throws:
IllegalArgumentException- ifcontentsisnullor empty, or containsnull
-
contents
-
type
Description copied from interface:DecisionInputThe type of this input.- Specified by:
typein interfaceDecisionInput
-
equals
-
hashCode
-
toString
-