Merge pull request #15 from rayrayraykk/dev/template
add project template
This commit is contained in:
@@ -88,8 +88,9 @@ It includes **agent deployment** and **secure sandboxed tool execution**, and ca
|
|||||||
│ ├── stream_printing_messages/ # Streaming and printing messages
|
│ ├── stream_printing_messages/ # Streaming and printing messages
|
||||||
│ ├── structured_output/ # Structured output parsing and validation
|
│ ├── structured_output/ # Structured output parsing and validation
|
||||||
│ ├── multiagent_concurrent/ # Concurrent multi-agent task execution
|
│ ├── multiagent_concurrent/ # Concurrent multi-agent task execution
|
||||||
│ └── meta_planner_agent/ # Planning agent with tool orchestration
|
│ └── meta_planner_agent/ # Planning agent with tool orchestration
|
||||||
│
|
│
|
||||||
|
├── sample_template/ # Template for new sample contributions
|
||||||
└── README.md
|
└── README.md
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -88,8 +88,9 @@ AgentScope Runtime 是一个**全面的运行时框架**,主要解决部署和
|
|||||||
│ ├── stream_printing_messages/ # 信息流式输出与打印
|
│ ├── stream_printing_messages/ # 信息流式输出与打印
|
||||||
│ ├── structured_output/ # 结构化输出解析与验证
|
│ ├── structured_output/ # 结构化输出解析与验证
|
||||||
│ ├── multiagent_concurrent/ # 多 Agent 并发任务执行
|
│ ├── multiagent_concurrent/ # 多 Agent 并发任务执行
|
||||||
│ └── meta_planner_agent/ # 带工具编排的计划 Agent
|
│ └── meta_planner_agent/ # 带工具编排的计划 Agent
|
||||||
│
|
│
|
||||||
|
├── sample_template/ # 新样例贡献模板
|
||||||
└── README.md
|
└── README.md
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
64
sample_template/README.md
Normal file
64
sample_template/README.md
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
# [Your Sample Name]
|
||||||
|
|
||||||
|
[Brief description of what this sample demonstrates]
|
||||||
|
|
||||||
|
## 🌳 Sample Structure
|
||||||
|
|
||||||
|
### Python Only
|
||||||
|
|
||||||
|
```
|
||||||
|
.
|
||||||
|
├── README.md # Documentation
|
||||||
|
├── main.py # Entry point
|
||||||
|
├── requirements.txt # Dependencies
|
||||||
|
└── ... # Any files if necessary
|
||||||
|
```
|
||||||
|
|
||||||
|
### Full‑stack
|
||||||
|
|
||||||
|
```
|
||||||
|
.
|
||||||
|
├── README.md # Documentation
|
||||||
|
├── backend/ # Backend source code
|
||||||
|
│ ├── main.py # Backend entry point
|
||||||
|
│ ├── requirements.txt # Dependencies
|
||||||
|
│ └── ... # Other files
|
||||||
|
│
|
||||||
|
├── frontend/ # Frontend source code
|
||||||
|
│ ├── package.json # Frontend dependencies
|
||||||
|
│ ├── public/ # Static assets (HTML, favicon, etc.)
|
||||||
|
│ └── src/ # Frontend source
|
||||||
|
│ └── ... # Other files
|
||||||
|
└── README.md
|
||||||
|
```
|
||||||
|
|
||||||
|
## 📖 Overview
|
||||||
|
|
||||||
|
[Detailed description of the sample, what it demonstrates, and key features]
|
||||||
|
|
||||||
|
## 🚀 Getting Started
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
- Python 3.10 or higher
|
||||||
|
- [Add other prerequisites like API keys, Node.js, etc.]
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python main.py
|
||||||
|
```
|
||||||
|
|
||||||
|
[Add usage examples and expected output]
|
||||||
|
|
||||||
|
## 🛠️ Features
|
||||||
|
|
||||||
|
- [Feature 1]
|
||||||
|
- [Feature 2]
|
||||||
|
- [Feature 3]
|
||||||
14
sample_template/main.py
Normal file
14
sample_template/main.py
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
"""
|
||||||
|
[Your Sample Name] - Entry Point
|
||||||
|
|
||||||
|
This example demonstrates [brief description].
|
||||||
|
"""
|
||||||
|
import agentscope
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Main function to run the example."""
|
||||||
|
print(agentscope.__version__)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
1
sample_template/requirements.txt
Normal file
1
sample_template/requirements.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
agentscope
|
||||||
Reference in New Issue
Block a user