fix(agent): exclude processing docs from prompt

This commit is contained in:
wolfkill
2026-05-18 10:08:57 +08:00
committed by lyingbug
parent 0e8de6192c
commit 3214e3d952
2 changed files with 98 additions and 1 deletions
@@ -687,7 +687,9 @@ func (s *agentService) getKnowledgeBaseInfos(ctx context.Context, kbIDs []string
pageResult, err := s.knowledgeService.ListPagedKnowledgeByKnowledgeBaseID(ctx, kbID, &types.Pagination{
Page: 1,
PageSize: 10,
}, types.KnowledgeListFilter{})
}, types.KnowledgeListFilter{
ParseStatus: types.ParseStatusCompleted,
})
if err == nil && pageResult != nil {
docCount = int(pageResult.Total)