MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / buildAnswer

Function buildAnswer

tools/mock-openai/server.mjs:47–53  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

45}
46
47function buildAnswer(body) {
48 const prompt = lastUserMessage(body.messages)
49 const toolInfo = Array.isArray(body.tools) && body.tools.length > 0
50 ? `,当前暴露工具数 ${body.tools.length}`
51 : ''
52 return `Recovered Claude mock 已连通。你刚才说的是:${prompt || '(空输入)'}${toolInfo}。`
53}
54
55const server = http.createServer(async (req, res) => {
56 if (req.method === 'GET' && req.url === '/health') {

Callers 1

server.mjsFile · 0.85

Calls 1

lastUserMessageFunction · 0.85

Tested by

no test coverage detected