Class ExecutableCode (1.85.0)

ExecutableCode(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Code generated by the model that is meant to be executed, and the result returned to the model.

Generated when using the [FunctionDeclaration] tool and [FunctionCallingConfig] mode is set to [Mode.CODE].

Attributes

Name Description
language google.cloud.aiplatform_v1.types.ExecutableCode.Language
Required. Programming language of the code.
code str
Required. The code to be executed.

Classes

Language

Language(value)

Supported programming languages for the generated code.

Methods

ExecutableCode

ExecutableCode(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Code generated by the model that is meant to be executed, and the result returned to the model.

Generated when using the [FunctionDeclaration] tool and [FunctionCallingConfig] mode is set to [Mode.CODE].