01 / 07准备播放
先收源码,再交给执行
同一个 Guest,追加到关闭
APPEND-ONLY PREFIX / 源码只追加同一个 Run / 同一个 Guest
Host 接收当前动作只接收追加片段1 / 7
源码chunks 尚未关闭
过滤append-only:不替换旧片段
收尾未进入清理
prefix.go关键行
prefix.go:11
// RunPrefix receives append-only UTF-8 source fragments. Closing chunks commits
prefix.go:12
// the source for one execution in the same Guest; ctx cancels an unfinished stream.
prefix.go:13
func (r *Runner) RunPrefix(ctx context.Context, chunks <-chan string, inputs any) (Output, error) {
prefix.go:22
return r.run(ctx, "", inputs, true, chunks)
发送片段不等于执行 Python。
旁白
点一下播放即可。也可以只听声音,或拖动进度跳到想看的位置。
0:002:05
正在准备本课音轨与图解。首次播放需要点一下。