You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/gen-ai/gen-ai-input-messages.json
+166-1Lines changed: 166 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,54 @@
1
1
{
2
2
"$defs": {
3
+
"BlobPart": {
4
+
"description": "Represents blob binary data sent inline to the model",
5
+
"properties": {
6
+
"type": {
7
+
"const": "blob",
8
+
"description": "The type of the content captured in this part.",
9
+
"title": "Type",
10
+
"type": "string"
11
+
},
12
+
"mime_type": {
13
+
"anyOf": [
14
+
{
15
+
"type": "string"
16
+
},
17
+
{
18
+
"type": "null"
19
+
}
20
+
],
21
+
"default": null,
22
+
"description": "The IANA MIME type of the attached data.",
23
+
"title": "Mime Type"
24
+
},
25
+
"modality": {
26
+
"anyOf": [
27
+
{
28
+
"$ref": "#/$defs/Modality"
29
+
},
30
+
{
31
+
"type": "string"
32
+
}
33
+
],
34
+
"description": "The general modality of the data if it is known. Instrumentations SHOULD also set the mimeType field if the specific type is known.",
35
+
"title": "Modality"
36
+
},
37
+
"content": {
38
+
"description": "Raw bytes of the attached data. This field SHOULD be encoded as a base64 string when transmitted as JSON.",
39
+
"format": "binary",
40
+
"title": "Content",
41
+
"type": "string"
42
+
}
43
+
},
44
+
"required": [
45
+
"type",
46
+
"modality",
47
+
"content"
48
+
],
49
+
"title": "BlobPart",
50
+
"type": "object"
51
+
},
3
52
"ChatMessage": {
4
53
"additionalProperties": true,
5
54
"properties": {
@@ -28,6 +77,15 @@
28
77
{
29
78
"$ref": "#/$defs/ToolCallResponsePart"
30
79
},
80
+
{
81
+
"$ref": "#/$defs/BlobPart"
82
+
},
83
+
{
84
+
"$ref": "#/$defs/FilePart"
85
+
},
86
+
{
87
+
"$ref": "#/$defs/UriPart"
88
+
},
31
89
{
32
90
"$ref": "#/$defs/ReasoningPart"
33
91
},
@@ -60,6 +118,55 @@
60
118
"title": "ChatMessage",
61
119
"type": "object"
62
120
},
121
+
"FilePart": {
122
+
"additionalProperties": true,
123
+
"description": "Represents an external referenced file sent to the model by file id",
124
+
"properties": {
125
+
"type": {
126
+
"const": "file",
127
+
"description": "The type of the content captured in this part.",
128
+
"title": "Type",
129
+
"type": "string"
130
+
},
131
+
"mime_type": {
132
+
"anyOf": [
133
+
{
134
+
"type": "string"
135
+
},
136
+
{
137
+
"type": "null"
138
+
}
139
+
],
140
+
"default": null,
141
+
"description": "The IANA MIME type of the attached data.",
142
+
"title": "Mime Type"
143
+
},
144
+
"modality": {
145
+
"anyOf": [
146
+
{
147
+
"$ref": "#/$defs/Modality"
148
+
},
149
+
{
150
+
"type": "string"
151
+
}
152
+
],
153
+
"description": "The general modality of the data if it is known. Instrumentations SHOULD also set the mimeType field if the specific type is known.",
154
+
"title": "Modality"
155
+
},
156
+
"file_id": {
157
+
"description": "An identifier referencing a file that was pre-uploaded to the provider.",
158
+
"title": "File Id",
159
+
"type": "string"
160
+
}
161
+
},
162
+
"required": [
163
+
"type",
164
+
"modality",
165
+
"file_id"
166
+
],
167
+
"title": "FilePart",
168
+
"type": "object"
169
+
},
63
170
"GenericPart": {
64
171
"additionalProperties": true,
65
172
"description": "Represents an arbitrary message part with any type and properties.\nThis allows for extensibility with custom message part types.",
@@ -76,6 +183,15 @@
76
183
"title": "GenericPart",
77
184
"type": "object"
78
185
},
186
+
"Modality": {
187
+
"enum": [
188
+
"image",
189
+
"video",
190
+
"audio"
191
+
],
192
+
"title": "Modality",
193
+
"type": "string"
194
+
},
79
195
"ReasoningPart": {
80
196
"additionalProperties": true,
81
197
"description": "Represents reasoning/thinking content received from the model.",
@@ -207,6 +323,55 @@
207
323
],
208
324
"title": "ToolCallResponsePart",
209
325
"type": "object"
326
+
},
327
+
"UriPart": {
328
+
"additionalProperties": true,
329
+
"description": "Represents an external referenced file sent to the model by URI",
330
+
"properties": {
331
+
"type": {
332
+
"const": "uri",
333
+
"description": "The type of the content captured in this part.",
334
+
"title": "Type",
335
+
"type": "string"
336
+
},
337
+
"mime_type": {
338
+
"anyOf": [
339
+
{
340
+
"type": "string"
341
+
},
342
+
{
343
+
"type": "null"
344
+
}
345
+
],
346
+
"default": null,
347
+
"description": "The IANA MIME type of the attached data.",
348
+
"title": "Mime Type"
349
+
},
350
+
"modality": {
351
+
"anyOf": [
352
+
{
353
+
"$ref": "#/$defs/Modality"
354
+
},
355
+
{
356
+
"type": "string"
357
+
}
358
+
],
359
+
"description": "The general modality of the data if it is known. Instrumentations SHOULD also set the mimeType field if the specific type is known.",
360
+
"title": "Modality"
361
+
},
362
+
"uri": {
363
+
"description": "A URI referencing attached data. It should not be a base64 data URL, which should use the `blob` part instead. The URI may use a scheme known to the provider api (e.g. `gs://bucket/object.png`), or be a publicly accessible location.",
364
+
"title": "Uri",
365
+
"type": "string"
366
+
}
367
+
},
368
+
"required": [
369
+
"type",
370
+
"modality",
371
+
"uri"
372
+
],
373
+
"title": "UriPart",
374
+
"type": "object"
210
375
}
211
376
},
212
377
"description": "Represents the list of input messages sent to the model.",
0 commit comments