register_skill()

Register a skill definition in the global registry.

Usage

Source

register_skill(skill)

Overwrites any existing skill with the same name.

Parameters

skill: SkillDefinition
The skill definition to register.

Examples

import talk_box as tb

skill = tb.create_skill("my_skill", description="Custom skill")
tb.register_skill(skill)
tb.get_skill("my_skill")  # works