WhatsApp Agent 集成 Agno + Ollama
1) 先决条件
- Python 3.10及以上版本
- 运行中的Ollama(默认端口11434)
- 其可访问的WhatsApp API(令牌+已连接设备)
提示:如果ollama serve返回address already in use,是因为 已经在运行了 服务器。无需再次运行。
2) 在Ollama上上传一个模型
你已经拉过(这个)了 qwen3:latest. 确认:
ollama list
# deve aparecer qwen3:latest
# teste rápido
ollama run qwen3 "diga oi em pt-br"
...
python3 -m venv .venv
source .venv/bin/activate
which python # deve apontar para .../agno/.venv/bin/python
python -V
(optional)
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
pip install -r requirements.txt
pip install "websocket-client>=1,<2" # se der erro de transporte
