pub type OnModelErrorCallback = Arc<dyn Fn(Context, LlmRequest, Arc<ModelError>) -> BoxFuture<'static, Result<Option<LlmResponse>, AgentError>> + Send + Sync>;Expand description
Called when the model returns an error. If it returns Some response or an error, the actual
model response/error is replaced with the returned response/error.
Aliased Typeยง
pub struct OnModelErrorCallback { /* private fields */ }