Versions in this module Expand all Collapse all v0 v0.190.0 Nov 28, 2026 Changes in this version + func Decode(line []byte) (Entry, Message, bool) + func IsUserTurn(e Entry, m Message) bool + func ResultText(b Block) string + func Scan(r io.Reader, fn func(e Entry, m Message)) error + type Block struct + Content json.RawMessage + ID string + Input json.RawMessage + IsError bool + Name string + Text string + ToolUseID string + Type string + func Blocks(raw json.RawMessage) []Block + type Entry struct + IsAPIErrorMessage bool + IsCompactSummary bool + IsMeta bool + IsSidechain bool + Message json.RawMessage + PromptSource string + Timestamp string + TurnOrigin string + Type string + UUID string + type Message struct + Content json.RawMessage + Role string