| 109 | } |
| 110 | |
| 111 | pub async fn create_run(&self, session_id: &str, prompt: &str) -> RunSnapshot { |
| 112 | // Default ID generation when the caller has no host_env handy. |
| 113 | // Production callers reach `create_run_with_id` via |
| 114 | // `RunControlState::start_run` so the host's IdGenerator is honored. |
| 115 | let id = format!("run-{}", uuid::Uuid::new_v4()); |
| 116 | self.create_run_with_id(id, session_id, prompt).await |
| 117 | } |
| 118 | |
| 119 | /// Create a run with a caller-supplied id. Used by the session |
| 120 | /// orchestration layer so the parent session's host-provided |