Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ToolCallResult

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

The result of calling a tool's action that has been executed by the client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ToolCallResult

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolCallResult.



11499
11500
11501
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11499

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)


11481
11482
11483
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11481

def action
  @action
end

#errorGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ToolCallResultError

An error produced by the tool call. Corresponds to the JSON property error



11486
11487
11488
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11486

def error
  @error
end

#output_parametersHash<String,Object>

The tool call's output parameters. Corresponds to the JSON property outputParameters

Returns:

  • (Hash<String,Object>)


11491
11492
11493
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11491

def output_parameters
  @output_parameters
end

#toolString

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

Returns:

  • (String)


11497
11498
11499
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11497

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11504
11505
11506
11507
11508
11509
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11504

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