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

Function recordingHandler

packages/core/sdk/src/policies.test.ts:259–263  ·  view source on GitHub ↗
(calls: { count: number })

Source from the content-addressed store, hash-verified

257// ---------------------------------------------------------------------------
258
259const recordingHandler = (calls: { count: number }): ElicitationHandler =>
260 (() => {
261 calls.count++;
262 return Effect.succeed(ElicitationResponse.make({ action: "accept" }));
263 }) as ElicitationHandler;
264
265const decliningHandler: ElicitationHandler = () =>
266 Effect.succeed(ElicitationResponse.make({ action: "decline" }));

Callers 1

policies.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected