pub struct CallLlmRequest { /* private fields */ }Expand description
The host-facing half of an offloaded model call, surfaced inside Step::CallLlm.
Wraps a DriverRequest whose payload is a RoutedRequest. The host reads the
routed request (get_routed) and the decision behind it
(get_decision), performs (or delegates) the model call, and
fulfills it with respond — unblocking the algorithm’s
Driver::call_llm on the other side.
Implementations§
Source§impl CallLlmRequest
impl CallLlmRequest
Sourcepub fn get_routed(&self) -> &RoutedRequest
pub fn get_routed(&self) -> &RoutedRequest
The routed request the host should serve. Its
default_client serves the call by default,
and its decision.selected_model() names the model to hit.
Sourcepub fn get_request(&self) -> &Request
pub fn get_request(&self) -> &Request
The model request to perform (the Request inside the routed request).
Sourcepub fn get_decision(&self) -> &dyn Decision
pub fn get_decision(&self) -> &dyn Decision
The decision that led to this call — its selected_model() is the model to hit.
Auto Trait Implementations§
impl Freeze for CallLlmRequest
impl !RefUnwindSafe for CallLlmRequest
impl Send for CallLlmRequest
impl !Sync for CallLlmRequest
impl Unpin for CallLlmRequest
impl UnsafeUnpin for CallLlmRequest
impl !UnwindSafe for CallLlmRequest
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