How hocine-drioueche/randoneo-production works
Randoneo is a French customer-support assistant for an outdoor-products retailer. A customer signs in to the Streamlit chat, asks about products, policies, or an order, and receives an agent response based on MCP tools; opening a support ticket pauses for human approval. The repository also documents layered safeguards and baseline-versus-hardened evaluation. The graph reflects the sampled runtime and README; unsampled evaluation inputs and deployment details are included only where documented, without inferring their internal wiring.
Main entry points: agent.py Agent builder · randoneo_support.py MCP server · app.py Chat and access · evaluate.py Case evaluation
Components 24
Customer experience
- Chat and access
app.py - Session identity
app.py - Ticket approval
app.py
Agent runtime
- Agent builder
agent.py - Reasoning model
agent.py
Support capabilities
- MCP server
randoneo_support.py - Catalog search
randoneo_support.py - Order tracking
randoneo_support.py - Knowledge search
randoneo_support.py - Ticket creation
randoneo_support.py - Product sheet
randoneo_support.py - Product catalog
data/catalog.json - Order records
data/orders.json - Knowledge corpus
data/randoneo_corpus.json - Vector index
randoneo_support.py
Evaluation and safeguards
- Case evaluation
evaluate.py - Attack replay
attacks.py - Evaluation cases
cases.jsonl - Baseline results
baseline.json - Hardened results
hardened.json - Attack results
attacks.json
Other components
- Customer
- OpenAI embeddings
- Anthropic model
Connections 30
- Customer → Chat and access: asks questions
README.md - Chat and access → Agent builder: builds runtime
app.py - Chat and access → Session identity: sets identity
app.py - Chat and access → Ticket approval: presents decision
app.py - Chat and access → Agent builder: streams turns
app.py - Ticket approval → Agent builder: resumes decision
app.py - Agent builder → MCP server: discovers tools
agent.py - Agent builder → Reasoning model: creates agent
agent.py - Reasoning model → Anthropic model: requests completions
agent.py - Agent builder → Session identity: injects customer ID
agent.py - MCP server → Catalog search: registers tool
randoneo_support.py - MCP server → Order tracking: registers tool
randoneo_support.py - MCP server → Knowledge search: registers tool
randoneo_support.py - MCP server → Ticket creation: registers tool
randoneo_support.py - MCP server → Product sheet: registers resource
randoneo_support.py - Catalog search → Product catalog: reads products
randoneo_support.py - Product sheet → Product catalog: reads products
randoneo_support.py - Order tracking → Order records: checks ownership
randoneo_support.py - Ticket creation → Order records: checks ownership
randoneo_support.py - MCP server → Knowledge corpus: loads documents
randoneo_support.py - MCP server → Vector index: indexes corpus
randoneo_support.py - Knowledge search → Vector index: queries documents
randoneo_support.py - Vector index → OpenAI embeddings: embeds documents
randoneo_support.py - Agent builder → Ticket creation: requires approval
agent.py - Case evaluation → Agent builder: runs cases
evaluate.py - Case evaluation → Evaluation cases: loads cases
evaluate.py - Case evaluation → Baseline results: writes summary
- Case evaluation → Hardened results: writes summary
- Attack replay → Agent builder: replays attacks
attacks.py - Attack replay → Attack results: writes summary
attacks.py