entropic-core 1.0.0__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.
- entropic_core-1.0.0/LICENSE +21 -0
- entropic_core-1.0.0/PKG-INFO +403 -0
- entropic_core-1.0.0/README.md +329 -0
- entropic_core-1.0.0/benchmarks/__init__.py +7 -0
- entropic_core-1.0.0/benchmarks/load_test.py +120 -0
- entropic_core-1.0.0/benchmarks/memory_profile.py +96 -0
- entropic_core-1.0.0/benchmarks/performance_test.py +187 -0
- entropic_core-1.0.0/entropic_core/__init__.py +34 -0
- entropic_core-1.0.0/entropic_core/advanced/__init__.py +11 -0
- entropic_core-1.0.0/entropic_core/advanced/causal_analyzer.py +372 -0
- entropic_core-1.0.0/entropic_core/advanced/predictive_engine.py +398 -0
- entropic_core-1.0.0/entropic_core/advanced/security_layer.py +545 -0
- entropic_core-1.0.0/entropic_core/advanced/simulation_mode.py +428 -0
- entropic_core-1.0.0/entropic_core/brain.py +637 -0
- entropic_core-1.0.0/entropic_core/cli.py +391 -0
- entropic_core-1.0.0/entropic_core/config.py +57 -0
- entropic_core-1.0.0/entropic_core/conversion/__init__.py +6 -0
- entropic_core-1.0.0/entropic_core/conversion/converter.py +207 -0
- entropic_core-1.0.0/entropic_core/conversion/tracker.py +218 -0
- entropic_core-1.0.0/entropic_core/core/__init__.py +11 -0
- entropic_core-1.0.0/entropic_core/core/agent_adapter.py +154 -0
- entropic_core-1.0.0/entropic_core/core/entropy_monitor.py +174 -0
- entropic_core-1.0.0/entropic_core/core/entropy_regulator.py +130 -0
- entropic_core-1.0.0/entropic_core/core/evolutionary_memory.py +704 -0
- entropic_core-1.0.0/entropic_core/diagnosis/__init__.py +6 -0
- entropic_core-1.0.0/entropic_core/diagnosis/diagnostic_scripts.py +252 -0
- entropic_core-1.0.0/entropic_core/diagnosis/problem_detector.py +432 -0
- entropic_core-1.0.0/entropic_core/discovery/__init__.py +6 -0
- entropic_core-1.0.0/entropic_core/discovery/llm_discoverer.py +284 -0
- entropic_core-1.0.0/entropic_core/discovery/setup_wizard.py +145 -0
- entropic_core-1.0.0/entropic_core/enterprise/__init__.py +5 -0
- entropic_core-1.0.0/entropic_core/enterprise/compliance.py +366 -0
- entropic_core-1.0.0/entropic_core/enterprise/marketplace.py +256 -0
- entropic_core-1.0.0/entropic_core/enterprise/orchestrator.py +263 -0
- entropic_core-1.0.0/entropic_core/enterprise/report_generator.py +112 -0
- entropic_core-1.0.0/entropic_core/i18n/__init__.py +3 -0
- entropic_core-1.0.0/entropic_core/i18n/translations.py +181 -0
- entropic_core-1.0.0/entropic_core/integrations/__init__.py +10 -0
- entropic_core-1.0.0/entropic_core/integrations/autogen_adapter.py +339 -0
- entropic_core-1.0.0/entropic_core/integrations/crewai_adapter.py +273 -0
- entropic_core-1.0.0/entropic_core/integrations/custom_builder.py +418 -0
- entropic_core-1.0.0/entropic_core/integrations/langchain_adapter.py +225 -0
- entropic_core-1.0.0/entropic_core/messaging/__init__.py +5 -0
- entropic_core-1.0.0/entropic_core/messaging/messages.py +185 -0
- entropic_core-1.0.0/entropic_core/optimization/__init__.py +17 -0
- entropic_core-1.0.0/entropic_core/optimization/async_operations.py +170 -0
- entropic_core-1.0.0/entropic_core/optimization/batch_processor.py +223 -0
- entropic_core-1.0.0/entropic_core/optimization/caching_layer.py +245 -0
- entropic_core-1.0.0/entropic_core/optimization/connection_pool.py +212 -0
- entropic_core-1.0.0/entropic_core/plugins/__init__.py +11 -0
- entropic_core-1.0.0/entropic_core/plugins/builtin/__init__.py +1 -0
- entropic_core-1.0.0/entropic_core/plugins/builtin/slack_notifier.py +70 -0
- entropic_core-1.0.0/entropic_core/plugins/plugin_api.py +130 -0
- entropic_core-1.0.0/entropic_core/plugins/plugin_loader.py +170 -0
- entropic_core-1.0.0/entropic_core/plugins/plugin_manager.py +208 -0
- entropic_core-1.0.0/entropic_core/quickstart.py +158 -0
- entropic_core-1.0.0/entropic_core/streaming/__init__.py +4 -0
- entropic_core-1.0.0/entropic_core/streaming/event_emitter.py +77 -0
- entropic_core-1.0.0/entropic_core/streaming/websocket_server.py +237 -0
- entropic_core-1.0.0/entropic_core/telemetry/__init__.py +6 -0
- entropic_core-1.0.0/entropic_core/telemetry/collector.py +190 -0
- entropic_core-1.0.0/entropic_core/telemetry/reporter.py +129 -0
- entropic_core-1.0.0/entropic_core/utils/__init__.py +8 -0
- entropic_core-1.0.0/entropic_core/utils/config_manager.py +193 -0
- entropic_core-1.0.0/entropic_core/utils/health_monitor.py +283 -0
- entropic_core-1.0.0/entropic_core/visualization/__init__.py +5 -0
- entropic_core-1.0.0/entropic_core/visualization/alert_system.py +176 -0
- entropic_core-1.0.0/entropic_core/visualization/dashboard.py +416 -0
- entropic_core-1.0.0/entropic_core/visualization/report_generator.py +479 -0
- entropic_core-1.0.0/entropic_core.egg-info/PKG-INFO +403 -0
- entropic_core-1.0.0/entropic_core.egg-info/SOURCES.txt +87 -0
- entropic_core-1.0.0/entropic_core.egg-info/dependency_links.txt +1 -0
- entropic_core-1.0.0/entropic_core.egg-info/entry_points.txt +8 -0
- entropic_core-1.0.0/entropic_core.egg-info/requires.txt +40 -0
- entropic_core-1.0.0/entropic_core.egg-info/top_level.txt +2 -0
- entropic_core-1.0.0/setup.cfg +4 -0
- entropic_core-1.0.0/setup.py +98 -0
- entropic_core-1.0.0/tests/test_advanced.py +326 -0
- entropic_core-1.0.0/tests/test_conversion.py +190 -0
- entropic_core-1.0.0/tests/test_core.py +77 -0
- entropic_core-1.0.0/tests/test_diagnosis.py +179 -0
- entropic_core-1.0.0/tests/test_enterprise.py +258 -0
- entropic_core-1.0.0/tests/test_integration.py +355 -0
- entropic_core-1.0.0/tests/test_integrations.py +134 -0
- entropic_core-1.0.0/tests/test_optimization.py +163 -0
- entropic_core-1.0.0/tests/test_plugins.py +227 -0
- entropic_core-1.0.0/tests/test_real_integrations.py +132 -0
- entropic_core-1.0.0/tests/test_security_comprehensive.py +225 -0
- entropic_core-1.0.0/tests/test_streaming.py +193 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Entropic Core Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: entropic-core
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: 100% FREE entropy monitoring and regulation for multi-agent systems
|
|
5
|
+
Home-page: https://github.com/entropic-core/entropic-core
|
|
6
|
+
Author: Entropic Core Team
|
|
7
|
+
Author-email: info@entropic-core.com
|
|
8
|
+
Project-URL: Bug Reports, https://github.com/entropic-core/entropic-core/issues
|
|
9
|
+
Project-URL: Source, https://github.com/entropic-core/entropic-core
|
|
10
|
+
Project-URL: Documentation, https://entropic-core.readthedocs.io
|
|
11
|
+
Project-URL: Discord, https://discord.gg/entropic-core
|
|
12
|
+
Keywords: ai agents multi-agent entropy regulation homeostasis machine-learning
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
17
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Operating System :: OS Independent
|
|
24
|
+
Requires-Python: >=3.8
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: numpy>=1.20.0
|
|
28
|
+
Requires-Dist: typing-extensions>=4.0.0
|
|
29
|
+
Requires-Dist: requests>=2.25.0
|
|
30
|
+
Requires-Dist: click>=8.0.0
|
|
31
|
+
Provides-Extra: analytics
|
|
32
|
+
Requires-Dist: scipy>=1.7.0; extra == "analytics"
|
|
33
|
+
Requires-Dist: scikit-learn>=1.0.0; extra == "analytics"
|
|
34
|
+
Provides-Extra: visualization
|
|
35
|
+
Requires-Dist: flask>=2.0.0; extra == "visualization"
|
|
36
|
+
Requires-Dist: flask-cors>=3.0.0; extra == "visualization"
|
|
37
|
+
Requires-Dist: plotly>=5.0.0; extra == "visualization"
|
|
38
|
+
Requires-Dist: pandas>=1.3.0; extra == "visualization"
|
|
39
|
+
Provides-Extra: reports
|
|
40
|
+
Requires-Dist: reportlab>=3.6.0; extra == "reports"
|
|
41
|
+
Provides-Extra: streaming
|
|
42
|
+
Requires-Dist: websockets>=10.0; extra == "streaming"
|
|
43
|
+
Requires-Dist: aiohttp>=3.8.0; extra == "streaming"
|
|
44
|
+
Provides-Extra: full
|
|
45
|
+
Requires-Dist: scipy>=1.7.0; extra == "full"
|
|
46
|
+
Requires-Dist: scikit-learn>=1.0.0; extra == "full"
|
|
47
|
+
Requires-Dist: flask>=2.0.0; extra == "full"
|
|
48
|
+
Requires-Dist: flask-cors>=3.0.0; extra == "full"
|
|
49
|
+
Requires-Dist: plotly>=5.0.0; extra == "full"
|
|
50
|
+
Requires-Dist: pandas>=1.3.0; extra == "full"
|
|
51
|
+
Requires-Dist: reportlab>=3.6.0; extra == "full"
|
|
52
|
+
Requires-Dist: websockets>=10.0; extra == "full"
|
|
53
|
+
Requires-Dist: aiohttp>=3.8.0; extra == "full"
|
|
54
|
+
Provides-Extra: dev
|
|
55
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
56
|
+
Requires-Dist: pytest-cov>=3.0.0; extra == "dev"
|
|
57
|
+
Requires-Dist: pytest-asyncio>=0.20.0; extra == "dev"
|
|
58
|
+
Requires-Dist: black>=22.0.0; extra == "dev"
|
|
59
|
+
Requires-Dist: flake8>=4.0.0; extra == "dev"
|
|
60
|
+
Requires-Dist: mypy>=0.950; extra == "dev"
|
|
61
|
+
Dynamic: author
|
|
62
|
+
Dynamic: author-email
|
|
63
|
+
Dynamic: classifier
|
|
64
|
+
Dynamic: description
|
|
65
|
+
Dynamic: description-content-type
|
|
66
|
+
Dynamic: home-page
|
|
67
|
+
Dynamic: keywords
|
|
68
|
+
Dynamic: license-file
|
|
69
|
+
Dynamic: project-url
|
|
70
|
+
Dynamic: provides-extra
|
|
71
|
+
Dynamic: requires-dist
|
|
72
|
+
Dynamic: requires-python
|
|
73
|
+
Dynamic: summary
|
|
74
|
+
|
|
75
|
+
# Entropic Core v1.0
|
|
76
|
+
|
|
77
|
+
**100% FREE & OPEN SOURCE entropy regulation for multi-agent AI systems.**
|
|
78
|
+
|
|
79
|
+
Entropic Core monitors and automatically regulates chaos in multi-agent systems, preventing both system collapse and stagnation. Think of it as a thermostat for your AI agents.
|
|
80
|
+
|
|
81
|
+
## What Makes This Special?
|
|
82
|
+
|
|
83
|
+
- **Completely FREE** - No tiers, no limits, no paywalls
|
|
84
|
+
- **Open Source** - MIT License, use it anywhere
|
|
85
|
+
- **No API Keys Required** - Works entirely locally
|
|
86
|
+
- **Production Ready** - Battle-tested algorithms
|
|
87
|
+
- **Framework Agnostic** - Works with AutoGen, LangChain, CrewAI, or custom agents
|
|
88
|
+
|
|
89
|
+
## What Problem Does It Solve?
|
|
90
|
+
|
|
91
|
+
Multi-agent systems have a critical problem: they either become too chaotic (agents conflict, system crashes) or too ordered (agents stagnate, no innovation). Entropic Core solves this by:
|
|
92
|
+
|
|
93
|
+
1. **Measuring entropy** across 3 dimensions (decisions, state dispersion, communication)
|
|
94
|
+
2. **Automatically regulating** the system to maintain optimal chaos/order balance
|
|
95
|
+
3. **Learning patterns** to prevent future failures
|
|
96
|
+
4. **Predicting problems** before they happen
|
|
97
|
+
5. **Diagnosing root causes** when issues occur
|
|
98
|
+
|
|
99
|
+
## Quick Start
|
|
100
|
+
|
|
101
|
+
### Installation
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Basic installation (core features)
|
|
105
|
+
pip install entropic-core
|
|
106
|
+
|
|
107
|
+
# Full installation (all features)
|
|
108
|
+
pip install entropic-core[full]
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Basic Usage
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
from entropic_core import EntropyBrain
|
|
115
|
+
|
|
116
|
+
# Initialize
|
|
117
|
+
brain = EntropyBrain()
|
|
118
|
+
|
|
119
|
+
# Connect your agents (unlimited)
|
|
120
|
+
brain.connect([agent1, agent2, agent3])
|
|
121
|
+
|
|
122
|
+
# Monitor and regulate automatically
|
|
123
|
+
brain.run(cycles=100)
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Integration with AutoGen
|
|
127
|
+
|
|
128
|
+
```python
|
|
129
|
+
from autogen import AssistantAgent
|
|
130
|
+
from entropic_core import EntropyBrain
|
|
131
|
+
|
|
132
|
+
# Your existing AutoGen agents
|
|
133
|
+
writer = AssistantAgent("writer", llm_config={...})
|
|
134
|
+
critic = AssistantAgent("critic", llm_config={...})
|
|
135
|
+
|
|
136
|
+
# Add entropy monitoring
|
|
137
|
+
brain = EntropyBrain()
|
|
138
|
+
brain.connect([writer, critic])
|
|
139
|
+
|
|
140
|
+
# Run with entropy awareness
|
|
141
|
+
for i in range(10):
|
|
142
|
+
writer.generate_reply(messages)
|
|
143
|
+
|
|
144
|
+
# Measure and regulate
|
|
145
|
+
metrics = brain.measure()
|
|
146
|
+
if metrics['combined'] > 0.8:
|
|
147
|
+
brain.regulate() # Automatically stabilizes
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## All Features Included (100% Free)
|
|
151
|
+
|
|
152
|
+
### Core Features
|
|
153
|
+
- Real-time entropy monitoring (3 metrics)
|
|
154
|
+
- Automatic chaos/order regulation
|
|
155
|
+
- SQLite/PostgreSQL memory storage
|
|
156
|
+
- Universal agent adapter
|
|
157
|
+
- Pattern learning and recognition
|
|
158
|
+
- Unlimited agents
|
|
159
|
+
- Unlimited measurements
|
|
160
|
+
|
|
161
|
+
### Advanced Analytics
|
|
162
|
+
- **Causal Analysis** - Diagnoses WHY entropy spiked
|
|
163
|
+
- **Predictive Forecasting** - Predicts failures before they happen
|
|
164
|
+
- **Anomaly Detection** - Catches unusual patterns
|
|
165
|
+
- **Pattern Recognition** - Learns from history
|
|
166
|
+
- **Time Series Analysis** - Tracks entropy trends
|
|
167
|
+
|
|
168
|
+
### Enterprise Features
|
|
169
|
+
- Real-time web dashboard
|
|
170
|
+
- Automated PDF/HTML reports
|
|
171
|
+
- Multi-system orchestration
|
|
172
|
+
- Compliance logging & audit trails
|
|
173
|
+
- REST API
|
|
174
|
+
- Slack/Email/Webhook alerts
|
|
175
|
+
|
|
176
|
+
## Examples
|
|
177
|
+
|
|
178
|
+
### Example 1: Basic Monitoring
|
|
179
|
+
|
|
180
|
+
```python
|
|
181
|
+
from entropic_core import EntropyBrain
|
|
182
|
+
from entropic_core.core.agent_adapter import AgentAdapter
|
|
183
|
+
|
|
184
|
+
# Create mock agents
|
|
185
|
+
agents = [
|
|
186
|
+
AgentAdapter.create_mock_agent(f"agent_{i}", behavior='balanced')
|
|
187
|
+
for i in range(5)
|
|
188
|
+
]
|
|
189
|
+
|
|
190
|
+
# Initialize brain
|
|
191
|
+
brain = EntropyBrain(auto_regulate=True)
|
|
192
|
+
brain.connect(agents)
|
|
193
|
+
|
|
194
|
+
# Run for 10 cycles
|
|
195
|
+
brain.run(cycles=10)
|
|
196
|
+
|
|
197
|
+
# Get status
|
|
198
|
+
status = brain.get_status()
|
|
199
|
+
print(f"Current entropy: {status['current_entropy']:.3f}")
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Example 2: Causal Diagnosis
|
|
203
|
+
|
|
204
|
+
```python
|
|
205
|
+
from entropic_core import EntropyBrain
|
|
206
|
+
|
|
207
|
+
brain = EntropyBrain()
|
|
208
|
+
brain.connect(my_agents)
|
|
209
|
+
|
|
210
|
+
# Build history
|
|
211
|
+
for i in range(20):
|
|
212
|
+
my_agents[i % len(my_agents)].act(observation)
|
|
213
|
+
brain.measure()
|
|
214
|
+
|
|
215
|
+
# Diagnose problems
|
|
216
|
+
diagnosis = brain.diagnose()
|
|
217
|
+
print(f"Root cause: {diagnosis['primary_cause']}")
|
|
218
|
+
print(f"Confidence: {diagnosis['confidence']:.1%}")
|
|
219
|
+
print(f"Fix: {diagnosis['suggested_fix']}")
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Example 3: Predictive Monitoring
|
|
223
|
+
|
|
224
|
+
```python
|
|
225
|
+
brain = EntropyBrain()
|
|
226
|
+
brain.connect(my_agents)
|
|
227
|
+
|
|
228
|
+
# Get forecast
|
|
229
|
+
forecast = brain.forecast(steps=10)
|
|
230
|
+
print(f"Risk level: {forecast['risk_level']}")
|
|
231
|
+
|
|
232
|
+
if forecast['time_to_collapse']:
|
|
233
|
+
print(f"WARNING: Collapse in {forecast['time_to_collapse']} steps!")
|
|
234
|
+
print("Recommended actions:")
|
|
235
|
+
for action in forecast['recommended_preventive_actions']:
|
|
236
|
+
print(f" - {action}")
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
## How It Works
|
|
240
|
+
|
|
241
|
+
### 1. Entropy Measurement
|
|
242
|
+
|
|
243
|
+
Entropic Core calculates entropy across three dimensions:
|
|
244
|
+
|
|
245
|
+
- **Decision Entropy**: How unpredictable agent decisions are (Shannon entropy)
|
|
246
|
+
- **State Dispersion**: How different agent states are from each other
|
|
247
|
+
- **Communication Complexity**: How much inter-agent communication is happening
|
|
248
|
+
|
|
249
|
+
These combine into a single "combined entropy" score from 0 to 1.
|
|
250
|
+
|
|
251
|
+
### 2. Automatic Regulation
|
|
252
|
+
|
|
253
|
+
Based on entropy levels, the system takes action:
|
|
254
|
+
|
|
255
|
+
- **High entropy (>0.8)**: System too chaotic → Reduce exploration, merge similar agents, enforce protocols
|
|
256
|
+
- **Low entropy (<0.2)**: System too ordered → Inject randomness, create explorer agents, relax constraints
|
|
257
|
+
- **Optimal (0.4-0.6)**: Maintain homeostasis → Fine-tune parameters
|
|
258
|
+
|
|
259
|
+
### 3. Learning & Memory
|
|
260
|
+
|
|
261
|
+
Every decision and outcome is stored in SQLite/PostgreSQL:
|
|
262
|
+
|
|
263
|
+
- **Events**: What happened and when
|
|
264
|
+
- **Patterns**: What worked in similar situations
|
|
265
|
+
- **Rules**: Which regulations were effective
|
|
266
|
+
- **Metrics**: Time-series entropy data
|
|
267
|
+
|
|
268
|
+
The system learns from history to make better decisions over time.
|
|
269
|
+
|
|
270
|
+
### 4. Causal Analysis
|
|
271
|
+
|
|
272
|
+
When entropy spikes, the causal analyzer:
|
|
273
|
+
|
|
274
|
+
1. Analyzes correlations in recent history
|
|
275
|
+
2. Identifies root causes with confidence scores
|
|
276
|
+
3. Searches for similar past events
|
|
277
|
+
4. Generates specific fix recommendations
|
|
278
|
+
|
|
279
|
+
### 5. Predictive Engine
|
|
280
|
+
|
|
281
|
+
The predictive engine:
|
|
282
|
+
|
|
283
|
+
1. Forecasts entropy using time-series analysis
|
|
284
|
+
2. Predicts time until system collapse or stagnation
|
|
285
|
+
3. Detects anomalies using statistical methods
|
|
286
|
+
4. Recommends preventive actions
|
|
287
|
+
|
|
288
|
+
## Architecture
|
|
289
|
+
|
|
290
|
+
```
|
|
291
|
+
entropic-core/
|
|
292
|
+
├── core/ # Core modules (always included)
|
|
293
|
+
│ ├── entropy_monitor.py # Measures entropy
|
|
294
|
+
│ ├── entropy_regulator.py # Takes regulatory action
|
|
295
|
+
│ ├── evolutionary_memory.py # Persistent storage
|
|
296
|
+
│ └── agent_adapter.py # Universal agent wrapper
|
|
297
|
+
│
|
|
298
|
+
├── advanced/ # Advanced analytics (free)
|
|
299
|
+
│ ├── causal_analyzer.py # Root cause diagnosis
|
|
300
|
+
│ ├── predictive_engine.py # Forecasting & anomalies
|
|
301
|
+
│ ├── simulation_mode.py # Scenario simulation
|
|
302
|
+
│ └── security_layer.py # Attack detection
|
|
303
|
+
│
|
|
304
|
+
├── integrations/ # Framework adapters (free)
|
|
305
|
+
│ ├── autogen_adapter.py # AutoGen integration
|
|
306
|
+
│ ├── langchain_adapter.py # LangChain integration
|
|
307
|
+
│ └── custom_builder.py # Custom adapter builder
|
|
308
|
+
│
|
|
309
|
+
├── visualization/ # Dashboards & reports (free)
|
|
310
|
+
│ ├── dashboard.py # Real-time web dashboard
|
|
311
|
+
│ ├── report_generator.py # Automated reports
|
|
312
|
+
│ └── alert_system.py # Multi-channel alerts
|
|
313
|
+
│
|
|
314
|
+
├── enterprise/ # Enterprise features (free)
|
|
315
|
+
│ ├── orchestrator.py # Multi-system coordination
|
|
316
|
+
│ ├── compliance.py # Audit & compliance
|
|
317
|
+
│ └── marketplace.py # Pattern sharing
|
|
318
|
+
│
|
|
319
|
+
└── brain.py # Main orchestrator
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
## Framework Integrations
|
|
323
|
+
|
|
324
|
+
Entropic Core works with any agent framework:
|
|
325
|
+
|
|
326
|
+
- **AutoGen**: Full integration with conversation agents
|
|
327
|
+
- **LangChain**: Compatible with chains and agents
|
|
328
|
+
- **CrewAI**: Works with crew-based systems
|
|
329
|
+
- **Custom**: Universal adapter for any agent architecture
|
|
330
|
+
|
|
331
|
+
## Performance
|
|
332
|
+
|
|
333
|
+
- **Overhead**: <5ms per measurement cycle
|
|
334
|
+
- **Memory**: ~10MB base + 1KB per agent
|
|
335
|
+
- **Storage**: ~1MB per 10,000 cycles
|
|
336
|
+
- **Scalability**: Tested with 1,000+ agents
|
|
337
|
+
|
|
338
|
+
## Use Cases
|
|
339
|
+
|
|
340
|
+
### Financial Trading
|
|
341
|
+
Monitor multi-agent trading systems to prevent both runaway risk and missed opportunities.
|
|
342
|
+
|
|
343
|
+
### Game Development
|
|
344
|
+
Keep NPC behaviors interesting but not chaotic, preventing both boredom and frustration.
|
|
345
|
+
|
|
346
|
+
### Research Labs
|
|
347
|
+
Coordinate multiple research agents exploring solution spaces without getting stuck or diverging.
|
|
348
|
+
|
|
349
|
+
### Production Systems
|
|
350
|
+
Ensure agent-based microservices maintain healthy communication patterns without overload.
|
|
351
|
+
|
|
352
|
+
## Installation Options
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
# Minimal (core only)
|
|
356
|
+
pip install entropic-core
|
|
357
|
+
|
|
358
|
+
# With advanced analytics
|
|
359
|
+
pip install entropic-core scipy scikit-learn
|
|
360
|
+
|
|
361
|
+
# With visualization
|
|
362
|
+
pip install entropic-core flask plotly pandas
|
|
363
|
+
|
|
364
|
+
# Everything (recommended)
|
|
365
|
+
pip install entropic-core[full]
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
## Why 100% Free?
|
|
369
|
+
|
|
370
|
+
We believe that fundamental infrastructure for AI safety should be accessible to everyone. Entropic Core is:
|
|
371
|
+
|
|
372
|
+
- **MIT Licensed** - Use it anywhere, including commercial projects
|
|
373
|
+
- **No Hidden Costs** - No API calls, no cloud services required
|
|
374
|
+
- **Community Driven** - Contributions welcome
|
|
375
|
+
- **Research Friendly** - Perfect for academic use
|
|
376
|
+
|
|
377
|
+
## Support & Community
|
|
378
|
+
|
|
379
|
+
- **Documentation**: https://github.com/entropic-core/entropic-core/wiki
|
|
380
|
+
- **Issues**: https://github.com/entropic-core/entropic-core/issues
|
|
381
|
+
- **Discussions**: https://github.com/entropic-core/entropic-core/discussions
|
|
382
|
+
- **Discord**: [Join our community](https://discord.gg/entropic-core)
|
|
383
|
+
|
|
384
|
+
## Contributing
|
|
385
|
+
|
|
386
|
+
We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
387
|
+
|
|
388
|
+
## License
|
|
389
|
+
|
|
390
|
+
MIT License - Use it anywhere, no restrictions.
|
|
391
|
+
|
|
392
|
+
## Citation
|
|
393
|
+
|
|
394
|
+
If you use Entropic Core in research, please cite:
|
|
395
|
+
|
|
396
|
+
```bibtex
|
|
397
|
+
@software{entropic_core_2025,
|
|
398
|
+
title={Entropic Core: Entropy Regulation for Multi-Agent Systems},
|
|
399
|
+
author={Entropic Core Team},
|
|
400
|
+
year={2025},
|
|
401
|
+
url={https://github.com/entropic-core/entropic-core},
|
|
402
|
+
license={MIT}
|
|
403
|
+
}
|