Commit 2e5d7cf
feat: implement ReasoningAgent and DualBrainAgent with advanced reasoning capabilities
- Add ReasoningConfig class for configurable reasoning parameters
- Add ActionState enum for flow control
- Implement ReasoningAgent inheriting from Agent with:
- Step-by-step reasoning with confidence scoring
- Reasoning trace tracking
- Configurable min/max steps and reasoning styles
- Implement DualBrainAgent inheriting from Agent with:
- Separate LLMs for conversation and reasoning
- Dual-brain coordination for optimal problem-solving
- Brain status monitoring and model switching
- Add confidence scoring integration
- Maintain backward compatibility with existing Agent class
- Export new classes in agent module
Addresses issue #968: Create ReasoningAgent inherited from Agent class
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>1 parent 9ae29b0 commit 2e5d7cf
File tree
5 files changed
+783
-1
lines changed- src/praisonai-agents/praisonaiagents
- agent
5 files changed
+783
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| 108 | + | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
| |||
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
135 | 146 | | |
136 | 147 | | |
137 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments