Class: Google::Cloud::AIPlatform::V1::ExecutableCode

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/tool.rb

Overview

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].

Defined Under Namespace

Modules: Language

Instance Attribute Summary collapse

Instance Attribute Details

#code::String

Returns Required. The code to be executed.

Returns:

  • (::String)

    Required. The code to be executed.



351
352
353
354
355
356
357
358
359
360
361
362
363
# File 'proto_docs/google/cloud/aiplatform/v1/tool.rb', line 351

class ExecutableCode
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Supported programming languages for the generated code.
  module Language
    # Unspecified language. This value should not be used.
    LANGUAGE_UNSPECIFIED = 0

    # Python >= 3.10, with numpy and simpy available.
    PYTHON = 1
  end
end

#language::Google::Cloud::AIPlatform::V1::ExecutableCode::Language

Returns Required. Programming language of the code.

Returns:



351
352
353
354
355
356
357
358
359
360
361
362
363
# File 'proto_docs/google/cloud/aiplatform/v1/tool.rb', line 351

class ExecutableCode
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Supported programming languages for the generated code.
  module Language
    # Unspecified language. This value should not be used.
    LANGUAGE_UNSPECIFIED = 0

    # Python >= 3.10, with numpy and simpy available.
    PYTHON = 1
  end
end