Repository navigation
Expand file tree
/
Copy pathconfig.py
More file actions
67 lines (50 loc) · 5.4 KB
/
Copy pathconfig.py
File metadata and controls
67 lines (50 loc) · 5.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import os
from dotenv import load_dotenv
load_dotenv()
GPT_MODEL = os.getenv("GPT_MODEL", "gpt-5.2")
SECRET_KEY = os.getenv("SECRET_KEY")
if not SECRET_KEY:
raise RuntimeError("SECRET_KEY not set in .env file")
FLASK_DEBUG = os.getenv("FLASK_DEBUG", "false").lower() == "true"
AI_CONFIG = {
"max_chat_history": 20,
}
LOG_LLM_IO = True
TASKS = [
{
"id": "task_01",
"title": "Return Processing in Online Retail",
"description": """An online retailer wants to model their return process. The process begins when a customer registers a return through the customer portal. The retailer's customer portal then automatically generates a return label and sends it to the customer.
The customer portal now waits for the physical return to arrive. If the return does not arrive within 14 days, the return process is automatically closed without refund.
When the package arrives, a warehouse employee checks the goods for defects. If the goods are damaged or incomplete, the customer is informed and the process also ends without refund. If the goods are in perfect condition, the warehouse employee forwards the information to accounting. Accounting initiates the refund of the purchase price to the customer and sends them a confirmation of the credit, which ends the process."""
},
{
"id": "task_02",
"title": "Insurance Claim Processing",
"description": """An insurance company receives a damage report from a customer. A claims handler creates the case and checks the insurance coverage. If the damage is not covered, a rejection is sent directly to the customer and the case is closed.
If the damage is covered, the claims handler checks the estimated damage amount. If it is below €1,500, the case is directly approved, payment is automatically initiated, and the customer is informed.
If the damage amount exceeds €1,500, an external assessor must be commissioned. The insurance sends the order to the assessor and waits for their report. If the report does not arrive within 10 business days, the case is automatically rejected due to deadline expiration. If the report arrives on time, the claims handler reviews the assessment and makes a final decision on approval or rejection. In all cases, the customer is finally informed about the decision (approval, rejection, or rejection due to deadline expiration) and the process ends."""
},
{
"id": "task_03",
"title": "Vacation Request Process",
"description": """An employee submits a vacation request through the HR portal. The request arrives at the company's HR department. The HR portal automatically checks whether the employee has enough remaining vacation days. If not, the request is automatically rejected and the employee is informed.
If enough days are available, the HR portal forwards the request for approval to the employee's direct supervisor. The HR portal now waits for feedback. The supervisor can approve or reject the request.
If the supervisor does not provide feedback within 5 business days, the case is escalated: An HR manager must now make a final decision (approval or rejection). Upon approval (either by the supervisor or HR manager), the HR portal books the vacation in the system. Finally, the employee is informed about the final decision (approval, rejection by supervisor, or rejection by HR manager)."""
},
{
"id": "task_04",
"title": "Processing of building permits",
"description": """A citizen submits a building application to the building authority. An official at the building authority checks the application for completeness. If the documents are incomplete, the citizen is given a deadline of 14 days to submit the missing documents. If the documents are not received in time, the application is rejected.
If the documents are complete (either initially or after resubmission), the building authority forwards the application to the external environmental agency for review. The building authority waits for feedback.
If the environmental agency issues a negative opinion, the application is rejected. If the opinion is positive, the application is forwarded internally to a test engineer. The engineer checks the technical details. If the check is positive, the building authority issues the permit. If it is negative, the application is rejected. In either case (approval or rejection), the citizen is informed of the result."""
},
{
"id": "task_05",
"title": "Office Supply Procurement",
"description": """On the first business day of each quarter, a company's system checks the inventory of office supplies. If minimum stock is not reached, the process continues; otherwise, it ends immediately.
With low inventory, the administration automatically sends an order request to the standard supplier. The system waits for a response. The supplier can send a confirmation or rejection (e.g., "not deliverable").
Upon confirmation, the process ends successfully. Upon rejection or if no response is received within 3 business days, an administration employee must manually intervene. The employee checks whether to place the order with an alternative supplier. If they decide against it (e.g., too expensive), the order process is cancelled. If they decide in favor, they send the order to the alternative supplier. The process ends after the order to the alternative supplier or after cancellation."""
}
]
TASKS_BY_ID = {t['id']: t for t in TASKS}