Skip to content

Commit 753cc1c

Browse files
google-genai-botcopybara-github
authored andcommitted
feat(interactions): add Office and OpenDocument MIME types
PiperOrigin-RevId: 1012991056
1 parent 2eaf2d8 commit 753cc1c

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

‎google/genai/_gaos/types/interactions/documentcontent.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@
4444
Literal[
4545
"application/pdf",
4646
"text/csv",
47+
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
48+
"application/vnd.ms-powerpoint",
49+
"application/vnd.oasis.opendocument.presentation",
50+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
51+
"application/msword",
52+
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
53+
"application/vnd.oasis.opendocument.text",
54+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
55+
"application/vnd.ms-excel",
56+
"application/vnd.oasis.opendocument.spreadsheet",
4757
],
4858
UnrecognizedStr,
4959
]

‎google/genai/_gaos/types/interactions/documentdelta.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@
4242
Literal[
4343
"application/pdf",
4444
"text/csv",
45+
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
46+
"application/vnd.ms-powerpoint",
47+
"application/vnd.oasis.opendocument.presentation",
48+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
49+
"application/msword",
50+
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
51+
"application/vnd.oasis.opendocument.text",
52+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
53+
"application/vnd.ms-excel",
54+
"application/vnd.oasis.opendocument.spreadsheet",
4555
],
4656
UnrecognizedStr,
4757
]

0 commit comments

Comments
 (0)