chore: sync NemoClaw agent options

Add the upstream NemoClaw Deep Agents Code sandbox option and keep managed agent create args generalized. Validated with tests, build, diff check, and local read-only runtime/API smokes.
This commit is contained in:
mmckeen-nv
2026-06-24 00:07:00 -06:00
committed by GitHub
parent 511d313c87
commit 722a7b08a1
4 changed files with 24 additions and 11 deletions
+14 -5
View File
@@ -77,7 +77,7 @@ type NemoClawCreateCommand = {
type CreateInferenceMode = "auto" | "vllm" | "nim"
type CreateGpuMode = "none" | "auto" | "required"
type NemoClawAgent = "openclaw" | "hermes"
type NemoClawAgent = "openclaw" | "hermes" | "langchain-deepagents-code"
type CreateInferenceSettings = {
mode: CreateInferenceMode
@@ -151,14 +151,15 @@ function nemoClawGpuArgs(mode: CreateGpuMode) {
}
function nemoClawAgentArgs(agent: NemoClawAgent) {
return agent === "hermes" ? ["--agent", "hermes"] : []
return agent === "openclaw" ? [] : ["--agent", agent]
}
function isNemoClawOnboardBlueprint(blueprint: string) {
return blueprint === "nemoclaw-blueprint" || blueprint === "nemoclaw-hermes"
return blueprint === "nemoclaw-blueprint" || blueprint === "nemoclaw-hermes" || blueprint === "nemoclaw-deepagents-code"
}
function nemoClawAgentForBlueprint(blueprint: string): NemoClawAgent {
if (blueprint === "nemoclaw-deepagents-code") return "langchain-deepagents-code"
return blueprint === "nemoclaw-hermes" ? "hermes" : "openclaw"
}
@@ -180,8 +181,8 @@ function buildNemoClawCreateCommand(gpuMode: CreateGpuMode, agent: NemoClawAgent
? { file: NODE_BIN, args: [NEMOCLAW_BIN, ...args], mode: "cli-onboard" }
: { file: NEMOCLAW_BIN, args, mode: "cli-onboard" }
}
if (agent === "hermes") {
throw new Error("Hermes sandbox creation requires the current NemoClaw CLI with --agent hermes support. Set NEMOCLAW_BIN in .env.local.")
if (agent !== "openclaw") {
throw new Error(`${agent} sandbox creation requires the current NemoClaw CLI with --agent support. Set NEMOCLAW_BIN in .env.local.`)
}
if (NEMOCLAW_SETUP && commandExists(NEMOCLAW_SETUP)) {
return { file: "/bin/bash", args: [NEMOCLAW_SETUP], mode: "legacy-setup" }
@@ -732,6 +733,14 @@ export async function GET() {
source: "~/NemoClaw/agents/hermes/Dockerfile",
supportsTailscale: false,
},
{
id: "nemoclaw-deepagents-code",
label: "Fresh Deep Agents Code Sandbox",
description: "Bootstraps LangChain Deep Agents Code using NemoClaw's terminal-agent workflow.",
type: "blueprint",
source: "~/NemoClaw/agents/langchain-deepagents-code/manifest.yaml",
supportsTailscale: false,
},
{
id: "custom-sandbox",
label: "New Custom Sandbox",