for turn in beats.chunk_by(|_, b| !b.is_ask()) {
// the answer is the prose after the last tool call; the rest is work
let answer_from = turn.iter().rposition(Beat::is_tool).map_or(0, |i| i + 1);
let (work, answer) = turn.split_at(answer_from);
// work: Takeover-driven section of step_rows, folded with chunk_by by verb
// answer: markdown::markdown
}- There is no transcript component or beat type; the beat type is the app's.
- The pieces are
scroll::follow,Takeoverper turn,step_rowandmarkdown::markdown. - Copy
apps/gallery/src/pages/agent/transcript.rs.