We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9801894 commit ba69cd7Copy full SHA for ba69cd7
src/core/prompts/tools/index.ts
@@ -65,21 +65,11 @@ export function getToolDescriptionsForMode(
65
}
66
})
67
68
- // Filter out apply_diff if diffStrategy is not provided
69
- if (!diffStrategy) {
70
- tools.delete("apply_diff")
71
- }
72
-
73
// Add always available tools
74
ALWAYS_AVAILABLE_TOOLS.forEach((tool) => tools.add(tool))
75
76
// Map tool descriptions for allowed tools
77
const descriptions = Array.from(tools).map((toolName) => {
78
- // Skip apply_diff tool description if diffStrategy is not provided
79
- if (toolName === "apply_diff" && !diffStrategy) {
80
- return undefined
81
82
83
const descriptionFn = toolDescriptionMap[toolName]
84
if (!descriptionFn) {
85
return undefined
0 commit comments