pub struct RoutedRequest {
pub request: Request,
pub decision: Arc<dyn Decision>,
pub ctx: Context,
}Expand description
A request paired with the routing Decision that produced it — the offload
payload a host reads (via CallLlmRequest::get_routed) to serve the call.
The two model identifiers live in separate, unambiguous places: the model to
call is decision.selected_model(), while
request.llm_request.model is the inbound name the agent asked for (libsy
never overwrites it). A client maps selected_model() to the provider model
id it hits.
Fields§
§request: RequestThe request to serve; its model is the agent’s original name.
decision: Arc<dyn Decision>The routing decision behind this call; selected_model() is the model to hit.
ctx: ContextThe request’s cross-cutting context, carried through the offload so the host serving the call can pass it to its client.
Trait Implementations§
Source§impl Clone for RoutedRequest
impl Clone for RoutedRequest
Source§fn clone(&self) -> RoutedRequest
fn clone(&self) -> RoutedRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RoutedRequest
impl !RefUnwindSafe for RoutedRequest
impl Send for RoutedRequest
impl Sync for RoutedRequest
impl Unpin for RoutedRequest
impl UnsafeUnpin for RoutedRequest
impl !UnwindSafe for RoutedRequest
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