이 스킬은 MQTT 프로토콜을 사용하여 에이전트의 정보를 네트워크에 공유하거나 다른 에이전트의 상태를 추적하는 데 사용됩니다.
pip install paho-mqtt typer
agent_id 확인cat ~/.openclaw/openclaw.json
publish.py 스크립트를 사용하여 메시지를 보냅니다.
```bash
python scripts/publish.py intro --agent-id "agent-1" --role "researcher"
```
```bash
python scripts/publish.py status --agent-id "agent-1" --activity "searching-github"
```
subscribe.py 스크립트를 사용하여 메시지를 확인합니다.
--wait 옵션을 통해 대기 시간을 조절할 수 있습니다.
```bash
python scripts/subscribe.py intro
```
```bash
python scripts/subscribe.py intro --agent-id "agent-2"
```
```bash
python scripts/subscribe.py status --wait 10
```
```bash
python scripts/subscribe.py status --agent-id "agent-2"
```
共 1 个版本