karen.Skill
Class for inheriting to generate new skills. Includes basic functionality for generic skills.
__init__(self)
special
Skill Initialization
ask(self, in_text, in_callback, timeout=0)
Encapsulates the frequently used function of "ask" in order to make it easier for new skill development. Makes self.ask() method available.
Parameters: |
|
---|
Returns: |
|
---|
getContentsFromVocabFile(self, filename)
Retrieves all text in the specified file beneath the vocab/locale folder.
Parameters: |
|
---|
Returns: |
|
---|
getMessageFromDialog(self, dialog_file, **args)
Retrieves a randomized line from the specified dialog file beneath the vocab/locale folder.
Parameters: |
|
---|
Returns: |
|
---|
initialize(self)
Function to be overridden in child classes. This function is where intents can be registered for the padatious runtime.
Returns: |
|
---|
register_intent_file(self, filename, callback)
Registers an intent file with the Padatious neural network engine.
Parameters: |
|
---|
Returns: |
|
---|
say(self, in_text)
Encapsulates the frequently used function of "say" in order to make it easier for new skill development. Makes self.say() method available.
Parameters: |
|
---|
Returns: |
|
---|
stop(self)
Method to stop any daemons created during startup/initialization for this skill.
Returns: |
|
---|