diff --git a/src/types/constants.ts b/src/types/constants.ts index 515eade..4e5ff16 100644 --- a/src/types/constants.ts +++ b/src/types/constants.ts @@ -131,6 +131,7 @@ export type HyperAgentLlm = | "gemini-3-flash-preview"; export type GeminiComputerUseLlm = + | "gemini-4-carbon" | "gemini-4-argon" | "gemini-3.8-flash" | "gemini-3.7-flash" @@ -140,7 +141,7 @@ export type GeminiComputerUseLlm = | "gemini-3-flash-preview" | "gemini-2.5-computer-use-preview-10-2025"; -// Gemini 4 Argon, 3.8 Flash, and 3.7 Flash do not support "minimal". +// Gemini 4 Carbon, Gemini 4 Argon, 3.8 Flash, and 3.7 Flash do not support "minimal". export type GeminiComputerUseReasoningEffort = "minimal" | "low" | "medium" | "high"; export type GrokComputerUseLlm = "grok-4.7" | "grok-4.6" | "grok-4.5"; diff --git a/tests/integration/client-http.test.ts b/tests/integration/client-http.test.ts index bb9f295..a07a20e 100644 --- a/tests/integration/client-http.test.ts +++ b/tests/integration/client-http.test.ts @@ -407,7 +407,7 @@ describe("client HTTP integration", () => { ]); }); - test("Gemini Computer Use forwards Gemini 4 Argon and reasoning effort on start", async () => { + test("Gemini Computer Use forwards Gemini 4 Carbon, Gemini 4 Argon, and reasoning effort on start", async () => { const server = await startServer(); servers.push(server); const client = new HyperbrowserClient({ @@ -422,6 +422,11 @@ describe("client HTTP integration", () => { useCustomApiKeys: true, apiKeys: { google: "google-key" }, }); + await client.agents.geminiComputerUse.start({ + task: "Complete the task", + llm: "gemini-4-carbon", + reasoningEffort: "low", + }); await client.agents.geminiComputerUse.start({ task: "Complete the task", llm: "gemini-3.6-flash", @@ -447,6 +452,17 @@ describe("client HTTP integration", () => { apiKeys: { google: "google-key" }, }, }, + { + method: "POST", + url: "/api/task/gemini-computer-use", + apiKey: "test-api-key", + contentType: "application/json", + body: { + task: "Complete the task", + llm: "gemini-4-carbon", + reasoningEffort: "low", + }, + }, { method: "POST", url: "/api/task/gemini-computer-use",