Environment Modules

This module provides the base class for environment routing and environment modules.

RouterBase

EnvBase

TokenUsageStats

CacheStats

Built-in router

ReActRouter

PlanExecuteRouter

CodeGenRouter

ReActRouter

PlanExecuteRouter

ReActRouter

Environment Router Actor

In production, environment routing runs in a dedicated Ray actor, dynamically created by get_env_router_actor_class; agents interact with it through an EnvRouterProxy handle.

EnvRouterProxy

For router choices and tradeoffs, see Architecture and Scalability.