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§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§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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