maple.cmd.cli.serve

Serve commands for the MAPLE CLI.

This module provides commands for starting the MAPLE daemon and serving policy and environment containers. The daemon orchestrates all container management and provides the API for running evaluations.

Commands: - serve (root): Start the MAPLE daemon - policy: Serve a policy model in a container - env: Serve an environment in a container

The daemon can run in the foreground (blocking) or be detached to run in the background as a separate process.

Functions

serve_env(name, port, device, num_envs, ...)

Serve an environment in a container.

serve_policy(name, port, device, host_port, ...)

Serve a policy model in a container.

serve_root(ctx, port, device, detach)

Start the MAPLE daemon.