Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmCall

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1LlmCall

Returns a new instance of GoogleCloudDialogflowCxV3beta1LlmCall.



9534
9535
9536
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9534

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

Instance Attribute Details

#modelString

Corresponds to the JSON property model

Returns:

  • (String)


9517
9518
9519
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9517

def model
  @model
end

#retrieved_examplesArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample>

Corresponds to the JSON property retrievedExamples



9522
9523
9524
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9522

def retrieved_examples
  @retrieved_examples
end

#temperatureFloat

Corresponds to the JSON property temperature

Returns:

  • (Float)


9527
9528
9529
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9527

def temperature
  @temperature
end

#token_countGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmCallTokenCount

Corresponds to the JSON property tokenCount



9532
9533
9534
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9532

def token_count
  @token_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9539
9540
9541
9542
9543
9544
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9539

def update!(**args)
  @model = args[:model] if args.key?(:model)
  @retrieved_examples = args[:retrieved_examples] if args.key?(:retrieved_examples)
  @temperature = args[:temperature] if args.key?(:temperature)
  @token_count = args[:token_count] if args.key?(:token_count)
end