blob: 5a45654f86c5799956181da66f5f227f22855880 (
plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
{{/*
Copyright 2025 syzkaller project authors. All rights reserved.
Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
Detailed info on a single AI job execution.
*/}}
<!doctype html>
<html>
<head>
{{template "head" .Header}}
<title>syzbot</title>
</head>
<body>
{{template "header" .Header}}
{{template "ai_job_list" .Jobs}}
{{if and (ne .Job.Correct "β³") (ne .Job.Correct "π₯")}}
<form method="POST">
<fieldset>
<legend>Result correct:</legend>
<input type="radio" name="correct" id="β
" value="β
" {{if eq .Job.Correct "β
"}}checked{{end}}>
<label for="β
">β
</label>
<input type="radio" name="correct" id="β" value="β" {{if eq .Job.Correct "β"}}checked{{end}}>
<label for="β">β</label>
<input type="radio" name="correct" id="β" value="β" {{if eq .Job.Correct "β"}}checked{{end}}>
<label for="β">β</label>
<button type="submit">Set</button>
</fieldset>
</form>
{{end}}
{{range $res := .Results}}
<br><b>{{$res.Name}}:</b><br>
<div id="ai_result_div"><pre>{{$res.Value}}</pre></div><br>
{{end}}
<table class="list_table">
<caption>Trajectory:</caption>
<thead><tr>
<th>Seq</th>
<th>Timestamp</th>
<th>Type</th>
<th>Name</th>
<th>Duration</th>
</tr></thead>
<tbody>
{{range $span := $.Trajectory}}
<tr>
<td>{{$span.Seq}}/{{$span.Nesting}}</td>
<td>{{formatTime $span.Started}}</td>
<td>{{$span.Type}}</td>
<td>{{$span.Name}}</td>
<td>
<details>
<summary>{{formatDuration $span.Duration}}</summary>
{{if $span.Error}}
<b>Error:</b> <div id="ai_details_div"><pre>{{$span.Error}}</pre></div><br>
{{end}}
{{if $span.Args}}
<b>Args:</b> <div id="ai_details_div"><pre>{{$span.Args}}</pre></div><br>
{{end}}
{{if $span.Results}}
<b>Results:</b> <div id="ai_details_div"><pre>{{$span.Results}}</pre></div><br>
{{end}}
{{if $span.Instruction}}
<b>Instruction:</b> <div id="ai_details_div"><pre>{{$span.Instruction}}</pre></div><br>
{{end}}
{{if $span.Prompt}}
<b>Prompt:</b> <div id="ai_details_div"><pre>{{$span.Prompt}}</pre></div><br>
{{end}}
{{if $span.Reply}}
<b>Reply:</b> <div id="ai_details_div"><pre>{{$span.Reply}}</pre></div><br>
{{end}}
{{if $span.Thoughts}}
<b>Thoughts:</b> <div id="ai_details_div"><pre>{{$span.Thoughts}}</pre></div><br>
{{end}}
</details>
</td>
</tr>
{{end}}
</tbody>
</table>
</body>
</html>
|