mirror of
https://github.com/openai/codex.git
synced 2026-10-24 18:18:41 +00:00
move push_input to tests
This commit is contained in:
@@ -64,10 +64,6 @@ impl PromptBuilder {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn push_input(&mut self, item: ResponseItem) {
|
||||
self.input.push(item);
|
||||
}
|
||||
|
||||
pub(crate) fn with_tools(mut self, tools: Vec<ToolSpec>) -> Self {
|
||||
self.tools = tools;
|
||||
self
|
||||
@@ -373,6 +369,13 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user