lintsinghua / lintsinghua/DeepAudit
backend/app/services/agent/config.py配置信息失效
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7k
- Forks
- 850
- PR merge metrics
- No merged PRs in 30d
Description
这是一块写了但从未接通的死代码。 1100 行,定义了所有 Agent 的轮数、超时、工具开关等配置,有完整的 validation和文档——但 agent_tasks.py 创建 Agent 时压根不读它,而是用各个 Agent 构造函数里的硬编码值。这会导致在使用的时候变更交互轮数,超时配置时非常不方便,而这些配置是必要且经常更改的。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading backend/app/services/agent/config.py and backend/app/services/agent/agent_tasks.py, then trace how each Agent is created and where constructor defaults are applied. Compare those paths with the configuration validation and documentation in config.py. Done means changes to interaction rounds, timeouts, and tool switches are read from the configuration when agents are created.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100