实现Agent对话,合格自动提交,不合格补充材料的能力

This commit is contained in:
wandering
2026-06-14 12:56:33 +08:00
parent 8dd91df3b9
commit 46305fdebb
68 changed files with 8914 additions and 1908 deletions

View File

@@ -17,6 +17,9 @@ from .. import get_logger
log = get_logger("invoice")
# 缓存目录名(相对于源文件目录)
CACHE_DIR_NAME = ".invoice_cache"
# CSV 列名
INVOICE_LEVEL_COLUMNS = [
"index",
@@ -58,7 +61,7 @@ def _is_application_document(invoice_type: str) -> bool:
return invoice_type == "application"
def _classify_invoice_batch(
def classify_invoice_batch(
invoices: list[dict[str, str]],
) -> dict[str, list[dict[str, str]]]:
"""按发票类型分组"""