pub enum AgentBackend {
Local {
model_path: String,
context_window: u32,
quantization: String,
vision_projector_path: Option<String>,
modality: String,
architecture: Option<String>,
},
Remote {
endpoint_did: String,
nym_gateway: String,
ilp_budget_micro_cents: u64,
},
Hybrid {
local_model_path: String,
remote_endpoint_did: String,
consent_required: bool,
},
}Expand description
Describes where inference actually runs.
Variants§
Local
Quantized local model (llama.cpp WASM / ONNX Runtime / WebLLM + WebGPU). This is the PREFERRED backend — no outbound traffic.
Fields
Remote
Remote model call. REQUIRES:
- Explicit Principal consent (signed VC)
- Nym mixnet routing (no raw IP correlation)
- ILP micropayment for every call
- Full audit trail written to .q42
Hybrid
Local first; falls back to Remote only with Principal consent.
Trait Implementations§
Source§impl Clone for AgentBackend
impl Clone for AgentBackend
Source§fn clone(&self) -> AgentBackend
fn clone(&self) -> AgentBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentBackend
impl Debug for AgentBackend
Source§impl<'de> Deserialize<'de> for AgentBackend
impl<'de> Deserialize<'de> for AgentBackend
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentBackend
impl PartialEq for AgentBackend
Source§fn eq(&self, other: &AgentBackend) -> bool
fn eq(&self, other: &AgentBackend) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentBackend
impl Serialize for AgentBackend
impl StructuralPartialEq for AgentBackend
Auto Trait Implementations§
impl Freeze for AgentBackend
impl RefUnwindSafe for AgentBackend
impl Send for AgentBackend
impl Sync for AgentBackend
impl Unpin for AgentBackend
impl UnsafeUnpin for AgentBackend
impl UnwindSafe for AgentBackend
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>,
Aggregate shares in an MPC protocol.
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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