async fn set_image(
state: &AppState,
uid: &str,
def: &AgentDefinition,
requested: &str,
by: &str,
) -> Result<Value, (StatusCode, String)>Expand description
Changes which agent image the container agent uid runs: the definition (so every later open and the next
open pane agree), the open pane’s own record of it, and the container, removed so that the next message creates
it from the new image. Only between turns, and only to one of the two images AgentMux ships; an agent’s own image
is set by editing its definition in the window.