pub fn goal_of(meta: &HashMap<String, Value>) -> Option<String>
The agent’s goal: its generated title, else its last prompt.