LordXido commited on
Commit
b3dcd81
·
verified ·
1 Parent(s): df80484

Update llm.js

Browse files
Files changed (1) hide show
  1. llm.js +16 -4
llm.js CHANGED
@@ -1,6 +1,18 @@
1
- export async function llmIntent(text) {
2
- if (text.includes("explore")) {
3
- return { type: "web", url: "wikipedia.org" };
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  }