mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-16 10:40:16 +08:00
improve ask_line tool(add conversation history context)
This commit is contained in:
@ -119,6 +119,7 @@ async_ai_calls=true
|
||||
|
||||
[pr_questions] # /ask #
|
||||
enable_help_text=false
|
||||
use_conversation_history=true
|
||||
|
||||
|
||||
[pr_code_suggestions] # /improve #
|
||||
|
@ -43,6 +43,15 @@ Now focus on the selected lines from the hunk:
|
||||
======
|
||||
Note that lines in the diff body are prefixed with a symbol that represents the type of change: '-' for deletions, '+' for additions, and ' ' (a space) for unchanged lines
|
||||
|
||||
{%- if conversation_history %}
|
||||
|
||||
Previous discussion on this code:
|
||||
======
|
||||
{{ conversation_history|trim }}
|
||||
======
|
||||
Consider both the previous review comments from authors and reviewers, as well as any previous questions and answers about this code. The "Previous Question" and "Previous AI Answer" show earlier interactions about the same code. Use this context to provide a more informed and consistent answer.
|
||||
{%- endif %}
|
||||
|
||||
|
||||
A question about the selected lines:
|
||||
======
|
||||
|
Reference in New Issue
Block a user