pub struct Dispatch { /* private fields */ }Implementations§
Source§impl Dispatch
impl Dispatch
Sourcepub fn new(license: Option<String>) -> Self
pub fn new(license: Option<String>) -> Self
license: your wv_... key, or None to read WAVE_LICENSE (omit for x402 pay-per-use).
Sourcepub fn route(&self, prompt: &str) -> Result<Value, Box<dyn Error>>
pub fn route(&self, prompt: &str) -> Result<Value, Box<dyn Error>>
Classify a prompt (no execution): {route, probability, margin, forward}.
Sourcepub fn execute(&self, prompt: &str) -> Result<Value, Box<dyn Error>>
pub fn execute(&self, prompt: &str) -> Result<Value, Box<dyn Error>>
Classify and run on the edge if your plan allows it.
Sourcepub fn savings(&self) -> Result<Value, Box<dyn Error>>
pub fn savings(&self) -> Result<Value, Box<dyn Error>>
This license’s savings ledger (decisions, saved_usd, saved_pct, …). Requires a license.
Auto Trait Implementations§
impl Freeze for Dispatch
impl RefUnwindSafe for Dispatch
impl Send for Dispatch
impl Sync for Dispatch
impl Unpin for Dispatch
impl UnsafeUnpin for Dispatch
impl UnwindSafe for Dispatch
Blanket Implementations§
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