You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/build-code-agent.mdx
+18-9Lines changed: 18 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,19 @@ agent.run("Tell me about this repo")
22
22
23
23
The agent has access to powerful code viewing and manipulation tools powered by Codegen, including:
24
24
-`ViewFileTool`: View contents and metadata of files
25
-
-`SemanticSearchTool`: Search over code using natural language queries
26
25
-`SemanticEditTool`: Make intelligent edits to files
27
26
-`RevealSymbolTool`: Analyze symbol dependencies and usages
28
27
-`MoveSymbolTool`: Move symbols between files with import handling
29
-
- And many more...
28
+
-`ReplacementEditTool`: Make regex-based replacement editing on files
29
+
-`ListDirectoryTool`: List directory contents
30
+
-`SearchTool`: Search for files and symbols
31
+
-`CreateFileTool`: Create new files
32
+
-`DeleteFileTool`: Delete files
33
+
-`RenameFileTool`: Rename files
34
+
-`EditFileTool`: Edit files
35
+
-`MoveSymbolTool`: Move symbols between files with import handling
36
+
37
+
30
38
31
39
<Info>View the full code for the default tools and agent implementation in our [examples repository](https://github.com/codegen-sh/codegen-sdk/tree/develop/src/codegen/extensions/langchain/tools)</Info>
32
40
@@ -48,7 +56,7 @@ agent.run("Tell me about this repo")
48
56
```
49
57
50
58
51
-
<Note>Your `ANTHROPIC_API_KEY`and/or `OPENAI_API_KEY`must be set in your env.</Note>
59
+
<Note>Your `ANTHROPIC_API_KEY` must be set in your env.</Note>
52
60
53
61
The default implementation uses `anthropic/claude-3-5-sonnet-latest` for the model but this can be changed through the `model_provider` and `model_name` arguments.
54
62
@@ -66,16 +74,17 @@ The agent comes with a comprehensive set of tools for code analysis and manipula
0 commit comments