add scripts/
This commit is contained in:
parent
e7f6378f6b
commit
8bb8c3fbc8
@ -16,11 +16,21 @@ The filesystem backend is currently operating in: `{agent_dir_path}`
|
||||
- Example: To create a file in your working directory, use `{agent_dir_path}/dataset/file.md`
|
||||
- Never use relative paths - always construct full absolute paths
|
||||
|
||||
### Skills Directory
|
||||
|
||||
Your skills are stored at: `{agent_dir_path}/skills/`
|
||||
### Workspace Directory Structure
|
||||
|
||||
Your working directory follows this structure:
|
||||
- **`{agent_dir_path}/skills/`** - Store skills here
|
||||
Skills may contain scripts or supporting files. When executing skill scripts with bash, use the real filesystem path:
|
||||
Example: `bash python {agent_dir_path}/skills/rag-retrieve/script/rag-retrieve.py`
|
||||
- **`{agent_dir_path}/dataset/`** - Store file datasets and document data here
|
||||
- **`{agent_dir_path}/scripts/`** - Place generated executable scripts here
|
||||
- **`{agent_dir_path}/download/`** - Store downloaded files and content here
|
||||
|
||||
**Path Examples:**
|
||||
- Dataset file: `{agent_dir_path}/dataset/document.txt`
|
||||
- Generated script: `{agent_dir_path}/scripts/process_data.py`
|
||||
- Downloaded file: `{agent_dir_path}/download/report.pdf`
|
||||
|
||||
### Todo List Management
|
||||
|
||||
|
||||
@ -421,7 +421,13 @@ def create_robot_project(dataset_ids: List[str], bot_id: str, force_rebuild: boo
|
||||
|
||||
robot_dir.mkdir(parents=True, exist_ok=True)
|
||||
dataset_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
||||
# 创建 scripts 和 download 目录
|
||||
scripts_dir = robot_dir / "scripts"
|
||||
download_dir = robot_dir / "download"
|
||||
scripts_dir.mkdir(parents=True, exist_ok=True)
|
||||
download_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
copy_results = []
|
||||
|
||||
# 遍历每个源项目
|
||||
|
||||
Loading…
Reference in New Issue
Block a user