Skip to content

OntologyInductionDocument

Source code in docs_src/capo_context/types/ontology_induction_document.py
class OntologyInductionDocument(TypedDict, closed=True):
    name: "capo_context.types.ontology_induction_document_name.OntologyInductionDocumentName"
    """<p>The name of the document. Each document in the request needs its own name, and the name only labels the document, whose type <code>contentType</code> sets.</p>"""
    content_type: "capo_context.types.ontology_induction_document_content_type.OntologyInductionDocumentContentType"
    """<p>The document's type. Its bytes must be a real document of this type. Otherwise the request fails with ValidationException.</p>"""
    content: "capo_context.types.ontology_induction_document_content.OntologyInductionDocumentContent"
    """<p>The content of the document, of the type that <code>contentType</code> specifies. Each document can be up to 10,485,760 bytes (10 MiB), and all the documents in the request together up to 10 MiB.</p>"""

content instance-attribute

The content of the document, of the type that contentType specifies. Each document can be up to 10,485,760 bytes (10 MiB), and all the documents in the request together up to 10 MiB.

content_type instance-attribute

The document's type. Its bytes must be a real document of this type. Otherwise the request fails with ValidationException.

name instance-attribute

The name of the document. Each document in the request needs its own name, and the name only labels the document, whose type contentType sets.