Skip to content

ByteContentDoc

Source code in docs_src/capo_bedrock_agent/types/byte_content_doc.py
class ByteContentDoc(TypedDict, closed=True):
    mime_type: "str"
    """<p>The MIME type of the content. For a list of MIME types, see <a href="https://www.iana.org/assignments/media-types/media-types.xhtml">Media Types</a>. The following MIME types are supported:</p> <ul> <li> <p>text/plain</p> </li> <li> <p>text/html</p> </li> <li> <p>text/csv</p> </li> <li> <p>text/vtt</p> </li> <li> <p>message/rfc822</p> </li> <li> <p>application/xhtml+xml</p> </li> <li> <p>application/pdf</p> </li> <li> <p>application/msword</p> </li> <li> <p>application/vnd.ms-word.document.macroenabled.12</p> </li> <li> <p>application/vnd.ms-word.template.macroenabled.12</p> </li> <li> <p>application/vnd.ms-excel</p> </li> <li> <p>application/vnd.ms-excel.addin.macroenabled.12</p> </li> <li> <p>application/vnd.ms-excel.sheet.macroenabled.12</p> </li> <li> <p>application/vnd.ms-excel.template.macroenabled.12</p> </li> <li> <p>application/vnd.ms-excel.sheet.binary.macroenabled.12</p> </li> <li> <p>application/vnd.ms-spreadsheetml</p> </li> <li> <p>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</p> </li> <li> <p>application/vnd.openxmlformats-officedocument.spreadsheetml.template</p> </li> <li> <p>application/vnd.openxmlformats-officedocument.wordprocessingml.document</p> </li> <li> <p>application/vnd.openxmlformats-officedocument.wordprocessingml.template</p> </li> </ul>"""
    data: "capo_bedrock_agent.types.byte_content_blob.ByteContentBlob"
    """<p>The base64-encoded string of the content.</p>"""

data instance-attribute

The base64-encoded string of the content.

mime_type instance-attribute

mime_type: str

The MIME type of the content. For a list of MIME types, see Media Types. The following MIME types are supported:

  • text/plain

  • text/html

  • text/csv

  • text/vtt

  • message/rfc822

  • application/xhtml+xml

  • application/pdf

  • application/msword

  • application/vnd.ms-word.document.macroenabled.12

  • application/vnd.ms-word.template.macroenabled.12

  • application/vnd.ms-excel

  • application/vnd.ms-excel.addin.macroenabled.12

  • application/vnd.ms-excel.sheet.macroenabled.12

  • application/vnd.ms-excel.template.macroenabled.12

  • application/vnd.ms-excel.sheet.binary.macroenabled.12

  • application/vnd.ms-spreadsheetml

  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

  • application/vnd.openxmlformats-officedocument.spreadsheetml.template

  • application/vnd.openxmlformats-officedocument.wordprocessingml.document

  • application/vnd.openxmlformats-officedocument.wordprocessingml.template