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

Function augmentToolsForPythonRepl

src/tools/REPLTool/pyReplFactory.tsx:232–241  ·  view source on GitHub ↗
(toolUseContext: ToolUseContext)

Source from the content-addressed store, hash-verified

230}
231
232function augmentToolsForPythonRepl(toolUseContext: ToolUseContext): Tool[] {
233 const byName = new Map<string, Tool>()
234 for (const tool of toolUseContext.options.tools) {
235 byName.set(tool.name, tool)
236 }
237 for (const tool of getReplPrimitiveTools()) {
238 byName.set(tool.name, tool)
239 }
240 return [...byName.values()]
241}
242
243function formatToolCallSummary(call: ReplToolCallSummary): string {
244 const input = preview(stringifyUnknown(call.toolInput))

Callers 1

callFunction · 0.85

Calls 2

getReplPrimitiveToolsFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected