@@ -14,7 +14,7 @@ Or as a feature of the root `lmm` crate:
1414
1515``` toml
1616[dependencies ]
17- lmm = { version = " 0.1 " , features = [" agent" ] }
17+ lmm = { version = " 0.2.0 " , features = [" agent" ] }
1818```
1919
2020## 🏗️ Core Architecture
@@ -113,7 +113,7 @@ let agent = LmmAgent::builder()
113113| ` LmmAgent ` | Core agent struct (memory, tools, planner, knowledge, etc.) |
114114| ` LmmAgentBuilder ` | Fluent builder for ` LmmAgent ` |
115115| ` Message ` | A chat message with ` role ` + ` content ` |
116- | ` Status ` | ` Idle ` , ` Active ` , ` InUnitTesting ` , ` Completed ` |
116+ | ` Status ` | ` Idle ` , ` Active ` , ` InUnitTesting ` , ` Completed ` , ` Thinking ` |
117117| ` Knowledge ` | Map of fact keys to natural-language descriptions |
118118| ` Planner ` | Ordered list of ` Goal ` s with priorities and completion flags |
119119| ` Profile ` | Agent personality traits and behavioural script |
@@ -129,6 +129,7 @@ The `Auto` derive macro generates:
129129// All below methods are generated automatically
130130async fn generate(&mut self, prompt: &str) -> Result<String>;
131131async fn search(&self, query: &str) -> Result<Vec<LiteSearchResult>>;
132+ async fn think(&mut self, goal: &str) -> Result<ThinkResult>;
132133async fn save_ltm(&mut self, msg: Message) -> Result<()>;
133134async fn get_ltm(&self) -> Result<Vec<Message>>;
134135async fn ltm_context(&self) -> Result<String>;
@@ -138,7 +139,8 @@ async fn ltm_context(&self) -> Result<String>;
138139
139140``` sh
140141Idle → [execute() called] → Active → [task done] → Completed
141- ↘ [testing] → InUnitTesting
142+ ↘ [think() called] → Thinking → Completed
143+ ↘ [testing] → InUnitTesting
142144```
143145
144146## 📎 Further Reading
0 commit comments