mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
More
This commit is contained in:
@@ -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<ToolSpec>) -> 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 {
|
||||
|
||||
Reference in New Issue
Block a user