Skip to main content

chosen_container_image

Function chosen_container_image 

Source
pub(crate) fn chosen_container_image(
    requested: Option<&str>,
    agent_type: &str,
    template_image: &str,
) -> Result<String, String>
Expand description

The image a new container agent runs in: the picker’s choice between the two images AgentMux ships (requested), else the template’s own. Any other image is refused (an agent’s own image is set by editing its definition), and a native agent has none to choose.