Skip to content

InputDocument

Source code in docs_src/capo_context/types/input_document.py
class InputDocument(TypedDict, closed=True):
    name: "capo_context.types.document_name.DocumentName"
    """<p>The name of the document. The name must be unique within the request.</p>"""
    content_type: "capo_context.types.document_content_type.DocumentContentType"
    """<p>You must specify a content type that the task configuration accepts. Otherwise, the request fails with ValidationException.</p>"""
    content: "capo_context.types.document_bytes.DocumentBytes"
    """<p>The content of the document. All the documents in one request can total at most 10,485,760 bytes (10 MiB).</p>"""

content instance-attribute

content: DocumentBytes

The content of the document. All the documents in one request can total at most 10,485,760 bytes (10 MiB).

content_type instance-attribute

content_type: DocumentContentType

You must specify a content type that the task configuration accepts. Otherwise, the request fails with ValidationException.

name instance-attribute

The name of the document. The name must be unique within the request.