Skip to content

Commit 1494182

Browse files
Create Ai.ts
1 parent 789ed04 commit 1494182

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Core/Features/Ai.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { kernel } from "@/core/kernel";
2+
3+
export const AIPlugin = {
4+
init(kernelInstance: typeof kernel) {
5+
kernelInstance.on("ai:query", async (prompt: string) => {
6+
console.log("AI request:", prompt);
7+
8+
// later connect OpenAI / local LLM here
9+
});
10+
}
11+
};

0 commit comments

Comments
 (0)