Delete decorative RepoModel scoring cargo
This commit is contained in:
parent
8bb039afff
commit
ab1afc27ec
2 changed files with 2 additions and 17 deletions
|
|
@ -104,9 +104,7 @@ fn repo_model_node_output_schema() -> serde_json::Value {
|
|||
"action_implication": {"type": "string", "minLength": 1},
|
||||
"anchors": {"type": "array", "items": memory_anchor_output_schema()},
|
||||
"source_hashes": {"type": "array", "items": {"type": "string"}},
|
||||
"lifecycle": {"type": "string", "enum": ["observed", "proposed", "accepted", "retired", "stale"]},
|
||||
"salience": {"type": "integer", "minimum": 0},
|
||||
"confidence": {"type": "integer", "minimum": 0}
|
||||
"lifecycle": {"type": "string", "enum": ["observed", "proposed", "accepted", "retired", "stale"]}
|
||||
},
|
||||
"anyOf": [
|
||||
{"properties": {"question": {"minLength": 1}}},
|
||||
|
|
@ -127,8 +125,7 @@ fn repo_model_edge_output_schema() -> serde_json::Value {
|
|||
"kind": {"type": "string", "enum": ["owns", "reads", "writes", "derives", "adapts", "persists", "launches", "verifies", "supports", "contradicts", "grounds", "triggers", "depends_on", "other"]},
|
||||
"claim": {"type": "string"},
|
||||
"anchors": {"type": "array", "items": memory_anchor_output_schema()},
|
||||
"lifecycle": {"type": "string", "enum": ["observed", "proposed", "accepted", "retired", "stale"]},
|
||||
"confidence": {"type": "integer", "minimum": 0}
|
||||
"lifecycle": {"type": "string", "enum": ["observed", "proposed", "accepted", "retired", "stale"]}
|
||||
},
|
||||
"additionalProperties": false
|
||||
})
|
||||
|
|
|
|||
|
|
@ -855,10 +855,6 @@ pub struct EpiphanyMemoryNode {
|
|||
pub source_hashes: Vec<String>,
|
||||
#[serde(default)]
|
||||
pub lifecycle: EpiphanyMemoryLifecycle,
|
||||
#[serde(default, skip_serializing_if = "is_zero_u32")]
|
||||
pub salience: u32,
|
||||
#[serde(default, skip_serializing_if = "is_zero_u32")]
|
||||
pub confidence: u32,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
pub created_at: Option<String>,
|
||||
|
|
@ -902,8 +898,6 @@ pub struct EpiphanyMemoryEdge {
|
|||
pub anchors: Vec<EpiphanyMemoryAnchor>,
|
||||
#[serde(default)]
|
||||
pub lifecycle: EpiphanyMemoryLifecycle,
|
||||
#[serde(default, skip_serializing_if = "is_zero_u32")]
|
||||
pub confidence: u32,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
|
|
@ -924,9 +918,3 @@ pub struct EpiphanyMemoryAnchor {
|
|||
#[ts(type = "string | null")]
|
||||
pub note: Option<String>,
|
||||
}
|
||||
|
||||
|
||||
|
||||
fn is_zero_u32(value: &u32) -> bool {
|
||||
*value == 0
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue