wip graph impl

This commit is contained in:
Per Stark
2024-10-17 08:24:58 +02:00
parent fc7c10258d
commit f596858fea
2 changed files with 15 additions and 3 deletions

View File

@@ -14,10 +14,20 @@ pub struct TextContent {
pub category: String,
}
/// Represents a generic knowledge entity in the graph.
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct KnowledgeEntity {
pub id: Uuid,
pub name: String,
pub description: String,
pub source_uuid: Uuid,
pub entity_type: String,
}
/// A struct representing a knowledge source in the graph database.
#[derive(Deserialize, Debug, Serialize, Clone )]
pub struct KnowledgeSource {
pub id: String,
pub id: Uuid,
pub title: String,
pub description: String,
pub relationships: Vec<Relationship>,