实现Agent对话,合格自动提交,不合格补充材料的能力
This commit is contained in:
@@ -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]]]:
|
||||
"""按发票类型分组"""
|
||||
|
||||
Reference in New Issue
Block a user