Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Tool
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Tool
- 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
-
#data_store_spec ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolDataStoreTool
A DataStoreTool is a way to provide specifications needed to search a list of data stores.
-
#description ⇒ String
Required.
-
#display_name ⇒ String
Required.
-
#extension_spec ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolExtensionTool
An ExtensionTool is a way to use Vertex Extensions as a tool.
-
#function_spec ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolFunctionTool
A Function tool describes the functions to be invoked on the client side.
-
#name ⇒ String
The unique identifier of the Tool.
-
#open_api_spec ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolOpenApiTool
An OpenAPI tool is a way to provide the Tool specifications in the Open API schema format.
-
#tool_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Tool
constructor
A new instance of GoogleCloudDialogflowCxV3beta1Tool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Tool
Returns a new instance of GoogleCloudDialogflowCxV3beta1Tool.
12915 12916 12917 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12915 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_store_spec ⇒ Google::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
12876 12877 12878 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12876 def data_store_spec @data_store_spec end |
#description ⇒ String
Required. High level description of the Tool and its usage.
Corresponds to the JSON property description
12881 12882 12883 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12881 def description @description end |
#display_name ⇒ String
Required. The human-readable name of the Tool, unique within an agent.
Corresponds to the JSON property displayName
12886 12887 12888 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12886 def display_name @display_name end |
#extension_spec ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolExtensionTool
An ExtensionTool is a way to use Vertex Extensions as a tool.
Corresponds to the JSON property extensionSpec
12891 12892 12893 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12891 def extension_spec @extension_spec end |
#function_spec ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolFunctionTool
A Function tool describes the functions to be invoked on the client side.
Corresponds to the JSON property functionSpec
12896 12897 12898 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12896 def function_spec @function_spec end |
#name ⇒ String
The unique identifier of the Tool. Format: projects//locations//agents//tools/
.
Corresponds to the JSON property name
12902 12903 12904 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12902 def name @name end |
#open_api_spec ⇒ Google::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
12908 12909 12910 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12908 def open_api_spec @open_api_spec end |
#tool_type ⇒ String
Output only. The tool type.
Corresponds to the JSON property toolType
12913 12914 12915 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12913 def tool_type @tool_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12920 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 |