diff --git a/codex-rs/core/src/client_common.rs b/codex-rs/core/src/client_common.rs index cf3a71a0f6..cfdfa41118 100644 --- a/codex-rs/core/src/client_common.rs +++ b/codex-rs/core/src/client_common.rs @@ -64,6 +64,11 @@ impl PromptBuilder { self } + /// For integration tests only. + pub fn push_input(&mut self, item: ResponseItem) { + self.input.push(item); + } + pub(crate) fn with_tools(mut self, tools: Vec) -> Self { self.tools = tools; self @@ -369,13 +374,6 @@ mod tests { pub slug: &'static str, pub expects_apply_patch_instructions: bool, } - - impl PromptBuilder { - pub fn push_input(&mut self, item: ResponseItem) { - self.input.push(item); - } - } - #[test] fn get_full_instructions_no_user_content() { let prompt = PromptBuilder {