Skip to main content

Crate sh_layer1

Crate sh_layer1 

Source
Expand description

§Continuum Layer 1: Foundation

基础设施层,为上层提供核心能力。

Re-exports§

pub use cache_manager::CacheManager;
pub use config_manager::ConfigManager;
pub use config_manager::GlobalSettings;
pub use config_manager::ProviderConfig;
pub use cost_tracker::CostTracker;
pub use embeddings::CacheStats;
pub use embeddings::CohereEmbeddings;
pub use embeddings::EmbeddingCache;
pub use embeddings::EmbeddingModel;
pub use embeddings::EmbeddingProvider;
pub use embeddings::Embeddings;
pub use embeddings::EmbeddingsConfig;
pub use embeddings::EmbeddingsFactory;
pub use embeddings::HuggingFaceEmbeddings;
pub use embeddings::LocalEmbeddings;
pub use embeddings::OpenAIEmbeddings;
pub use embeddings::DEFAULT_EMBEDDING_DIMENSION;
pub use embeddings::DEFAULT_EMBEDDING_MODEL;
pub use error_handler::ErrorHandler;
pub use error_handler::ShError;
pub use error_handler::ShResult;
pub use event_bus::Event;
pub use event_bus::EventBus;
pub use event_bus::HandlerId;
pub use llm_client::LlmClient;
pub use llm_client::LlmClientTrait;
pub use llm_client::LlmProvider;
pub use llm_client::LlmRequestConfig;
pub use llm_client::LlmResponse;
pub use llm_client::Message;
pub use llm_client::MessageRole;
pub use llm_client::TokenUsage;
pub use observability::Counter;
pub use observability::Gauge;
pub use observability::Histogram;
pub use observability::LogFormat;
pub use observability::LogLevel;
pub use observability::MetricValue;
pub use observability::Observability;
pub use observability::ObservabilityConfig;
pub use observability::SpanGuard;
pub use storage_engine::StorageEngine;
pub use streaming::AbortableStream;
pub use streaming::CallbackStream;
pub use streaming::ContentBlockType;
pub use streaming::ContentDelta;
pub use streaming::HttpAdapter;
pub use streaming::HttpConfig;
pub use streaming::HttpRequest;
pub use streaming::HttpResponseStream;
pub use streaming::MessageStream;
pub use streaming::OnChunkCallback;
pub use streaming::SseEvent;
pub use streaming::SseParser;
pub use streaming::SseStream;
pub use streaming::StreamEvent;
pub use streaming::StreamHandler;
pub use streaming::StreamProvider;
pub use streaming::StreamState;
pub use streaming::StreamUsage;
pub use streaming::WebSocketAdapter;
pub use streaming::WebSocketConfig;
pub use streaming::WebSocketMessage;
pub use streaming::WebSocketMessageStream;
pub use utils::generate_prefixed_id;
pub use utils::generate_short_id;

Modules§

cache_manager
缓存管理模块
config_manager
配置管理模块
cost_tracker
成本追踪模块
embeddings
嵌入模型模块
error_handler
错误处理模块
event_bus
事件总线模块
llm_client
LLM 客户端模块
observability
Observability module.
storage_engine
存储引擎模块
streaming
流式处理模块
utils
Utility functions for ID generation