Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Example
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Example
- 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
Example represents a sample execution of the playbook in the conversation. An example consists of a list of ordered actions performed by end user or Dialogflow agent according the playbook instructions to fulfill the task.
Instance Attribute Summary collapse
-
#actions ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Action>
Required.
-
#conversation_state ⇒ String
Required.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#display_name ⇒ String
Required.
-
#language_code ⇒ String
Optional.
-
#name ⇒ String
The unique identifier of the playbook example.
-
#playbook_input ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookInput
Input of the playbook.
-
#playbook_output ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookOutput
Output of the playbook.
-
#token_count ⇒ Fixnum
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Example
constructor
A new instance of GoogleCloudDialogflowCxV3beta1Example.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Example
Returns a new instance of GoogleCloudDialogflowCxV3beta1Example.
6611 6612 6613 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6611 def initialize(**args) update!(**args) end |
Instance Attribute Details
#actions ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Action>
Required. The ordered list of actions performed by the end user and the
Dialogflow agent.
Corresponds to the JSON property actions
6553 6554 6555 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6553 def actions @actions end |
#conversation_state ⇒ String
Required. Example's output state.
Corresponds to the JSON property conversationState
6558 6559 6560 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6558 def conversation_state @conversation_state end |
#create_time ⇒ String
Output only. The timestamp of initial example creation.
Corresponds to the JSON property createTime
6563 6564 6565 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6563 def create_time @create_time end |
#description ⇒ String
Optional. The high level concise description of the example. The max number of
characters is 200.
Corresponds to the JSON property description
6569 6570 6571 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6569 def description @description end |
#display_name ⇒ String
Required. The display name of the example.
Corresponds to the JSON property displayName
6574 6575 6576 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6574 def display_name @display_name end |
#language_code ⇒ String
Optional. The language code of the example. If not specified, the agent's
default language is used. Note: languages must be enabled in the agent before
they can be used. Note: example's language code is not currently used in
dialogflow agents.
Corresponds to the JSON property languageCode
6582 6583 6584 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6582 def language_code @language_code end |
#name ⇒ String
The unique identifier of the playbook example. Format: projects//locations//
agents//playbooks//examples/.
Corresponds to the JSON property name
6588 6589 6590 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6588 def name @name end |
#playbook_input ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookInput
Input of the playbook.
Corresponds to the JSON property playbookInput
6593 6594 6595 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6593 def playbook_input @playbook_input end |
#playbook_output ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookOutput
Output of the playbook.
Corresponds to the JSON property playbookOutput
6598 6599 6600 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6598 def playbook_output @playbook_output end |
#token_count ⇒ Fixnum
Output only. Estimated number of tokes current example takes when sent to the
LLM.
Corresponds to the JSON property tokenCount
6604 6605 6606 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6604 def token_count @token_count end |
#update_time ⇒ String
Output only. Last time the example was updated.
Corresponds to the JSON property updateTime
6609 6610 6611 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6609 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6616 def update!(**args) @actions = args[:actions] if args.key?(:actions) @conversation_state = args[:conversation_state] if args.key?(:conversation_state) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @language_code = args[:language_code] if args.key?(:language_code) @name = args[:name] if args.key?(:name) @playbook_input = args[:playbook_input] if args.key?(:playbook_input) @playbook_output = args[:playbook_output] if args.key?(:playbook_output) @token_count = args[:token_count] if args.key?(:token_count) @update_time = args[:update_time] if args.key?(:update_time) end |