Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator

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

Overview

LLM generator.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Generator

Returns a new instance of GoogleCloudDialogflowV2beta1Generator.



15769
15770
15771
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15769

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

Instance Attribute Details

#agent_coaching_contextGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingContext

Agent Coaching context that customer can configure. Corresponds to the JSON property agentCoachingContext



15706
15707
15708
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15706

def agent_coaching_context
  @agent_coaching_context
end

#create_timeString

Output only. Creation time of this generator. Corresponds to the JSON property createTime

Returns:

  • (String)


15711
15712
15713
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15711

def create_time
  @create_time
end

#descriptionString

Optional. Human readable description of the generator. Corresponds to the JSON property description

Returns:

  • (String)


15716
15717
15718
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15716

def description
  @description
end

#free_form_contextGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormContext

Free form generator context that customer can configure. Corresponds to the JSON property freeFormContext



15721
15722
15723
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15721

def free_form_context
  @free_form_context
end

#inference_parameterGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter

The parameters of inference. Corresponds to the JSON property inferenceParameter



15726
15727
15728
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15726

def inference_parameter
  @inference_parameter
end

#nameString

Output only. Identifier. The resource name of the generator. Format: projects/ /locations//generators/ Corresponds to the JSON property name

Returns:

  • (String)


15732
15733
15734
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15732

def name
  @name
end

#published_modelString

Optional. The published Large Language Model name. * To use the latest model version, specify the model name without version number. Example: text-bison * To use a stable model version, specify the version number as well. Example: text-bison@002. Corresponds to the JSON property publishedModel

Returns:

  • (String)


15740
15741
15742
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15740

def published_model
  @published_model
end

#suggestion_deduping_configGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionDedupingConfig

Config for suggestion deduping. NEXT_ID: 3 Corresponds to the JSON property suggestionDedupingConfig



15745
15746
15747
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15745

def suggestion_deduping_config
  @suggestion_deduping_config
end

#summarization_contextGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext

Summarization context that customer can configure. Corresponds to the JSON property summarizationContext



15750
15751
15752
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15750

def summarization_context
  @summarization_context
end

#toolsArray<String>

Optional. Resource names of the tools that the generator can choose from. Format: projects//locations//tools/. Corresponds to the JSON property tools

Returns:

  • (Array<String>)


15756
15757
15758
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15756

def tools
  @tools
end

#trigger_eventString

Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation. Corresponds to the JSON property triggerEvent

Returns:

  • (String)


15762
15763
15764
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15762

def trigger_event
  @trigger_event
end

#update_timeString

Output only. Update time of this generator. Corresponds to the JSON property updateTime

Returns:

  • (String)


15767
15768
15769
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15767

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15774

def update!(**args)
  @agent_coaching_context = args[:agent_coaching_context] if args.key?(:agent_coaching_context)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @free_form_context = args[:free_form_context] if args.key?(:free_form_context)
  @inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
  @name = args[:name] if args.key?(:name)
  @published_model = args[:published_model] if args.key?(:published_model)
  @suggestion_deduping_config = args[:suggestion_deduping_config] if args.key?(:suggestion_deduping_config)
  @summarization_context = args[:summarization_context] if args.key?(:summarization_context)
  @tools = args[:tools] if args.key?(:tools)
  @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
  @update_time = args[:update_time] if args.key?(:update_time)
end