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

  • agent - Agent loop types (AgentConfig, AgentMessage, AgentEvent, etc.)
  • 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
  • thinking - Thinking/reasoning tag parsing and streaming accumulation

Re-exports§

pub use inference::InferenceConfig;
pub use mcp::McpEnvEntry;
pub use mcp::McpLifecycle;
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::SEARCH_RESULTS_CAP;
pub use mcp::ToolIndex;
pub use mcp::ToolSummary;
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 agent::AGENT_EVENT_CHANNEL_CAPACITY;
pub use agent::AgentConfig;
pub use agent::AgentConfigError;
pub use agent::AgentEvent;
pub use agent::AgentMessage;
pub use agent::AssistantContent;
pub use agent::DEFAULT_MAX_ITERATIONS;
pub use agent::DEFAULT_MAX_PARALLEL_TOOLS;
pub use agent::DEFAULT_MAX_STAGNATION_STEPS;
pub use agent::LlmStreamEvent;
pub use agent::MAX_ITERATIONS_CEILING;
pub use agent::MAX_PARALLEL_TOOLS_CEILING;
pub use agent::MAX_TOOL_TIMEOUT_MS_CEILING;
pub use agent::MIN_CONTEXT_BUDGET_CHARS;
pub use agent::MIN_TOOL_TIMEOUT_MS;
pub use agent::ToolCall;
pub use agent::ToolDefinition;
pub use agent::ToolResult;
pub use capabilities::ChatMessage;
pub use capabilities::MessageContent;
pub use capabilities::ModelCapabilities;
pub use capabilities::capabilities_from_architecture;
pub use capabilities::infer_from_chat_template;
pub use capabilities::transform_messages_for_capabilities;
pub use council::ApprovalKind;
pub use council::CouncilEvent;
pub use council::HitlMode;
pub use council::MAX_DEPTH;
pub use council::MAX_NODES;
pub use council::NodeId;
pub use council::NodeStatus;
pub use council::TaskGraph;
pub use council::TaskGraphError;
pub use council::TaskNode;

Modules§

agent
Agent loop domain types.
capabilities
Model capability detection, inference, and request transformation.
chat
Chat domain types.
council
Orchestrator domain model.
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.
ModelFile
Represents a single file (shard) belonging to a model.
ModelFilterOptions
Filter options for the model library UI.
NewModel
A model to be inserted into the system (no ID yet).
NewModelFile
A model file entry to be inserted into the system (no ID yet).
RangeValues
A range of numeric values with min and max.

Constants§

SYSTEM_TAG_PREFIX
Prefix marking a tag as runtime-load-bearing.

Functions§

is_system_tag
Returns true when tag is a system tag that callers must not remove through the standard tag-mutation API.