transcriptio

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package transcriptio is the transcript-parsing core shared by the public transcript package and the runner's prompt backfill (the root package cannot import transcript without a cycle). Providers are identified by their string form (agenthooks.Provider values).

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. It mirrors transcript.Entry field-for-field so the public package converts directly.

func Read

func Read(provider string, 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.

Jump to

Keyboard shortcuts

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