@@ -106,8 +106,6 @@ internal constructor(
106
106
/* *
107
107
* Represents image data sent to and received from requests. The image is converted client-side to
108
108
* JPEG encoding at 80% quality before being sent to the server.
109
- *
110
- * @param image [Bitmap] to convert into a [Part]
111
109
*/
112
110
public class ImagePart
113
111
internal constructor (
@@ -116,6 +114,9 @@ internal constructor(
116
114
internal val thoughtSignature: String?
117
115
) : Part {
118
116
117
+ /* *
118
+ * @param image [Bitmap] to convert into a [Part]
119
+ */
119
120
public constructor (image: Bitmap ) : this (image, false , null )
120
121
121
122
internal fun toInlineDataPart () =
@@ -130,8 +131,6 @@ internal constructor(
130
131
/* *
131
132
* Represents binary data with an associated MIME type sent to and received from requests.
132
133
*
133
- * @param inlineData the binary data as a [ByteArray]
134
- * @param mimeType an IANA standard MIME type. For supported values, see the
135
134
* [Firebase documentation](https://firebase.google.com/docs/vertex-ai/input-file-requirements).
136
135
*/
137
136
public class InlineDataPart
@@ -142,6 +141,10 @@ internal constructor(
142
141
internal val thoughtSignature: String?
143
142
) : Part {
144
143
144
+ /* *
145
+ * @param inlineData the binary data as a [ByteArray]
146
+ * @param mimeType an IANA standard MIME type. For supported values, see the
147
+ */
145
148
public constructor (
146
149
inlineData: ByteArray ,
147
150
mimeType: String
@@ -201,10 +204,6 @@ internal constructor(
201
204
202
205
/* *
203
206
* Represents function call output to be returned to the model when it requests a function call.
204
- *
205
- * @param name The name of the called function.
206
- * @param response The response produced by the function as a [JSONObject].
207
- * @param id Matching `id` for a [FunctionCallPart], if one was provided.
208
207
*/
209
208
public class FunctionResponsePart
210
209
internal constructor (
@@ -215,6 +214,11 @@ internal constructor(
215
214
internal val thoughtSignature: String?
216
215
) : Part {
217
216
217
+ /* *
218
+ * @param name The name of the called function.
219
+ * @param response The response produced by the function as a [JSONObject].
220
+ * @param id Matching `id` for a [FunctionCallPart], if one was provided.
221
+ */
218
222
@JvmOverloads
219
223
public constructor (
220
224
name: String ,
@@ -244,11 +248,6 @@ internal constructor(
244
248
245
249
/* *
246
250
* Represents file data stored in Cloud Storage for Firebase, referenced by URI.
247
- *
248
- * @param uri The `"gs://"`-prefixed URI of the file in Cloud Storage for Firebase, for example,
249
- * `"gs://bucket-name/path/image.jpg"`
250
- * @param mimeType an IANA standard MIME type. For supported MIME type values see the
251
- * [Firebase documentation](https://firebase.google.com/docs/vertex-ai/input-file-requirements).
252
251
*/
253
252
public class FileDataPart
254
253
internal constructor (
@@ -258,6 +257,12 @@ internal constructor(
258
257
internal val thoughtSignature: String?
259
258
) : Part {
260
259
260
+ /* *
261
+ * @param uri The `"gs://"`-prefixed URI of the file in Cloud Storage for Firebase, for example,
262
+ * `"gs://bucket-name/path/image.jpg"`
263
+ * @param mimeType an IANA standard MIME type. For supported MIME type values see the
264
+ * [Firebase documentation](https://firebase.google.com/docs/vertex-ai/input-file-requirements).
265
+ */
261
266
public constructor (uri: String , mimeType: String ) : this (uri, mimeType, false , null )
262
267
263
268
@Serializable
0 commit comments