ToolWidgetToolDataMapping class

Constructors

ToolWidgetToolDataMapping({Input<Map<String, String>?>? fieldMappings, Input<String?>? mode, Input<ToolWidgetToolDataMappingPythonFunction?>? pythonFunction, Input<String?>? sourceToolName})
Creates a new ToolWidgetToolDataMapping. fieldMappings Optional. A map of widget input parameter fields to the corresponding output fields of the source tool. mode Optional. The mode of the data mapping. pythonFunction Optional. Configuration for a Python function used to transform the source tool's sourceToolName Optional. The resource name of the tool that provides the data for the widget (e.g., a search tool or a custom function).
const
ToolWidgetToolDataMapping.fromMap(Map<String, dynamic> map)
factory

Properties

fieldMappings → Input<Map<String, String>?>?
Optional. A map of widget input parameter fields to the corresponding output fields of the source tool. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
final
hashCode → int
The hash code for this object.
no setterinherited
mode → Input<String?>?
Optional. The mode of the data mapping. Possible values: MODE_UNSPECIFIED FIELD_MAPPING PYTHON_SCRIPT Possible values are: MODE_UNSPECIFIED, FIELD_MAPPING, PYTHON_SCRIPT.
final
pythonFunction → Input<ToolWidgetToolDataMappingPythonFunction?>?
Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format. Structure is documented below.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceToolName → Input<String?>?
Optional. The resource name of the tool that provides the data for the widget (e.g., a search tool or a custom function). Format: projects/{project}/locations/{location}/agents/{agent}/tools/{tool}
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