media_in_history

Function media_in_history 

Source
pub async fn media_in_history(
    handle: &PluginHandle,
    body: Value,
    want: &(dyn Fn(&str) -> bool + Sync),
    id: &'static str,
    timeout: Duration,
) -> Cell
Expand description

2026-09-26: Media that is not in the message asking the question: in an earlier turn or in a tool result. The server collects media from every message, tool results included (api/chat/msg_entry.rs, collect_message_media); a regression that scanned only the final message would pass the legs that put the image and the question in one turn.