64 lines
1.3 KiB
YAML
64 lines
1.3 KiB
YAML
runtime: node
|
||
entrypoint: scripts/index.cjs
|
||
timeout: 120000
|
||
|
||
interface:
|
||
input:
|
||
rawText:
|
||
type: string
|
||
required: false
|
||
description: 上游 OCR 原文
|
||
lines:
|
||
type: array
|
||
required: false
|
||
description: OCR 行文本数组
|
||
imageUrl:
|
||
type: string
|
||
required: false
|
||
description: 保单图片 URL,仅用于链路追踪;当前脚本不直接 OCR 图片
|
||
expectedVin:
|
||
type: string
|
||
required: false
|
||
description: 订单 VIN,用于置信度和告警
|
||
expectedOwnerName:
|
||
type: string
|
||
required: false
|
||
description: 订单车主姓名,用于置信度和告警
|
||
expectedPolicyNo:
|
||
type: string
|
||
required: false
|
||
description: 订单已填商业险保单号,用于置信度和告警
|
||
output:
|
||
success:
|
||
type: boolean
|
||
policyNo:
|
||
type: string
|
||
vin:
|
||
type: string
|
||
nameCandidates:
|
||
type: array
|
||
certificateNo:
|
||
type: string
|
||
certificateNoMasked:
|
||
type: boolean
|
||
plateNo:
|
||
type: string
|
||
engineNo:
|
||
type: string
|
||
usageNature:
|
||
type: string
|
||
startDate:
|
||
type: string
|
||
endDate:
|
||
type: string
|
||
hasVehicleDamageCoverage:
|
||
type: boolean
|
||
coverageEvidence:
|
||
type: array
|
||
confidence:
|
||
type: number
|
||
warnings:
|
||
type: array
|
||
rawText:
|
||
type: string
|