简体中文
关于如何创建高质量 JSON schema 的建议
"properties": { "币种": { "type": ["enum", "null"], "enum": [ "USD", "EUR", "JPY", "CAD", "AUD", "Other" ], "description": "国际货币种类代码" } }
# 通过 schema 抽取原文档中的月消费值 "properties": { "monthly_cost": { "type": ["number", "null"], "description": "服务月度消费总计" }, } . . . # 下游计算年消费值 total_annual_price = extract_result.json()["result"][0]["monthly_cost"] * 12
此页面对您有帮助吗?