Components.AI: Add AgentContext lifecycle and mutation APIs
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
### Is your feature request related to a problem? Please describe the problem.
`AgentContext` only appends turns. It has no clear, removal, replacement, mutation notification, `CanSend`, or `IsBusy` contract, which blocks switching, retry, editing, queueing, and reliable restore.
### Describe the solution you'd like
Design and add the minimum public lifecycle API needed to clear, remove, replace, and notify mutations while exposing authoritative interaction state. Include correct restore notifications and status transitions.
### Additional context
Leaf task for #68227 requirements G6 and L2. Requires public API review.
Contributor guide
Research direction
Start with the current AgentContext entry point and read issue #68227 requirements G6 and L2. Review the requested lifecycle, mutation, CanSend, IsBusy, restore-notification, and status-transition contracts; done means the minimum public API is agreed through the required public API review.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- ai
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100