MCPcopy Create free account
hub / github.com/alibaba/open-code-review / ParseComments

Function ParseComments

internal/tool/code_comment.go:96–99  ·  view source on GitHub ↗

ParseComments extracts LlmComment entries from tool call arguments without writing to the Collector. Returns parsed comments and an error message (empty on success). The repair description is discarded because this path has no warning channel today. A future caller that starts carrying real traffic

(args map[string]any)

Source from the content-addressed store, hash-verified

94// today. A future caller that starts carrying real traffic should switch to
95// ParseCommentsWithPath rather than inherit silent repairs.
96func ParseComments(args map[string]any) ([]model.LlmComment, string) {
97 comments, _, errMsg := parseCommentsInner(args, "")
98 return comments, errMsg
99}
100
101func parseCommentsInner(args map[string]any, defaultPath string) ([]model.LlmComment, *CommentRepair, string) {
102 var rawComments []any

Calls 1

parseCommentsInnerFunction · 0.85