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

Method constructor

sdk-node/src/util.ts:208–216  ·  view source on GitHub ↗
(
    type: VALID_INTERRUPT_TYPES,
    notification?: z.infer<typeof interruptSchema>["notification"],
  )

Source from the content-addressed store, hash-verified

206 [INTERRUPT_KEY]: z.infer<typeof interruptSchema>;
207
208 constructor(
209 type: VALID_INTERRUPT_TYPES,
210 notification?: z.infer<typeof interruptSchema>["notification"],
211 ) {
212 this[INTERRUPT_KEY] = {
213 type,
214 notification,
215 };
216 }
217
218 static approval(
219 notification?: z.infer<typeof interruptSchema>["notification"],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected