ragraf_repo_map
版本: community 能力: graph 操作页面: repo_map
做什么
仓库地图:模块 → 文件 → 关键符号,受 token 预算约束
解决什么问题
在令牌预算内给出大仓库的概览,不必整读。
如何调用
ragraf_repo_map()
ragraf -p config/ragraf.yaml query repo_map
省略号处是代理传入的值;可选参数可以不传。
参数
| 名称 | 类型 | 默认值 |
|---|---|---|
| scope | str | None | None |
| budget_tokens | int | 2000 |
| detail | str | 'normal' |
返回什么
budget_chars, budget_note, budget_tokens, chars_used, files, files_included, files_total, ranking, ranking_note, scope