export

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package export renders session.Thread conversation histories into human-reviewable formats: plain text, self-contained HTML, and JSON.

All three top-level functions accept an io.Writer and a *session.Thread, iterate over the thread's turns, and emit every artifact in the turn. Delta artifacts are never present in persisted threads so no special handling is required.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTML

func HTML(w io.Writer, thread *session.Thread) error

HTML writes a self-contained HTML document representing the conversation thread to w. The output uses inline CSS and has no external dependencies.

func JSON

func JSON(w io.Writer, thread *session.Thread) error

JSON writes a pretty-printed JSON representation of the thread to w. It delegates to the thread's existing MarshalJSON implementation with indentation for readability.

func Text

func Text(w io.Writer, thread *session.Thread) error

Text writes a plain-text transcript of the conversation thread to w. Each turn is emitted with its role and timestamp, followed by every artifact rendered in a human-readable form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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