ExecutableCodePart 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.

Represents the code that is executed by the model.

Signature:

exportinterfaceExecutableCodePart

Properties

PropertyTypeDescription
codeExecutionResultnever(Public Preview)
executableCodeExecutableCode(Public Preview)
fileDatanever(Public Preview)
functionCallnever(Public Preview)
functionResponsenever(Public Preview)
inlineDatanever(Public Preview)
textnever(Public Preview)
thoughtnever(Public Preview)

ExecutableCodePart.codeExecutionResult

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.

Signature:

codeExecutionResult?:never;

ExecutableCodePart.executableCode

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.

Signature:

executableCode?:ExecutableCode;

ExecutableCodePart.fileData

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.

Signature:

fileData:never;

ExecutableCodePart.functionCall

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.

Signature:

functionCall?:never;

ExecutableCodePart.functionResponse

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.

Signature:

functionResponse?:never;

ExecutableCodePart.inlineData

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.

Signature:

inlineData?:never;

ExecutableCodePart.text

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.

Signature:

text?:never;

ExecutableCodePart.thought

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.

Signature:

thought?:never;

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

Last updated 2025-10-09 UTC.