spec-ai-knowledge-graph

Crates.iospec-ai-knowledge-graph
lib.rsspec-ai-knowledge-graph
version0.6.0-prerelease.12
created_at2025-12-01 15:36:30.345544+00
updated_at2026-01-04 05:02:09.426084+00
descriptionA framework for building AI agents with structured outputs, policy enforcement, and execution tracking
homepage
repositoryhttps://github.com/geoffsee/spec-ai
max_upload_size
id1959959
size111,365
Geoff Seemueller (geoffsee)

documentation

https://docs.rs/spec-ai

README

spec-ai-knowledge-graph

Knowledge graph storage and synchronization for the spec-ai framework.

Overview

This crate provides isolated knowledge graph functionality, including:

  • Graph Store: DuckDB-based storage for graph nodes and edges
  • Vector Clocks: Logical clocks for distributed synchronization
  • Graph Types: Core types for nodes, edges, queries, and traversals

Key Components

Graph Store (graph_store)

  • KnowledgeGraphStore - Main storage interface for graph operations
  • SyncedNodeRecord / SyncedEdgeRecord - Records with sync metadata
  • ChangelogEntry - Change tracking for synchronization

Types (types)

  • GraphNode / GraphEdge - Core graph primitives
  • NodeType / EdgeType - Type classifications
  • GraphQuery / GraphQueryResult - Query structures
  • GraphPath - Path traversal results
  • TraversalDirection - Edge traversal direction

Vector Clock (vector_clock)

  • VectorClock - Logical clock for causality tracking
  • ClockOrder - Ordering comparison results

Usage

This is an internal crate used by:

  • spec-ai-core - For graph operations in the agent runtime
  • spec-ai-config - For persistence layer integration

For end-user documentation, see the main spec-ai README.

Commit count: 0

cargo fmt