transcript

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package transcript provides best-effort JSONL readers for provider transcript files (Event.Session.TranscriptPath). Formats are provider-specific and unversioned upstream; entries always retain the raw line so consumers lose nothing when shapes drift. Capture/dedup pipelines are out of scope (DESIGN.md §11) — this package is parsing primitives only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Index int
	Type  string // provider's line type ("user", "assistant", "summary", ...)
	Role  string // message role when present
	Text  string // concatenated text content when extractable
	Raw   json.RawMessage
}

Entry is one transcript line, normalized best-effort.

func Read

func Read(p agenthooks.Provider, r io.Reader) ([]Entry, error)

Read parses transcript JSONL from r. Unparseable lines become raw-only entries rather than errors: transcripts are advisory, never authoritative.

func ReadFile

func ReadFile(p agenthooks.Provider, path string) ([]Entry, error)

ReadFile parses the transcript at path for the given provider.

Jump to

Keyboard shortcuts

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