From 3a7c39ae90c8166cf474d6ef767b8014ce96433e Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Wed, 13 Aug 2025 14:55:17 +0800 Subject: [PATCH] fix: *ASTReadTools.GetASTNode didn't return its mod_path and pkg_path --- llm/tool/ast_read.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llm/tool/ast_read.go b/llm/tool/ast_read.go index fedebc20..bddc68d9 100644 --- a/llm/tool/ast_read.go +++ b/llm/tool/ast_read.go @@ -491,6 +491,8 @@ func (t *ASTReadTools) GetASTNode(_ context.Context, params GetASTNodeReq) (*Get grps = append(grps, NewNodeID(grp.Identity)) } resp.Nodes = append(resp.Nodes, NodeStruct{ + ModPath: node.Identity.ModPath, + PkgPath: node.Identity.PkgPath, Name: node.Identity.Name, Type: node.Type.String(), Codes: node.Content(),