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.



12969
12970
12971
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12969

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



12930
12931
12932
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12930

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)


12935
12936
12937
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12935

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)


12940
12941
12942
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12940

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



12945
12946
12947
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12945

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



12950
12951
12952
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12950

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)


12956
12957
12958
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12956

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



12962
12963
12964
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12962

def open_api_spec
  @open_api_spec
end

#tool_typeString

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

Returns:

  • (String)


12967
12968
12969
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12967

def tool_type
  @tool_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12974

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