Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayReduction ¶
type ArrayReduction struct {
Path string `json:"path"`
OriginalLen int `json:"original_len"`
NewLen int `json:"new_len"`
Removed int `json:"removed"`
}
ArrayReduction records a single array halving: its path, original length, new (kept) length, and the number of removed elements.
type Config ¶
Config holds token-budget truncation settings.
func ConfigFromEnv ¶
func ConfigFromEnv() Config
ConfigFromEnv reads CLOCKIFY_TOKEN_BUDGET from the environment. Default is 8000. Setting it to 0 disables truncation.
type TruncationReport ¶
type TruncationReport struct {
ArrayReductions []ArrayReduction `json:"array_reductions,omitempty"`
}
TruncationReport captures side-channel metadata about reductions applied during truncation. It is populated by reduceArrays and surfaced via the _truncation field in the resulting map, keeping arrays homogeneous.
Click to show internal directories.
Click to hide internal directories.