Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings

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

Settings for knowledge connector. These parameters are used for LLM prompt like "You are . You are a helpful and verbose at , . Your task is to help humans on ".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings.



6788
6789
6790
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6788

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

Instance Attribute Details

#agentString

Name of the virtual agent. Used for LLM prompt. Can be left empty. Corresponds to the JSON property agent

Returns:

  • (String)


6763
6764
6765
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6763

def agent
  @agent
end

#agent_identityString

Identity of the agent, e.g. "virtual agent", "AI assistant". Corresponds to the JSON property agentIdentity

Returns:

  • (String)


6768
6769
6770
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6768

def agent_identity
  @agent_identity
end

#agent_scopeString

Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner". Corresponds to the JSON property agentScope

Returns:

  • (String)


6774
6775
6776
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6774

def agent_scope
  @agent_scope
end

#businessString

Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search. Corresponds to the JSON property business

Returns:

  • (String)


6780
6781
6782
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6780

def business
  @business
end

#business_descriptionString

Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans". Corresponds to the JSON property businessDescription

Returns:

  • (String)


6786
6787
6788
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6786

def business_description
  @business_description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6793
6794
6795
6796
6797
6798
6799
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6793

def update!(**args)
  @agent = args[:agent] if args.key?(:agent)
  @agent_identity = args[:agent_identity] if args.key?(:agent_identity)
  @agent_scope = args[:agent_scope] if args.key?(:agent_scope)
  @business = args[:business] if args.key?(:business)
  @business_description = args[:business_description] if args.key?(:business_description)
end