trusty-common 0.4.8

Shared utilities and provider-agnostic streaming chat (ChatProvider, OllamaProvider, OpenRouter, tool-use) for trusty-* projects
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Embedding abstraction (re-export from `trusty-embedder`).
//!
//! Why: This module historically owned the `Embedder` trait + `FastEmbedder`
//! implementation. Both have moved to the shared `trusty-embedder` crate so
//! trusty-memory and trusty-search ship the same code. This file now exists
//! purely as a stable re-export surface — existing call sites importing
//! `trusty_common::memory_core::embed::{Embedder, FastEmbedder}` keep working.
//! What: Re-exports the unified `Embedder` trait, `FastEmbedder`, and the
//! `EMBED_DIM` constant from `crate::embedder` (the absorbed embedder
//! surface).
//! Test: Covered upstream in the `embedder` module's own test suite.

pub use crate::embedder::{EMBED_DIM, Embedder, FastEmbedder, embed_one};