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.



12721
12722
12723
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12721

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



12682
12683
12684
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12682

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)


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

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)


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

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



12697
12698
12699
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12697

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



12702
12703
12704
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12702

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)


12708
12709
12710
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12708

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



12714
12715
12716
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12714

def open_api_spec
  @open_api_spec
end

#tool_typeString

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

Returns:

  • (String)


12719
12720
12721
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12719

def tool_type
  @tool_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12726

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