AMD395 × HelloAgents Hands-on: Smart Travel Planner
This tutorial demonstrates how to build a local smart travel-planning agent on AMD AI PC using:
- Local LLM inference (Ollama / LM Studio / Linglong AI app)
- MCP tool-calling protocol
- AMap APIs for attractions and weather
Goals
- Run an LLM locally on AMD hardware
- Connect MCP tools to map/weather APIs
- Generate practical travel itinerary in Markdown
Prerequisites
- Python 3.10+
- AMD ROCm-compatible runtime environment
- A local model endpoint
- AMap API key
Setup
shell
python -m pip install --upgrade pip
pip install hello-agents requests python-dotenv uvThen either:
- set
amap_api_keydirectly intravel_planner_mcp.py, or - export the API key through an environment variable:
shell
setx AMAP_MAPS_API_KEY "your_amap_api_key_here"Run
shell
python travel_planner_mcp.pyThe sample script currently runs with a built-in Hangzhou example. Update the values in main() if you want a different destination, number of days, budget, or preferences. The agent will:
- query POIs and weather
- reason over budget constraints
- produce a day-by-day travel plan
Output
The generated result is saved as Markdown (example: hangzhou-3-day-mcp.md).
Architecture Notes
- Agent core: HelloAgents
- Tool bridge:
uvx amap-mcp-server - External service: AMap API
- Runtime: local OpenAI-compatible endpoint
Notes
The Chinese tutorial is available as amd395-helloagents-smart-travel-planner-zh.md.