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

Function toError

src/tools/AgentToolRuntime.test.ts:324–326  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

322 return error instanceof Error ? error.message : String(error)
323 },
324 toError(error: unknown) {
325 return error instanceof Error ? error : new Error(String(error))
326 },
327 }))
328}
329

Callers 4

getSkillInfoFunction · 0.50
callFunction · 0.50
validateInputFunction · 0.50
callFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected