115 lines
5.4 KiB
XML
115 lines
5.4 KiB
XML
{
|
|
"widgettype": "TabPanel",
|
|
"options": {
|
|
"tab_pos": "top",
|
|
"items": [
|
|
{
|
|
"name": "agent_config",
|
|
"label": "代理配置",
|
|
"icon": "settings",
|
|
"content": {
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"padding": "16px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Form",
|
|
"id": "agent_config_form",
|
|
"options": {
|
|
"data_url": "{{entire_url('../api/agent_config_get.dspy')}}",
|
|
"data_method": "GET",
|
|
"submit_url": "{{entire_url('../api/agent_config_save.dspy')}}",
|
|
"method": "POST",
|
|
"layout": "vertical",
|
|
"fields": [
|
|
{
|
|
"name": "work_dir",
|
|
"label": "工作目录",
|
|
"uitype": "text",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "skills_path",
|
|
"label": "技能路径",
|
|
"uitype": "text",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "max_memory_tokens",
|
|
"label": "最大记忆 token 数",
|
|
"uitype": "int",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "default_priority",
|
|
"label": "默认优先级",
|
|
"uitype": "int",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "high_priority_threshold",
|
|
"label": "高优先级阈值",
|
|
"uitype": "int",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "low_priority_threshold",
|
|
"label": "低优先级阈值",
|
|
"uitype": "int",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "auto_cleanup_enabled",
|
|
"label": "启用自动清理",
|
|
"uitype": "check"
|
|
},
|
|
{
|
|
"name": "min_retention_days",
|
|
"label": "最小保留天数",
|
|
"uitype": "int",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "default_model",
|
|
"label": "默认模型",
|
|
"uitype": "text",
|
|
"placeholder": "qwen3-max"
|
|
},
|
|
{
|
|
"name": "default_temperature",
|
|
"label": "默认温度",
|
|
"uitype": "float",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "enable_streaming",
|
|
"label": "启用流式输出",
|
|
"uitype": "check"
|
|
}
|
|
],
|
|
"buttons": [
|
|
{
|
|
"type": "submit",
|
|
"label": "保存代理配置",
|
|
"variant": "primary"
|
|
}
|
|
],
|
|
"maxWidth": "500px"
|
|
},
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "submited",
|
|
"actiontype": "script",
|
|
"script": "await bricks.show_resp_message_or_error(event.params)"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|