Documentation
¶
Overview ¶
Package transcript writes session transcripts to disk on exit.
Every run that has a project .agents/ directory persists a JSON transcript to .agents/sessions/<RFC3339-timestamp>.json containing the chat history and the final usage totals. The schema is versioned so future readers can evolve safely.
Renamed from pkg/session (#492): ADK's own session package dominates pkg/agent's signatures, so the old name collided in almost every file that used both. pkg/session remains as a deprecated forwarding shim for one release. On-disk layout is unchanged (still .agents/sessions/, same schema, same "session:"-prefixed sentinel text for error compatibility).
Index ¶
Constants ¶
const SchemaVersion = 1
SchemaVersion is the on-disk schema version for transcripts.
const SessionsDirName = "sessions"
SessionsDirName is the subdirectory under .agents/ where transcripts land. Created on demand.
Variables ¶
var ErrNoProject = errors.New("session: no project directory configured")
ErrNoProject is the sentinel returned when no project .agents/ directory is configured — check with errors.Is. The message keeps the historical "session:" prefix: callers may have matched on it, and the on-disk/product concept ("sessions") is unchanged; only the Go package name moved (#492).