MCPcopy Create free account
hub / github.com/chainjet/platform / customFunctionHandler

Function customFunctionHandler

apps/runner/src/utils/input.utils.ts:55–59  ·  view source on GitHub ↗
(name, args)

Source from the content-addressed store, hash-verified

53
54// Your custom handler for undefined functions
55const customFunctionHandler = (name, args) => {
56 console.log(`Unknown function ${name} called with arguments:`, args)
57 // You can return whatever you like here or throw an error
58 return null
59}
60
61/**
62 * Replace references with their values and calculate expression

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected