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

Function toAutoClassifierInput

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

Source from the content-addressed store, hash-verified

569 },
570
571 toAutoClassifierInput(input) {
572 if (typeof input.message === 'string') {
573 return `to ${input.to}: ${input.message}`
574 }
575 switch (input.message.type) {
576 case 'shutdown_request':
577 return `shutdown_request to ${input.to}`
578 case 'shutdown_response':
579 return `shutdown_response ${input.message.approve ? 'approve' : 'reject'} ${input.message.request_id}`
580 case 'plan_approval_response':
581 return `plan_approval ${input.message.approve ? 'approve' : 'reject'} to ${input.to}`
582 }
583 },
584
585 async checkPermissions(input, _context) {
586 if (feature('UDS_INBOX') && parseAddress(input.to).scheme === 'bridge') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected