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

Function formatToolCallSummary

src/tools/REPLTool/pyReplFactory.tsx:243–249  ·  view source on GitHub ↗
(call: ReplToolCallSummary)

Source from the content-addressed store, hash-verified

241}
242
243function formatToolCallSummary(call: ReplToolCallSummary): string {
244 const input = preview(stringifyUnknown(call.toolInput))
245 if (!call.success) {
246 return `${call.toolName}(${input}) -> ERROR: ${call.error ?? 'unknown error'}`
247 }
248 return `${call.toolName}(${input}) -> ${preview(stringifyUnknown(call.result))}`
249}
250
251function formatModelToolResult(output: PythonReplToolOutput): string {
252 const lines: string[] = []

Callers 1

formatModelToolResultFunction · 0.70

Calls 2

previewFunction · 0.70
stringifyUnknownFunction · 0.70

Tested by

no test coverage detected