(toolUseContext: ToolUseContext)
| 230 | } |
| 231 | |
| 232 | function 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 | |
| 243 | function formatToolCallSummary(call: ReplToolCallSummary): string { |
| 244 | const input = preview(stringifyUnknown(call.toolInput)) |
no test coverage detected