Skip to content

Commit beab5be

Browse files
authored
Update agent docs (#625)
1 parent 22de053 commit beab5be

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

docs/tutorials/build-code-agent.mdx

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@ agent.run("Tell me about this repo")
2222

2323
The agent has access to powerful code viewing and manipulation tools powered by Codegen, including:
2424
- `ViewFileTool`: View contents and metadata of files
25-
- `SemanticSearchTool`: Search over code using natural language queries
2625
- `SemanticEditTool`: Make intelligent edits to files
2726
- `RevealSymbolTool`: Analyze symbol dependencies and usages
2827
- `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+
3038

3139
<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>
3240

@@ -48,7 +56,7 @@ agent.run("Tell me about this repo")
4856
```
4957

5058

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>
5260

5361
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.
5462

@@ -66,16 +74,17 @@ The agent comes with a comprehensive set of tools for code analysis and manipula
6674

6775
```python
6876
from codegen.extensions.langchain.tools import (
69-
ViewFileTool,
70-
SemanticSearchTool,
71-
SemanticEditTool,
72-
RevealSymbolTool,
73-
MoveSymbolTool,
74-
EditFileTool,
7577
CreateFileTool,
7678
DeleteFileTool,
79+
EditFileTool,
7780
ListDirectoryTool,
81+
MoveSymbolTool,
82+
RenameFileTool,
83+
ReplacementEditTool,
84+
RevealSymbolTool,
7885
SearchTool,
86+
SemanticEditTool,
87+
ViewFileTool,
7988
)
8089
```
8190

0 commit comments

Comments
 (0)