pipeline-llm/models/llm_call_trace.json

112 lines
2.7 KiB
JSON

{
"summary": [
{
"name": "llm_call_trace",
"title": "模型调用原文追踪(上行下行)",
"primary": [
"id"
],
"catelog": "entity"
}
],
"fields": [
{
"name": "id",
"title": "主键ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "call_id",
"title": "调用批次ID(与llm_usage.call_id同值,一次chat_inference=N个往返)",
"type": "str",
"length": 32
},
{
"name": "seq",
"title": "往返序号(同步重试0..2;异步提交0,轮询1..N)",
"type": "int",
"default": "0"
},
{
"name": "kind",
"title": "往返类型(chat对话/submit异步提交/query任务查询)",
"type": "str",
"length": 20
},
{
"name": "url",
"title": "上游URL(去query防签名泄露)",
"type": "str",
"length": 500
},
{
"name": "method",
"title": "HTTP方法",
"type": "str",
"length": 10
},
{
"name": "status_code",
"title": "响应状态码",
"type": "int",
"default": "0"
},
{
"name": "elapsed_ms",
"title": "耗时(毫秒)",
"type": "int",
"default": "0"
},
{
"name": "req_path",
"title": "请求原文文件路径(filesroot相对;headers已脱敏)",
"type": "str",
"length": 300
},
{
"name": "resp_path",
"title": "响应原文文件路径(filesroot相对)",
"type": "str",
"length": 300
},
{
"name": "org_id",
"title": "机构ID(下载端点机构隔离用)",
"type": "str",
"length": 32
},
{
"name": "note",
"title": "错误摘要",
"type": "str",
"length": 200
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": "no"
}
],
"indexes": [
{
"name": "idx_llm_call_trace_call",
"idxtype": "index",
"idxfields": [
"call_id"
]
},
{
"name": "idx_llm_call_trace_org",
"idxtype": "index",
"idxfields": [
"org_id",
"created_at"
]
}
],
"codes": []
}