Expand description
Knowledge graph, entities, thoughts, BKS/PKS, brain client.
§Brainwires Brain — Central Knowledge Module
The canonical home for all knowledge systems in the Brainwires Agent Framework:
- Knowledge Systems: BKS (behavioral truths) and PKS (personal facts)
- Entity Graph: Entity types, entity store, relationship graph
- Brain Client: Persistent thought storage with semantic search
- Thought Types: Categories, sources, and metadata
- Fact Extraction: Automatic categorization and tag extraction
§Library Usage
use brainwires_knowledge::knowledge::BrainClient;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let client = BrainClient::new().await?;
Ok(())
}Re-exports§
pub use brain_client::BrainClient;pub use config::DispositionTrait;pub use config::MemoryBankConfig;pub use entity::ContradictionEvent;pub use entity::ContradictionKind;pub use entity::Entity;pub use entity::EntityStore;pub use entity::EntityStoreStats;pub use entity::ExtractionResult;pub use entity::Relationship;pub use relationship_graph::EntityContext;pub use relationship_graph::RelationshipGraph;pub use thought::Thought;pub use thought::ThoughtCategory;pub use thought::ThoughtSource;pub use types::CaptureThoughtRequest;pub use types::CaptureThoughtResponse;pub use types::DeleteThoughtRequest;pub use types::DeleteThoughtResponse;pub use types::GetThoughtRequest;pub use types::GetThoughtResponse;pub use types::ListRecentRequest;pub use types::ListRecentResponse;pub use types::MemoryStatsRequest;pub use types::MemoryStatsResponse;pub use types::SearchKnowledgeRequest;pub use types::SearchKnowledgeResponse;pub use types::SearchMemoryRequest;pub use types::SearchMemoryResponse;
Modules§
- bks_pks
- Knowledge systems (BKS and PKS). Brainwires Knowledge - Behavioral and personal knowledge systems
- brain_
client - Persistent thought storage with semantic search.
- config
- Memory bank configuration: mission, directives, disposition traits. Memory bank configuration: mission, directives, and disposition traits.
- entity
- Entity types and store for the knowledge graph. Entity Types for Knowledge Graph
- fact_
extractor - Automatic fact extraction from text.
- relationship_
graph - Entity relationship graph storage and queries. Relationship Graph Storage
- thought
- Thought types, categories, and sources.
- types
- Request/response types for MCP tool endpoints.
Structs§
Enums§
- Edge
Type - Types of edges in the relationship graph.
- Entity
Type - Types of entities tracked in the knowledge graph.