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

Function toAutoClassifierInput

src/tools/SendMessageTool/SendMessageTool.ts:620–632  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

618 },
619
620 toAutoClassifierInput(input) {
621 if (typeof input.message === 'string') {
622 return `to ${input.to}: ${input.message}`
623 }
624 switch (input.message.type) {
625 case 'shutdown_request':
626 return `shutdown_request to ${input.to}`
627 case 'shutdown_response':
628 return `shutdown_response ${input.message.approve ? 'approve' : 'reject'} ${input.message.request_id}`
629 case 'plan_approval_response':
630 return `plan_approval ${input.message.approve ? 'approve' : 'reject'} to ${input.to}`
631 }
632 },
633
634 async checkPermissions(input, _context) {
635 if (feature('UDS_INBOX') && parseAddress(input.to).scheme === 'bridge') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected