pub struct AgentIntent {
pub intent_predicate: u64,
pub requested_graph_scope: Vec<u64>,
pub context_namespaces: Vec<u64>,
pub requires_network: bool,
pub ilp_offer_micro_cents: u64,
pub principal_did_hash: u64,
pub mcp_intent_frame_hash: u64,
pub output_mode: N3OutputMode,
pub clearance_ceiling: u8,
pub max_sentinel_depth: u8,
pub active_profile: Option<CapabilityProfile>,
}Expand description
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.
Cold-path session struct (serde/MCP). For zero-allocation pre-flight use
AgentIntentFrame via AgentIntent::to_frame.
Fields§
§intent_predicate: u64N3Logic predicate hash declaring the class of operation. e.g. q_hash(“llm:ReadGraph”), q_hash(“llm:WriteGraph”), q_hash(“llm:ExternalCall”)
requested_graph_scope: Vec<u64>The sub-graph slice the agent is requesting access to (Quin hash ranges).
context_namespaces: Vec<u64>Routed ontology and predicate namespaces relevant to this turn.
requires_network: boolWhether this intent requires outbound network access.
ilp_offer_micro_cents: u64Optional ILP payment offer for the operation (0 for fully local ops).
principal_did_hash: u64The DID hash of the natural person who commanded or instantiated this session.
mcp_intent_frame_hash: u64The persistent Intent Frame Hash established by the MCP session.
output_mode: N3OutputModeHow the orchestrator should treat model output on the symbolic path.
clearance_ceiling: u8Maximum sensitivity clearance for this session (bits [56..63]).
max_sentinel_depth: u8Maximum Sentinel VM depth before SentinelError::MemoryOverflow.
active_profile: Option<CapabilityProfile>The active capability profile, if one is bound to this session.
Implementations§
Source§impl AgentIntent
impl AgentIntent
Sourcepub fn is_critical(&self) -> bool
pub fn is_critical(&self) -> bool
Determines whether this intent is critical enough to proceed during a thermal event.
Sourcepub fn to_frame(&self) -> AgentIntentFrame
pub fn to_frame(&self) -> AgentIntentFrame
Copy into a stack-allocated frame for Core-1 pre-flight validation.
Trait Implementations§
Source§impl Clone for AgentIntent
impl Clone for AgentIntent
Source§fn clone(&self) -> AgentIntent
fn clone(&self) -> AgentIntent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentIntent
impl Debug for AgentIntent
Source§impl<'de> Deserialize<'de> for AgentIntent
impl<'de> Deserialize<'de> for AgentIntent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for AgentIntent
impl RefUnwindSafe for AgentIntent
impl Send for AgentIntent
impl Sync for AgentIntent
impl Unpin for AgentIntent
impl UnsafeUnpin for AgentIntent
impl UnwindSafe for AgentIntent
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more