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

Function formatToolCallSummary

src/tools/REPLTool/javascriptReplFactory.tsx:319–325  ·  view source on GitHub ↗
(call: ReplToolCallSummary)

Source from the content-addressed store, hash-verified

317}
318
319function formatToolCallSummary(call: ReplToolCallSummary): string {
320 const input = preview(stringifyUnknown(call.toolInput))
321 if (!call.success) {
322 return `${call.toolName}(${input}) -> ERROR: ${call.error ?? 'unknown error'}`
323 }
324 return `${call.toolName}(${input}) -> ${preview(stringifyUnknown(call.result))}`
325}
326
327function formatModelToolResult(output: Output): string {
328 const lines: string[] = []

Callers 1

formatModelToolResultFunction · 0.70

Calls 2

previewFunction · 0.70
stringifyUnknownFunction · 0.70

Tested by

no test coverage detected