@@ -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,7 @@ internal constructor(
116
114
internal val thoughtSignature: String?
117
115
) : Part {
118
116
117
+ /* * @param image [Bitmap] to convert into a [Part] */
119
118
public constructor (image: Bitmap ) : this (image, false , null )
120
119
121
120
internal fun toInlineDataPart () =
@@ -127,13 +126,7 @@ internal constructor(
127
126
)
128
127
}
129
128
130
- /* *
131
- * Represents binary data with an associated MIME type sent to and received from requests.
132
- *
133
- * @param inlineData the binary data as a [ByteArray]
134
- * @param mimeType an IANA standard MIME type. For supported values, see the
135
- * [Firebase documentation](https://firebase.google.com/docs/vertex-ai/input-file-requirements).
136
- */
129
+ /* * Represents binary data with an associated MIME type sent to and received from requests. */
137
130
public class InlineDataPart
138
131
internal constructor (
139
132
public val inlineData: ByteArray ,
@@ -142,6 +135,11 @@ internal constructor(
142
135
internal val thoughtSignature: String?
143
136
) : Part {
144
137
138
+ /* *
139
+ * @param inlineData the binary data as a [ByteArray]
140
+ * @param mimeType an IANA standard MIME type. For supported values, see the
141
+ * [Firebase documentation](https://firebase.google.com/docs/vertex-ai/input-file-requirements).
142
+ */
145
143
public constructor (
146
144
inlineData: ByteArray ,
147
145
mimeType: String
@@ -159,14 +157,7 @@ internal constructor(
159
157
}
160
158
}
161
159
162
- /* *
163
- * Represents function call name and params received from requests.
164
- *
165
- * @param name the name of the function to call
166
- * @param args the function parameters and values as a [Map]
167
- * @param id Unique id of the function call. If present, the returned [FunctionResponsePart] should
168
- * have a matching `id` field.
169
- */
160
+ /* * Represents function call name and params received from requests. */
170
161
public class FunctionCallPart
171
162
internal constructor (
172
163
public val name: String ,
@@ -176,6 +167,12 @@ internal constructor(
176
167
internal val thoughtSignature: String?
177
168
) : Part {
178
169
170
+ /* *
171
+ * @param name the name of the function to call
172
+ * @param args the function parameters and values as a [Map]
173
+ * @param id Unique id of the function call. If present, the returned [FunctionResponsePart]
174
+ * should have a matching `id` field.
175
+ */
179
176
@JvmOverloads
180
177
public constructor (
181
178
name: String ,
@@ -199,13 +196,7 @@ internal constructor(
199
196
}
200
197
}
201
198
202
- /* *
203
- * 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
- */
199
+ /* * Represents function call output to be returned to the model when it requests a function call. */
209
200
public class FunctionResponsePart
210
201
internal constructor (
211
202
public val name: String ,
@@ -215,6 +206,11 @@ internal constructor(
215
206
internal val thoughtSignature: String?
216
207
) : Part {
217
208
209
+ /* *
210
+ * @param name The name of the called function.
211
+ * @param response The response produced by the function as a [JSONObject].
212
+ * @param id Matching `id` for a [FunctionCallPart], if one was provided.
213
+ */
218
214
@JvmOverloads
219
215
public constructor (
220
216
name: String ,
@@ -242,14 +238,7 @@ internal constructor(
242
238
}
243
239
}
244
240
245
- /* *
246
- * 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
- */
241
+ /* * Represents file data stored in Cloud Storage for Firebase, referenced by URI. */
253
242
public class FileDataPart
254
243
internal constructor (
255
244
public val uri: String ,
@@ -258,6 +247,12 @@ internal constructor(
258
247
internal val thoughtSignature: String?
259
248
) : Part {
260
249
250
+ /* *
251
+ * @param uri The `"gs://"`-prefixed URI of the file in Cloud Storage for Firebase, for example,
252
+ * `"gs://bucket-name/path/image.jpg"`
253
+ * @param mimeType an IANA standard MIME type. For supported MIME type values see the
254
+ * [Firebase documentation](https://firebase.google.com/docs/vertex-ai/input-file-requirements).
255
+ */
261
256
public constructor (uri: String , mimeType: String ) : this (uri, mimeType, false , null )
262
257
263
258
@Serializable
0 commit comments