Skip to main content

Crate zagens_runtime

Crate zagens_runtime 

Source
Expand description

DeepSeek runtime library + HTTP sidecar (deepseek-runtime) — D6 Phase B single crate.

Re-exports§

pub use runtime_serve::RuntimeApiOptions;
pub use runtime_serve::run_http_server;

Modules§

cli
CLI surface for headless zagens binary and shared args/types.
command_safety
Command safety analysis for shell execution
context_reference
Durable context-reference metadata (session resume, HTTP runtime).
json_schema_util
Shared schemars helpers for HTTP/OpenAPI export (D8).
mcp
Async MCP (Model Context Protocol) implementation.
network_policy
Per-domain network policy for outbound network calls (#135).
persist
Session persistence (JSON + SQLite backends).
pricing
Cost estimation for DeepSeek API usage.
repl
Long-lived Python REPL runtime used by the RLM loop and by inline ```repl block execution in the agent loop.
rlm
Recursive Language Model (RLM) loop — paper-spec Algorithm 1.
runtime_api
Runtime HTTP/SSE API for local DeepSeek automation.
runtime_serve
HTTP sidecar entry for Zagens and headless hosts (D6 runtime-server).
session_manager
Session management for resuming conversations.
session_store_sqlite
skills
Skill discovery and registry for local SKILL.md files.
snapshot
Workspace snapshots — pre/post-turn safety net.

Structs§

ContextReference
Durable, compact metadata for a user-visible context reference.
SavedSession
A saved session containing full conversation history
SessionContextReference
Durable context-reference metadata attached to a user message.
SessionManager
Manager for session persistence operations
SessionMetadata
Session metadata stored with each saved session