Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Tool

Inherits:
Object
  • Object
show all
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

A tool provides a list of actions which are available to the Playbook to attain its goal. A Tool consists of a description of the tool's usage and a specification of the tool which contains the schema and authentication information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Tool

Returns a new instance of GoogleCloudDialogflowCxV3beta1Tool.



12693
12694
12695
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12693

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

Instance Attribute Details

#data_store_specGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolDataStoreTool

A DataStoreTool is a way to provide specifications needed to search a list of data stores. Corresponds to the JSON property dataStoreSpec



12654
12655
12656
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12654

def data_store_spec
  @data_store_spec
end

#descriptionString

Required. High level description of the Tool and its usage. Corresponds to the JSON property description

Returns:

  • (String)


12659
12660
12661
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12659

def description
  @description
end

#display_nameString

Required. The human-readable name of the Tool, unique within an agent. Corresponds to the JSON property displayName

Returns:

  • (String)


12664
12665
12666
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12664

def display_name
  @display_name
end

#extension_specGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolExtensionTool

An ExtensionTool is a way to use Vertex Extensions as a tool. Corresponds to the JSON property extensionSpec



12669
12670
12671
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12669

def extension_spec
  @extension_spec
end

#function_specGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolFunctionTool

A Function tool describes the functions to be invoked on the client side. Corresponds to the JSON property functionSpec



12674
12675
12676
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12674

def function_spec
  @function_spec
end

#nameString

The unique identifier of the Tool. Format: projects//locations//agents//tools/ . Corresponds to the JSON property name

Returns:

  • (String)


12680
12681
12682
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12680

def name
  @name
end

#open_api_specGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolOpenApiTool

An OpenAPI tool is a way to provide the Tool specifications in the Open API schema format. Corresponds to the JSON property openApiSpec



12686
12687
12688
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12686

def open_api_spec
  @open_api_spec
end

#tool_typeString

Output only. The tool type. Corresponds to the JSON property toolType

Returns:

  • (String)


12691
12692
12693
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12691

def tool_type
  @tool_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12698

def update!(**args)
  @data_store_spec = args[:data_store_spec] if args.key?(:data_store_spec)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @extension_spec = args[:extension_spec] if args.key?(:extension_spec)
  @function_spec = args[:function_spec] if args.key?(:function_spec)
  @name = args[:name] if args.key?(:name)
  @open_api_spec = args[:open_api_spec] if args.key?(:open_api_spec)
  @tool_type = args[:tool_type] if args.key?(:tool_type)
end