Skip to main content

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:
  1. goalProvider - Current goal (runs first for goal-aware decisions)
  2. gameStateProvider - Health, position, combat status
  3. inventoryProvider - Items and equipment
  4. nearbyEntitiesProvider - Surrounding entities
  5. skillsProvider - Skill levels and XP
  6. equipmentProvider - Currently equipped items
  7. availableActionsProvider - Context-aware action list
  8. possibilitiesProvider - What actions are currently possible (NEW)
  9. goalTemplatesProvider - Structured goal templates (NEW)
  10. 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

Goal Types:
  • woodcutting, mining, fishing - Gathering skills
  • smithing, firemaking, cooking - Artisan skills
  • combat - Combat training
  • exploration - Discover new areas
  • starter_items - Acquire basic tools

Guardrails Provider

Provides safety constraints and warnings to prevent dangerous decisions.

Output Example

Warning Levels:
  • critical - Immediate danger, must address
  • warning - Risky situation, should address
  • info - 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.
Goal Templates Include:
  • 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
Scoring Factors:
  • 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.
Hard Constraints (MUST follow):
  • 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
Soft Constraints (SHOULD follow):
  • 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

Output Example