pub struct JevEngine { /* private fields */ }Implementations§
Source§impl JevEngine
impl JevEngine
pub fn new(api_key: impl Into<String>) -> Self
Sourcepub fn from_env() -> Option<Self>
pub fn from_env() -> Option<Self>
Build from TYPESAFE_API_KEY (required), TYPESAFE_BASE_URL, HIKMAH_JEV_MODEL, and
HIKMAH_JEV_TIMEOUT_MS. Returns None when no key is configured.
pub fn with_transport(self, transport: Box<dyn Transport>) -> Self
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Total time budget including retries, clamped to 100 ms..=60 s.
pub fn with_base_url(self, base_url: impl Into<String>) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_max_retries(self, retries: u32) -> Self
pub fn timeout(&self) -> Duration
Sourcepub fn payload(&self, request: &DecisionRequest) -> Value
pub fn payload(&self, request: &DecisionRequest) -> Value
The System One request body for a kernel request.
Trait Implementations§
Source§impl DecisionEngine for JevEngine
impl DecisionEngine for JevEngine
fn descriptor(&self) -> EngineDescriptor
fn decide(&self, request: &DecisionRequest) -> Result<RawDecision>
Auto Trait Implementations§
impl !RefUnwindSafe for JevEngine
impl !UnwindSafe for JevEngine
impl Freeze for JevEngine
impl Send for JevEngine
impl Sync for JevEngine
impl Unpin for JevEngine
impl UnsafeUnpin for JevEngine
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