open-code-review/internal/model/review.go
2026-05-20 22:03:52 +08:00

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"`
}