Skip to main content

Module tree

Module tree 

Source
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§

TrimNode
Trim tree node.

Enums§

NodeKind
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