mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-21 23:46:50 +00:00
fix(agent): file-io path guidance in agent prompts (#2019)
* fix(prompt): guide workspace-relative file io * Clarify bash agent file IO path guidance
This commit is contained in:
@@ -39,3 +39,17 @@ def test_build_subagent_section_includes_bash_when_available(monkeypatch) -> Non
|
||||
assert "For command execution (git, build, test, deploy operations)" in section
|
||||
assert 'bash("npm test")' in section
|
||||
assert "available tools (bash, ls, read_file, web_search, etc.)" in section
|
||||
|
||||
|
||||
def test_bash_subagent_prompt_mentions_workspace_relative_paths() -> None:
|
||||
from deerflow.subagents.builtins.bash_agent import BASH_AGENT_CONFIG
|
||||
|
||||
assert "Treat `/mnt/user-data/workspace` as the default working directory for file IO" in BASH_AGENT_CONFIG.system_prompt
|
||||
assert "`hello.txt`, `../uploads/input.csv`, and `../outputs/result.md`" in BASH_AGENT_CONFIG.system_prompt
|
||||
|
||||
|
||||
def test_general_purpose_subagent_prompt_mentions_workspace_relative_paths() -> None:
|
||||
from deerflow.subagents.builtins.general_purpose import GENERAL_PURPOSE_CONFIG
|
||||
|
||||
assert "Treat `/mnt/user-data/workspace` as the default working directory for coding and file IO" in GENERAL_PURPOSE_CONFIG.system_prompt
|
||||
assert "`hello.txt`, `../uploads/input.csv`, and `../outputs/result.md`" in GENERAL_PURPOSE_CONFIG.system_prompt
|
||||
|
||||
Reference in New Issue
Block a user