[imagegen] preserve image generation start events

This commit is contained in:
Josh Wright
2026-06-11 16:26:59 -07:00
parent 55aa071b17
commit d9aefa4159
4 changed files with 41 additions and 0 deletions
+11
View File
@@ -812,6 +812,17 @@ pub fn ev_image_generation_call(
})
}
pub fn ev_image_generation_call_added(id: &str, status: &str) -> Value {
serde_json::json!({
"type": "response.output_item.added",
"item": {
"type": "image_generation_call",
"id": id,
"status": status,
}
})
}
pub fn ev_function_call(call_id: &str, name: &str, arguments: &str) -> Value {
serde_json::json!({
"type": "response.output_item.done",