Skip to main content

Crate brainwires_prompting

Crate brainwires_prompting 

Source
Expand description

brainwires-prompting — adaptive prompting techniques for the Brainwires Agent Framework.

Originally lived in brainwires-knowledge::prompting; extracted in Phase 6 of the layout refactor. Pulls only linfa / linfa-clustering / ndarray / bincode for the K-means task-clustering pipeline. Optional integration with the BKS/PKS knowledge layer for the adaptive PromptGenerator is gated behind the knowledge feature.

Re-exports§

pub use clustering::TaskCluster;
pub use clustering::TaskClusterManager;
pub use clustering::cosine_similarity;
pub use library::TechniqueLibrary;
pub use seal::SealProcessingResult;
pub use techniques::ComplexityLevel;
pub use techniques::PromptingTechnique;
pub use techniques::TaskCharacteristic;
pub use techniques::TechniqueCategory;
pub use techniques::TechniqueMetadata;
pub use generator::GeneratedPrompt;
pub use generator::PromptGenerator;
pub use learning::ClusterSummary;
pub use learning::PromptingLearningCoordinator;
pub use learning::TechniqueStats;
pub use temperature::TemperatureOptimizer;
pub use temperature::TemperaturePerformance;
pub use storage::ClusterStorage;
pub use storage::StorageStats;

Modules§

clustering
K-means task clustering by semantic-vector similarity. Task Clustering System with SEAL Integration
generator
Dynamic prompt generation. With the knowledge feature enabled, integrates BKS (Behavioral Knowledge System) / PKS (Personal Knowledge System) / SEAL feedback to adapt outputs over time. Prompt Generation with SEAL+BKS+PKS Integration
learning
Technique-effectiveness tracking and BKS promotion logic. Learning & Optimization
library
Library of 15 prompting techniques from the adaptive-selection paper. Technique Library with BKS Integration
seal
SEAL (Self-Evolving Agentic Learning) feedback hook used by generator. SEAL (Self-Explanatory Adaptive Learning) bridge types
storage
SQLite-backed cluster storage (gated by the storage feature). Persistence Layer
techniques
Technique enum + per-technique metadata (category / complexity / characteristics). Prompting Technique Definitions
temperature
Adaptive temperature optimisation per task cluster. Temperature Optimization