diff --git a/server/src/models.rs b/server/src/models.rs index abcabd7..1452eab 100644 --- a/server/src/models.rs +++ b/server/src/models.rs @@ -21,7 +21,6 @@ pub fn default_namespace() -> String { #[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)] pub struct Entity { pub name: String, - #[serde(alias = "entityType")] pub entity_type: String, #[serde(default)] pub observations: Vec, @@ -34,7 +33,6 @@ pub struct Entity { pub struct Relation { pub from: String, pub to: String, - #[serde(alias = "relationType")] pub relation_type: String, #[serde(default = "default_namespace")] pub namespace: String, @@ -50,7 +48,6 @@ pub struct KnowledgeGraph { pub struct AcceptanceCriteria { pub id: String, pub description: String, - #[serde(alias = "is_met")] pub is_met: bool, } @@ -60,19 +57,14 @@ pub struct Task { pub title: String, pub status: String, pub description: String, - #[serde(alias = "created_at")] pub created_at: u64, - #[serde(alias = "updated_at")] pub updated_at: u64, - #[serde(alias = "git_branch")] pub git_branch: Option, #[serde(default)] - #[serde(alias = "parent_id")] pub parent_id: Option, #[serde(default)] pub dependencies: Vec, #[serde(default)] - #[serde(alias = "acceptance_criteria")] pub acceptance_criteria: Vec, } #[derive(Debug, Clone, Serialize, Deserialize, Default)] diff --git a/server/src/tools.rs b/server/src/tools.rs index 26399c6..1a7bbc6 100644 --- a/server/src/tools.rs +++ b/server/src/tools.rs @@ -17,7 +17,6 @@ pub struct CreateRelationsTool { #[derive(Debug, Deserialize, Serialize, JsonSchema)] pub struct ObservationInput { - #[serde(alias = "entityName")] pub entity_name: String, pub contents: Vec, } @@ -33,13 +32,11 @@ pub struct AddObservationsTool { #[derive(Debug, Deserialize, Serialize, JsonSchema)] pub struct DeleteEntitiesTool { /// Array of entity names to delete. - #[serde(alias = "entityNames")] pub entity_names: Vec, } #[derive(Debug, Deserialize, Serialize, JsonSchema)] pub struct DeleteObservationInput { - #[serde(alias = "entityName")] pub entity_name: String, pub observations: Vec, } @@ -85,7 +82,6 @@ pub struct OpenNodesTool { #[derive(Debug, Deserialize, Serialize, JsonSchema)] pub struct LogCodeChangeTool { /// The path of the file that was changed. - #[serde(alias = "filePath")] pub file_path: String, /// A description of the change. pub description: String, @@ -134,7 +130,6 @@ pub struct ClearStickyNotesTool {} #[derive(Debug, Deserialize, Serialize, JsonSchema)] pub struct CondenseEntityTool { /// The name of the entity to condense. - #[serde(alias = "entityName")] pub entity_name: String, /// The condensed observations that will replace the existing ones. pub summarized_observations: Vec, @@ -230,10 +225,8 @@ pub struct QueryDecisionsTool { #[derive(Debug, Deserialize, Serialize, JsonSchema)] pub struct MergeEntitiesTool { /// The name of the entity to merge from (will be deleted). - #[serde(alias = "sourceEntity")] pub source_entity: String, /// The name of the entity to merge into. - #[serde(alias = "targetEntity")] pub target_entity: String, }