和顺 / 衡律 返回所属 Agent
4.1

信息、主张与证据

原能力

分别保存原始信息、提取主张和证据材料,保留其来源、身份与版本。(合同附件 R7 4.1)

首选项目

Docling(MIT 代码,模型许可独立)。 Docling

匹配范围

材料解析与数据资源记录来源和版本。

源码

Docling · def convert(

docling/document_converter.py · 696–709 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
    def convert(
        self,
        source: Union[Path, str, DocumentStream, HttpSource],  # TODO review naming
        headers: Optional[dict[str, str]] = None,
        raises_on_error: bool = True,
        max_num_pages: int = sys.maxsize,
        max_file_size: int = sys.maxsize,
        page_range: PageRange = DEFAULT_PAGE_RANGE,
        progress_callback: Optional[ProgressCallback] = None,
    ) -> ConversionResult:
        """Convert one document fetched from a file path, URL, or DocumentStream.

        A generic ZIP archive can contain multiple documents. Use ``convert_all``
        for such archives. This method raises ``ConversionError`` instead of
  • # SPDX-License-Identifier: MIT

实现与验收要点

信息、主张、证据的三类权威身份和写入边界。