BotOperator class

The operator for the bot.

Constructors

BotOperator.of(Bot _bot)
Create a new bot operator.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createIntent({required BotIntent intent, bool derived = false, BotIntent? source, Map<String, String> mapping = const {}}) Future<void>
Create a new intent for this bot.
createObject({required BotObject object}) Future<void>
Create a new object for this bot.
deleteIntents({required List<BotIntent> intents}) Future<void>
Delete intents of this bot.
deleteObjects({required List<BotObject> objects}) Future<void>
Delete objects of this bot.
findIntents() Future<List<BotIntent>?>
Find all intents of this bot.
findIntentWithName(String name) Future<BotIntent?>
Find an intent in this bot with a specific name.
findObjects({required BotObjectType type}) Future<List<BotObject>?>
Find all objects of this bot with a specific type.
findObjectWithName({required String name, required BotObjectType type}) Future<BotObject?>
Find an object in this bot with a specific name and type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
trainChitchat({required String keyword, required String reaction}) Future<void>
Train a chitchat for this bot. "Chitchat" is non-intent-based conversation that can be trained using a keyword-reaction pair.
updateIntent({required BotIntent intent}) Future<void>
Update an intent of this bot.
updateObject({required BotObject object}) Future<void>
Update an object of this bot.

Operators

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