pub struct Candidate {
pub provider: String,
pub model: String,
pub breaker_key: String,
pub chat: Arc<dyn ChatModel>,
}Expand description
One model a call may be made with.
Fields§
§provider: StringThe provider name as configured (model.provider).
model: StringThe model (or deployment) name sent to it.
breaker_key: StringThe provider’s name in the registry, keying its breaker.
chat: Arc<dyn ChatModel>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Candidate
impl !UnwindSafe for Candidate
impl Forget for Candidate
impl Freeze for Candidate
impl Move for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn ChatModel> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ChatModel>>: UnsafeUnpin,
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