How vikas00413/agenticchatbot works
Agentic AI Chatbot is a Streamlit application with two conversation modes: a basic LLM chat and a web-enabled chat that can invoke Tavily search. The user selects a model and mode, enters a message, and the main application builds the corresponding LangGraph; the display layer streams graph updates and renders the assistant reply and tool activity. The graph also carries message state between nodes. Source excerpts show the main wiring and runtime calls; the optional provider integrations are documented in the README.
Main entry points: graph_builder.py Graph builder · chatbot_with_tool_node.py Tool-enabled chat node · main.py App orchestrator · loadui.py Input controls
Components 14
Application flow
- App orchestrator
src/agenticaichatbot/main.py
Streamlit interface
- UI configuration
src/agenticaichatbot/ui/uiconfigfile.py - Input controls
src/agenticaichatbot/ui/streamlit/loadui.py - Chat display
src/agenticaichatbot/ui/streamlit/display_result.py
Conversation graph
- Graph builder
src/agenticaichatbot/graph/graph_builder.py - Message state
src/agenticaichatbot/state/state.py - Basic chat node
src/agenticaichatbot/nodes/basic_chatbot_node.py - Tool-enabled chat node
src/agenticaichatbot/nodes/chatbot_with_tool_node.py - Tool executor
src/agenticaichatbot/tools/search_tool.py
Model and search
- OpenAI model setup
src/agenticaichatbot/LLMs/openaillm.py - OpenAI service
- Search tool setup
src/agenticaichatbot/tools/search_tool.py - Tavily search
Other components
- Chat user
Connections 19
- Chat user → Input controls: enters settings
README.md - App orchestrator → Input controls: loads controls
src/agenticaichatbot/main.py - Input controls → UI configuration: reads options
src/agenticaichatbot/ui/streamlit/loadui.py - App orchestrator → OpenAI model setup: configures model
src/agenticaichatbot/main.py - OpenAI model setup → OpenAI service: invokes model
README.md - App orchestrator → Graph builder: builds graph
src/agenticaichatbot/main.py - Graph builder → Message state: uses state schema
src/agenticaichatbot/graph/graph_builder.py - Graph builder → Basic chat node: registers node
src/agenticaichatbot/graph/graph_builder.py - Graph builder → Tool-enabled chat node: registers node
src/agenticaichatbot/graph/graph_builder.py - Graph builder → Search tool setup: creates tools
src/agenticaichatbot/graph/graph_builder.py - Graph builder → Tool executor: registers executor
src/agenticaichatbot/graph/graph_builder.py - Graph builder → Tool-enabled chat node: routes tool calls
src/agenticaichatbot/graph/graph_builder.py - Tool-enabled chat node → Tool executor: dispatches calls
src/agenticaichatbot/graph/graph_builder.py - Tool executor → Tool-enabled chat node: returns tool output
src/agenticaichatbot/graph/graph_builder.py - Search tool setup → Tavily search: creates search client
README.md - Basic chat node → OpenAI service: invokes model
README.md - Tool-enabled chat node → OpenAI service: invokes model
README.md - App orchestrator → Chat display: renders results
src/agenticaichatbot/main.py - Chat display → Graph builder: streams graph
src/agenticaichatbot/ui/streamlit/display_result.py