EnvironmentContext: Construct an EnvironmentContext

View source: R/contexts.R

EnvironmentContextR Documentation

Construct an EnvironmentContext

Description

Optional. Provides named external signals and world-step/reset hooks for ABM or RL scenarios. Designed to accommodate multi-entity ABM (an add-on sub-repo) without requiring Engine architectural changes.

Usage

EnvironmentContext(
  signals = NULL,
  step_fn = NULL,
  reset_fn = NULL,
  info = NULL
)

Arguments

signals

Optional named list of external signal values visible to the policy at each decision point.

step_fn

Optional function; advances the world by one step (ABM/RL use cases).

reset_fn

Optional function; resets the world state (RL use cases).

info

Optional named list of auxiliary metadata from the environment.

Value

A list of class "EnvironmentContext".


fluxCore documentation built on Sept. 22, 2026, 5:07 p.m.