查到价后把币种、单位、数量、单价、备注写入报价单,避免销售只看到光秃秃的金额。 Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
626 B
Python
28 lines
626 B
Python
"""
|
|
Schema / 字段合同包。
|
|
|
|
校验规则读 contracts JSON;本包不做自然语言抽取。
|
|
"""
|
|
|
|
from agent.schema.contracts_loader import (
|
|
contracts_dir,
|
|
load_contract,
|
|
require_formal_contract,
|
|
resolve_contract_path,
|
|
)
|
|
from agent.schema.field_validate import (
|
|
validate_required_fields,
|
|
validate_required_fields_shell,
|
|
)
|
|
from agent.schema.fingerprint import inquiry_fingerprint
|
|
|
|
__all__ = [
|
|
"contracts_dir",
|
|
"load_contract",
|
|
"require_formal_contract",
|
|
"resolve_contract_path",
|
|
"validate_required_fields",
|
|
"validate_required_fields_shell",
|
|
"inquiry_fingerprint",
|
|
]
|