Skip to content

Commit b34be3d

Browse files
hannesrudolphPeterDaveHello
authored andcommitted
refactor: remove legacy XML tool calling code (getToolDescription) (RooCodeInc#10929)
- Remove getToolDescription() method from MultiSearchReplaceDiffStrategy - Remove getToolDescription() from DiffStrategy interface - Remove unused ToolDescription type from shared/tools.ts - Remove unused eslint-disable directive - Update test mocks to remove getToolDescription references - Remove getToolDescription tests from multi-search-replace.spec.ts Native tools are now defined in src/core/prompts/tools/native-tools/ using the OpenAI function format. The removed code was dead since XML-style tool calling was replaced with native tool calling.
1 parent 1bfe97e commit b34be3d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/core/webview/__tests__/ClineProvider.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ vi.mock("../../../api/providers/fetchers/modelCache", () => ({
285285

286286
vi.mock("../diff/strategies/multi-search-replace", () => ({
287287
MultiSearchReplaceDiffStrategy: vi.fn().mockImplementation(() => ({
288-
getToolDescription: () => "test",
289288
getName: () => "test-strategy",
290289
applyDiff: vi.fn(),
291290
})),

0 commit comments

Comments
 (0)