Skip to content

Commit 8ec9456

Browse files
committed
update agent configs
1 parent 666c01c commit 8ec9456

File tree

6 files changed

+34
-9
lines changed

6 files changed

+34
-9
lines changed

apps/miroflow-agent/conf/agent/single_agent_with_sougou.yaml renamed to apps/miroflow-agent/conf/agent/mirothinker_v1.0.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# conf/agent/single_agent_with_sougou.yaml
1+
# conf/agent/mirothinker_v1.0.yaml
22
# The name of tools and sub-agents defined in: apps/miroflow-agent/src/config/settings.py
33
# Each sub-agent prompt is written in: apps/miroflow-agent/src/utils/prompt_utils.py
44
defaults:
@@ -11,6 +11,7 @@ main_agent:
1111
- jina_scrape_llm_summary
1212
- tool-python
1313
tool_blacklist:
14+
- [ "search_and_scrape_webpage", "sougou_search" ]
1415
- [ "tool-python", "download_file_from_sandbox_to_local" ]
1516
max_turns: 600 # Maximum number of turns for main agent execution
1617

apps/miroflow-agent/conf/agent/single_agent_keep30.yaml renamed to apps/miroflow-agent/conf/agent/mirothinker_v1.0_keep5.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# conf/agent/single_agent_keep5.yaml
1+
# conf/agent/mirothinker_v1.0_keep5.yaml
22
# The name of tools and sub-agents defined in: apps/miroflow-agent/src/config/settings.py
33
# Each sub-agent prompt is written in: apps/miroflow-agent/src/utils/prompt_utils.py
44
defaults:
@@ -18,5 +18,5 @@ main_agent:
1818
sub_agents:
1919

2020
# Settings for context management
21-
keep_tool_result: 30
21+
keep_tool_result: 5
2222
format_error_retry_limit: 10 # Maximum number of retries for format errors in context management
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# conf/agent/mirothinker_v1.5.yaml
2+
# The name of tools and sub-agents defined in: apps/miroflow-agent/src/config/settings.py
3+
# Each sub-agent prompt is written in: apps/miroflow-agent/src/utils/prompt_utils.py
4+
defaults:
5+
- default
6+
- _self_
7+
8+
main_agent:
9+
tools:
10+
- search_and_scrape_webpage
11+
- jina_scrape_llm_summary
12+
- tool-python
13+
tool_blacklist:
14+
- [ "search_and_scrape_webpage", "sougou_search" ]
15+
- [ "tool-python", "download_file_from_sandbox_to_local" ]
16+
max_turns: 600 # Maximum number of turns for main agent execution
17+
18+
sub_agents:
19+
20+
# Settings for context management
21+
keep_tool_result: -1
22+
format_error_retry_limit: 0 # Maximum number of retries for format errors in context management

apps/miroflow-agent/conf/agent/single_agent_with_sougou_keep5.yaml renamed to apps/miroflow-agent/conf/agent/mirothinker_v1.5_keep5_max200.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# conf/agent/single_agent_with_sougou_keep5.yaml
1+
# conf/agent/mirothinker_v1.5_keep5_max200.yaml
22
# The name of tools and sub-agents defined in: apps/miroflow-agent/src/config/settings.py
33
# Each sub-agent prompt is written in: apps/miroflow-agent/src/utils/prompt_utils.py
44
defaults:
@@ -11,8 +11,9 @@ main_agent:
1111
- jina_scrape_llm_summary
1212
- tool-python
1313
tool_blacklist:
14+
- [ "search_and_scrape_webpage", "sougou_search" ]
1415
- [ "tool-python", "download_file_from_sandbox_to_local" ]
15-
max_turns: 600 # Maximum number of turns for main agent execution
16+
max_turns: 200 # Maximum number of turns for main agent execution
1617

1718
sub_agents:
1819

apps/miroflow-agent/conf/agent/single_agent_with_sougou_keep30.yaml renamed to apps/miroflow-agent/conf/agent/mirothinker_v1.5_keep5_max400.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# conf/agent/single_agent_with_sougou_keep30.yaml
1+
# conf/agent/mirothinker_v1.5_keep5_max400.yaml
22
# The name of tools and sub-agents defined in: apps/miroflow-agent/src/config/settings.py
33
# Each sub-agent prompt is written in: apps/miroflow-agent/src/utils/prompt_utils.py
44
defaults:
@@ -11,11 +11,12 @@ main_agent:
1111
- jina_scrape_llm_summary
1212
- tool-python
1313
tool_blacklist:
14+
- [ "search_and_scrape_webpage", "sougou_search" ]
1415
- [ "tool-python", "download_file_from_sandbox_to_local" ]
15-
max_turns: 600 # Maximum number of turns for main agent execution
16+
max_turns: 400 # Maximum number of turns for main agent execution
1617

1718
sub_agents:
1819

1920
# Settings for context management
20-
keep_tool_result: 30
21+
keep_tool_result: 5
2122
format_error_retry_limit: 10 # Maximum number of retries for format errors in context management

apps/miroflow-agent/src/core/orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191

9292
# Retry loop protection limits
9393
self.MAX_CONSECUTIVE_ROLLBACKS = 5
94-
self.MAX_FINAL_ANSWER_RETRIES = 3
94+
self.MAX_FINAL_ANSWER_RETRIES = 3 if cfg.agent.keep_tool_result == -1 else 1
9595

9696
async def _stream_update(self, event_type: str, data: dict):
9797
"""Send streaming update in new SSE protocol format"""

0 commit comments

Comments
 (0)