pub async fn run<F, Fut>(
store: &Store,
pass: &Pass<'_>,
now_ms: i64,
call: F,
) -> Result<End, String>Expand description
Run one queued dream. call receives the prompt and makes the model call; it is not called when a rule holds the
pass back. An Err is a store failure the caller should log: the dream is moved to failed on a best effort, so
it does not stay running (nothing moves a running dream back to the queue).