Skip to main content

TurnContextTransform

Trait TurnContextTransform 

Source
pub trait TurnContextTransform: Send + Sync {
    // Required methods
    fn id(&self) -> &'static str;
    fn transform<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 TurnTransformContext,
        input: PreparedContext,
    ) -> Pin<Box<dyn Future<Output = Result<PreparedContext, HistoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Prepares the ephemeral turn context presented to the model.

Required Methods§

Source

fn id(&self) -> &'static str

Source

fn transform<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 TurnTransformContext, input: PreparedContext, ) -> Pin<Box<dyn Future<Output = Result<PreparedContext, HistoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§