Skip to content
Open
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
5 changes: 4 additions & 1 deletion google/genai/_interactions/types/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ class ComputerUse(BaseModel):

type: Literal["computer_use"]

environment: Optional[Literal["browser"]] = None
enable_prompt_injection_detection: Optional[bool] = None
"""Whether enable the prompt injection detection check on computer-use request."""

environment: Optional[Literal["browser", "mobile", "desktop"]] = None
"""The environment being operated."""

excluded_predefined_functions: Optional[List[str]] = None
Expand Down
5 changes: 4 additions & 1 deletion google/genai/_interactions/types/tool_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ class ComputerUse(TypedDict, total=False):

type: Required[Literal["computer_use"]]

environment: Literal["browser"]
enable_prompt_injection_detection: bool
"""Whether enable the prompt injection detection check on computer-use request."""

environment: Literal["browser", "mobile", "desktop"]
"""The environment being operated."""

excluded_predefined_functions: SequenceNotStr[str]
Expand Down
Loading