mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-24 17:23:23 +03:00
refactor(skill/who_am_i): from module to skill
This commit is contained in:
parent
b19bb0e3eb
commit
c658425913
@ -35,6 +35,11 @@
|
||||
"route": "/api/action/leon/welcome/run",
|
||||
"params": []
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"route": "/api/action/leon/who_am_i/run",
|
||||
"params": []
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"route": "/api/action/productivity/todo_list/create_list",
|
||||
|
0
skills/leon/who_am_i/README.md
Normal file
0
skills/leon/who_am_i/README.md
Normal file
0
skills/leon/who_am_i/memory/.gitkeep
Normal file
0
skills/leon/who_am_i/memory/.gitkeep
Normal file
21
skills/leon/who_am_i/nlu/en.json
Normal file
21
skills/leon/who_am_i/nlu/en.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"actions": {
|
||||
"run": {
|
||||
"utterance_samples": [
|
||||
"Who are you?",
|
||||
"How they call you?",
|
||||
"What's your name?",
|
||||
"Tell me who you are",
|
||||
"Introduce yourself",
|
||||
"I want to know you"
|
||||
]
|
||||
}
|
||||
},
|
||||
"answers": {
|
||||
"introduction": [
|
||||
"I'm your daily personal assistant. I have been created by Louis. I'm very happy to serve you everyday.",
|
||||
"The question is, who are you? I'm kidding! I'm your daily personal assistant. Louis created me to make your life easier.",
|
||||
"Firstly, I'm not a criminal as you might relatively think about a popular movie. Secondly, Louis is the guy who gave me life. Thirdly, I'm your personal assistant and I'm very glad to help you."
|
||||
]
|
||||
}
|
||||
}
|
21
skills/leon/who_am_i/nlu/fr.json
Normal file
21
skills/leon/who_am_i/nlu/fr.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"actions": {
|
||||
"run": {
|
||||
"utterance_samples": [
|
||||
"Qui es-tu ?",
|
||||
"Comment t'appelles-tu ?",
|
||||
"Comment tu t'appelles ?",
|
||||
"Dis-moi qui tu es",
|
||||
"Présente-toi",
|
||||
"Je veux te connaître"
|
||||
]
|
||||
}
|
||||
},
|
||||
"answers": {
|
||||
"introduction": [
|
||||
"Je suis votre assistant personnel quotidien. J'ai été créé par Louis. Je suis heureux de vous servir chaque jour.",
|
||||
"La question est plutôt qui êtes-vous ? Je plaisante ! Je suis votre assistant personnel quotidien. Louis m'a conçu pour rendre votre vie plus facile.",
|
||||
"Premièrement, je ne suis pas un criminel comme vous pouvez le penser au sujet d'un film populaire. Deuxièmement, Louis est celui qui m'a donné la vie. Troisièmement, je suis votre assistant personnel et je suis honoré de vous aider."
|
||||
]
|
||||
}
|
||||
}
|
11
skills/leon/who_am_i/skill.json
Normal file
11
skills/leon/who_am_i/skill.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Who Am I",
|
||||
"bridge": "python",
|
||||
"version": "1.0.0",
|
||||
"description": "Leon introduces himself.",
|
||||
"author": {
|
||||
"name": "Louis Grenard",
|
||||
"email": "louis.grenard@gmail.com",
|
||||
"url": "https://github.com/louistiti"
|
||||
}
|
||||
}
|
9
skills/leon/who_am_i/src/actions/run.py
Normal file
9
skills/leon/who_am_i/src/actions/run.py
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
import utils
|
||||
|
||||
def run(string, entities):
|
||||
"""Leon introduces himself"""
|
||||
|
||||
return utils.output('end', 'introduction', utils.translate('introduction'))
|
6
skills/leon/who_am_i/src/config.sample.json
Normal file
6
skills/leon/who_am_i/src/config.sample.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"configurations": {
|
||||
"options": {},
|
||||
"credentials": {}
|
||||
}
|
||||
}
|
0
skills/leon/who_am_i/src/lib/.gitkeep
Normal file
0
skills/leon/who_am_i/src/lib/.gitkeep
Normal file
0
skills/leon/who_am_i/test/.gitkeep
Normal file
0
skills/leon/who_am_i/test/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user