How venkateswarareddy-b/ai-tool-assistant works
AI Tool Assistant is a React chat interface backed by a FastAPI service. Users submit a question or select a suggested tool; the backend asks Groq to answer or choose a tool, runs the selected tool, and returns an answer with tool results for display. The README documents weather, currency, Wikipedia, calculator, news, and location capabilities. Tool implementations and orchestration share backend/main.py; unsampled details are represented only where documented, and the shown source does not establish storage.
Main entry points: main.py Tool registry · App.jsx Chat app · Sidebar.jsx Tool sidebar · ToolCard.jsx Tool cards
Components 19
Chat interface
- Chat app
frontend/src/App.jsx - Tool sidebar
frontend/src/components/Sidebar.jsx - Tool cards
frontend/src/components/ToolCard.jsx - Chat messages
frontend/src/components/ChatMessage.jsx
Chat API
- Chat endpoint
backend/main.py - Tool registry
backend/main.py
Assistant tools
- Weather lookup
backend/main.py - Currency conversion
backend/main.py - Wikipedia search
backend/main.py - Calculator
backend/main.py - News lookup
backend/main.py - Location lookup
backend/main.py
External services
- Groq model
- OpenWeather
- Frankfurter
- Wikipedia API
- NewsAPI
- Nominatim
Other components
- User
Connections 19
- User → Chat app: submits question
frontend/src/App.jsx - Chat app → Tool sidebar: renders
frontend/src/App.jsx - Chat app → Tool cards: renders
frontend/src/App.jsx - Chat app → Chat messages: renders
frontend/src/App.jsx - Chat app → Chat endpoint: posts message
frontend/src/App.jsx - Chat endpoint → Chat app: returns answer
frontend/src/App.jsx - Chat endpoint → Groq model: requests response
backend/main.py - Chat endpoint → Tool registry: dispatches tool calls
backend/main.py - Tool registry → Weather lookup: invokes
backend/main.py - Tool registry → Currency conversion: invokes
backend/main.py - Tool registry → Wikipedia search: invokes
backend/main.py - Tool registry → Calculator: invokes
backend/main.py - Tool registry → News lookup: invokes
backend/main.py - Tool registry → Location lookup: invokes
backend/main.py - Weather lookup → OpenWeather: requests weather
backend/main.py - Currency conversion → Frankfurter: requests rates
backend/main.py - Wikipedia search → Wikipedia API: searches summary
backend/main.py - News lookup → NewsAPI: requests articles
backend/main.py - Location lookup → Nominatim: searches place
backend/main.py