maple.backend.envs.libero.LiberoEnvBackend.list_tasks

LiberoEnvBackend.list_tasks(suite: str | None = None) dict

List available LIBERO tasks.

Returns task information in two modes: 1. Dynamic mode (if container running): Queries container for detailed

task list including task names, indices, and instructions.

  1. Static mode (no container): Returns suite descriptions with counts.

The dynamic mode provides complete task details by querying a running container’s /tasks endpoint, which returns the full task registry.

Parameters:

suite – Optional suite name to filter results (e.g., ‘libero_10’).

Returns:

Dictionary mapping suite names to task information. In dynamic mode, each suite maps to a list of task dicts with ‘index’, ‘name’, and ‘instruction’. In static mode, suites map to description dicts with ‘description’ and ‘count’.