Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolCall

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

Represents a call of a specific tool's action with the specified inputs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ToolCall

Returns a new instance of GoogleCloudDialogflowV2beta1ToolCall.



23723
23724
23725
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23723

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

Instance Attribute Details

#actionString

Optional. The name of the tool's action associated with this call. Corresponds to the JSON property action

Returns:

  • (String)


23685
23686
23687
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23685

def action
  @action
end

#answer_recordString

Optional. The answer record associated with this tool call. Corresponds to the JSON property answerRecord

Returns:

  • (String)


23690
23691
23692
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23690

def answer_record
  @answer_record
end

#create_timeString

Output only. Create time of the tool call. Corresponds to the JSON property createTime

Returns:

  • (String)


23695
23696
23697
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23695

def create_time
  @create_time
end

#input_parametersHash<String,Object>

Optional. The action's input parameters. Corresponds to the JSON property inputParameters

Returns:

  • (Hash<String,Object>)


23700
23701
23702
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23700

def input_parameters
  @input_parameters
end

#stateString

Output only. State of the tool call Corresponds to the JSON property state

Returns:

  • (String)


23705
23706
23707
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23705

def state
  @state
end

#toolString

Optional. The tool associated with this call. Format: projects//locations// tools/. Corresponds to the JSON property tool

Returns:

  • (String)


23711
23712
23713
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23711

def tool
  @tool
end

#tool_display_detailsString

Optional. A human readable description of the tool. Corresponds to the JSON property toolDisplayDetails

Returns:

  • (String)


23716
23717
23718
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23716

def tool_display_details
  @tool_display_details
end

#tool_display_nameString

Optional. A human readable short name of the tool, to be shown on the UI. Corresponds to the JSON property toolDisplayName

Returns:

  • (String)


23721
23722
23723
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23721

def tool_display_name
  @tool_display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23728

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @create_time = args[:create_time] if args.key?(:create_time)
  @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
  @state = args[:state] if args.key?(:state)
  @tool = args[:tool] if args.key?(:tool)
  @tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
  @tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
end