EventInput class
Events allow for matching intents by event name instead of the natural language input.
For instance, input
Event(
name: "welcome_event",
parameters: {
name: "Sam",
},
);
<event: { name: "welcome_event", parameters: { name: "Sam" } }> can trigger a personalized welcome response.
The parameter name may be used by the agent in the response: "Hello #welcome_event.name! What can I do for you today?".
- Annotations
-
- @JsonSerializable()
Constructors
-
EventInput({required String name, Map<
String, dynamic> ? parameters, required String languageCode}) -
Events allow for matching intents by event name instead of the natural
language input.
const
-
EventInput.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- languageCode → String
-
The language of this conversational query.
final
- name → String
-
The unique identifier of the event.
final
-
parameters
→ Map<
String, dynamic> ? -
This is a map of extracted parameters (MapKey, MapValue) pairs:
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited