Skip to main content

Crate solo_core

Crate solo_core 

Source
Expand description

Solo core: shared types, traits, and error definitions used across the workspace.

This crate has no production-side dependencies on storage, indexing, or LLM runtimes — it is the “contract” layer that those crates implement against. See docs/adr/0002-traits.md for the design rationale behind the trait shapes (Embedder, VectorIndex, LlmClient).

Re-exports§

pub use embedder::Embedder;
pub use error::Error;
pub use error::Result;
pub use llm::LlmClient;
pub use llm::Message;
pub use llm::Role;
pub use types::ChunkId;
pub use types::Cluster;
pub use types::Confidence;
pub use types::Contradiction;
pub use types::ContradictionKind;
pub use types::DEFAULT_TENANT_ID;
pub use types::Document;
pub use types::DocumentChunk;
pub use types::DocumentId;
pub use types::DocumentStatus;
pub use types::Embedding;
pub use types::EmbeddingDtype;
pub use types::EncodingContext;
pub use types::Episode;
pub use types::InvalidateEvent;
pub use types::MemoryId;
pub use types::Provenance;
pub use types::SemanticAbstraction;
pub use types::TENANT_ID_MAX_LEN;
pub use types::TenantId;
pub use types::TenantIdError;
pub use types::Tier;
pub use types::Triple;
pub use types::TripleObjectKind;
pub use vector_index::VectorIndex;
pub use vector_index::VectorIndexFactory;

Modules§

embedder
Embedder trait. See ADR-0002 for design rationale.
error
Workspace-wide error type.
llm
LlmClient trait + supporting types. See ADR-0002.
types
Shared types used across the workspace. See ADR-0002 for design notes.
vector_index
VectorIndex and VectorIndexFactory traits. See ADR-0002 and ADR-0003.