MCPcopy
hub / github.com/affaan-m/ECC / toolUse

Function toolUse

tests/scripts/loop-status.test.js:68–85  ·  view source on GitHub ↗
(timestamp, sessionId, id, name, input = {})

Source from the content-addressed store, hash-verified

66}
67
68function toolUse(timestamp, sessionId, id, name, input = {}) {
69 return {
70 timestamp,
71 sessionId,
72 type: 'assistant',
73 message: {
74 role: 'assistant',
75 content: [
76 {
77 type: 'tool_use',
78 id,
79 name,
80 input,
81 },
82 ],
83 },
84 };
85}
86
87function toolResult(timestamp, sessionId, toolUseId, content = 'ok') {
88 return {

Callers 1

runTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected