Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ToolCall

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

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) ⇒ GoogleCloudDialogflowCxV3beta1ToolCall

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolCall.



11926
11927
11928
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11926

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

Instance Attribute Details

#actionString

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

Returns:

  • (String)


11913
11914
11915
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11913

def action
  @action
end

#input_parametersHash<String,Object>

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

Returns:

  • (Hash<String,Object>)


11918
11919
11920
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11918

def input_parameters
  @input_parameters
end

#toolString

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

Returns:

  • (String)


11924
11925
11926
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11924

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11931
11932
11933
11934
11935
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11931

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