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

Function isUserActionableError

packages/core/sdk/src/errors.ts:20–30  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

18}
19
20export const isUserActionableError = (value: unknown): value is UserActionableError =>
21 typeof value === "object" &&
22 value !== null &&
23 "__executorUserActionable" in value &&
24 value.__executorUserActionable === true &&
25 "userMessage" in value &&
26 typeof value.userMessage === "string" &&
27 value.userMessage.length > 0 &&
28 "code" in value &&
29 typeof value.code === "string" &&
30 value.code.length > 0;
31
32/* The failure set the SDK surfaces. `execute`'s invoke failures are ported from
33 * v1 but re-keyed by `address` (the full `tools.<integration>.<owner>.<connection>.<tool>`

Callers 1

expectedToolFailureFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected