Model Provider Agnostic Middleware
The following middleware works with any LLM provider:| Middleware | Description |
|---|---|
| Context Compression | Automatically summarizes conversation history when approaching session limit. |
| Sensitive Filter Middleware | Filters sensitive input/output content using rule-based or LLM policies. |
| Agent Behavior Monitor Middleware | Detects prompt injection, risky instructions, high-frequency tool calls, and repeated failures. |
Context Compression
Automatically summarizes conversation history when approaching token limits, preserving recent messages while compressing older context. The summarization feature is suitable for the following scenarios:- Long conversations that exceed the context window.
- Multi-turn dialogues with extensive history.
- Applications that need to retain full conversation context.