public static class ContentMaker.ContentMakerForRole extends Object
| Modifier and Type | Method and Description |
|---|---|
Content |
fromMultiModalData(Object... multiModalData)
Creates a content from an array of Objects.
|
Content |
fromString(String text)
Creates a content from a string.
|
public Content fromString(String text)
text - a string which will be converted to a Part
with its text field set.public Content fromMultiModalData(Object... multiModalData)
multiModalData - an array which contains the actual payload of each part. The element
could be either a single String or a Part. When it's a single string, it's converted to a
Part that has the Text field set.Copyright © 2025 Google LLC. All rights reserved.