Re-exports§
pub use crate::modalities::logic::n3_compiler::AgentIntentFrame;pub use crate::modalities::logic::n3_compiler::N3OutputMode;pub use crate::modalities::logic::n3_compiler::MAX_CONTEXT_NAMESPACE_SLOTS;pub use crate::modalities::logic::n3_compiler::MAX_INTENT_SCOPE_SLOTS;
Structs§
- Agent
Intent - Structured intent message from LLM → Webizen. Every call must declare what it intends to do — the Webizen validates this against the Rights Ontology BEFORE the LLM ever sees the user’s semantic graph.
- Agent
Output - The raw output from the LLM, before Webizen validation.
- Local
LlmAgent - The concrete local inference agent. Uses a mock inference path for now;
swap
infer_local_modelfor an actual llama.cpp FFI call.
Enums§
- Agent
Backend - Describes where inference actually runs.
- Agent
Error - Webizen
Verdict - The Webizen VM’s ruling on an AgentIntent or AgentOutput.
Constants§
- INFERENCE_
TIMEOUT_ MS - Default maximum milliseconds for a local inference call (interactive).
Batch/overnight profile raises this via
llm_bench::inference_timeout_ms(). - LLM_
MEMORY_ BUDGET_ BYTES - Hard memory ceiling for the LLM runtime within the 512MB system floor. Leaves the remaining 384MB for the Webizen VM, SLG Arena, and WASM stack.
- LLM_
RULE_ INTENT_ FRAME_ MISMATCH - LLM_
RULE_ NO_ ADVERSARIAL_ CONDUCT - LLM_
RULE_ NO_ OUTBOUND_ TELEMETRY - LLM_
RULE_ NO_ SANCTUARY_ ACCESS - LLM_
RULE_ PROFILE_ VIOLATION - LLM_
RULE_ PROVENANCE_ REQUIRED - LLM_
RULE_ REMOTE_ CONSENT - LLM_
RULE_ TOKEN_ BUDGET - MAX_
OUTPUT_ TOKENS - Maximum tokens the agent may generate in a single turn. Enforces deterministic compute cost — no runaway generation that blocks the edge device.
- SANCTUARY_
SCOPE_ WEBIZEN - Special webizen hash marking a Sanctuary-flagged graph scope.
Traits§
- Agent
Runtime - The core abstraction. All LLM backends MUST implement this. The trait is object-safe so it can be boxed and swapped at runtime.