maple.server.daemon
MAPLE Daemon - Core orchestration server.
This module implements the main MAPLE daemon which provides a FastAPI-based HTTP server for managing policy and environment containers, running evaluations, and coordinating the entire MAPLE workflow.
The daemon handles: - Policy and environment lifecycle (pull, serve, stop) - Episode execution with policy-environment interaction - Health monitoring of running containers - State persistence via SQLite - Graceful shutdown and cleanup - Adapter-based transformation between policies and environments
Key components: - FastAPI application with REST endpoints - Container registry and health monitoring - Policy and environment backend management - Run orchestration with video recording - Signal handling for graceful shutdown
Classes
|
Request model for batched policy inference. |
|
Request model for single policy inference. |
|
Request model for getting environment information. |
|
Request model for pulling a policy. |
|
Request model for resetting an environment. |
|
Request model for running a policy on an environment task. |
|
Request model for serving environment containers. |
|
Request model for serving a policy container. |
|
Request model for setting up an environment with a task. |
|
Request model for stepping an environment. |
|
MAPLE daemon server for managing policies, environments, and evaluations. |