使用
Linux x86_64
需要先準備
- 執行環境:
python>=3.10
從 GitHub 複製 repo
git clone https://github.com/MAZHARMIK/python-ai-agent-ollama.git repopip install -r requirements.txt
cd repo && pip install -r requirements.txt
確認能用
cd repo && python3 -c "import tools; print('TOOLS:', len(tools.TOOLS)); print(tools.TOOLS[1]['function']['name']); print('has_required:', 'city' in str(tools.TOOLS[1])); from tools import get_current_time, get_user_city, run_tool; print('time:', get_current_time()); print('city:', get_user_city())"輸出應包含「city: Bangalore」。
先試試這個
cd repo && python3 -c "import tools; print('TOOLS:', len(tools.TOOLS)); print(tools.TOOLS[1]['function']['name']); print('has_required:', 'city' in str(tools.TOOLS[1])); from tools import get_current_time, get_user_city, run_tool; print('time:', get_current_time()); print('city:', get_user_city())"它能做什麼
- 呼叫以 JSON schema 描述的工具已測試
怎麼使用
- 在專案資料夾中列出工具並直接呼叫:`python3 -c "import tools; print('TOOLS:', len(tools.TOOLS)); print(tools.TOOLS[1]['function']['name']); from tools import get_current_tim
- 從輸出中讀取工具數量、工具名稱、目前時間和你的城市。
- 記住對話中先前的訊息沒有看到它可用
- 遵循自訂的系統提示詞未測試
- 分步驟串接多個工具呼叫沒有看到它可用
pickfit 測到哪一步
Linux x86_64
- 可以安裝
- 可以啟動
- 4 項功能中 1 項可用
- 可離線使用
macOS 和 Windows:專案說支援,但 pickfit 還沒試過。
適合用來
- 回傳目前的本機日期與時間
- 來自免費 wttr.in 服務的單行天氣資訊
- 找出你所在的城市,再取得該城市的天氣
pickfit 怎麼測的
每次測試都從乾淨的機器開始,照上面的步驟執行。 pickfit 怎麼驗證
Linux x86_64
主要功能可用
- 從頭重跑
- 可離線使用
- 檢查於 2026年11月1日
測試機器遇到的差異
- README: ollama pull qwen3:4b and Ollama running
測試中: 沙箱中未安裝 Ollama 執行檔,且需要 sudo/系統服務;仍透過直接匯入 Python 驗證程式邏輯,未使用即時 LLM - README: python simple_ai_assistant.py interactive loop
測試中: 需要位於 BASE_URL 的 OPENAI 相容端點;改以檢視 stream_chat、TOOLS schema 與串連的 MAX_STEPS 迴圈驗證,而非互動執行