项目
项目文件夹是一个用于存储配置文件、插件、示例、日志和工作区数据的目录。 一个TaskWeaverApp实例与一个项目文件夹相关联。该文件夹由用户创建,包含TaskWeaverApp运行所需的所有必要文件和目录。
以下是一个典型的项目目录结构:
📦project
┣ 📜taskweaver_config.json # the project configuration file for TaskWeaver
┣ 📂plugins # the folder to store plugins
┣ 📂logs # the folder to store logs, will be generated after program starts
┣ 📂examples
┣ 📂 planner_examples # the folder to store planner examples
┗ 📂 code_generator_examples # the folder to store code generator examples
┗ 📂workspace # the directory stores session data, will be generated after program starts
┗ 📂 session_id
┣ 📂ces # the folder used by the code execution service
┣ 📂cwd # the current working directory to run the generated code
┗ other session data
workspace 文件夹用于存储会话数据,其中包含代码执行服务(CES)文件夹和当前工作目录(CWD)文件夹。
因此,如果代码执行生成了任何文件,这些文件将被存储在CWD文件夹中。
如果您在local模式下运行并希望从本地文件系统加载文件,CWD就是加载文件的基础目录。