Spaces:
Running
Running
Update llm.js
Browse files
llm.js
CHANGED
|
@@ -1,6 +1,18 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
-
return { type: "inject", value: 0.04 };
|
| 6 |
}
|
|
|
|
| 1 |
+
// llm.js — Semantic Control Codec (NOT inference)
|
| 2 |
+
export class LLM {
|
| 3 |
+
handle(input, state) {
|
| 4 |
+
const cmd = input.toLowerCase();
|
| 5 |
+
|
| 6 |
+
if (cmd === "help") {
|
| 7 |
+
return;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
if (cmd.includes("spawn")) {
|
| 11 |
+
state.agents.spawn();
|
| 12 |
+
return;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
// Natural language maps to control signals
|
| 16 |
+
// Future: multiplex intent streams
|
| 17 |
}
|
|
|
|
| 18 |
}
|