Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample

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

Overview

Relevant example used for the LLM prompt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample

Returns a new instance of GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample.



10932
10933
10934
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10932

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

Instance Attribute Details

#example_display_nameString

The display name of the example. Corresponds to the JSON property exampleDisplayName

Returns:

  • (String)


10915
10916
10917
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10915

def example_display_name
  @example_display_name
end

#example_idString

The id of the example. Corresponds to the JSON property exampleId

Returns:

  • (String)


10920
10921
10922
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10920

def example_id
  @example_id
end

#matched_retrieval_labelString

Optional. The matched retrieval label of this LLM call. Corresponds to the JSON property matchedRetrievalLabel

Returns:

  • (String)


10925
10926
10927
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10925

def matched_retrieval_label
  @matched_retrieval_label
end

#retrieval_strategyString

Retrieval strategy of the example. Corresponds to the JSON property retrievalStrategy

Returns:

  • (String)


10930
10931
10932
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10930

def retrieval_strategy
  @retrieval_strategy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10937
10938
10939
10940
10941
10942
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10937

def update!(**args)
  @example_display_name = args[:example_display_name] if args.key?(:example_display_name)
  @example_id = args[:example_id] if args.key?(:example_id)
  @matched_retrieval_label = args[:matched_retrieval_label] if args.key?(:matched_retrieval_label)
  @retrieval_strategy = args[:retrieval_strategy] if args.key?(:retrieval_strategy)
end