ExecutableCodePart interface Stay organized with collections Save and categorize content based on your preferences.
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:
exportinterfaceExecutableCodePartProperties
| Property | Type | Description |
|---|---|---|
| codeExecutionResult | never | (Public Preview) |
| executableCode | ExecutableCode | (Public Preview) |
| fileData | never | (Public Preview) |
| functionCall | never | (Public Preview) |
| functionResponse | never | (Public Preview) |
| inlineData | never | (Public Preview) |
| text | never | (Public Preview) |
| thought | never | (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.