Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::ReasoningEngineSpec::SourceCodeSpec::PythonSpec (v1.28.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::ReasoningEngineSpec::SourceCodeSpec::PythonSpec.

Specification for running a Python application from source.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#entrypoint_module

def entrypoint_module() -> ::String
Returns
  • (::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_module=

def entrypoint_module=(value) -> ::String
Parameter
  • value (::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.

Returns
  • (::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

def entrypoint_object() -> ::String
Returns
  • (::String) — Optional. The name of the callable object within the entrypoint_module to use as the application If not specified, defaults to "root_agent".

#entrypoint_object=

def entrypoint_object=(value) -> ::String
Parameter
  • value (::String) — Optional. The name of the callable object within the entrypoint_module to use as the application If not specified, defaults to "root_agent".
Returns
  • (::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

def requirements_file() -> ::String
Returns
  • (::String) — Optional. The path to the requirements file, relative to the source root. If not specified, defaults to "requirements.txt".

#requirements_file=

def requirements_file=(value) -> ::String
Parameter
  • value (::String) — Optional. The path to the requirements file, relative to the source root. If not specified, defaults to "requirements.txt".
Returns
  • (::String) — Optional. The path to the requirements file, relative to the source root. If not specified, defaults to "requirements.txt".

#version

def version() -> ::String
Returns
  • (::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.

#version=

def version=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.