Use Responses compaction for Amazon Bedrock (#39825)

## What changed

- Switch Amazon Bedrock remote compaction to `compaction_trigger` items sent through `/v1/responses`.
- Remove the legacy dedicated compaction protocol from provider capabilities.
- Default remote compaction to unsupported and explicitly enable it for OpenAI, Azure Responses, and Amazon Bedrock providers.

## Testing

- Cover manual and automatic Amazon Bedrock compaction requests and their compacted history.
- Verify remote-compaction capabilities for configured and Amazon Bedrock providers.

GitOrigin-RevId: cf9ba314595367518b37a85f334f0c105ce47e45
This commit is contained in:
rka-oai authored and copyberry committed 2026-08-21 00:53:52 +00:00
1 parent 54201093d4
commit f20b63e85c
5 files changed
+72 -44

No files matched your search

+1 -1
View File
@@ -1223,7 +1223,7 @@ async fn run_auto_compact(
)
.await?;
}
RemoteCompactionSupport::V1 | RemoteCompactionSupport::V2 => {
RemoteCompactionSupport::V2 => {
emit_compact_metric(
&sess.services.session_telemetry,
"remote",