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

Function pathToAddress

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

Source from the content-addressed store, hash-verified

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