Skip to main content

LLM agent policy for Inspect Robots: frontier LLMs (Claude, GPT, anything OpenAI-compatible) drive any registered embodiment through tool calls.

Project description

inspect-robots-agent

LLM agent policy for Inspect Robots: frontier LLMs (Claude, GPT, anything behind an OpenAI-compatible API) drive any registered embodiment through tool calls, as a first-class Policy named agent. The same policy runs ad-hoc instructions and scores on registered tasks next to fine-tuned VLAs.

Install

pip install inspect-robots inspect-robots-agent

Quickstart (no hardware)

export ANTHROPIC_API_KEY=sk-ant-...

inspect-robots "pick up the cube" --policy agent \
    -P model=anthropic/claude-fable-5 --embodiment cubepick

Model strings are OpenRouter-style provider/model, resolved from -P model=... or $INSPECT_ROBOTS_MODEL. API keys come from the environment:

  1. -P base_url=... (with -P api_key_env=NAME): any OpenAI-compatible endpoint
  2. anthropic/* model with ANTHROPIC_API_KEY: the Anthropic compat endpoint
  3. openai/* model with OPENAI_API_KEY: OpenAI
  4. OPENROUTER_API_KEY: OpenRouter, any model string

How it works

Motion tool calls state where to go, not how long to move. For absolute modes, move_joints interpolates named partial targets from the observed state at a fixed safe speed. The default max_speed_frac=0.5 allows half of each dimension's range per second, subject to a 5%-of-range per-step ceiling that matches the core's default delta backstop. The tool result reports the computed step count and, when the embodiment declares control_hz, the corresponding playout time. duration_s is not part of either motion tool.

For displacement modes, move_by splits the requested total so every action fits the box side in that direction. The action box is the embodiment author's per-step speed statement, so max_speed_frac does not apply to displacement modes. done and give_up end the trial through the core's policy-stop channel.

When control_hz is None, the plugin uses a 10 Hz fallback to compute step counts and the per-call playout cap, but leaves the emitted chunk rate unset. The embodiment then plays the chunk at its native rate. In this case the speed and playout caps are step-count constructs, not wall-clock guarantees, and the tool result does not report seconds.

Every action still passes the CLI's default safety approvers (bounds clamp plus per-step delta limit); the plugin contains no safety-critical code path of its own. An explicit --max-action-delta tighter than 5% of range can truncate absolute interpolants. In displacement modes, a value tighter than the action box can truncate each move_by step. Either setting can make the executed motion fall short of the tool's requested total.

Warning: Guardrails are on by default at the CLI. Never pass --disable-guardrails on real hardware unless you fully trust the policy and the rig.

Configuration knobs (all -P key=value): model, base_url, api_key_env, max_llm_calls, temperature, effort, max_speed_frac. The speed fraction defaults to 0.5 and applies only to absolute modes.

Reasoning effort defaults to low: robot control is latency-sensitive (the arm stands still while the model thinks), safety guardrails sit below the model either way, and frontier models at low effort remain strong at this task shape. Raise it for hard manipulation problems (-P effort=high) or pass -P effort=none to omit the parameter for endpoints that reject it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inspect_robots_agent-0.2.0.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inspect_robots_agent-0.2.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file inspect_robots_agent-0.2.0.tar.gz.

File metadata

  • Download URL: inspect_robots_agent-0.2.0.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inspect_robots_agent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 98bc15961808d7fbf06276606dc518fd325941c56a70b5a49a4bfa6ca514f760
MD5 eec88606d34574e12affe1747e4abe7a
BLAKE2b-256 089e5494c3565f27db319ac6efb0d19a9fbe7115f119bfbd9dd73e9c408c5f17

See more details on using hashes here.

Provenance

The following attestation bundles were made for inspect_robots_agent-0.2.0.tar.gz:

Publisher: release.yml on robocurve/inspect-robots

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file inspect_robots_agent-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for inspect_robots_agent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1afeecf20571bf95b017b2f4f981639b0dc4ae4a7a45141cd14b33c22a8aea9
MD5 69b59d447269de09a833153bc66e7792
BLAKE2b-256 1dcef0305f1bf1040815947737762174d3901b8305d3d6727402e4aa2ad3f1bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for inspect_robots_agent-0.2.0-py3-none-any.whl:

Publisher: release.yml on robocurve/inspect-robots

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page