feat(kernel): agent_get 返回值扩展 UserProfile 字段
- AgentInfo 增加 user_profile: Option<Value> (serde default) - SqliteStorage 增加 pool() getter - agent_get 命令查询 UserProfileStore 填充 user_profile - 前端 AgentInfo 类型同步更新 复用已有 UserProfileStore,不新增 Tauri 命令。
This commit is contained in:
@@ -171,6 +171,9 @@ pub struct AgentInfo {
|
||||
pub system_prompt: Option<String>,
|
||||
pub temperature: Option<f32>,
|
||||
pub max_tokens: Option<u32>,
|
||||
/// UserProfile from zclaw-memory UserProfileStore (populated on-demand by agent_get)
|
||||
#[serde(default)]
|
||||
pub user_profile: Option<serde_json::Value>,
|
||||
}
|
||||
|
||||
impl From<AgentConfig> for AgentInfo {
|
||||
@@ -189,6 +192,7 @@ impl From<AgentConfig> for AgentInfo {
|
||||
system_prompt: config.system_prompt,
|
||||
temperature: config.temperature,
|
||||
max_tokens: config.max_tokens,
|
||||
user_profile: None, // Populated on-demand by agent_get command
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user