CodeExecutionTool interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A tool that enables the model to use code execution.

Signature:

export interface CodeExecutionTool 

Properties

Property Type Description
codeExecution {} (Public Preview) Specifies the Google Search configuration. Currently, this is an empty object, but it's reserved for future configuration options.

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Specifies the Google Search configuration. Currently, this is an empty object, but it's reserved for future configuration options.

Signature:

codeExecution: {};

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-09 UTC.