Reapply "Pass more params to compaction" (#14298) (#14521)

This reverts commit 8af97ce4b0.

Confirmed that this runs locally without the previous issues with tool
use
This commit is contained in:
Rasmus Rygaard
2026-03-12 16:27:21 -07:00
committed by GitHub
parent 651717323c
commit 53d5972226
4 changed files with 87 additions and 4 deletions

View File

@@ -21,6 +21,12 @@ pub struct CompactionInput<'a> {
pub model: &'a str,
pub input: &'a [ResponseItem],
pub instructions: &'a str,
pub tools: Vec<Value>,
pub parallel_tool_calls: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub reasoning: Option<Reasoning>,
#[serde(skip_serializing_if = "Option::is_none")]
pub text: Option<TextControls>,
}
/// Canonical input payload for the memory summarize endpoint.