MCPcopy Create free account
hub / github.com/Noumena-Network/code / sendControlResponseError

Function sendControlResponseError

src/cli/print.ts:2782–2794  ·  view source on GitHub ↗
(
    message: SDKControlRequest,
    errorMessage: string,
  )

Source from the content-addressed store, hash-verified

2780 }
2781
2782 const sendControlResponseError = function (
2783 message: SDKControlRequest,
2784 errorMessage: string,
2785 ) {
2786 output.enqueue({
2787 type: 'control_response',
2788 response: {
2789 subtype: 'error',
2790 request_id: message.request_id,
2791 error: errorMessage,
2792 },
2793 })
2794 }
2795
2796 // Handle unexpected permission responses by looking up the unresolved tool
2797 // call in the transcript and executing it

Callers 1

runHeadlessStreamingFunction · 0.85

Calls 1

enqueueMethod · 0.45

Tested by

no test coverage detected