loadedSkills

View as MarkdownOpen in Claude

Read-only getter exposing every loaded skill instance keyed by its instance key (e.g., "weather" or "weather#main_tool" for multi-instance skills). Use this to iterate or inspect loaded skills without mutating the internal map.

Python equivalent: self.loaded_skills (public Dict[str, SkillBase]).

The returned ReadonlyMap is a live view of the internal map, not a copy. Iterating concurrently with addSkill() / removeSkill() can see updates as they happen. For a snapshot of skill keys, use listSkillKeys(); for a single lookup, use getSkill().

Type

ReadonlyMap<string, SkillBase>

Example

1import { AgentBase } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'demo' });
4await agent.addSkillByName('weather');
5await agent.addSkillByName('datetime');
6
7const manager = agent.getSkillManager();
8for (const [key, skill] of manager.loadedSkills) {
9 console.log(`${key} -> ${(skill.constructor as typeof skill).SKILL_NAME}`);
10}