jsonl

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package jsonl reads agent session files line by line.

Index

Constants

View Source
const MaxLineSize = 64 << 20

MaxLineSize is the longest line NewScanner accepts. One session line holds a whole turn, and a large tool result can exceed 1 MB, so the limit is set far above real lines while still bounding memory on a corrupt file.

Variables

This section is empty.

Functions

func NewScanner

func NewScanner(r io.Reader) *bufio.Scanner

NewScanner returns a line scanner whose buffer starts small and grows only for long lines, up to MaxLineSize.

Types

This section is empty.

Jump to

Keyboard shortcuts

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