pub struct CliProvider { /* private fields */ }Expand description
LLM provider that delegates each completion to a subscription CLI. Stateless — each call spawns a fresh subprocess.
Implementations§
Source§impl CliProvider
impl CliProvider
pub fn new(spec: CliSpec) -> Self
pub fn with_config(spec: CliSpec, config: CliConfig) -> Self
Sourcepub fn available(&self) -> bool
pub fn available(&self) -> bool
True when this CLI is installed on the host and CLI providers aren’t globally suppressed. Does NOT verify auth state — we find that out at first dispatch.
pub fn spec(&self) -> CliSpec
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CliProvider
impl RefUnwindSafe for CliProvider
impl Send for CliProvider
impl Sync for CliProvider
impl Unpin for CliProvider
impl UnsafeUnpin for CliProvider
impl UnwindSafe for CliProvider
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