- Step1:複製儲存庫:git clone https://github.com/mstrYoda/llm-agents-example.git
- Step2:安裝相依套件:pip install -r requirements.txt
- Step3:在.env中設定OpenAI、WolframAlpha與SerpAPI的API金鑰
- Step4:執行範例代理:python chat_agent.py或python tool_agent.py
- Step5:探索examples/中的程式碼,了解工具註冊、檢索器與記憶體的使用情形
- Step6:自訂新增工具、調整提示模板或連接不同的向量資料庫