|
7 | 7 | **CoreAI is a Unity framework for LLM-powered NPCs and agents that call your game code** — function calling, tools, persistent memory, and runtime Lua — running on a **local 4 GB model** or any **OpenAI-compatible API**. No cloud keys required, no scripted dialogue trees. |
8 | 8 |
|
9 | 9 | [](https://github.com/NeoXider/CoreAI/actions/workflows/ci.yml) |
10 | | -[](https://github.com/NeoXider/CoreAI/actions/workflows/ci.yml) |
| 10 | +[](https://github.com/NeoXider/CoreAI/actions/workflows/ci.yml) |
11 | 11 | [](https://unity.com/releases/editor) |
12 | 12 | [](#-recommended-models) |
13 | 13 | [](LICENSE) |
@@ -270,7 +270,7 @@ AI doesn't just generate text — it **calls code** for real actions: |
270 | 270 | | 🎒 **InventoryTool** | Gets NPC inventory | Merchant AI | |
271 | 271 | | ⚙️ **GameConfigTool** | Reads/modifies game configs | Creator AI | |
272 | 272 | | 🎭 **SceneLlmTool** | Read and change hierarchy/transform in PlayMode | All Agents | |
273 | | -| 📸 **CameraLlmTool** | Captures screenshots (Base64 JPEG) for Vision | All Agents | |
| 273 | +| 📸 **CameraLlmTool** | Captures screenshots (Base64 JPEG) for Vision — endpoint image support is **auto-detected** (a one-shot probe), or force it with the **Detect** button in Settings | All Agents | |
274 | 274 |
|
275 | 275 | **Create your own:** |
276 | 276 | ```csharp |
@@ -381,6 +381,7 @@ Small models (Qwen3.5-2B) sometimes forget the format or case of tool names. Cor |
381 | 381 | - ♻️ **Retries on failure** — up to **3 retries** with error feedback injected into chat history so the model self-corrects. |
382 | 382 | - 🌐 **Retries HTTP errors** — `429 (Rate Limited)` and `5xx` responses trigger automatic retry with `Retry-After` header support or exponential backoff (**2s → 4s**, configurable in Inspector). |
383 | 383 | - ✅ **Checks fenced Lua blocks** immediately. |
| 384 | +- 🩹 **Loaded mods self-heal at runtime** — add the `CoreAiLuaModAutoRepair` component and a mod that starts throwing hands its source + error to the **Programmer**, which rewrites it and `manage_mods reload`s it live (debounced, attempt-capped, so no repair loops). |
384 | 385 |
|
385 | 386 | ``` |
386 | 387 | Model says: {"name":"MEMORY", ...} |
@@ -446,7 +447,7 @@ The repository ships as **five UPM packages**. Only the first two are required; |
446 | 447 | | **[com.neoxider.coreai](Assets/CoreAI)** | Portable core — pure C# **without** Unity: orchestration, tools, memory, routing | — | |
447 | 448 | | **[com.neoxider.coreaiunity](Assets/CoreAiUnity)** | Unity host — DI (VContainer), LLM clients (MEAI), MessagePipe, chat UI, tests | `coreai` | |
448 | 449 | | **[com.neoxider.coreaimods](Assets/CoreAIMods)** | Optional Lua modding layer — Lua-CSharp sandbox, `execute_lua` / `manage_mods` tools, mod runtime | `coreai` + `coreaiunity` | |
449 | | -| **[com.neoxider.coreaihub](Assets/CoreAIHub)** | Optional UI Toolkit Hub window — tabbed pages (Chat, Settings, Statistics, Mods) | `coreai` + `coreaiunity` | |
| 450 | +| **[com.neoxider.coreaihub](Assets/CoreAIHub)** | Optional UI Toolkit Hub window — tabbed pages (Chat, Settings, Statistics, Mods) with reusable grouped **sub-tabs** (e.g. Mods + Logs) | `coreai` + `coreaiunity` | |
450 | 451 | | **[com.neoxider.coreaibenchmark](Assets/CoreAIBenchmark)** | Dev/test-only LLM game-creation benchmark harness | `coreai` + `coreaiunity` + `coreaimods` | |
451 | 452 |
|
452 | 453 | Mods and Hub are independent optional installs — neither requires the other. When **both** are present, Mods' Hub integration assembly (`CoreAI.Mods.Hub`) auto-enables via the `COREAI_HAS_HUB` version define, adding a Mods page to the Hub window; without Hub installed, that assembly compiles out and Mods works standalone (`execute_lua`/`manage_mods` tools, no Hub UI). |
|
0 commit comments