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.



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

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

Instance Attribute Details

#modelString

Corresponds to the JSON property model

Returns:

  • (String)


9505
9506
9507
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9505

def model
  @model
end

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

Corresponds to the JSON property retrievedExamples



9510
9511
9512
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9510

def retrieved_examples
  @retrieved_examples
end

#temperatureFloat

Corresponds to the JSON property temperature

Returns:

  • (Float)


9515
9516
9517
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9515

def temperature
  @temperature
end

#token_countGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmCallTokenCount

Corresponds to the JSON property tokenCount



9520
9521
9522
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9520

def token_count
  @token_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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