Creates a new ToolWidgetTool.
dataMapping Optional. The mapping that defines how data from a source tool is mapped to the
description Optional. The description of the widget tool.
name Required. The display name of the widget tool.
parameters Optional. The input parameters of the widget tool. Represents a Schema object.
textResponseConfig Optional. Configuration for always-included text responses.
uiConfig Optional. Configuration for rendering the widget. Represents a JSON object.
widgetType Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED.
Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED.
Possible values:
WIDGET_TYPE_UNSPECIFIED
CUSTOM
PRODUCT_CAROUSEL
PRODUCT_DETAILS
QUICK_ACTIONS
PRODUCT_COMPARISON
ADVANCED_PRODUCT_DETAILS
SHORT_FORM
OVERALL_SATISFACTION
ORDER_SUMMARY
APPOINTMENT_DETAILS
APPOINTMENT_SCHEDULER
CONTACT_FORM
Possible values are: WIDGET_TYPE_UNSPECIFIED, CUSTOM, PRODUCT_CAROUSEL, PRODUCT_DETAILS, QUICK_ACTIONS, PRODUCT_COMPARISON, ADVANCED_PRODUCT_DETAILS, SHORT_FORM, OVERALL_SATISFACTION, ORDER_SUMMARY, APPOINTMENT_DETAILS, APPOINTMENT_SCHEDULER, CONTACT_FORM.