pub struct CliBackendConfig {
pub provider: Provider,
pub binary: Option<PathBuf>,
pub model: Option<String>,
pub scrub: EnvScrub,
pub env: Vec<(String, String)>,
}Expand description
How to run one agent CLI.
Fields§
§provider: ProviderWhich CLI.
binary: Option<PathBuf>Executable path; None looks it up on PATH and in the usual install directories
(crate::detect::SearchPaths::from_env), as does a path that no longer exists.
model: Option<String>Model id in the CLI’s format (sonnet@high); None uses the CLI’s default.
scrub: EnvScrubEnvironment variables kept away from the agent.
env: Vec<(String, String)>Extra environment for the CLI (for example a separate HOME with its own login).
Trait Implementations§
Source§impl Clone for CliBackendConfig
impl Clone for CliBackendConfig
Auto Trait Implementations§
impl Freeze for CliBackendConfig
impl RefUnwindSafe for CliBackendConfig
impl Send for CliBackendConfig
impl Sync for CliBackendConfig
impl Unpin for CliBackendConfig
impl UnsafeUnpin for CliBackendConfig
impl UnwindSafe for CliBackendConfig
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