MCPcopy Create free account
hub / github.com/Noumena-Network/code / getInvokedSkillsForAgent

Function getInvokedSkillsForAgent

src/bootstrap/state.ts:1546–1557  ·  view source on GitHub ↗
(
  agentId: string | undefined | null,
)

Source from the content-addressed store, hash-verified

1544}
1545
1546export function getInvokedSkillsForAgent(
1547 agentId: string | undefined | null,
1548): Map<string, InvokedSkillInfo> {
1549 const normalizedId = agentId ?? null
1550 const filtered = new Map<string, InvokedSkillInfo>()
1551 for (const [key, skill] of STATE.invokedSkills) {
1552 if (skill.agentId === normalizedId) {
1553 filtered.set(key, skill)
1554 }
1555 }
1556 return filtered
1557}
1558
1559export function clearInvokedSkills(
1560 preservedAgentIds?: ReadonlySet<string>,

Callers 2

findProjectSkillFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected