Toolkit

We provide ReLI as the reli package, with a command-line tool and a Python API. Both read the same YAML configuration. Without -c/--config, the built-in defaults are used (simulated robot, no destinations, OpenAI).

Command line

Command

Purpose

reli chat -c CONFIG [-v] [--language TAG]

Talk to the robot in the terminal

reli web -c CONFIG [--host H] [--port P]

Browser interface (chat, speech, map, camera, STOP)

reli ros -c CONFIG

Headless node: instructions on a ROS topic, replies on ROS topics

reli simulate -c CONFIG PLAN

Validate, expand, safety-check and run a JSON plan in the simulator (no LLM)

reli eval -c CONFIG BENCHMARK [-o OUT] [--by tier|language|category]

IPA / TSR / ART on a benchmark

reli config -c CONFIG

Validate a configuration and print it with every default

Examples:

reli chat -c sim --language sw          # fixed language: Swahili
reli simulate -c sim '{"actions": [{"action": "ARC", "radius": 1, "angle": 180}]}'
reli eval -c sim sample --by language -o results.jsonl
reli config -c romr_ros1 > resolved.yaml

Python API

from reli import ReLIConfig, build_system

cfg = ReLIConfig.load("sim")


def show(event):
    if event.kind == "response":
        print(f"[{event.language}] {event.text}")


system = build_system(cfg, on_event=show)
system.agent.handle("Geh bitte in die Küche.")          # plans; waits for consent if multi-step
system.agent.handle("Fahre einen Meter vor.")            # executes in the background
system.agent.emergency_stop()
system.close()

handle() returns a TurnResult with the parsed plan, the primitives, the safety report and the outcome (replied, executing, awaiting_consent, cancelled, rejected, error). Every message from the robot arrives as Event objects (response, image, plan, status), so that ReLI can be connected to any user interface.

The building blocks of our pipeline can also be used on their own:

from reli.actions import Catalog, expand

catalog = Catalog(destinations=["kitchen"])
actions, errors = catalog.validate([{"action": "POLYGON", "sides": 3, "side_length": 2}])
print(expand(actions))                   # 6 MOVE/TURN primitives (rule-based parser P)
print(catalog.turn_schema())             # JSON schema used for constrained decoding

Other robots are supported by subclassing reli.robot.base.Robot and implementing pose() and _command(v, w), and optionally odometry() and navigate_to(). The closed-loop primitives (move, turn, arc, face, wait) work unchanged. See API Reference.