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

Function registerToolResult

src/services/compact/cachedMicrocompact.ts:62–72  ·  view source on GitHub ↗
(
  state: CachedMCState,
  toolUseId: string,
)

Source from the content-addressed store, hash-verified

60}
61
62export function registerToolResult(
63 state: CachedMCState,
64 toolUseId: string,
65): void {
66 if (state.registeredTools.has(toolUseId)) {
67 return
68 }
69
70 state.registeredTools.add(toolUseId)
71 state.toolOrder.push(toolUseId)
72}
73
74export function registerToolMessage(
75 state: CachedMCState,

Callers

nothing calls this directly

Calls 2

hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected