How aima0749/runway works
Runway Radar is a small-business cash-flow forecasting assistant. Users ask questions in the chat UI; the agent selects tools, which return forecast, invoice, and decision-support results that the assistant explains and checks. The forecasting domain includes scenario data, invoice-payment features and delay modeling, cash simulation, and decision analysis; parsing and invoice saving support chat workflows. The source index identifies additional evaluation and scripted-scenario modules, but their runtime links are not established by the excerpts, so uncertain connections are omitted.
Main entry points: tools.py Agent tools · chat_ui.py Chat interface · simulate.py Cash simulation · agent.py AI agent
Components 19
Chat assistant
- Chat interface
app/components/chat_ui.py - AI agent
src/agent.py - Offline assistant
src/offline.py - Answer guardrail
src/guardrail.py
Forecast engine
- Dataset loading
src/data.py - Domain schemas
src/schemas.py - Invoice features
src/features.py - Payment delay model
src/delay_model.py - Cash simulation
src/simulate.py - Runtime configuration
config.py
Business workflows
- Invoice text parser
src/parser.py - Agent tools
src/tools.py - Decision analysis
src/decisions.py - Reminder messages
src/messages.py
Scenarios and evaluation
- Synthetic data generator
src/generator.py - Ayesha scenario
src/scenario_ayesha.py - Forecast evaluation
src/evaluate.py - Agent evaluation
src/eval_agent.py
Other components
- Business user
Connections 20
- Business user → Chat interface: asks
app/components/chat_ui.py - Chat interface → Offline assistant: asks offline
app/components/chat_ui.py - Chat interface → AI agent: gets LLM
app/components/chat_ui.py - Chat interface → Agent tools: saves invoice
app/components/chat_ui.py - AI agent → Agent tools: dispatches tools
src/agent.py - Agent tools → Decision analysis: runs what-if
src/tools.py - Agent tools → Invoice text parser: parses invoice text
src/tools.py - Agent tools → Reminder messages: drafts reminders
src/tools.py - Agent tools → Dataset loading: loads dataset
- Agent tools → Invoice features: builds forecast inputs
src/tools.py - Invoice features → Payment delay model: fits payment model
src/delay_model.py - Payment delay model → Cash simulation: supplies payment samples
- Cash simulation → Domain schemas: returns simulation result
src/simulate.py - Dataset loading → Domain schemas: uses dataset types
src/data.py - Synthetic data generator → Runtime configuration: uses data settings
src/generator.py - Ayesha scenario → Payment delay model: builds model
src/scenario_ayesha.py - Ayesha scenario → Cash simulation: projects cash
src/scenario_ayesha.py - Forecast evaluation → Cash simulation: evaluates forecasts
src/evaluate.py - Agent evaluation → AI agent: evaluates agent
src/eval_agent.py - Offline assistant → Answer guardrail: checks answers
src/offline.py