pub(crate) fn agent_of_block(
state: &AppState,
block_id: &str,
block: &Block,
) -> Option<AgentInstance>Expand description
The agent a block belongs to: the instance bound to the block (a block launched from a template
keeps the template’s id in agentId and binds its agent that way), else the agent agentId names.