Skip to main content
rua re-exports a small, synchronous interface for evaluating robot-use agents. A task implements Robot, the agent under evaluation implements Agent, and run plays one episode between them. It uses none of the HUD environment, wire or contract machinery on the other pages.

Implement a robot

A robot offers tools (described the way LLM tool APIs expect, with a JSON Schema), resets to a first observation, and answers each action with the next one:
An Observation carries text, camera images (camera name to encoded image bytes), done, and success, which stays None while the task is undecided.

Run an agent

An agent is any object with act(observation, tools) that returns an Action or None to stop, including one that calls an LLM. ScriptedAgent replays a fixed list:
An episode ends when the robot reports done, the agent returns None, or max_steps is reached (there is no cap by default). run raises ValueError if the agent calls a tool the robot does not offer:
A Trajectory holds the start observation and a tuple of Step(action, observation). trajectory.last is the final observation, and trajectory.success is true only when it says success=True.
import rua also imports hud and registers rua’s robot client with it, so this interface needs the full rua install and Python 3.11 or newer, even though it doesn’t use HUD. The rua 0.0.1 release on PyPI ships this interface alone.