pub trait ReplanCallback: Send + Sync {
// Required method
fn replan<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ReplanContext,
) -> Pin<Box<dyn Future<Output = Result<ActionProposal, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Callback trait for replanning failed proposals. Implement this to let the runtime ask the model for an alternative plan when a proposal aborts.