Commit 89489b0
committed
fix: replace _noop stub with read-shaped tool for LiteLLM/Bedrock compaction
During compaction, an empty tools map is passed to the LLM processor. For LiteLLM proxying Bedrock/Anthropic models, the _noop stub was injected to satisfy LiteLLM's requirement for a non-empty tools array when message history contains tool calls. However, the _noop stub had an empty inputSchema which Bedrock rejects, causing compaction to fail silently — the model would call _noop instead of summarising, producing post-compaction amnesia. Replacing the stub with a read-shaped tool (with a real inputSchema) satisfies Bedrock validation while keeping execution harmless via the compaction agent's deny-all permission ruleset.1 parent d5337b4 commit 89489b0
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
184 | 194 | | |
185 | 195 | | |
186 | 196 | | |
| |||
0 commit comments