How nov05/gcp-adk-challenge-lab works
Paint Agent is a conversational painting-project planner. The user enters through Chainlit; the deployed agent discovers products, stores the selection, gathers room/color choices, calculates wall area, and explains paint quantity and cost. The graph preserves the documented search, visual-product, session-state, room-planning, coverage, and pricing capabilities. Source excerpts show the agent/tool registrations and UI streaming; deployment internals and the search index contents are not shown.
Main entry points: paint_agent/agent.py Product selector · app.py Chat interface · coverage_calculator/agent.py Coverage and pricing · search_agent/agent.py Paint search
Components 13
User interface
- Chat interface
chainlit_ui/app.py - Image rendering
chainlit_ui/app.py
Agent workflow
- Product selector
paint_agent/agent.py - Paint search
paint_agent/sub_agents/search_agent/agent.py - Room and color planning
paint_agent/sub_agents/room_planner/agent.py - Coverage and pricing
paint_agent/sub_agents/room_planner/sub_agents/coverage_calculator/agent.py - Wall area calculator
paint_agent/sub_agents/room_planner/sub_agents/coverage_calculator/tools.py
Session and logging
- Session values
paint_agent/tools.py - Model callbacks
paint_agent/callback_logging.py
External services
- Agent Engine
- Vertex AI Search
- Cloud Logging
Other components
- Paint shopper
Connections 13
- Paint shopper → Chat interface: sends messages
chainlit_ui/app.py - Chat interface → Agent Engine: streams queries
chainlit_ui/app.py - Agent Engine → Product selector: runs agent
README.md - Product selector → Paint search: searches products
paint_agent/agent.py - Paint search → Vertex AI Search: retrieves paint data
paint_agent/sub_agents/search_agent/agent.py - Product selector → Session values: stores selection
paint_agent/agent.py - Product selector → Room and color planning: transfers control
paint_agent/agent.py - Room and color planning → Coverage and pricing: transfers for calculation
paint_agent/sub_agents/room_planner/agent.py - Coverage and pricing → Wall area calculator: calculates wall area
paint_agent/sub_agents/room_planner/sub_agents/coverage_calculator/agent.py - Chat interface → Image rendering: converts image tags
chainlit_ui/app.py - Product selector → Model callbacks: registers callbacks
paint_agent/agent.py - Coverage and pricing → Model callbacks: registers callbacks
paint_agent/sub_agents/room_planner/sub_agents/coverage_calculator/agent.py - Product selector → Cloud Logging: configures logging
paint_agent/agent.py