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
//! # car-reason
//!
//! CAR-native code reasoning engine. Adaptive, graph-driven, learning.
//!
//! Instead of a hardcoded pipeline, reasoning actions are **skills in the memgine
//! graph**. The graph's spreading activation and success/failure tracking determine
//! which actions to run, in what order, routed to which models.
//!
//! ## Usage
//!
//! ```rust,no_run
//! use std::sync::{Arc, Mutex};
//! use car_reason::ReasoningSession;
//!
//! # async fn example() {
//! let inference = Arc::new(car_inference::InferenceEngine::new(Default::default()));
//! let mut memgine = car_memgine::MemgineEngine::new(None);
//!
//! // Seed default reasoning skills
//! car_reason::skills::seed_defaults(&mut memgine);
//!
//! let memgine = Arc::new(Mutex::new(memgine));
//! let session = ReasoningSession::new(memgine, inference);
//! let result = session.reason("fix the off-by-one error in parse_header").await.unwrap();
//!
//! println!("Diagnosis: {}", result.diagnosis);
//! for s in &result.suggestions {
//! println!("Fix: {}", s.suggested);
//! }
//! println!("Explanation: {}", result.explanation);
//! # }
//! ```
pub use ;
pub use ;
pub use *;
use Error;