Skip to content

feat: SmartContextManager with hierarchical allocation and prompt caching - #711

Merged
AmitoVrito merged 2 commits into
SynapseKit:mainfrom
DhruvGarg111:feat/issue-697-smart-context-clean
May 20, 2026
Merged

AmitoVrito merged 2 commits into
SynapseKit:mainfrom
DhruvGarg111:feat/issue-697-smart-context-clean

Conversation

@DhruvGarg111

Copy link
Copy Markdown
Collaborator

Resolves #697.

Implements SmartContextManager with hierarchical allocation, sliding window pruning, and provider-level prompt caching for Anthropic and OpenAI. Includes comprehensive testing and documentation.

(Recreated cleanly with only the 2 requested commits).

@DhruvGarg111
DhruvGarg111 force-pushed the feat/issue-697-smart-context-clean branch from 3dc2ec2 to 32227c2 Compare May 16, 2026 18:42
@DhruvGarg111 DhruvGarg111 added the v1.8 Planned for v1.8 release label May 18, 2026
@AmitoVrito
AmitoVrito merged commit dda9bda into SynapseKit:main May 20, 2026
4 checks passed
@AmitoVrito

Copy link
Copy Markdown
Collaborator

Thanks for this Dhruv. The _prepare_messages refactor is clean — removing the duplication between stream_with_messages and _call_with_tools_impl was overdue, and the cache_control passthrough for Anthropic is the right way to wire prompt caching at the message level. Merged via #719.

AmitoVrito added a commit that referenced this pull request May 20, 2026
…turedOutput, AgentFederation, FineTuningPipeline, benchmark harness

Covers PRs #711 #712 #713 #718 #714 #717 merged via batch PR #719.

Co-authored-by: Dhruv Garg <[email protected]>
Co-authored-by: Abhay <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1.8 Planned for v1.8 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: SmartContextManager with hierarchical allocation and prompt caching

2 participants