Skip to main content

Module types

Module types 

Source
Expand description

Core types for the knowledge graph.

Structs§

Graph
A graph snapshot containing nodes (summaries) and edges.
GraphEdge
A directed, weighted edge between two nodes.
GraphNode
A node in the knowledge graph.
GraphNodeSummary
Summary of a node for serialization (web viewer, API responses). Omits body and metadata fields for compact payloads.
GraphStats
Aggregate statistics about the knowledge graph.
ScoredNode
A node scored by relevance for recall ranking.

Functions§

default_importance
Default importance for new nodes.
importance_for_type
Importance score by node type. Used when creating nodes without explicit importance.
validate_uuid
Validate a UUID v4 string (strict format: xxxxxxxx-xxxx-4xxx-[89ab]xxx-xxxxxxxxxxxx).