troupekit-context 0.4.0

Memory scopes, chunking, embeddings and hybrid retrieval for the Troupekit LLM agent framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use troupekit_core::error::CoreError;

/// Errors from memory, ingest and retrieval.
/// `Core` passes a store error through unchanged, `Invalid` is rejected input
/// and `Embed` is a failed or malformed embedding call.
#[derive(Debug, Clone, PartialEq, thiserror::Error)]
pub enum ContextError {
    #[error(transparent)]
    Core(#[from] CoreError),
    #[error("invalid input: {0}")]
    Invalid(String),
    #[error("embedding failed: {0}")]
    Embed(String),
}