microsoft / microsoft/agent-framework
.NET & Python: [Feature]: Automatic compaction of chat history to stay within durable backend size limit
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.6k
- Forks
- 2.3k
- Avg merge
- 2d 45m
- Merged PRs (30d)
- 358
Description
Description
Description:
The Durable extension persists chat history in a durable entity. Durable backends cap entity state size (e.g., 1 MB on some providers), so long conversations eventually fail to persist and break the agent.
Add an automatic compaction mechanism that monitors the serialized history size and compacts it (summarize or evict older turns) before it hits the backend limit, keeping recent context and letting conversations run indefinitely.
Code Sample
Language/SDK
Both
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by tracing durable entity persistence and serialized chat-history handling in both the Python and .NET SDKs, then identify how backend size limits are measured. Done means long conversations remain persistable by retaining recent context while compacting history before the limit is reached.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, python
- Domain
- ai, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100