# 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.

- Published: 2026-04-09
- Author: Agno Team
- Category: Changelog
- Canonical: https://agno-com-nine.vercel.app/articles/control-session-summary-scope-with-last-n-runs-and-conversation-limit-on-sessionsummarymanager
- Markdown: https://agno-com-nine.vercel.app/articles/control-session-summary-scope-with-last-n-runs-and-conversation-limit-on-sessionsummarymanager.md

`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](https://github.com/agno-agi/agno/blob/main/cookbook/06_storage/04_session_summary_limits.py) for reference.
