How tomas478/oro works
This is a single-file shopping assistant: it represents a customer’s request, evaluates catalog products against requirements and budget, and can add a selected product to a cart. The excerpts show order, catalog, matching, filtering, judging, and cart-decision responsibilities, but omit the program entry point and much of their wiring. Edges therefore include only calls visible in the excerpts; the store API is represented as an external service.
Main entry points: agent.py Cart Decision
Components 10
Request Modeling
- Order
agent.py
Product Evaluation
- Product Catalog
agent.py - Text Matching
agent.py - Requirement Matcher
agent.py - Candidate Sieve
agent.py - Product Judge
agent.py
Cart Operations
- Cart Decision
agent.py - Store Session
agent.py
Other components
- Customer
- Store API
Connections 6
- Customer → Order: provides request
- Cart Decision → Product Judge: settles ranking
agent.py - Cart Decision → Candidate Sieve: filters candidates
agent.py - Cart Decision → Product Catalog: checks cart
agent.py - Cart Decision → Store Session: checks session
agent.py - Cart Decision → Store API: adds product
agent.py