pbl_agent_runtime/models/pbl_agent_trace.json

146 lines
2.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"summary": [
{
"name": "pbl_agent_trace",
"comment": "Agent 执行轨迹第28章 7 要素)",
"module": "pbl_agent_runtime",
"engine": "mariadb",
"charset": "utf8mb4",
"tenant_scoped": true
}
],
"fields": [
{
"name": "tenant_id",
"comment": "租户ID(强制打头)",
"null": false,
"type": "str",
"length": 32
},
{
"name": "id",
"comment": "主键",
"null": false,
"type": "int",
"length": 20,
"unsigned": true,
"auto_increment": true
},
{
"name": "trace_uid",
"comment": "轨迹UID",
"null": false,
"type": "str",
"length": 32
},
{
"name": "agent_code",
"comment": "Agent",
"null": false,
"type": "str",
"length": 64
},
{
"name": "blueprint_id",
"comment": "目标蓝图",
"null": false,
"type": "bigint"
},
{
"name": "input_ref_json",
"comment": "要素1 输入引用",
"null": true,
"type": "json"
},
{
"name": "thought_txt",
"comment": "要素2 思考",
"null": true,
"type": "text"
},
{
"name": "action_code",
"comment": "要素3 动作",
"null": false,
"type": "str",
"length": 64
},
{
"name": "action_params_json",
"comment": "要素4 动作参数",
"null": true,
"type": "json"
},
{
"name": "observation_json",
"comment": "要素5 观察",
"null": true,
"type": "json"
},
{
"name": "result_state",
"comment": "要素6 结果状态",
"null": false,
"type": "str",
"length": 64
},
{
"name": "llm_calls",
"comment": "要素7 LLM调用数",
"null": false,
"type": "int"
},
{
"name": "duration_ms",
"comment": "耗时",
"null": false,
"type": "int"
},
{
"name": "created_by",
"comment": "触发用户",
"null": false,
"type": "str",
"length": 32
},
{
"name": "created_at",
"comment": "创建时间",
"null": false,
"type": "datetime"
},
{
"name": "updated_at",
"comment": "更新时间",
"null": false,
"type": "datetime"
}
],
"indexes": [
{
"name": "uk_at_uid",
"unique": true,
"fields": [
"tenant_id",
"trace_uid"
]
},
{
"name": "idx_at_tenant",
"unique": false,
"fields": [
"tenant_id",
"created_at"
]
},
{
"name": "PRIMARY",
"unique": true,
"fields": [
"id"
]
}
],
"codes": []
}