2023-09-29 09:47:13 +03:00
# ASK Tool
2024-01-09 16:34:27 +02:00
The `ask` tool answers questions about the PR, based on the PR code changes. Make sure to be specific and clear in your questions.
2023-09-29 09:47:13 +03:00
It can be invoked manually by commenting on any PR:
```
/ask "..."
```
For example:
2024-01-09 16:25:23 +02:00
___
2024-02-18 08:25:30 +02:00
< kbd > < img src = "https://codium.ai/images/pr_agent/ask_comment.png" width = "768" > < / kbd >
2024-01-09 16:25:23 +02:00
___
2024-02-18 08:25:30 +02:00
< kbd > < img src = "https://codium.ai/images/pr_agent/ask.png" width = "768" > < / kbd >
2024-01-09 16:25:23 +02:00
___
2024-02-15 15:20:15 +02:00
## Ask lines
You can run `/ask` on specific lines of code in the PR from the PR's diff view. The tool will answer questions based on the code changes in the selected lines.
2024-02-18 08:07:12 +02:00
- Click on the '+' sign next to the line number to select the line.
- To select multiple lines, click on the '+' sign of the first line and then hold and drag to select the rest of the lines.
2024-02-15 15:20:15 +02:00
- write `/ask "..."` in the comment box and press `Add single comment` button.
2024-02-18 08:25:30 +02:00
< kbd > < img src = "https://codium.ai/images/pr_agent/Ask_line.png" width = "768" > < / kbd >
2024-02-15 15:20:15 +02:00
2024-01-09 16:25:23 +02:00
Note that the tool does not have "memory" of previous questions, and answers each question independently.