pub struct PriorityClient { /* private fields */ }Expand description
Deterministic failover for one logical reviewer. The caller puts the configured primary first; after an exhausted client retry policy, the remaining reviewer routes are tried in declaration order, wrapping at the end. The same completion (including its full history) is replayed, so the agent does not lose completed investigation work.
Implementations§
Source§impl PriorityClient
impl PriorityClient
pub fn new(slots: Vec<FallbackSlot>) -> Result<Self>
Trait Implementations§
Source§impl LLMClientDyn for PriorityClient
impl LLMClientDyn for PriorityClient
fn completion( &self, completion: Completion, ) -> Pin<Box<dyn Future<Output = Result<CompletionResponse>> + Send + '_>>
Source§fn fork_for_agent(&self) -> Option<Arc<dyn LLMClientDyn>>
fn fork_for_agent(&self) -> Option<Arc<dyn LLMClientDyn>>
Fork mutable routing state for an independently progressing agent while retaining shared
provider clients and run-wide route availability. Stateless clients return
None and may
safely be shared by Arc.Auto Trait Implementations§
impl !Freeze for PriorityClient
impl !RefUnwindSafe for PriorityClient
impl !UnwindSafe for PriorityClient
impl Send for PriorityClient
impl Sync for PriorityClient
impl Unpin for PriorityClient
impl UnsafeUnpin for PriorityClient
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