Files
KnowledgeBase/config/prompt_variables.php
T

40 lines
1.3 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| AI提示词占位符
|--------------------------------------------------------------------------
|
| 以下占位符由HMI端在运行时替换,KMS仅存储含占位符的原始模板
|
*/
'variables' => [
[
'name' => 'station_id',
'label' => '线站ID',
'description' => '终端所在的线站标识,由HMI从 /config 接口获取',
'example' => 'BL02U1',
'source' => 'KMS /config',
'replaced_by' => 'HMI',
],
[
'name' => 'user',
'label' => '用户名称',
'description' => '当前登录用户的姓名,由HMI从登录信息或固定值获取',
'example' => '张三',
'source' => '登录信息或固定值',
'replaced_by' => 'HMI',
],
[
'name' => 'time',
'label' => '当前时间',
'description' => '当前的日期和时间,由HMI通过 QDateTime::currentDateTime() 获取',
'example' => '2026-03-23 14:30:00',
'source' => 'QDateTime::currentDateTime()',
'replaced_by' => 'HMI',
],
],
];