Skip to main content

Crate meerkat_llm_core

Crate meerkat_llm_core 

Source
Expand description

meerkat-llm-core — provider-neutral LLM wire client trait + plumbing.

Owns the LlmClient trait, request/response/event types, error taxonomy, block assembly, streaming helpers, realtime session traits, and test client. Provider-specific LLM clients (Anthropic, OpenAI, Gemini) live in their own crates and implement this trait.

Deferral §3 B2 split (2026-04-18): this crate was extracted from meerkat-client alongside per-provider crates. The meerkat facade re-exports the public surface so downstream SDKs continue to work.

Re-exports§

pub use adapter::LlmClientAdapter;
pub use block_assembler::BlockAssembler;
pub use block_assembler::BlockKey;
pub use block_assembler::StreamAssemblyError;
pub use error::LlmError;
pub use factory::FactoryError;
pub use realtime_session::RealtimeExternalSessionTarget;
pub use realtime_session::RealtimeSession;
pub use realtime_session::RealtimeSessionEvent;
pub use realtime_session::RealtimeSessionFactory;
pub use test_client::TestClient;
pub use types::ImageGenerationExecutor;
pub use types::LlmClient;
pub use types::LlmDoneOutcome;
pub use types::LlmEvent;
pub use types::LlmRequest;
pub use types::LlmResponse;
pub use types::LlmStream;
pub use types::ProviderGeneratedImage;
pub use types::ProviderImageGenerationOutput;
pub use types::ProviderImageGenerationRequest;
pub use types::ToolCallBuffer;
pub use types::WebSearchExecutor;
pub use types::dimensions_from_size_preference;
pub use types::media_type_from_format_preference;
pub use types::normalize_base64_image_data;

Modules§

adapter
Adapter from LlmClient to AgentLlmClient.
block_assembler
Block assembly for streaming LLM responses.
error
LLM client errors
factory
LLM client factory errors.
http
Shared HTTP client helpers.
provider_runtime
Provider runtime layer — trait surface and shared types.
realtime_session
Provider-neutral realtime session traits for product-layer channel clients.
streaming
test_client
types
LLM client types