mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
20 lines
756 B
Go
20 lines
756 B
Go
package model
|
|
|
|
// LlmComment represents a code review comment generated by the LLM.
|
|
type LlmComment struct {
|
|
Path string `json:"path"`
|
|
Content string `json:"content"`
|
|
SuggestionCode string `json:"suggestion_code,omitempty"`
|
|
ExistingCode string `json:"existing_code,omitempty"`
|
|
StartLine int `json:"start_line"`
|
|
EndLine int `json:"end_line"`
|
|
Thinking string `json:"thinking,omitempty"`
|
|
}
|
|
|
|
// CodeReviewResult holds raw LLM-generated review suggestion for a code segment.
|
|
type CodeReviewResult struct {
|
|
RelevantFile string `json:"relevant_file"`
|
|
SuggestionContent string `json:"suggestion_content"`
|
|
ExistingCode string `json:"existing_code"`
|
|
SuggestionCode string `json:"suggestion_code"`
|
|
}
|