1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//! # 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
/// Response confidence extraction (CISC heuristics) — used by SEAL learning
/// and validation policies to score model output quality.
/// Content source types for tracking where content originates.
/// Embedding provider trait for vector operations.
/// Framework error types and result aliases.
/// Unified event trait and `EventEnvelope<E>` with trace IDs and sequence numbers.
/// File chunking + content extraction primitives — `FileContextManager`,
/// `FileContent`, `FileChunk`. Moved from `brainwires-storage` in Phase 9.
/// Native-only (uses `tokio::fs`).
/// Knowledge graph types: entities, edges, and trait interfaces.
/// Lifecycle hooks for intercepting framework events.
/// Message, role, and streaming types for AI conversations.
/// Platform-specific path helpers — `PlatformPaths`. Moved from
/// `brainwires-storage` in Phase 9.
/// Permission mode definitions.
/// Plan metadata, steps, budgets, and serializable plans.
/// Provider configuration and chat options.
/// Shared search types (SearchResult, ChunkMetadata, DatabaseStats).
/// Task, priority, and agent response types.
/// Tool definitions, schemas, contexts, and idempotency.
/// Vector store trait for similarity search.
/// Persistent workflow state for crash-safe agent retry.
///
/// Native-only: the filesystem-backed checkpoint store uses `tokio::fs` and
/// `dirs::home_dir`, neither of which are available on `wasm32-unknown-unknown`.
/// Working set for file context management with LRU eviction.
// Re-export core types at crate root
pub use ContentSource;
pub use EmbeddingProvider;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use ;
pub use *;
pub use *;
pub use ;
pub use ;