rocdev-foundation / medera

Is a chat bot the new "Hello, World"?
GNU General Public License v3.0
1 stars 2 forks source link

Load Agent Skills at Boot #10

Closed geowa4 closed 7 years ago

geowa4 commented 7 years ago

Each Agent has many skills. When the Agent starts. it must load these skills definitions from a YAML configuration file. Each skill is a verb, noun, description, and a command. The verb-noun pair is what is entered in Slack (e.g. list-homedirectory), and the command is the executable with its arguments. See below for an example configuration file.

---
skills:
  - description: Lists files in a directory
    verb: list
    noun: homedirectory
    command: /bin/ls ~
dantswain commented 7 years ago

Are you set on YAML? Elixir sort of eschews YAML.

geowa4 commented 7 years ago

No, not really. As long as it's easy to read and write for your random administrator, it doesn't really matter to me.

dantswain commented 7 years ago

Cool. XML? :trollface:

I say JSON unless you have a better idea.

geowa4 commented 7 years ago

Yeah, as a POC, I can be fine with that. In the future, I might wish to support a language that is a superset of JSON.

dantswain commented 7 years ago

Loading skills at boot is trivial, but I'm taking "those skills actually work and the code isn't horrible" as an exit condition.

dantswain commented 7 years ago

@geowa4 From a PM standpoint are you comfortable with closing this (and opening some new tasks to do refinement) as of #21 or do you want it to remain open until those are refined a bit?

dantswain commented 7 years ago

Closed by #21