Metadata-Version: 2.4
Name: beswarm
Version: 0.1.34
Summary: MAS
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: beautifulsoup4>=4.13.4
Requires-Dist: diskcache>=5.6.3
Requires-Dist: duckduckgo-search==5.3.1
Requires-Dist: fake-useragent>=2.2.0
Requires-Dist: fastapi>=0.115.12
Requires-Dist: grep-ast>=0.8.1
Requires-Dist: html2text>=2025.4.15
Requires-Dist: httpx>=0.28.1
Requires-Dist: httpx-socks>=0.10.0
Requires-Dist: lxml-html-clean>=0.4.2
Requires-Dist: msgspec>=0.19.0
Requires-Dist: networkx>=3.4.2
Requires-Dist: numpy>=2.2.4
Requires-Dist: pdfminer-six==20240706
Requires-Dist: pillow>=11.2.1
Requires-Dist: pyexecjs>=1.5.1
Requires-Dist: pygments>=2.19.1
Requires-Dist: pytz>=2025.2
Requires-Dist: requests>=2.32.3
Requires-Dist: scipy>=1.15.2
Requires-Dist: tiktoken==0.6.0
Requires-Dist: tqdm>=4.67.1

# beswarm

beswarm: be swarm

beswarm is a tool for creating a swarm of agents to complete a task.

## 任务

```
DiT-Air 架构与MMDiT和PixArt的区别是什么？详细分析三个模型的架构，并给出代码实现。
```

```
arXiv:2502.14831v2 和 arXiv:2503.10618v2 的 渐进式 VAE 训练方法有一定的相似性，请详细分析这两种方法的异同，底层原理的异同。
```

```
论文地址：'/Users/yanyuming/Library/Mobile Documents/iCloud~QReader~MarginStudy~easy/Documents/论文/EQ-VAE Equivariance Regularized Latent Space for Improved Generative Image Modeling.pdf'
仓库地址：https://github.com/zelaki/eqvae
```

```
论文地址：'/Users/yanyuming/Library/Mobile Documents/iCloud~QReader~MarginStudy~easy/Documents/论文/Vector Quantized Diffusion Model for Text-to-Image Synthesis.pdf'

查看代码库，我需要将论文的公式，代码，理论，实验结果，总结，形成一个文档。请进行彻底的分析。

找到每一个数学概念对应的代码实现。整理成文档保存到本地。
```

```
docker buildx build --platform linux/amd64,linux/arm64 -t yym68686/beswarm:latest --push .
```

```
cd ~/Downloads/GitHub/beswarm && docker run --rm \
--env-file .env \
-v ./work:/app/work beswarm \
--goal "分析这个仓库 https://github.com/cloneofsimo/minRF"
```

main.py

```python
import os
import asyncio
import nest_asyncio
nest_asyncio.apply()

from beswarm.tools import (
    worker,
    get_code_repo_map,
    search_arxiv,
    read_file,
    list_directory,
    excute_command,
    write_to_file,
    download_read_arxiv_pdf,
)

os.environ['API_KEY'] = ''
os.environ['BASE_URL'] = 'https://api.xxx.xyz/v1/chat/completions'
os.environ['MODEL'] = 'gemini-2.5-pro'

# 设定任务目标
goal = """

"""
work_dir = '/work_dir'

tools = [read_file, list_directory, write_to_file, excute_command, search_arxiv, download_read_arxiv_pdf, get_code_repo_map]
asyncio.run(worker(goal, tools, work_dir))
```
