Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Request and response for a tool call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo

Returns a new instance of GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo.



20724
20725
20726
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20724

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

Instance Attribute Details

#tool_callGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ToolCall

Represents a call of a specific tool's action with the specified inputs. Corresponds to the JSON property toolCall



20717
20718
20719
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20717

def tool_call
  @tool_call
end

#tool_call_resultGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ToolCallResult

The result of calling a tool's action. Corresponds to the JSON property toolCallResult



20722
20723
20724
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20722

def tool_call_result
  @tool_call_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20729
20730
20731
20732
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20729

def update!(**args)
  @tool_call = args[:tool_call] if args.key?(:tool_call)
  @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
end