-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencounter.html
More file actions
69 lines (66 loc) · 3.55 KB
/
encounter.html
File metadata and controls
69 lines (66 loc) · 3.55 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
68
69
{% extends "base.html" %}
{% block content %}
<div class="workbench">
<div class="input-section">
<div class="input-row">
<div class="control-group">
<label for="patient-select">Patient ID</label>
<div class="combo-input">
<select id="patient-select" onchange="syncPatientInput()">
<option value="">-- pick or type below --</option>
{% for p in patients %}
<option value="{{ p.patient_id }}">{{ p.name }} ({{ p.patient_id }})</option>
{% endfor %}
</select>
<input type="text" id="patient-input" placeholder="or type any ID (e.g. P-9999)">
</div>
</div>
<div class="control-group request-group">
<label for="request-input">What do you need?</label>
<input type="text" id="request-input"
placeholder='e.g. "Show me medical records and billing", "Prescribe Amoxicillin", "Check labs and insurance"'
onkeydown="if(event.key==='Enter')submitRequest()">
</div>
<button id="submit-btn" class="btn-primary" onclick="submitRequest()">Submit</button>
</div>
<div class="quick-actions">
<span class="quick-label">Try:</span>
<button class="btn-quick" onclick="setRequest('Show me medical records and lab results')">Records + Labs</button>
<button class="btn-quick" onclick="setRequest('Check billing history and insurance coverage')">Billing</button>
<button class="btn-quick" onclick="setRequest('Prescribe Amoxicillin for bacterial infection')">Prescription</button>
<button class="btn-quick" onclick="setRequest('Show records, check billing, and prescribe Lisinopril')">Full Encounter</button>
<button class="btn-quick btn-quick-warn" onclick="setRequest('Show me records and also get records for P-2187')">Cross-Patient</button>
<button class="btn-quick btn-quick-warn" onclick="setPatientAndRequest('P-9999', 'Show medical records')">Bad Patient ID</button>
</div>
</div>
<div class="workbench-grid">
<div class="panel trace-panel">
<h2>Execution Trace</h2>
<div id="trace-container">
<div class="empty-state">
<p><strong>AgentWrit Interactive Demo</strong></p>
<p>1. Pick or type a patient ID</p>
<p>2. Describe what you need in plain text</p>
<p>3. The LLM decides which tools to call</p>
<p>4. Agents are spawned dynamically with per-patient scopes</p>
<p>5. Every scope check, denial, delegation shown here</p>
</div>
</div>
</div>
<div class="panel agents-sidebar">
<h2>Agents Spawned</h2>
<div id="agents-container">
<div class="empty-state">Agents appear here as the LLM triggers tool calls that need them.</div>
</div>
</div>
</div>
<section id="llm-answer-section" class="llm-answer-section hidden" aria-live="polite">
<div class="llm-answer-header">
<span class="llm-answer-icon">✨</span>
<h2>Assistant response</h2>
<span class="llm-answer-hint">Rendered from the model’s final message (markdown)</span>
</div>
<div id="llm-final-answer" class="llm-prose"></div>
</section>
</div>
{% endblock %}