Documentation
¶
Overview ¶
Package sessionimages reads retained images from native coding transcripts. It never fetches URLs or opens image paths mentioned in transcript content.
Index ¶
Examples ¶
Constants ¶
View Source
const ( HumanInput = "human_input" ToolResult = "tool_result" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Limits ¶
type Limits struct {
MaxImages int
MaxImageBytes int64
MaxTotalBytes int64
MaxLineBytes int
MaxScanBytes int64
}
Limits bound retained bytes and transcript scanning independently. Nonpositive values select defaults.
type Result ¶
type Result struct {
Images []Image
Diagnostics []Diagnostic
}
func Read ¶
Read extracts payloads attached to reachable graph inputs or tool calls. Entire, unsupported sources and review-generation sessions supply no images. Diagnostics contain no transcript text, local paths or encoded payloads.
Example ¶
result := Read(context.Background(), sessions.Session{ID: "checkpoint", Source: sessions.Entire}, Limits{})
fmt.Println(len(result.Images), result.Diagnostics[0].Reason)
Output: 0 native image source unsupported
Click to show internal directories.
Click to hide internal directories.