gitdataai/libs/git/hook/embed.rs

12 lines
359 B
Rust

use models::TagEmbedInput;
/// Trait for tag embedding — implemented by agent's EmbedService.
/// Defined here to avoid git → agent dependency.
#[async_trait::async_trait]
pub trait TagEmbedder: Send + Sync {
async fn embed_tags_batch(
&self,
tags: Vec<TagEmbedInput>,
) -> Result<(), Box<dyn std::error::Error + Send + Sync>>;
}