Trait BeforeCompletionFn

Source
pub trait BeforeCompletionFn:
    for<'a> Fn(&'a Agent, &mut ChatCompletionRequest) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>
    + Send
    + Sync
    + DynClone { }

Implementors§

Source§

impl<F> BeforeCompletionFn for F
where F: for<'a> Fn(&'a Agent, &mut ChatCompletionRequest) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>> + Send + Sync + DynClone,