AkshayHuggingFace/Travel-Planning-Agent
0
Travel Planning Agent
An end-to-end travel concierge powered by Google ADK agents. This Space exposes the existing multi-tool agent stack behind a FastAPI UI served with adk web.
Features
- Multi-agent workflow covering flights, hotels, restaurants, weather, transport, and itinerary creation.
- Integrates Google Gemini via
google-adkfor orchestrating tool calls. - Uses SerpApi (
google_search_results) for hotel and flight search. - Containerized for reproducible deployment on HuggingFace Spaces.
Local Development
python -m venv venv
venv\Scripts\activate
pip install -r multi_tool_agent/requirements.txt
adk webVisit http://localhost:8000/dev-ui/ to interact with the agent.
Deployment Notes
- Docker image listens on
$PORT(default 7860) and runsadk web --host 0.0.0.0. - Secrets such as
SERP_API_KEYand Google credentials should be provided via environment variables (HuggingFace Space secrets). - For local Docker testing:
docker build -t travel-agent-space .
docker run -p 7860:7860 --env-file multi_tool_agent/.env travel-agent-spaceOpen http://localhost:7860/dev-ui/ to verify the UI.
Deploying to HuggingFace Spaces (Beginner Guide)
- Create the Space
- Sign in at huggingface.co, go to Spaces → New Space, pick a name, leave hardware on CPU, and choose Docker as the runtime.
- Generate a token
- In Settings → Access Tokens create a write-enabled token; copy it for later (you’ll use it as the Git password).
- Connect your repo
- From this project folder run
git remote add hf https://huggingface.co/spaces/<username>/<space-name>(replace with your Space info). - Push the code
- Run
git push hf dev:main --force-with-leaseand enter your HF username + token when prompted. This triggers the Space build using the includedDockerfile. - Set secrets
- In the Space page open Settings → Secrets and add keys like
GOOGLE_API_KEY,SERP_API_KEY, andFIRECRAWL_API_KEY. They become environment variables inside the container. - Verify the build
- Watch the Build & Logs tab until it shows “Running,” then visit
https://huggingface.co/spaces/<username>/<space-name>(the app serves the ADK UI at/dev-ui/).
If you change the app later, repeat steps 4–6 to redeploy.
