Expand description
§Brainwires Core
Foundation types, traits, and error handling for the Brainwires Agent Framework.
This crate provides the core data structures used across all framework crates:
- Message types for AI conversations
- Tool definitions and execution results
- Task and agent context types
- Plan metadata and status
- Working set for file context management
- Chat options and provider configuration
- Permission modes
Re-exports§
pub use content_source::ContentSource;pub use embedding::EmbeddingProvider;pub use output_parser::JsonListParser;pub use output_parser::JsonOutputParser;pub use output_parser::OutputParser;pub use output_parser::RegexOutputParser;pub use plan_parser::ParsedStep;pub use plan_parser::parse_plan_steps;pub use plan_parser::steps_to_tasks;pub use vector_store::VectorSearchResult;pub use vector_store::VectorStore;pub use working_set::WorkingSet;pub use working_set::WorkingSetConfig;pub use working_set::WorkingSetEntry;pub use working_set::estimate_tokens;pub use working_set::estimate_tokens_from_size;pub use error::*;pub use graph::*;pub use message::*;pub use permission::*;pub use plan::*;pub use provider::*;pub use task::*;pub use tool::*;
Modules§
- content_
source - Content source types for tracking where content originates.
- embedding
- Embedding provider trait for vector operations. Unified embedding abstraction
- error
- Framework error types and result aliases. Framework error types
- graph
- Knowledge graph types: entities, edges, and trait interfaces. Graph types and traits for knowledge graph abstraction.
- lifecycle
- Lifecycle hooks for intercepting framework events. Lifecycle Hooks
- message
- Message, role, and streaming types for AI conversations.
- output_
parser - Structured output parsers for LLM responses. Structured output parsing for LLM responses
- permission
- Permission mode definitions. Permission mode types
- plan
- Plan metadata, steps, budgets, and serializable plans.
- plan_
parser - Plan text parser for extracting steps from LLM output. Plan Parser - Extract tasks from plan content
- provider
- Provider configuration and chat options.
- task
- Task, priority, and agent response types.
- tool
- Tool definitions, schemas, contexts, and idempotency.
- vector_
store - Vector store trait for similarity search. Vector store abstraction
- working_
set - Working set for file context management with LRU eviction. Working Set for File Context Management