Skip to content

Commit 9d388ec

Browse files
committed
update
1 parent f755fc4 commit 9d388ec

1 file changed

Lines changed: 50 additions & 115 deletions

File tree

README.md

Lines changed: 50 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,9 @@ python SE/basic_run.py --mode execute
7777
```
7878
✅ SE-Agent initialized successfully
7979
🔄 Starting self-evolution with 3 iterations
80-
📈 Performance gain: +67% over baseline
8180
```
8281

83-
<details>
84-
<summary>🔧 <strong>Need help with setup?</strong></summary>
85-
86-
**Alternative Installation:**
87-
```bash
88-
conda create -n SE python=3.12
89-
conda activate SE
90-
pip install -e .
91-
```
92-
93-
**Environment Variables:**
94-
```bash
95-
# Required (choose one)
96-
export DEEPSEEK_API_KEY="your_key"
97-
export OPENAI_API_KEY="your_key"
98-
export ANTHROPIC_API_KEY="your_key"
99-
```
100-
101-
</details>
82+
> 💡 **Need detailed setup?** See [📦 Installation & Configuration](#-installation--configuration) below
10283
10384
## 🧠 How SE-Agent Works
10485

@@ -140,6 +121,8 @@ python SE/basic_run.py --config SE/configs/se_configs/experiment.yaml --mode exe
140121

141122
### Custom Operator Development
142123

124+
SE-Agent supports flexible operator extensibility for creating custom evolution strategies:
125+
143126
```python
144127
from SE.operators import TemplateOperator, register_operator
145128

@@ -152,6 +135,8 @@ class MyEvolutionOperator(TemplateOperator):
152135
register_operator("my_operator", MyEvolutionOperator)
153136
```
154137

138+
> 📖 **Complete Operator Development Guide:** See [SE/operators.md](SE/operators.md) for comprehensive operator development documentation including architecture, examples, and best practices
139+
155140
### Batch Processing
156141

157142
```bash
@@ -163,6 +148,23 @@ sweagent run-batch \
163148
--instances.slice :10
164149
```
165150

151+
## 📚 Documentation
152+
153+
SE-Agent provides comprehensive documentation for different use cases:
154+
155+
| Document | Purpose | Audience |
156+
|----------|---------|----------|
157+
| [SE/README.md](SE/README.md) | SE Framework detailed guide | Developers & Researchers |
158+
| [SE/operators.md](SE/operators.md) | Operator development guide | Advanced developers |
159+
| [instruction.md](instruction.md) | Usage instructions & configuration | All users |
160+
161+
### Quick Navigation
162+
163+
- **🚀 Getting Started:** Follow the [Quick Start](#-quick-start) above
164+
- **⚙️ Configuration:** See [instruction.md](instruction.md) for detailed setup
165+
- **🔧 Development:** Check [SE/README.md](SE/README.md) for framework internals
166+
- **🛠️ Custom Operators:** Refer to [SE/operators.md](SE/operators.md) for operator development
167+
166168
## 🏗️ Architecture Overview
167169

168170
SE-Agent consists of **three main components** working in harmony:
@@ -186,63 +188,48 @@ SE-Agent consists of **three main components** working in harmony:
186188

187189
## 📦 Installation & Configuration
188190

189-
### Step-by-Step Installation
191+
### Installation Options
190192

193+
**Option 1: Pip Installation (Recommended)**
191194
```bash
192-
# 1. Clone repository
193195
git clone https://github.com/JARVIS-Xs/SE-Agent.git
194196
cd SE-Agent
197+
pip install -e .
198+
```
195199

196-
# 2. Create environment
200+
**Option 2: Conda Environment**
201+
```bash
202+
git clone https://github.com/JARVIS-Xs/SE-Agent.git
203+
cd SE-Agent
197204
conda create -n SE python=3.12
198205
conda activate SE
199-
200-
# 3. Install in editable mode (required)
201206
pip install -e .
207+
```
202208

203-
# 4. Verify installation
209+
**Verify Installation:**
210+
```bash
204211
sweagent --help
205212
python SE/test/run_operator_tests.py
206213
```
207214

208-
### Configuration
215+
### API Key Configuration
209216

210-
**Environment Variables:**
211-
```bash
212-
# Create .env file with your API keys
213-
echo "DEEPSEEK_API_KEY=your_deepseek_key" >> .env
214-
echo "OPENAI_API_KEY=your_openai_key" >> .env
215-
echo "ANTHROPIC_API_KEY=your_anthropic_key" >> .env
216-
```
217+
Choose one of the following API providers:
217218

218-
**SE Configuration Example:**
219-
```yaml
220-
# SE/configs/se_configs/my_experiment.yaml
221-
model:
222-
name: "deepseek/deepseek-chat"
223-
api_key: "${DEEPSEEK_API_KEY}"
224-
225-
instances:
226-
json_file: "SE/instances/test.json"
227-
key: "instances"
228-
229-
strategy:
230-
iterations:
231-
- base_config: "baseconfig1"
232-
operator: null
233-
- base_config: "baseconfig2"
234-
operator: "alternative_strategy"
235-
- base_config: "baseconfig2"
236-
operator: "crossover"
237-
238-
output_dir: "SE/trajectories/my_experiment"
219+
```bash
220+
# Create .env file
221+
echo "DEEPSEEK_API_KEY=your_deepseek_key" > .env
222+
# OR
223+
echo "OPENAI_API_KEY=your_openai_key" > .env
224+
# OR
225+
echo "ANTHROPIC_API_KEY=your_anthropic_key" > .env
239226
```
240227

241-
228+
> 📋 **Detailed Configuration Guide:** See [instruction.md](instruction.md) for comprehensive configuration options, strategy parameters, and execution workflows
242229
243230
## 🧪 Testing & Development
244231

245-
### Running Tests
232+
### Quick Testing
246233

247234
```bash
248235
# Run all tests
@@ -251,56 +238,19 @@ pytest
251238
# Run SE framework tests
252239
python SE/test/run_operator_tests.py
253240

254-
# Test specific components
255-
python SE/test/test_operators.py
256-
python SE/test/test_traj_pool.py
257-
python SE/test/api_test.py
241+
# Demo mode (no API calls)
242+
python SE/basic_run.py --mode demo
258243

259244
# Code formatting
260245
ruff check .
261246
ruff format .
262247
```
263248

264-
### Development Workflow
265-
266-
```bash
267-
# 1. Create feature branch
268-
git checkout -b feature/my-enhancement
269-
270-
# 2. Run tests before changes
271-
python SE/test/run_operator_tests.py
272-
273-
# 3. Make changes and test
274-
python SE/basic_run.py --mode demo # Quick validation
275-
276-
# 4. Run full test suite
277-
pytest
278-
python SE/test/run_operator_tests.py
279-
280-
# 5. Submit pull request
281-
```
249+
### Development Resources
282250

283-
### Creating Custom Operators
284-
285-
SE-Agent's operator system is designed for easy extensibility:
286-
287-
```python
288-
from SE.operators import TemplateOperator, register_operator
289-
290-
class MyCustomOperator(TemplateOperator):
291-
def get_name(self):
292-
return "my_custom_operator"
293-
294-
def get_strategy_prefix(self):
295-
return "MY CUSTOM EVOLUTION STRATEGY"
296-
297-
def _generate_content(self, instance_info, problem_description, trajectory_data):
298-
# Your custom evolution logic here
299-
return "Generated evolution strategy content"
300-
301-
# Register the operator
302-
register_operator("my_custom_operator", MyCustomOperator)
303-
```
251+
- **🔧 SE Framework Guide:** [SE/README.md](SE/README.md) - Comprehensive SE framework documentation with testing, development workflow, and project structure
252+
- **⚙️ Operator Development:** [SE/operators.md](SE/operators.md) - Complete operator development guide with architecture details and examples
253+
- **📖 Usage Instructions:** [instruction.md](instruction.md) - Detailed usage instructions, configuration options, and execution strategies
304254

305255
### Citation
306256

@@ -316,21 +266,6 @@ If you use SE-Agent in your research, please cite our paper:
316266
}
317267
```
318268

319-
## 🤝 Contributing
320-
321-
We welcome contributions from the community! Here's how you can get involved:
322-
323-
### Contribution Areas
324-
325-
| Area | Description | Skill Level |
326-
|------|-------------|-------------|
327-
| **🐛 Bug Fixes** | Fix issues in existing code | Beginner |
328-
| **📖 Documentation** | Improve docs and examples | Beginner |
329-
| **🧪 Tests** | Add test cases and improve coverage | Intermediate |
330-
| **🔧 Tools** | Develop utilities and helper scripts | Intermediate |
331-
| **🚀 Features** | Implement new operators and capabilities | Advanced |
332-
| **📊 Research** | Contribute to benchmarking and analysis | Advanced |
333-
334269

335270
## 📄 License
336271

0 commit comments

Comments
 (0)