agent-lightning
agent-lightning copied to clipboard
Feat: Add `trace_agg_mode` to support both transition and trajectory aggregation
Add a trace_agg_mode option to control whether the trace aggregation is performed per transition or per trajectory (by adding response mask for multi-turn). Default remains 'transition' for backward compatibility.