result
BaseResult
Bases: BaseModel
Source code in docprompt/tasks/result.py
contribute_to_document_node(document_node, **kwargs)
abstractmethod
Contribute this task result to the document node or a specific page node.
:param document_node: The DocumentNode to contribute to :param page_number: If provided, contribute to a specific page. If None, contribute to the document.
Source code in docprompt/tasks/result.py
ResultContainer
Bases: BaseModel
, Generic[PageOrDocumentTaskResult]
Represents a container for results of a task