优化: AI Chat全栈多批审查修复与架构清理(risk_level清理/路由解耦/工具渲染/测试补测/死代码)
This commit is contained in:
@@ -30,8 +30,6 @@ pub struct NodeContext {
|
||||
pub struct NodeOutput {
|
||||
/// 输出数据
|
||||
pub data: serde_json::Value,
|
||||
/// 输出元数据
|
||||
pub metadata: std::collections::HashMap<String, String>,
|
||||
}
|
||||
|
||||
impl NodeOutput {
|
||||
@@ -39,16 +37,12 @@ impl NodeOutput {
|
||||
pub fn empty() -> Self {
|
||||
Self {
|
||||
data: serde_json::Value::Null,
|
||||
metadata: std::collections::HashMap::new(),
|
||||
}
|
||||
}
|
||||
|
||||
/// 从 JSON 值创建输出
|
||||
pub fn from_value(data: serde_json::Value) -> Self {
|
||||
Self {
|
||||
data,
|
||||
metadata: std::collections::HashMap::new(),
|
||||
}
|
||||
Self { data }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user