pub struct CallLlmRequest { /* private fields */ }Expand description
The host-facing half of an offloaded model call, surfaced inside Step::CallLlm.
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. switchyard-llm-client’s run is the ready-made
consumer that does this for you.
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 decision.selected_model_id() 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) -> &Decision
pub fn get_decision(&self) -> &Decision
The decision that led to this call; its selected_model_id() identifies 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