How luffyyeet/agentic-interaction-ws2627 works
This is a command-line day and travel planning agent. A user submits a question; the entry point loads configuration and starts logging, then the agent consults a model that may request calendar, weather, or train lookups. Tool results return to the model, which produces the final answer for the CLI. The tools also read home-city context and use a shared HTTP fetch helper. The README documents the service capabilities and behavior; the graph keeps those stages distinct while grouping implementations that share a source file.
Main entry points: agent.py Agent loop · __main__.py Command entry · tools.py HTTP fetch · runlog.py Run log
Components 12
User interface
- Command entry
agent/__main__.py
Agent orchestration
- Agent loop
agent/agent.py
Planning lookups
- Home context
agent/tools.py - Calendar lookup
agent/tools.py - Weather lookup
agent/tools.py - Train lookup
agent/tools.py - HTTP fetch
agent/tools.py
Runtime support
- Configuration
agent/config.py - Run log
agent/runlog.py
Other components
- User
- Language model
- Planning data service
Connections 17
- User → Command entry: asks
README.md - Command entry → Configuration: loads
agent/__main__.py - Command entry → Run log: creates
agent/__main__.py - Command entry → Agent loop: submits question
agent/__main__.py - Agent loop → Language model: sends prompt
agent/agent.py - Language model → Agent loop: returns tool requests
agent/agent.py - Agent loop → Home context: reads context
agent/agent.py - Agent loop → Calendar lookup: dispatches
agent/agent.py - Agent loop → Weather lookup: dispatches
agent/agent.py - Agent loop → Train lookup: dispatches
agent/agent.py - Home context → HTTP fetch: uses
agent/tools.py - Calendar lookup → HTTP fetch: uses
agent/tools.py - Weather lookup → HTTP fetch: uses
agent/tools.py - Train lookup → HTTP fetch: uses
agent/tools.py - HTTP fetch → Planning data service: GETs data
agent/tools.py - Agent loop → Run log: writes events
agent/agent.py - Agent loop → Command entry: returns answer
agent/__main__.py