From d4ad0c3bd85e8a407818641b0976228a9a10a7f0 Mon Sep 17 00:00:00 2001 From: Google Team Member Date: Thu, 4 Jun 2026 03:01:42 -0700 Subject: [PATCH] feat: expose Computer Use API fields Removing visibility restrictions because we already handle non-eap users in the code. PiperOrigin-RevId: 926578168 --- src/interactions/resources/interactions.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/interactions/resources/interactions.ts b/src/interactions/resources/interactions.ts index ee27afdc2..6284dc476 100644 --- a/src/interactions/resources/interactions.ts +++ b/src/interactions/resources/interactions.ts @@ -2345,10 +2345,15 @@ export namespace Tool { export interface ComputerUse { type: 'computer_use'; + /** + * Whether enable the prompt injection detection check on computer-use request. + */ + enable_prompt_injection_detection?: boolean; + /** * The environment being operated. */ - environment?: 'browser'; + environment?: 'browser' | 'mobile' | 'desktop'; /** * The list of predefined functions that are excluded from the model call.