Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionCallingConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionCallingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Function calling config.
Instance Attribute Summary collapse
-
#allowed_function_names ⇒ Array<String>
Optional.
-
#mode ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1FunctionCallingConfig
constructor
A new instance of GoogleCloudAiplatformV1FunctionCallingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1FunctionCallingConfig
Returns a new instance of GoogleCloudAiplatformV1FunctionCallingConfig.
10447 10448 10449 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10447 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_function_names ⇒ Array<String>
Optional. Function names to call. Only set when the Mode is ANY. Function
names should match [FunctionDeclaration.name]. With mode set to ANY, model
will predict a function call from the set of function names provided.
Corresponds to the JSON property allowedFunctionNames
10440 10441 10442 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10440 def allowed_function_names @allowed_function_names end |
#mode ⇒ String
Optional. Function calling mode.
Corresponds to the JSON property mode
10445 10446 10447 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10445 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10452 10453 10454 10455 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10452 def update!(**args) @allowed_function_names = args[:allowed_function_names] if args.key?(:allowed_function_names) @mode = args[:mode] if args.key?(:mode) end |