image-gen-core (#13290)

Core tool-calling for image-gen, handles requesting and receiving logic
for images using response API
This commit is contained in:
Won Park
2026-03-03 23:11:28 -08:00
committed by GitHub
parent 4f6c4bb143
commit fa2306b303
22 changed files with 766 additions and 45 deletions

View File

@@ -739,6 +739,24 @@ pub fn ev_web_search_call_done(id: &str, status: &str, query: &str) -> Value {
})
}
pub fn ev_image_generation_call(
id: &str,
status: &str,
revised_prompt: &str,
result: &str,
) -> Value {
serde_json::json!({
"type": "response.output_item.done",
"item": {
"type": "image_generation_call",
"id": id,
"status": status,
"revised_prompt": revised_prompt,
"result": result,
}
})
}
pub fn ev_function_call(call_id: &str, name: &str, arguments: &str) -> Value {
serde_json::json!({
"type": "response.output_item.done",