MCPcopy Create free account
hub / github.com/agentrpc/agentrpc / fn

Function fn

sdk-node/src/execute-fn.test.ts:6–6  ·  view source on GitHub ↗
(val: { [key: string]: string })

Source from the content-addressed store, hash-verified

4describe("executeFn", () => {
5 it("should run a function with arguments", async () => {
6 const fn = (val: { [key: string]: string }) => Promise.resolve(val.foo);
7 const result = await executeFn(fn, [{foo: "bar"}] as any);
8 expect(result).toEqual({
9 content: "bar",

Callers 1

executeFnFunction · 0.85

Calls 1

approvalMethod · 0.80

Tested by

no test coverage detected