MCPcopy Create free account
hub / github.com/codeaholicguy/ai-devkit / sendToAgent

Function sendToAgent

packages/cli/src/services/agent/agent.service.ts:198–291  ·  view source on GitHub ↗
({
  id,
  prompt,
  manager,
  focusManager,
  wait = false,
  timeout,
  json = false,
  reporter = ui,
  writer = TtyWriter.send,
  writeWaitStatus = (message) => process.stderr.write(`${message}\n`),
  writeAssistantMessage = (message) => process.stdout.write(`${message.content}\n`),
  writeJson = (value) => console.log(JSON.stringify(value, null, 2)),
}: SendToAgentOptions)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

registerAgentCommandFunction · 0.85

Calls 15

parseSendWaitTimeoutFunction · 0.85
writeWaitStatusFunction · 0.85
prepareWaitModeFunction · 0.85
waitForAgentResponseFunction · 0.85
writeJsonFunction · 0.85
toAgentSendWaitJsonFunction · 0.85
writeMethod · 0.80
listAgentsMethod · 0.80
errorMethod · 0.80
resolveAgentMethod · 0.80
infoMethod · 0.80
warningMethod · 0.80

Tested by

no test coverage detected