Skip to content

Commit 803808b

Browse files
committed
feat: implement SLA breach report retrieval for unassigned tickets
Signed-off-by: Andre Bossard <anbossar@microsoft.com>
1 parent 3654fa6 commit 803808b

3 files changed

Lines changed: 209 additions & 112 deletions

File tree

frontend/src/features/usecase-demo/demoDefinitions.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,14 @@ Für schnelle Ausführung:
1515
Liefere nur eine kurze, handlungsorientierte Zusammenfassung mit Prioritäten und nächstem Schritt.
1616
Nutze ausschließlich CSV-Daten und nenne die verwendeten Ticket-IDs in Fließtext.`;
1717

18-
const SLA_BREACH_DEFAULT_PROMPT = `Use the csv_sla_breach_tickets tool to retrieve all unassigned tickets at SLA risk.
18+
const SLA_BREACH_DEFAULT_PROMPT = `Call csv_sla_breach_tickets with default parameters (unassigned_only=true, include_ok=false).
1919
20-
Call it with default parameters (unassigned_only=true, include_ok=false). The tool returns a pre-computed SlaBreachReport with:
21-
- reference_timestamp: the anchor date used for age calculations (max date in the dataset)
22-
- total_breached / total_at_risk: summary counts
23-
- tickets: list of TicketSlaInfo objects already grouped (breached → at_risk) and sorted by age_hours descending
20+
Using the returned report, write ONLY a short markdown summary (max 200 words):
21+
1. State the reference_timestamp used
22+
2. Group ticket counts by breach_status and assigned_group
23+
3. Recommend actions for the most critical breaches
2424
25-
Output the tickets array as a JSON block with these fields per row:
26-
ticket_id, priority, urgency, assigned_group, reported_date, age_hours, sla_threshold_hours, breach_status
27-
28-
After the JSON block, provide a short markdown summary that:
29-
1. States the reference_timestamp used
30-
2. Groups ticket counts by breach_status and assigned_group
31-
3. Recommends actions for the most critical breaches`;
25+
Do NOT output a JSON block — the frontend fetches and renders the ticket table directly from the API.`;
3226

3327
/**
3428
* Add new demos here to create additional pages without duplicating UI logic.

0 commit comments

Comments
 (0)