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

Function markToolsSentToAPI

src/services/compact/cachedMicrocompact.ts:85–91  ·  view source on GitHub ↗
(state: CachedMCState)

Source from the content-addressed store, hash-verified

83}
84
85export function markToolsSentToAPI(state: CachedMCState): void {
86 for (const toolUseId of state.toolOrder) {
87 if (!state.deletedRefs.has(toolUseId)) {
88 state.sentToAPI.add(toolUseId)
89 }
90 }
91}
92
93export function resetCachedMCState(state: CachedMCState): void {
94 state.registeredTools.clear()

Callers

nothing calls this directly

Calls 2

hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected