quick-agent 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quick_agent/__init__.py +6 -0
- quick_agent/agent_call_tool.py +44 -0
- quick_agent/agent_registry.py +75 -0
- quick_agent/agent_tools.py +41 -0
- quick_agent/cli.py +44 -0
- quick_agent/directory_permissions.py +49 -0
- quick_agent/io_utils.py +36 -0
- quick_agent/json_utils.py +37 -0
- quick_agent/models/__init__.py +23 -0
- quick_agent/models/agent_spec.py +22 -0
- quick_agent/models/chain_step_spec.py +14 -0
- quick_agent/models/handoff_spec.py +13 -0
- quick_agent/models/loaded_agent_file.py +14 -0
- quick_agent/models/model_spec.py +14 -0
- quick_agent/models/output_spec.py +10 -0
- quick_agent/models/run_input.py +14 -0
- quick_agent/models/tool_impl_spec.py +11 -0
- quick_agent/models/tool_json.py +14 -0
- quick_agent/orchestrator.py +35 -0
- quick_agent/prompting.py +28 -0
- quick_agent/quick_agent.py +313 -0
- quick_agent/schemas/outputs.py +55 -0
- quick_agent/tools/__init__.py +0 -0
- quick_agent/tools/filesystem/__init__.py +0 -0
- quick_agent/tools/filesystem/adapter.py +26 -0
- quick_agent/tools/filesystem/read_text.py +16 -0
- quick_agent/tools/filesystem/write_text.py +19 -0
- quick_agent/tools/filesystem.read_text/tool.json +10 -0
- quick_agent/tools/filesystem.write_text/tool.json +10 -0
- quick_agent/tools_loader.py +76 -0
- quick_agent-0.1.1.data/data/quick_agent/agents/function-spec-validator.md +109 -0
- quick_agent-0.1.1.data/data/quick_agent/agents/subagent-validate-eval-list.md +122 -0
- quick_agent-0.1.1.data/data/quick_agent/agents/subagent-validator-contains.md +115 -0
- quick_agent-0.1.1.data/data/quick_agent/agents/template.md +88 -0
- quick_agent-0.1.1.dist-info/METADATA +918 -0
- quick_agent-0.1.1.dist-info/RECORD +45 -0
- quick_agent-0.1.1.dist-info/WHEEL +5 -0
- quick_agent-0.1.1.dist-info/entry_points.txt +2 -0
- quick_agent-0.1.1.dist-info/licenses/LICENSE +674 -0
- quick_agent-0.1.1.dist-info/top_level.txt +2 -0
- tests/test_agent.py +196 -0
- tests/test_directory_permissions.py +89 -0
- tests/test_integration.py +221 -0
- tests/test_orchestrator.py +797 -0
- tests/test_tools.py +25 -0
tests/test_tools.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
from quick_agent.directory_permissions import DirectoryPermissions
|
|
4
|
+
from quick_agent.tools.filesystem.adapter import FilesystemToolAdapter
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def test_write_text_creates_parent_and_writes(tmp_path: Path) -> None:
|
|
8
|
+
safe_root = tmp_path / "safe"
|
|
9
|
+
safe_root.mkdir(parents=True, exist_ok=True)
|
|
10
|
+
adapter = FilesystemToolAdapter(DirectoryPermissions(safe_root))
|
|
11
|
+
out_path = safe_root / "nested" / "file.txt"
|
|
12
|
+
result = adapter.write_text(str(out_path), "hello")
|
|
13
|
+
|
|
14
|
+
assert out_path.read_text(encoding="utf-8") == "hello"
|
|
15
|
+
assert result == str(out_path)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def test_read_text_reads_utf8(tmp_path: Path) -> None:
|
|
19
|
+
safe_root = tmp_path / "safe"
|
|
20
|
+
safe_root.mkdir(parents=True, exist_ok=True)
|
|
21
|
+
in_path = safe_root / "in.txt"
|
|
22
|
+
in_path.write_text("data", encoding="utf-8")
|
|
23
|
+
|
|
24
|
+
adapter = FilesystemToolAdapter(DirectoryPermissions(safe_root))
|
|
25
|
+
assert adapter.read_text(str(in_path)) == "data"
|