ToolWidgetTool class

Constructors

ToolWidgetTool({Input<ToolWidgetToolDataMapping?>? dataMapping, Input<String?>? description, required Input<String> name, Input<ToolWidgetToolParameters?>? parameters, Input<ToolWidgetToolTextResponseConfig?>? textResponseConfig, Input<String?>? uiConfig, Input<String?>? widgetType})
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.
const
ToolWidgetTool.fromMap(Map<String, dynamic> map)
factory

Properties

dataMapping → Input<ToolWidgetToolDataMapping?>?
Optional. The mapping that defines how data from a source tool is mapped to the widget's input parameters. Structure is documented below.
final
description → Input<String?>?
Optional. The description of the widget tool.
final
hashCode → int
The hash code for this object.
no setterinherited
name → Input<String>
Required. The display name of the widget tool.
final
parameters → Input<ToolWidgetToolParameters?>?
Optional. The input parameters of the widget tool. Represents a Schema object. Structure is documented below.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textResponseConfig → Input<ToolWidgetToolTextResponseConfig?>?
Optional. Configuration for always-included text responses. Structure is documented below.
final
uiConfig → Input<String?>?
Optional. Configuration for rendering the widget. Represents a JSON object.
final
widgetType → Input<String?>?
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited