Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion src/types/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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";
Expand Down
18 changes: 17 additions & 1 deletion tests/integration/client-http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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",
Expand All @@ -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",
Expand Down