Google Cloud Ai Platform V1 Client - Class PythonSpec (1.43.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class PythonSpec.

Specification for running a Python application from source.

Generated from protobuf message google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec

Namespace

Google \ Cloud \ AIPlatform \ V1 \ ReasoningEngineSpec \ SourceCodeSpec

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ version string

Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, default value is 3.10.

↳ entrypoint_module string

Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For example: path.to.agent. If not specified, defaults to "agent". The project root will be added to Python sys.path, allowing imports to be specified relative to the root.

↳ entrypoint_object string

Optional. The name of the callable object within the entrypoint_module to use as the application If not specified, defaults to "root_agent".

↳ requirements_file string

Optional. The path to the requirements file, relative to the source root. If not specified, defaults to "requirements.txt".

getVersion

Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11, 3.12, 3.13.

If not specified, default value is 3.10.

Returns
Type Description
string

setVersion

Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11, 3.12, 3.13.

If not specified, default value is 3.10.

Parameter
Name Description
var string
Returns
Type Description
$this

getEntrypointModule

Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For example: path.to.agent.

If not specified, defaults to "agent". The project root will be added to Python sys.path, allowing imports to be specified relative to the root.

Returns
Type Description
string

setEntrypointModule

Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For example: path.to.agent.

If not specified, defaults to "agent". The project root will be added to Python sys.path, allowing imports to be specified relative to the root.

Parameter
Name Description
var string
Returns
Type Description
$this

getEntrypointObject

Optional. The name of the callable object within the entrypoint_module to use as the application If not specified, defaults to "root_agent".

Returns
Type Description
string

setEntrypointObject

Optional. The name of the callable object within the entrypoint_module to use as the application If not specified, defaults to "root_agent".

Parameter
Name Description
var string
Returns
Type Description
$this

getRequirementsFile

Optional. The path to the requirements file, relative to the source root. If not specified, defaults to "requirements.txt".

Returns
Type Description
string

setRequirementsFile

Optional. The path to the requirements file, relative to the source root. If not specified, defaults to "requirements.txt".

Parameter
Name Description
var string
Returns
Type Description
$this