skill_api_method
decorator. This will handle all the basics of making the method available to other Skills over the Message Bus.SkillApi
. This will give you a small class with the target Skill's exported methods. These methods are nothing special and can be called like any other class's methods.robber_lang()
method we created above, we could write:NewRobberSkill
is initialized, it will assign the API from the Skill robber-skill.forslund
to self.robber
. We then run the exported method robber_lang()
passing the argument 'hello world'
.NewRobberSkill
will therefore speak something like "hoh e lol lol o wow o ror lol dod".:api
command for exploring Skill APIs.robber-lang.forslund
Skill. Each exported method's docstring will automatically be extracted and presented, providing information on how each method is intended to be used.