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
-
#connector_spec ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolConnectorTool
A ConnectorTool enabling using Integration Connectors Connections as tools.
-
#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.
14227 14228 14229 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14227 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connector_spec ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolConnectorTool
A ConnectorTool enabling using Integration Connectors Connections as tools.
Corresponds to the JSON property connectorSpec
14182 14183 14184 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14182 def connector_spec @connector_spec end |
#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
14188 14189 14190 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14188 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
14193 14194 14195 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14193 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
14198 14199 14200 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14198 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
14203 14204 14205 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14203 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
14208 14209 14210 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14208 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
14214 14215 14216 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14214 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
14220 14221 14222 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14220 def open_api_spec @open_api_spec end |
#tool_type ⇒ String
Output only. The tool type.
Corresponds to the JSON property toolType
14225 14226 14227 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14225 def tool_type @tool_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14232 def update!(**args) @connector_spec = args[:connector_spec] if args.key?(:connector_spec) @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 |