Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1RetrievalCallStep

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Retrieval call step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. RetrievalType decides which tool is used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1RetrievalCallStep

Returns a new instance of GenaiVertexV1beta1RetrievalCallStep.



4563
4564
4565
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4563

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#argumentsGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1RetrievalCallStepRetrievalStepArguments

The arguments to pass to Retrieval tools. Corresponds to the JSON property arguments



4556
4557
4558
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4556

def arguments
  @arguments
end

#retrieval_typeString

The type of retrieval tools. Corresponds to the JSON property retrievalType

Returns:

  • (String)


4561
4562
4563
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4561

def retrieval_type
  @retrieval_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4568
4569
4570
4571
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4568

def update!(**args)
  @arguments = args[:arguments] if args.key?(:arguments)
  @retrieval_type = args[:retrieval_type] if args.key?(:retrieval_type)
end