Function sapiens::run_to_the_end
source · pub async fn run_to_the_end(
config: SapiensConfig,
toolbox: Toolbox,
task: String,
observer: WeakRuntimeObserver
) -> Result<Vec<TerminationMessage>, Error>
Expand description
Run until the task is done or the maximum number of steps is reached
See TaskState::new
, TaskState::step
and TaskState::run
for
more flexible ways to run a task