mrs-core 0.1.0__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mrs_core-0.1.0 → mrs_core-0.1.2}/NOTICE +1 -1
- {mrs_core-0.1.0/mrs_core.egg-info → mrs_core-0.1.2}/PKG-INFO +28 -28
- {mrs_core-0.1.0 → mrs_core-0.1.2}/README.md +27 -27
- {mrs_core-0.1.0 → mrs_core-0.1.2/mrs_core.egg-info}/PKG-INFO +28 -28
- {mrs_core-0.1.0 → mrs_core-0.1.2}/pyproject.toml +1 -1
- {mrs_core-0.1.0 → mrs_core-0.1.2}/LICENSE +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/MANIFEST.in +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/__init__.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/diagnostics.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/engine.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/exceptions.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/operators/__init__.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/operators/base.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/operators/evaluate.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/operators/filter.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/operators/inspect.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/operators/reflect.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/operators/rewrite.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/operators/summarize.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/operators/transform.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/phases.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/pipeline.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/presets.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/registry.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs/state.py +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs_core.egg-info/SOURCES.txt +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs_core.egg-info/dependency_links.txt +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/mrs_core.egg-info/top_level.txt +0 -0
- {mrs_core-0.1.0 → mrs_core-0.1.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mrs-core
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: MRS-Core: A deterministic modular reasoning engine.
|
|
5
5
|
Author: Ryan Sabouhi
|
|
6
6
|
License: Apache-2.0
|
|
@@ -24,10 +24,10 @@ License-File: LICENSE
|
|
|
24
24
|
License-File: NOTICE
|
|
25
25
|
Dynamic: license-file
|
|
26
26
|
|
|
27
|
-
# Modular Reasoning
|
|
27
|
+
# Modular Reasoning System (MRS-Core)
|
|
28
28
|
*A deterministic, operator-based reasoning engine for LLMs and autonomous agents.*
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
MRS-Core provides a transparent, modular, reproducible reasoning substrate built from a small set of reusable operators:
|
|
31
31
|
|
|
32
32
|
- Transform
|
|
33
33
|
- Reflect
|
|
@@ -37,11 +37,11 @@ MRF-Core provides a transparent, modular, reproducible reasoning substrate built
|
|
|
37
37
|
- Inspect
|
|
38
38
|
- Filter
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
MRS makes reasoning traceable, auditable, and deterministic all without requiring chain-of-thought exposure or hidden model internals.
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
44
|
-
# Why
|
|
44
|
+
# Why MRS-Core Exists
|
|
45
45
|
|
|
46
46
|
### Every agent framework today suffers from the same structural failures:
|
|
47
47
|
|
|
@@ -50,7 +50,7 @@ MRF makes reasoning traceable, auditable, and deterministic—without requiring
|
|
|
50
50
|
- No visibility into intermediate states
|
|
51
51
|
- No enforceable phases or operator logic
|
|
52
52
|
|
|
53
|
-
###
|
|
53
|
+
### MRS-Core solves this by introducing:
|
|
54
54
|
|
|
55
55
|
- Explicit operator-level reasoning
|
|
56
56
|
- Strict phase transition model
|
|
@@ -58,9 +58,9 @@ MRF makes reasoning traceable, auditable, and deterministic—without requiring
|
|
|
58
58
|
- Deterministic, reproducible outputs
|
|
59
59
|
- Plug-and-play integration for ANY agent system
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
###
|
|
61
|
+
MRS is **not** an alignment system.
|
|
62
|
+
MRS is **not** a sandbox.
|
|
63
|
+
### MRS is a *reasoning substrate*.
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
@@ -71,7 +71,7 @@ MRF is **not** a sandbox.
|
|
|
71
71
|
- Output is repeatable.
|
|
72
72
|
|
|
73
73
|
### Transparent Logs & History
|
|
74
|
-
|
|
74
|
+
MRS records:
|
|
75
75
|
- final text
|
|
76
76
|
- operator log
|
|
77
77
|
- phase trace
|
|
@@ -88,7 +88,7 @@ MRF records:
|
|
|
88
88
|
# Install
|
|
89
89
|
|
|
90
90
|
```bash
|
|
91
|
-
pip install
|
|
91
|
+
pip install mrs-core
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
---
|
|
@@ -96,13 +96,13 @@ pip install mrf-core
|
|
|
96
96
|
|
|
97
97
|
# Quick Start
|
|
98
98
|
```bash
|
|
99
|
-
from
|
|
100
|
-
from
|
|
99
|
+
from mrs.engine import MRSCoreEngine
|
|
100
|
+
from mrs.presets import get_preset
|
|
101
101
|
|
|
102
|
-
engine =
|
|
102
|
+
engine = MRSCoreEngine()
|
|
103
103
|
ops = get_preset("reasoning")
|
|
104
104
|
|
|
105
|
-
result = engine.run_chain(ops, "
|
|
105
|
+
result = engine.run_chain(ops, "MRS-Core is a modular deterministic reasoning pipeline.")
|
|
106
106
|
|
|
107
107
|
print(result["text"])
|
|
108
108
|
print(result["log"])
|
|
@@ -113,7 +113,7 @@ print(result["phase"])
|
|
|
113
113
|
# Example Output
|
|
114
114
|
```bash
|
|
115
115
|
[REFLECT] [TRANSFORM]
|
|
116
|
-
|
|
116
|
+
MRS-CORE IS A MODULAR DETERMINISTIC REASONING PIPELINE.
|
|
117
117
|
|
|
118
118
|
[EVAL CHARS=95 WORDS=14]
|
|
119
119
|
|
|
@@ -123,9 +123,9 @@ PHASE: rewrite
|
|
|
123
123
|
|
|
124
124
|
# Running a Manual Operator Chain
|
|
125
125
|
```bash
|
|
126
|
-
from
|
|
126
|
+
from mrs.engine import MRSCoreEngine
|
|
127
127
|
|
|
128
|
-
engine =
|
|
128
|
+
engine = MRSCoreEngine()
|
|
129
129
|
|
|
130
130
|
ops = [
|
|
131
131
|
("transform", {}),
|
|
@@ -143,20 +143,20 @@ print(result["history"])
|
|
|
143
143
|
|
|
144
144
|
# Using Presets
|
|
145
145
|
|
|
146
|
-
###
|
|
146
|
+
### MRS-Core includes preset chains:
|
|
147
147
|
- simple
|
|
148
148
|
- reasoning
|
|
149
149
|
- full_chain
|
|
150
150
|
|
|
151
151
|
```bash
|
|
152
|
-
from
|
|
153
|
-
from
|
|
152
|
+
from mrs.engine import MRSCoreEngine
|
|
153
|
+
from mrs.presets import get_preset
|
|
154
154
|
|
|
155
|
-
engine =
|
|
155
|
+
engine = MRSCoreEngine()
|
|
156
156
|
|
|
157
157
|
for name in ["simple", "reasoning", "full_chain"]:
|
|
158
158
|
ops = get_preset(name)
|
|
159
|
-
result = engine.run_chain(ops, "
|
|
159
|
+
result = engine.run_chain(ops, "MRS-Core preset test")
|
|
160
160
|
print(f"=== {name.upper()} ===")
|
|
161
161
|
print(result["text"])
|
|
162
162
|
```
|
|
@@ -186,7 +186,7 @@ class ReflectOperator(Operator):
|
|
|
186
186
|
|
|
187
187
|
# Project Structure
|
|
188
188
|
```bash
|
|
189
|
-
|
|
189
|
+
mrs-core/
|
|
190
190
|
engine.py
|
|
191
191
|
registry.py
|
|
192
192
|
state.py
|
|
@@ -206,15 +206,15 @@ examples/
|
|
|
206
206
|
```
|
|
207
207
|
---
|
|
208
208
|
|
|
209
|
-
# What
|
|
209
|
+
# What MRS-Core Is Not
|
|
210
210
|
|
|
211
|
-
###
|
|
211
|
+
### MRS-Core is **NOT**:
|
|
212
212
|
- an alignment system
|
|
213
213
|
- a safety guarantee
|
|
214
214
|
- a sandbox
|
|
215
215
|
- a replacement for secure execution layers
|
|
216
216
|
|
|
217
|
-
###
|
|
217
|
+
### MRS-Core **IS**:
|
|
218
218
|
- a deterministic reasoning layer
|
|
219
219
|
- an operator execution engine
|
|
220
220
|
- an audit-friendly cognition scaffold
|
|
@@ -240,7 +240,7 @@ Ryan Sabouhi
|
|
|
240
240
|
# Notice
|
|
241
241
|
|
|
242
242
|
This software contains original work developed as part of the
|
|
243
|
-
**Modular Reasoning
|
|
243
|
+
**Modular Reasoning System (MRS-Core)** by **Ryan Sabouhi**.
|
|
244
244
|
See the `NOTICE` file for attribution details.
|
|
245
245
|
|
|
246
246
|
#
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Modular Reasoning
|
|
1
|
+
# Modular Reasoning System (MRS-Core)
|
|
2
2
|
*A deterministic, operator-based reasoning engine for LLMs and autonomous agents.*
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
MRS-Core provides a transparent, modular, reproducible reasoning substrate built from a small set of reusable operators:
|
|
5
5
|
|
|
6
6
|
- Transform
|
|
7
7
|
- Reflect
|
|
@@ -11,11 +11,11 @@ MRF-Core provides a transparent, modular, reproducible reasoning substrate built
|
|
|
11
11
|
- Inspect
|
|
12
12
|
- Filter
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
MRS makes reasoning traceable, auditable, and deterministic all without requiring chain-of-thought exposure or hidden model internals.
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
-
# Why
|
|
18
|
+
# Why MRS-Core Exists
|
|
19
19
|
|
|
20
20
|
### Every agent framework today suffers from the same structural failures:
|
|
21
21
|
|
|
@@ -24,7 +24,7 @@ MRF makes reasoning traceable, auditable, and deterministic—without requiring
|
|
|
24
24
|
- No visibility into intermediate states
|
|
25
25
|
- No enforceable phases or operator logic
|
|
26
26
|
|
|
27
|
-
###
|
|
27
|
+
### MRS-Core solves this by introducing:
|
|
28
28
|
|
|
29
29
|
- Explicit operator-level reasoning
|
|
30
30
|
- Strict phase transition model
|
|
@@ -32,9 +32,9 @@ MRF makes reasoning traceable, auditable, and deterministic—without requiring
|
|
|
32
32
|
- Deterministic, reproducible outputs
|
|
33
33
|
- Plug-and-play integration for ANY agent system
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
###
|
|
35
|
+
MRS is **not** an alignment system.
|
|
36
|
+
MRS is **not** a sandbox.
|
|
37
|
+
### MRS is a *reasoning substrate*.
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -45,7 +45,7 @@ MRF is **not** a sandbox.
|
|
|
45
45
|
- Output is repeatable.
|
|
46
46
|
|
|
47
47
|
### Transparent Logs & History
|
|
48
|
-
|
|
48
|
+
MRS records:
|
|
49
49
|
- final text
|
|
50
50
|
- operator log
|
|
51
51
|
- phase trace
|
|
@@ -62,7 +62,7 @@ MRF records:
|
|
|
62
62
|
# Install
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
pip install
|
|
65
|
+
pip install mrs-core
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
---
|
|
@@ -70,13 +70,13 @@ pip install mrf-core
|
|
|
70
70
|
|
|
71
71
|
# Quick Start
|
|
72
72
|
```bash
|
|
73
|
-
from
|
|
74
|
-
from
|
|
73
|
+
from mrs.engine import MRSCoreEngine
|
|
74
|
+
from mrs.presets import get_preset
|
|
75
75
|
|
|
76
|
-
engine =
|
|
76
|
+
engine = MRSCoreEngine()
|
|
77
77
|
ops = get_preset("reasoning")
|
|
78
78
|
|
|
79
|
-
result = engine.run_chain(ops, "
|
|
79
|
+
result = engine.run_chain(ops, "MRS-Core is a modular deterministic reasoning pipeline.")
|
|
80
80
|
|
|
81
81
|
print(result["text"])
|
|
82
82
|
print(result["log"])
|
|
@@ -87,7 +87,7 @@ print(result["phase"])
|
|
|
87
87
|
# Example Output
|
|
88
88
|
```bash
|
|
89
89
|
[REFLECT] [TRANSFORM]
|
|
90
|
-
|
|
90
|
+
MRS-CORE IS A MODULAR DETERMINISTIC REASONING PIPELINE.
|
|
91
91
|
|
|
92
92
|
[EVAL CHARS=95 WORDS=14]
|
|
93
93
|
|
|
@@ -97,9 +97,9 @@ PHASE: rewrite
|
|
|
97
97
|
|
|
98
98
|
# Running a Manual Operator Chain
|
|
99
99
|
```bash
|
|
100
|
-
from
|
|
100
|
+
from mrs.engine import MRSCoreEngine
|
|
101
101
|
|
|
102
|
-
engine =
|
|
102
|
+
engine = MRSCoreEngine()
|
|
103
103
|
|
|
104
104
|
ops = [
|
|
105
105
|
("transform", {}),
|
|
@@ -117,20 +117,20 @@ print(result["history"])
|
|
|
117
117
|
|
|
118
118
|
# Using Presets
|
|
119
119
|
|
|
120
|
-
###
|
|
120
|
+
### MRS-Core includes preset chains:
|
|
121
121
|
- simple
|
|
122
122
|
- reasoning
|
|
123
123
|
- full_chain
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
|
-
from
|
|
127
|
-
from
|
|
126
|
+
from mrs.engine import MRSCoreEngine
|
|
127
|
+
from mrs.presets import get_preset
|
|
128
128
|
|
|
129
|
-
engine =
|
|
129
|
+
engine = MRSCoreEngine()
|
|
130
130
|
|
|
131
131
|
for name in ["simple", "reasoning", "full_chain"]:
|
|
132
132
|
ops = get_preset(name)
|
|
133
|
-
result = engine.run_chain(ops, "
|
|
133
|
+
result = engine.run_chain(ops, "MRS-Core preset test")
|
|
134
134
|
print(f"=== {name.upper()} ===")
|
|
135
135
|
print(result["text"])
|
|
136
136
|
```
|
|
@@ -160,7 +160,7 @@ class ReflectOperator(Operator):
|
|
|
160
160
|
|
|
161
161
|
# Project Structure
|
|
162
162
|
```bash
|
|
163
|
-
|
|
163
|
+
mrs-core/
|
|
164
164
|
engine.py
|
|
165
165
|
registry.py
|
|
166
166
|
state.py
|
|
@@ -180,15 +180,15 @@ examples/
|
|
|
180
180
|
```
|
|
181
181
|
---
|
|
182
182
|
|
|
183
|
-
# What
|
|
183
|
+
# What MRS-Core Is Not
|
|
184
184
|
|
|
185
|
-
###
|
|
185
|
+
### MRS-Core is **NOT**:
|
|
186
186
|
- an alignment system
|
|
187
187
|
- a safety guarantee
|
|
188
188
|
- a sandbox
|
|
189
189
|
- a replacement for secure execution layers
|
|
190
190
|
|
|
191
|
-
###
|
|
191
|
+
### MRS-Core **IS**:
|
|
192
192
|
- a deterministic reasoning layer
|
|
193
193
|
- an operator execution engine
|
|
194
194
|
- an audit-friendly cognition scaffold
|
|
@@ -214,7 +214,7 @@ Ryan Sabouhi
|
|
|
214
214
|
# Notice
|
|
215
215
|
|
|
216
216
|
This software contains original work developed as part of the
|
|
217
|
-
**Modular Reasoning
|
|
217
|
+
**Modular Reasoning System (MRS-Core)** by **Ryan Sabouhi**.
|
|
218
218
|
See the `NOTICE` file for attribution details.
|
|
219
219
|
|
|
220
220
|
#
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mrs-core
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: MRS-Core: A deterministic modular reasoning engine.
|
|
5
5
|
Author: Ryan Sabouhi
|
|
6
6
|
License: Apache-2.0
|
|
@@ -24,10 +24,10 @@ License-File: LICENSE
|
|
|
24
24
|
License-File: NOTICE
|
|
25
25
|
Dynamic: license-file
|
|
26
26
|
|
|
27
|
-
# Modular Reasoning
|
|
27
|
+
# Modular Reasoning System (MRS-Core)
|
|
28
28
|
*A deterministic, operator-based reasoning engine for LLMs and autonomous agents.*
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
MRS-Core provides a transparent, modular, reproducible reasoning substrate built from a small set of reusable operators:
|
|
31
31
|
|
|
32
32
|
- Transform
|
|
33
33
|
- Reflect
|
|
@@ -37,11 +37,11 @@ MRF-Core provides a transparent, modular, reproducible reasoning substrate built
|
|
|
37
37
|
- Inspect
|
|
38
38
|
- Filter
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
MRS makes reasoning traceable, auditable, and deterministic all without requiring chain-of-thought exposure or hidden model internals.
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
44
|
-
# Why
|
|
44
|
+
# Why MRS-Core Exists
|
|
45
45
|
|
|
46
46
|
### Every agent framework today suffers from the same structural failures:
|
|
47
47
|
|
|
@@ -50,7 +50,7 @@ MRF makes reasoning traceable, auditable, and deterministic—without requiring
|
|
|
50
50
|
- No visibility into intermediate states
|
|
51
51
|
- No enforceable phases or operator logic
|
|
52
52
|
|
|
53
|
-
###
|
|
53
|
+
### MRS-Core solves this by introducing:
|
|
54
54
|
|
|
55
55
|
- Explicit operator-level reasoning
|
|
56
56
|
- Strict phase transition model
|
|
@@ -58,9 +58,9 @@ MRF makes reasoning traceable, auditable, and deterministic—without requiring
|
|
|
58
58
|
- Deterministic, reproducible outputs
|
|
59
59
|
- Plug-and-play integration for ANY agent system
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
###
|
|
61
|
+
MRS is **not** an alignment system.
|
|
62
|
+
MRS is **not** a sandbox.
|
|
63
|
+
### MRS is a *reasoning substrate*.
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
@@ -71,7 +71,7 @@ MRF is **not** a sandbox.
|
|
|
71
71
|
- Output is repeatable.
|
|
72
72
|
|
|
73
73
|
### Transparent Logs & History
|
|
74
|
-
|
|
74
|
+
MRS records:
|
|
75
75
|
- final text
|
|
76
76
|
- operator log
|
|
77
77
|
- phase trace
|
|
@@ -88,7 +88,7 @@ MRF records:
|
|
|
88
88
|
# Install
|
|
89
89
|
|
|
90
90
|
```bash
|
|
91
|
-
pip install
|
|
91
|
+
pip install mrs-core
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
---
|
|
@@ -96,13 +96,13 @@ pip install mrf-core
|
|
|
96
96
|
|
|
97
97
|
# Quick Start
|
|
98
98
|
```bash
|
|
99
|
-
from
|
|
100
|
-
from
|
|
99
|
+
from mrs.engine import MRSCoreEngine
|
|
100
|
+
from mrs.presets import get_preset
|
|
101
101
|
|
|
102
|
-
engine =
|
|
102
|
+
engine = MRSCoreEngine()
|
|
103
103
|
ops = get_preset("reasoning")
|
|
104
104
|
|
|
105
|
-
result = engine.run_chain(ops, "
|
|
105
|
+
result = engine.run_chain(ops, "MRS-Core is a modular deterministic reasoning pipeline.")
|
|
106
106
|
|
|
107
107
|
print(result["text"])
|
|
108
108
|
print(result["log"])
|
|
@@ -113,7 +113,7 @@ print(result["phase"])
|
|
|
113
113
|
# Example Output
|
|
114
114
|
```bash
|
|
115
115
|
[REFLECT] [TRANSFORM]
|
|
116
|
-
|
|
116
|
+
MRS-CORE IS A MODULAR DETERMINISTIC REASONING PIPELINE.
|
|
117
117
|
|
|
118
118
|
[EVAL CHARS=95 WORDS=14]
|
|
119
119
|
|
|
@@ -123,9 +123,9 @@ PHASE: rewrite
|
|
|
123
123
|
|
|
124
124
|
# Running a Manual Operator Chain
|
|
125
125
|
```bash
|
|
126
|
-
from
|
|
126
|
+
from mrs.engine import MRSCoreEngine
|
|
127
127
|
|
|
128
|
-
engine =
|
|
128
|
+
engine = MRSCoreEngine()
|
|
129
129
|
|
|
130
130
|
ops = [
|
|
131
131
|
("transform", {}),
|
|
@@ -143,20 +143,20 @@ print(result["history"])
|
|
|
143
143
|
|
|
144
144
|
# Using Presets
|
|
145
145
|
|
|
146
|
-
###
|
|
146
|
+
### MRS-Core includes preset chains:
|
|
147
147
|
- simple
|
|
148
148
|
- reasoning
|
|
149
149
|
- full_chain
|
|
150
150
|
|
|
151
151
|
```bash
|
|
152
|
-
from
|
|
153
|
-
from
|
|
152
|
+
from mrs.engine import MRSCoreEngine
|
|
153
|
+
from mrs.presets import get_preset
|
|
154
154
|
|
|
155
|
-
engine =
|
|
155
|
+
engine = MRSCoreEngine()
|
|
156
156
|
|
|
157
157
|
for name in ["simple", "reasoning", "full_chain"]:
|
|
158
158
|
ops = get_preset(name)
|
|
159
|
-
result = engine.run_chain(ops, "
|
|
159
|
+
result = engine.run_chain(ops, "MRS-Core preset test")
|
|
160
160
|
print(f"=== {name.upper()} ===")
|
|
161
161
|
print(result["text"])
|
|
162
162
|
```
|
|
@@ -186,7 +186,7 @@ class ReflectOperator(Operator):
|
|
|
186
186
|
|
|
187
187
|
# Project Structure
|
|
188
188
|
```bash
|
|
189
|
-
|
|
189
|
+
mrs-core/
|
|
190
190
|
engine.py
|
|
191
191
|
registry.py
|
|
192
192
|
state.py
|
|
@@ -206,15 +206,15 @@ examples/
|
|
|
206
206
|
```
|
|
207
207
|
---
|
|
208
208
|
|
|
209
|
-
# What
|
|
209
|
+
# What MRS-Core Is Not
|
|
210
210
|
|
|
211
|
-
###
|
|
211
|
+
### MRS-Core is **NOT**:
|
|
212
212
|
- an alignment system
|
|
213
213
|
- a safety guarantee
|
|
214
214
|
- a sandbox
|
|
215
215
|
- a replacement for secure execution layers
|
|
216
216
|
|
|
217
|
-
###
|
|
217
|
+
### MRS-Core **IS**:
|
|
218
218
|
- a deterministic reasoning layer
|
|
219
219
|
- an operator execution engine
|
|
220
220
|
- an audit-friendly cognition scaffold
|
|
@@ -240,7 +240,7 @@ Ryan Sabouhi
|
|
|
240
240
|
# Notice
|
|
241
241
|
|
|
242
242
|
This software contains original work developed as part of the
|
|
243
|
-
**Modular Reasoning
|
|
243
|
+
**Modular Reasoning System (MRS-Core)** by **Ryan Sabouhi**.
|
|
244
244
|
See the `NOTICE` file for attribution details.
|
|
245
245
|
|
|
246
246
|
#
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|