-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #833 from Codium-ai/tr/help
docs: Add "Improve Component" tool documentation and update related g…
- Loading branch information
Showing
7 changed files
with
49 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Overview | ||
The `improve_component` tool generates code suggestions for a specific code component that changed in the PR. | ||
it can be invoked manually by commenting on any PR: | ||
``` | ||
/improve_component component_name | ||
``` | ||
|
||
To get a list of the components that changed in the PR and choose the relevant component interactively, use the [`analyze`](./analyze.md) tool. | ||
|
||
|
||
Example result: | ||
|
||
![improve_component1](https://codium.ai/images/pr_agent/improve_component1.png){width=768} | ||
|
||
![improve_component2](https://codium.ai/images/pr_agent/improve_component2.png){width=768} | ||
|
||
**Notes** | ||
- Language that are currently supported by the tool: Python, Java, C++, JavaScript, TypeScript, C#. | ||
|
||
## Configuration options | ||
- `num_code_suggestions`: number of code suggestions to provide. Default is 4 | ||
- `extra_instructions`: Optional extra instructions to the tool. For example: "focus on ...". | ||
- `file`: in case there are several components with the same name, you can specify the relevant file. | ||
- `class_name`: in case there are several methods with the same name in the same file, you can specify the relevant class name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters