Agent Providers Reference
Providers supply game context to ElizaOS agents, enabling the LLM to make informed decisions. There are 10 providers that run before each agent decision.Providers are defined in
packages/plugin-hyperscape/src/providers/. PR #628 added 3 new providers for enhanced LLM decision-making.Provider Execution Order
Providers run in a specific order to ensure dependencies are met:- goalProvider - Current goal (runs first for goal-aware decisions)
- gameStateProvider - Health, position, combat status
- inventoryProvider - Items and equipment
- nearbyEntitiesProvider - Surrounding entities
- skillsProvider - Skill levels and XP
- equipmentProvider - Currently equipped items
- availableActionsProvider - Context-aware action list
- possibilitiesProvider - What actions are currently possible (NEW)
- goalTemplatesProvider - Structured goal templates (NEW)
- guardrailsProvider - Safety constraints and warnings (NEW)
Goal Provider
Provides the agent’s current goal and progress.Output Example
Game State Provider
Provides core player status information.Output Example
Inventory Provider
Provides inventory contents and capacity.Output Example
Nearby Entities Provider
Provides information about surrounding entities.Output Example
Skills Provider
Provides skill levels and XP progress.Output Example
Equipment Provider
Provides currently equipped items.Output Example
Available Actions Provider
Provides context-aware list of available actions.Output Example
Possibilities Provider
Analyzes inventory and nearby entities to determine what’s currently possible.Output Example
Goal Templates Provider
Provides structured goal templates for OSRS beginner flows.Goal Template Structure
Output Example
woodcutting,mining,fishing- Gathering skillssmithing,firemaking,cooking- Artisan skillscombat- Combat trainingexploration- Discover new areasstarter_items- Acquire basic tools
Guardrails Provider
Provides safety constraints and warnings to prevent dangerous decisions.Output Example
critical- Immediate danger, must addresswarning- Risky situation, should addressinfo- Informational, nice to address
Custom Providers
You can create custom providers for additional context:Possibilities Provider
Tells the LLM what actions are currently possible based on inventory, skills, and nearby entities.Output Example
Goal Templates Provider
Provides structured goal templates for OSRS beginner flows with scoring based on current state.- Acquire starter tools (axe, pickaxe, tinderbox)
- Woodcutting basics
- Mining basics
- Fishing basics
- Bronze gear crafting chain (mine → smelt → smith)
- Combat training on goblins
- Firemaking and cooking
- Prerequisites met (hard requirements)
- Recommended conditions (soft factors)
- Diversity penalty (encourages variety)
- Recent goal history (prevents repetition)
Output Example
Guardrails Provider
Provides safety constraints and warnings for LLM decision-making.- NEVER set combat goals when health is below 30%
- NEVER engage in combat without a weapon equipped
- ALWAYS flee immediately when health drops below 25% during combat
- NEVER travel more than 200 tiles from spawn point
- ALWAYS finish killing current target before switching
- Prefer goals that utilize current inventory items
- Prefer nearby resources over distant ones
- Balance skill training - don’t over-specialize too early
- Gather food supplies before extended combat sessions