Help us shape the future of Go! Take the 2026 Go Developer Survey

transcript

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package transcript renders a saved trajectory as a Markdown transcript for people: the task, each step's assistant text, tool calls and results, the run's plan, compactions, model switches and resume boundaries, and the outcome.

Every string that came from the task, the model, tools, MCP servers or hooks is treated as untrusted: it is redacted, and it is written only inside fenced code blocks or inline code spans longer than any backtick run it contains, so it cannot render as a link, image or HTML. Image data is never written. The output depends only on the trajectory, the redactor and the limit, so it is byte-identical across runs.

Index

Constants

View Source
const DefaultLimit = 2000

DefaultLimit is the number of characters kept of each tool result, tool call's arguments and tinyagent-generated user message.

Variables

This section is empty.

Functions

func Render

func Render(w io.Writer, t *trajectory.Trajectory, opts Options) error

Render writes t as Markdown to w.

Types

type Options

type Options struct {
	// Redactor masks secrets; nil still masks token-shaped strings.
	Redactor *eventlog.Redactor
	// Limit is the number of characters kept of each long block; 0 means
	// DefaultLimit.
	Limit int
}

Options configures Render.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL