Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals

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

Overview

Diagnostic info related to the answer generation model call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals

Returns a new instance of GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals.



1353
1354
1355
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1353

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

Instance Attribute Details

#modelString

Name of the generative model. For example, "gemini-ultra", "gemini-pro", " gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown. Corresponds to the JSON property model

Returns:

  • (String)


1341
1342
1343
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1341

def model
  @model
end

#model_outputString

Output of the generative model. Corresponds to the JSON property modelOutput

Returns:

  • (String)


1346
1347
1348
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1346

def model_output
  @model_output
end

#rendered_promptString

Prompt as sent to the model. Corresponds to the JSON property renderedPrompt

Returns:

  • (String)


1351
1352
1353
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1351

def rendered_prompt
  @rendered_prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1358
1359
1360
1361
1362
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1358

def update!(**args)
  @model = args[:model] if args.key?(:model)
  @model_output = args[:model_output] if args.key?(:model_output)
  @rendered_prompt = args[:rendered_prompt] if args.key?(:rendered_prompt)
end