Skip to content

Commit 0fe01be

Browse files
committed
Address comments
1 parent ec3e02b commit 0fe01be

File tree

1 file changed

+3
-2
lines changed
  • firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type

1 file changed

+3
-2
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Content.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import android.graphics.Bitmap
2424
* `Content` is composed of a one or more heterogeneous parts that can be represent data in
2525
* different formats, like text or images.
2626
*
27-
* @param role The producer of the content. By default, it's "user".
27+
* @param role The producer of the content. Must be either 'user' or 'model'. By default, it's
28+
* "user".
2829
* @param parts An ordered list of [Part] that constitute this content.
2930
*/
3031
public class Content
@@ -39,7 +40,7 @@ constructor(public val role: String? = "user", public val parts: List<Part>) {
3940
/** Builder class to facilitate constructing complex [Content] objects. */
4041
public class Builder {
4142

42-
/** The producer of the content. By default, it's "user". */
43+
/** The producer of the content. Must be either 'user' or 'model'. By default, it's "user". */
4344
public var role: String? = "user"
4445

4546
/**

0 commit comments

Comments
 (0)