ai::hook

Trait PatchRepository

Source
pub trait PatchRepository {
    // Required methods
    fn to_patch(
        &self,
        tree: Option<Tree<'_>>,
        max_token_count: usize,
        model: Model,
    ) -> Result<String>;
    fn to_diff(&self, tree: Option<Tree<'_>>) -> Result<Diff<'_>>;
}

Required Methods§

Source

fn to_patch( &self, tree: Option<Tree<'_>>, max_token_count: usize, model: Model, ) -> Result<String>

Source

fn to_diff(&self, tree: Option<Tree<'_>>) -> Result<Diff<'_>>

Implementations on Foreign Types§

Source§

impl PatchRepository for Repository

Source§

fn to_patch( &self, tree: Option<Tree<'_>>, max_token_count: usize, model: Model, ) -> Result<String>

Source§

fn to_diff(&self, tree: Option<Tree<'_>>) -> Result<Diff<'_>>

Implementors§