Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ExecutableCode.
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].
Generated from protobuf message google.cloud.aiplatform.v1.ExecutableCode
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ language |
int
Required. Programming language of the |
↳ code |
string
Required. The code to be executed. |
getLanguage
Required. Programming language of the code
.
Returns | |
---|---|
Type | Description |
int |
setLanguage
Required. Programming language of the code
.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getCode
Required. The code to be executed.
Returns | |
---|---|
Type | Description |
string |
setCode
Required. The code to be executed.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |