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

Function registerToolMessage

src/services/compact/cachedMicrocompact.ts:74–83  ·  view source on GitHub ↗
(
  state: CachedMCState,
  toolUseIds: string[],
)

Source from the content-addressed store, hash-verified

72}
73
74export function registerToolMessage(
75 state: CachedMCState,
76 toolUseIds: string[],
77): void {
78 if (toolUseIds.length === 0) {
79 return
80 }
81
82 state.toolGroups.push([...toolUseIds])
83}
84
85export function markToolsSentToAPI(state: CachedMCState): void {
86 for (const toolUseId of state.toolOrder) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected