Update ReportAgent to reduce maximum tool calls and iterations for improved efficiency
- Decreased the maximum tool calls per section from 8 to 5. - Reduced the maximum iterations in the ReACT loop from 8 to 5, streamlining the report generation process.
This commit is contained in:
parent
efc7fbc4f7
commit
99c1b199d5
1 changed files with 2 additions and 2 deletions
|
|
@ -493,7 +493,7 @@ class ReportAgent:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# 最大工具调用次数(每个章节)
|
# 最大工具调用次数(每个章节)
|
||||||
MAX_TOOL_CALLS_PER_SECTION = 8
|
MAX_TOOL_CALLS_PER_SECTION = 5
|
||||||
|
|
||||||
# 最大反思轮数
|
# 最大反思轮数
|
||||||
MAX_REFLECTION_ROUNDS = 3
|
MAX_REFLECTION_ROUNDS = 3
|
||||||
|
|
@ -1170,7 +1170,7 @@ class ReportAgent:
|
||||||
|
|
||||||
# ReACT循环
|
# ReACT循环
|
||||||
tool_calls_count = 0
|
tool_calls_count = 0
|
||||||
max_iterations = 8 # 最大迭代轮数
|
max_iterations = 5 # 最大迭代轮数
|
||||||
min_tool_calls = 2 # 最少工具调用次数
|
min_tool_calls = 2 # 最少工具调用次数
|
||||||
|
|
||||||
# 报告上下文,用于InsightForge的子问题生成
|
# 报告上下文,用于InsightForge的子问题生成
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue