Function: createSkillRuntime()
createSkillRuntime(
skills):SkillRuntime
Defined in: packages/core/src/skill.ts:259
Build the SkillRuntime for a set of skills. Skill names must be
unique (throws otherwise — the name is the trigger handle). The set of
explicitly-loaded skills lives in this closure: a skill loaded via
load_skill stays active across subsequent turns until the model calls
unload_skill or SkillRuntime.reset runs (the bot does the latter on
clearHistory()). Because a loaded skill is re-injected into every prompt
until then, unload_skill is offered so the model can shed guidance once a
task is done rather than letting it linger into unrelated turns.
Parameters
skills
Skill[]