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

Function ParseComments

internal/tool/code_comment.go:81–83  ·  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).

(args map[string]any)

Source from the content-addressed store, hash-verified

79// ParseComments extracts LlmComment entries from tool call arguments without writing
80// to the Collector. Returns parsed comments and an error message (empty on success).
81func ParseComments(args map[string]any) ([]model.LlmComment, string) {
82 return parseCommentsInner(args, "")
83}
84
85func parseCommentsInner(args map[string]any, defaultPath string) ([]model.LlmComment, string) {
86 var rawComments []any

Callers 5

TestParseCommentsFunction · 0.85
TestParseComments_FieldsFunction · 0.85
ExecuteMethod · 0.85

Calls 1

parseCommentsInnerFunction · 0.85