pub struct KnowledgeGraphResponse {
pub entities: Vec<Entity>,
pub relations: Vec<GraphRelation>,
pub memories: Vec<GraphMemoryNode>,
pub memory_links: Vec<GraphMemoryLink>,
pub pages: Vec<GraphPageNode>,
pub page_links: Vec<GraphPageLink>,
}Expand description
One bulk read of the whole knowledge graph for a read scope: every entity the scope can see, every live relation whose BOTH endpoints are in that entity set, and the memories linked to at least one of those entities.
Exists so the desktop Graph view can draw the complete graph from ONE request instead of fanning out per-entity detail fetches (which capped the drawn graph at the first 20 entities and rendered every other connected entity as an isolate).
Fields§
§entities: Vec<Entity>Same rows /api/memory/entities/list returns for this scope.
relations: Vec<GraphRelation>Every live entity<->entity relation with both endpoints in entities.
memories: Vec<GraphMemoryNode>Memories linked to at least one entity in entities, plus the ones
cited by a page in pages.
memory_links: Vec<GraphMemoryLink>memory_id <-> entity_id; both endpoints are present above.
pages: Vec<GraphPageNode>Wiki pages: everything that is not an entity shadow page.
page_links: Vec<GraphPageLink>Typed edges with a page on at least one end. Every endpoint id is
present in the collection its kind names.
Trait Implementations§
Source§impl Clone for KnowledgeGraphResponse
impl Clone for KnowledgeGraphResponse
Source§fn clone(&self) -> KnowledgeGraphResponse
fn clone(&self) -> KnowledgeGraphResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more