Skip to content

Commit

Permalink
Tool name standardization
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyhb committed Dec 11, 2024
1 parent ebe0e42 commit 3c83cb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/swebench/agents/editor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createAgent, createTool } from "../../../src";
import {
extractClassAndFns,
extractClassAndFnsTool,
readFileTool,
replaceClassMethodTool,
} from "../tools/tools";
Expand All @@ -14,7 +14,7 @@ export const editingAgent = createAgent({
name: "Editor",
description: "Edits code by replacing contents in files, or creating new files with new code.",
tools: [
extractClassAndFns,
extractClassAndFnsTool,
replaceClassMethodTool,
readFileTool,

Expand Down
4 changes: 2 additions & 2 deletions examples/swebench/agents/planner.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createAgent, createTool } from "../../../src";
import { z } from "zod";
import {
extractClassAndFns,
extractClassAndFnsTool,
listFilesTool,
readFileTool,
} from "../tools/tools";
Expand All @@ -13,7 +13,7 @@ export const planningAgent = createAgent({
tools: [
listFilesTool,
readFileTool,
extractClassAndFns,
extractClassAndFnsTool,
createTool({
name: "create_plan",
description: "Describe a formal plan for how to fix the issue, including which files to edit and reasoning.",
Expand Down
2 changes: 1 addition & 1 deletion examples/swebench/tools/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const readFileTool = createTool({
* parses all method definitions of a class.
*
*/
export const extractClassAndFns = createTool({
export const extractClassAndFnsTool = createTool({
name: "extract_classes_and_functions",
description: "Return all classes names and their functions, including top level functions",
parameters: z.object({
Expand Down

0 comments on commit 3c83cb8

Please sign in to comment.