Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions test/agents/deepagents/langchain-deepagents-code-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,20 @@ describe("LangChain Deep Agents Code config generator", () => {
expect(config).not.toMatch(/NVIDIA_API_KEY|OPENAI_API_KEY=|sk-/);
});

it("keeps the NVIDIA managed-route Auto classifier on the sandbox model (#13331)", () => {
// A DCode sandbox onboarded on NVIDIA endpoints with nemotron-3-super must
// route its Auto-approval classifier through the managed model identity,
// never the Deep Agents Code runtime default (openai:gpt-5.6-luna) that the
// managed inference route cannot serve. Without this the first
// classifier-backed decision after enabling Auto is denied with
// "classifier unavailable", so Auto mode never auto-approves (#13331).
const config = runGenerator({});

expect(config).toContain('auto_classifier = "openai:nvidia/nemotron-3-super-120b-a12b"');
expect(config).toContain('models = ["nvidia/nemotron-3-super-120b-a12b"]');
expect(config).not.toContain("gpt-5.6-luna");
});

it("uses the attached-provider placeholder for native NVIDIA inference (#12558)", () => {
const config = runGenerator({
NEMOCLAW_INFERENCE_BASE_URL: "https://integrate.api.nvidia.com/v1",
Expand Down
Loading