assay-core 2.17.0

High-performance evaluation framework for LLM agents (Core)
Documentation
1
2
3
4
5
6
7
8
9
10
11
use async_trait::async_trait;

pub mod fake;
pub mod openai;

#[async_trait]
pub trait Embedder: Send + Sync {
    async fn embed(&self, text: &str) -> anyhow::Result<Vec<f32>>;
    fn name(&self) -> &'static str;
    fn model_id(&self) -> String;
}