{{/* Copyright 2026 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. AI trajectory rendering, invoked with context containing .Trajectory and .TrajectoryJSON */}} {{define "ai_trajectory"}} {{range $span := .Trajectory}} {{end}}
Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
{{$span.Seq}}/{{$span.Nesting}} {{formatTime $span.Started}} {{$span.Type}} {{$span.Name}}
{{formatDuration $span.Duration}} {{if $span.Model}} Model:
{{$span.Model}}

{{end}} {{if $span.Error}} Error:
{{$span.Error}}

{{end}} {{if $span.Args}} Args:
{{$span.Args}}

{{end}} {{if $span.Results}} Results:
{{$span.Results}}

{{end}} {{if $span.Instruction}} Instruction:
{{$span.Instruction}}

{{end}} {{if $span.Prompt}} Prompt:
{{$span.Prompt}}

{{end}} {{if $span.Reply}} Reply:
{{$span.Reply}}

{{end}} {{if $span.InputTokens}} Tokens:
							input: {{$span.InputTokens}}
							output: {{$span.OutputTokens}}
							thoughts: {{$span.OutputThoughtsTokens}}
						

{{end}} {{if $span.Thoughts}} Thoughts:
{{$span.Thoughts}}

{{end}}
LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)
{{end}}