ReMe/examples/api/autogen_example.md
2024-09-04 11:41:52 +08:00

22 lines
No EOL
685 B
Markdown

# Working with AutoGen
1. First, make sure that you have installed AutoGen as well as memoryscope.
```
pip install pyautogen memoryscope
```
2. Then, ensure that es is up and running. [elasticsearch documents](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html).
The docker method is recommended:
```
sudo docker run -p 9200:9200 \
-e "discovery.type=single-node" \
-e "xpack.security.enabled=false" \
-e "xpack.license.self_generated.type=trial" \
docker.elastic.co/elasticsearch/elasticsearch:8.13.2
```
3. Finally, we can start the autogen demo.
```
python examples/api/autogen_example.py
```