MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / pathToAddress

Function pathToAddress

packages/core/execution/src/tool-invoker.ts:59–65  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

57 * those from its static map directly, so leave them untouched.
58 */
59const pathToAddress = (path: string): ToolAddress => {
60 if (path.startsWith(ADDRESS_PREFIX)) return ToolAddress.make(path);
61 if (parseToolAddress(`${ADDRESS_PREFIX}${path}`)) {
62 return ToolAddress.make(`${ADDRESS_PREFIX}${path}`);
63 }
64 return ToolAddress.make(path);
65};
66
67/** Strip the proxy-root `tools.` prefix from a full address so it becomes the
68 * sandbox-callable path the model writes after `tools.`. */

Callers 2

makeExecutorToolInvokerFunction · 0.85
tool-invoker.tsFile · 0.85

Calls 1

parseToolAddressFunction · 0.90

Tested by

no test coverage detected