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

Function ParseComments

internal/tool/code_comment.go:89–92  ·  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

87// today. A future caller that starts carrying real traffic should switch to
88// ParseCommentsWithPath rather than inherit silent repairs.
89func ParseComments(args map[string]any) ([]model.LlmComment, string) {
90 comments, _, errMsg := parseCommentsInner(args, "")
91 return comments, errMsg
92}
93
94func parseCommentsInner(args map[string]any, defaultPath string) ([]model.LlmComment, *CommentRepair, string) {
95 var rawComments []any

Callers 5

TestParseCommentsFunction · 0.85
TestParseComments_FieldsFunction · 0.85
ExecuteMethod · 0.85

Calls 1

parseCommentsInnerFunction · 0.85