Module domain

Module domain 

Source
Expand description

Core domain types.

These types represent the pure domain model, independent of any infrastructure concerns (database, filesystem, etc.).

§Structure

  • model - Model types (Model, NewModel)
  • mcp - MCP server types (McpServer, NewMcpServer, etc.)
  • chat - Chat conversation and message types
  • gguf - GGUF metadata and capability types
  • capabilities - Model capability detection and inference

Re-exports§

pub use inference::InferenceConfig;
pub use mcp::McpEnvEntry;
pub use mcp::McpServer;
pub use mcp::McpServerConfig;
pub use mcp::McpServerStatus;
pub use mcp::McpServerType;
pub use mcp::McpTool;
pub use mcp::McpToolResult;
pub use mcp::NewMcpServer;
pub use mcp::UpdateMcpServer;
pub use chat::Conversation;
pub use chat::ConversationUpdate;
pub use chat::Message;
pub use chat::MessageRole;
pub use chat::NewConversation;
pub use chat::NewMessage;
pub use gguf::CapabilityFlags;
pub use gguf::GgufCapabilities;
pub use gguf::GgufMetadata;
pub use gguf::GgufValue;
pub use gguf::RawMetadata;
pub use gguf::ReasoningDetection;
pub use gguf::ToolCallingDetection;
pub use capabilities::ChatMessage;
pub use capabilities::ModelCapabilities;
pub use capabilities::infer_from_chat_template;
pub use capabilities::transform_messages_for_capabilities;

Modules§

capabilities
Model capability detection and inference.
chat
Chat domain types.
gguf
GGUF domain types.
inference
Inference configuration types.
mcp
MCP (Model Context Protocol) server domain types.
model 🔒
Model domain types.

Structs§

Model
A model that exists in the system with a database ID.
ModelFilterOptions
Filter options for the model library UI.
NewModel
A model to be inserted into the system (no ID yet).
RangeValues
A range of numeric values with min and max.