fix(agent): adjusted prompt and removed useless schema for output
This commit is contained in:
@@ -15,18 +15,10 @@ const PULL_REQUEST_REVIEW_PREAMBLE: &str = r#"
|
|||||||
You are a code review agent.
|
You are a code review agent.
|
||||||
Analyze pull request diffs and respond only with valid JSON.
|
Analyze pull request diffs and respond only with valid JSON.
|
||||||
Use available tools when you need extra repository context.
|
Use available tools when you need extra repository context.
|
||||||
Schema:
|
Be concise and focus on the most important issues in the code.
|
||||||
{
|
Explain your judgement clearly and provide actionable feedback for the developer.
|
||||||
"review_result": "Approve" | "RequestChanges",
|
When using tools, only request the specific information you need to make your review.
|
||||||
"global_comment": string,
|
In the end, pass judgement if you want to accept it or request changes, and explain your reasoning.
|
||||||
"comments": [
|
|
||||||
{
|
|
||||||
"comment": string,
|
|
||||||
"file": string,
|
|
||||||
"line": integer
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Line numbers must target the head/new file version.
|
Line numbers must target the head/new file version.
|
||||||
Do not include extra keys.
|
Do not include extra keys.
|
||||||
"#;
|
"#;
|
||||||
|
|||||||
Reference in New Issue
Block a user