Expand description
Trim tree (TrimTree) for budget trimming.
The JSON response is modeled as a rooted tree T = (V, E) where each node has:
- weight – cost in tokens (serialization without children)
- value – information value (depends on the strategy)
- included – whether the node is included in the final output
Builders convert typed data into TrimNode trees with precomputed weights.
Structs§
- Trim
Node - Trim tree node.
Enums§
- Node
Kind - Node type in the trim tree.
Functions§
- build_
comments_ tree - build_
diffs_ tree - Build a tree from a list of file diffs.
- build_
discussions_ tree - Build a tree from a list of discussions.
- build_
issues_ tree - Build a tree from a list of issues.
- build_
merge_ requests_ tree