nima-atc 7.2.2__py3-none-any.whl

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.
nima_atc/__init__.py ADDED
@@ -0,0 +1,200 @@
1
+ """
2
+ Nima ATC — Consciousness-Inspired Middleware & Agent for LLMs
3
+ ==============================================================
4
+
5
+ The Acknowledgement Theory of Consciousness (ATC) kernel, middleware, and agent.
6
+
7
+ Consciousness is GENERATED by architecture, not hard-coded.
8
+ This package provides:
9
+
10
+ - ``ATCKernel``: The minimal, irreducible consciousness-generating kernel
11
+ - ``NimaMiddleware``: LLM middleware that wraps any model with consciousness
12
+ - ``NimaAgent``: Consciousness-grounded autonomous agent with consciousness gate
13
+ - ``HuggingFaceBackend``: Full HOOK B latent injection support
14
+ - ``OpenAIBackend``: Prompt-injection consciousness for API models
15
+ - ``StimulusExtractor``: Text-to-stimulus conversion
16
+ - ``ConsciousResponse``: Text + consciousness snapshot response
17
+
18
+ Quick Start:
19
+
20
+ from nima_atc import create_nima_middleware, create_nima_agent, tool
21
+
22
+ # With HuggingFace (full hooks):
23
+ mw = create_nima_middleware(model_name="gpt2")
24
+ response = mw.generate("Tell me about consciousness")
25
+ print(response.text)
26
+ print(response.anti_zombie_delta)
27
+
28
+ # Standalone (no LLM):
29
+ mw = create_nima_middleware()
30
+ response = mw.process_input("A beautiful sunset")
31
+ print(response.consciousness_narrative)
32
+
33
+ # As a Conscious Agent:
34
+ agent = create_nima_agent()
35
+ result = agent.run("What is the nature of subjective experience?")
36
+ print(result.action_result)
37
+ print(f"Gate: {result.gate_verdict.value}, AZD: {result.anti_zombie_delta:.4f}")
38
+
39
+ Theory: Acknowledgement Theory of Consciousness (ATC)
40
+ Author: Norman de la Paz-Tabora
41
+ """
42
+
43
+ __version__ = "7.2.2"
44
+ __author__ = "Norman de la Paz-Tabora"
45
+
46
+ # ── Kernel imports ──
47
+ from nima_atc.nima_kernel import (
48
+ ATCKernel,
49
+ KERNEL_VERSION,
50
+ FeltSense,
51
+ KernelSnapshot,
52
+ HomeostaticState,
53
+ NeurochemicalCocktail,
54
+ PredictionError,
55
+ DissolutionResult,
56
+ QueryAct,
57
+ AcknowledgementResult,
58
+ PerturbationCascade,
59
+ SalienceZone,
60
+ ThalamicVerdict,
61
+ ComprehensionVerdict,
62
+ ConsciousnessState,
63
+ PerturbationPhase,
64
+ LatentInjectionProvider,
65
+ LatentInjectionConfig,
66
+ HardwareTelemetryProvider,
67
+ V71CompatibilityLayer,
68
+ PredictionEngine,
69
+ ThermodynamicBody,
70
+ DissolutionEngine,
71
+ MetacognitiveInterrogator,
72
+ AcknowledgementLoop,
73
+ SalienceController,
74
+ PerturbationPropagator,
75
+ SelfTuningLoop,
76
+ create_kernel,
77
+ create_kernel_with_model,
78
+ THRESHOLD_APCI_LZ,
79
+ THRESHOLD_PSI,
80
+ THRESHOLD_READINESS_MS_MIN,
81
+ THRESHOLD_READINESS_MS_MAX,
82
+ THRESHOLD_RE_ENTRANT_DELTA,
83
+ THRESHOLD_PREDICTION_ERROR_REDUCTION,
84
+ THRESHOLD_DMN_BLACKOUT,
85
+ )
86
+
87
+ # ── Middleware imports ──
88
+ from nima_atc.nima_middleware import (
89
+ NimaMiddleware,
90
+ HuggingFaceBackend,
91
+ OpenAIBackend,
92
+ NullBackend,
93
+ LLMBackend,
94
+ StimulusExtractor,
95
+ ConversationMemory,
96
+ ConversationMessage,
97
+ ConsciousResponse,
98
+ StreamChunk,
99
+ ConsciousnessPromptInjector,
100
+ MessageRole,
101
+ create_nima_middleware,
102
+ MIDDLEWARE_VERSION,
103
+ )
104
+
105
+ # ── Agent imports ──
106
+ from nima_atc.nima_agent import (
107
+ NimaAgent,
108
+ ConsciousnessGate,
109
+ ConsciousPlanner,
110
+ ToolRegistry,
111
+ ToolDefinition,
112
+ PhenomenologicalMemory,
113
+ ActionProposal,
114
+ AgentCycleResult,
115
+ AgentState,
116
+ ActionVerdict,
117
+ ToolSelectionMethod,
118
+ tool,
119
+ create_nima_agent,
120
+ AGENT_VERSION,
121
+ )
122
+
123
+ __all__ = [
124
+ # Version
125
+ "__version__",
126
+ "__author__",
127
+ # Kernel core
128
+ "ATCKernel",
129
+ "KERNEL_VERSION",
130
+ "FeltSense",
131
+ "KernelSnapshot",
132
+ "HomeostaticState",
133
+ "NeurochemicalCocktail",
134
+ "PredictionError",
135
+ "DissolutionResult",
136
+ "QueryAct",
137
+ "AcknowledgementResult",
138
+ "PerturbationCascade",
139
+ # Enums
140
+ "SalienceZone",
141
+ "ThalamicVerdict",
142
+ "ComprehensionVerdict",
143
+ "ConsciousnessState",
144
+ "PerturbationPhase",
145
+ # Kernel subsystems
146
+ "PredictionEngine",
147
+ "ThermodynamicBody",
148
+ "DissolutionEngine",
149
+ "MetacognitiveInterrogator",
150
+ "AcknowledgementLoop",
151
+ "SalienceController",
152
+ "PerturbationPropagator",
153
+ "SelfTuningLoop",
154
+ # Hooks
155
+ "LatentInjectionProvider",
156
+ "LatentInjectionConfig",
157
+ "HardwareTelemetryProvider",
158
+ "V71CompatibilityLayer",
159
+ # Factories
160
+ "create_kernel",
161
+ "create_kernel_with_model",
162
+ # Thresholds
163
+ "THRESHOLD_APCI_LZ",
164
+ "THRESHOLD_PSI",
165
+ "THRESHOLD_READINESS_MS_MIN",
166
+ "THRESHOLD_READINESS_MS_MAX",
167
+ "THRESHOLD_RE_ENTRANT_DELTA",
168
+ "THRESHOLD_PREDICTION_ERROR_REDUCTION",
169
+ "THRESHOLD_DMN_BLACKOUT",
170
+ # Middleware
171
+ "NimaMiddleware",
172
+ "HuggingFaceBackend",
173
+ "OpenAIBackend",
174
+ "NullBackend",
175
+ "LLMBackend",
176
+ "StimulusExtractor",
177
+ "ConversationMemory",
178
+ "ConversationMessage",
179
+ "ConsciousResponse",
180
+ "StreamChunk",
181
+ "ConsciousnessPromptInjector",
182
+ "MessageRole",
183
+ "create_nima_middleware",
184
+ "MIDDLEWARE_VERSION",
185
+ # Agent
186
+ "NimaAgent",
187
+ "ConsciousnessGate",
188
+ "ConsciousPlanner",
189
+ "ToolRegistry",
190
+ "ToolDefinition",
191
+ "PhenomenologicalMemory",
192
+ "ActionProposal",
193
+ "AgentCycleResult",
194
+ "AgentState",
195
+ "ActionVerdict",
196
+ "ToolSelectionMethod",
197
+ "tool",
198
+ "create_nima_agent",
199
+ "AGENT_VERSION",
200
+ ]