Class ContentPart
java.lang.Object
com.alibaba.dashscope.types.multimodal.ContentPart
One multimodal content part (design §4): the wire shape is a single-key object —
{"text":
"..."}, {"image": "<url>"}, {"audio": "<url>"}, {"video": ["f1","f2"]} —
with arbitrary keys allowed (forward compatibility). Values may be String or
List<String>. Instances are immutable.-
Method Summary
Modifier and TypeMethodDescriptionasMap()static ContentPartstatic ContentPartgetText()The text of a text part, else null.booleanstatic ContentPartstatic ContentPartstatic ContentPartstatic ContentPartstatic ContentPartVideo as a frame list (wire value isList<String>) or a single video URL.Copy with one entry replaced (local-file preprocessing swaps file:// for oss://).
-
Method Details
-
of
-
text
-
image
-
audio
-
video
Video as a frame list (wire value isList<String>) or a single video URL. -
video
-
fromMap
-
asMap
-
has
-
get
-
getText
The text of a text part, else null. -
withValue
Copy with one entry replaced (local-file preprocessing swaps file:// for oss://).
-