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