-
Notifications
You must be signed in to change notification settings - Fork 2
Brain and Tools en
The brain layer translates "human words" into "actions". It handles intent only — deciding what to do, not micromanaging how (that's Task System and Goal Engine).
- Receive a player message (or an
IdleCoordinatortrigger). - Query DeepSeek with a structured world snapshot (position, inventory, health, hunger, nearby blocks / entities, current task).
- The model returns one or more tool calls.
-
ActionDispatcherdispatches them one by one, feeding results back to the model. - Loop until a final reply or the
brain.maxTurnsPerRequestcap.
The caps (
maxTurnsPerRequest/maxToolCallsPerTurn) are a key guard — they stop the model from spiraling into token-burning "manual block-by-block" behavior. See Configuration.
Besides routing calls to handlers, it does safety interception:
-
Right after a goal fails, it blocks the model from switching to manual block-by-block ops —
move_to/mine_block/strip_mine(andassign_task{move/mine/strip_mine}). Those burn turns and can dig the bot into water / lava / a mob pit and get it killed. Blocked, the model is nudged back to high-level goals (mine_oreauto-locates ore,gatherauto-finds resources) or to stop.
Tools fall into four groups; the last three can be toggled in the brain config (see Configuration):
The entry to back-chaining and deterministic tasks — the model should prefer these.
achieve_goal · achieve_armor · achieve_workstation · set_goal · advance_goal · goal_status · assign_task · mine_ore · mine_vein · gather · craft · plan_craft · smelt · eat · farm · harvest_crop · harvest · fish · trade · breed · sleep · light_area · stockpile · guard · follow · hold · equip_armor · equip_best_tool · attack · attack_entity · stop · get_task_status · abort_task · inventory · find_container · deposit · deposit_all · withdraw · goto_place · say · tell_bot
Fine-grained ops; can be disabled to steer the model toward high-level routes.
move_to · mine_block · place_block · look_at · select_hotbar …
remember · recall · forget · mark_place · set_base …
post_job · list_jobs …
The full tool list and exact grouping live in
ToolRegistry;/aibot brain statusshows the actually-available tools and call activity in-game.
A pure LLM driving the world "hallucinates actions" and is unreliable. AIBot has the model emit intent-level tool calls only and leaves real execution to the deterministic engine — that's where LLM plans, Tasks execute lands.
Further reading: Goal Engine · Task System · Safety Net
AIBot · GitHub · MIT License · LLM plans · Tasks execute · Bob survives
新手上路
理解原理
参与开发
- Home
- Getting Started
- Commands
- Configuration
- Client Panel
- Architecture
- Goal Engine
- Task System
- Brain & Tools
- Safety Net
- Developer Guide
- FAQ
主仓库 · MIT