v2.5.15

April 9, 2026

Control session summary scope with last_n_runs and conversation_limit on SessionSummaryManager

SessionSummaryManager now exposes last_n_runs and conversation_limit parameters, giving precise control over how much of the conversation history is fed into summary generation. Teams running long sessions or high-frequency agents can use these to keep summaries focused and cost-efficient by limiting the input window rather than always summarizing the full history.

Details:

  • last_n_runs limits summary generation to the most recent N runs in the session
  • conversation_limit caps the number of conversation turns included in the summary input
  • Both parameters work independently and can be combined
  • No changes required for existing SessionSummaryManager configurations; defaults preserve current behavior

See cookbook for reference.