Skip to content

Commit 696fb97

Browse files
authored
Fixes to agent docs pt2 (#629)
1 parent ef8b4c3 commit 696fb97

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/tutorials/build-code-agent.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ The agent has access to powerful code viewing and manipulation tools powered by
3232
- `DeleteFileTool`: Delete files
3333
- `RenameFileTool`: Rename files
3434
- `EditFileTool`: Edit files
35-
- `MoveSymbolTool`: Move symbols between files with import handling
3635

3736

3837

@@ -68,6 +67,8 @@ agent = CodeAgent(
6867
)
6968
```
7069

70+
<Note>If using a non-default model provider, make sure to set the appropriate API key (e.g., `OPENAI_API_KEY` for OpenAI models) in your env.</Note>
71+
7172
# Available Tools
7273

7374
The agent comes with a comprehensive set of tools for code analysis and manipulation. Here are some key tools:
@@ -179,5 +180,5 @@ class CustomCodeTool(BaseTool):
179180

180181
# Add custom tool to agent
181182
tools.append(CustomCodeTool())
182-
agent = CodebaseAgent(codebase, tools=tools, model_name="gpt-4o")
183+
agent = CodebaseAgent(codebase, tools=tools, model_name="claude-3-5-sonnet-latest")
183184
```

src/codegen/extensions/langchain/tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ def _run(
255255
return result.render()
256256

257257

258+
# Note: a large file is over 300 lines. Please specify a range larger than the edit you want to make.
258259
_SEMANTIC_EDIT_BRIEF = """Tool for file editing via an LLM delegate. Describe the changes you want to make and an expert will apply them to the file.
259260
260261
Specify the changes you want to make in the edit_content field, with helpful comments, like so:

0 commit comments

Comments
 (0)