pub struct AgentConfig {
pub provider: String,
pub model: String,
pub base_url: String,
pub api_key: Option<String>,
pub max_steps: u32,
pub timeout_seconds: u64,
pub allow: Vec<String>,
pub interactive: bool,
pub project: PathBuf,
}Expand description
How the built-in agent reaches its model and what it may do.
Fields§
§provider: Stringanthropic uses the Messages API; anything else, chat completions.
model: String§base_url: String§api_key: Option<String>§max_steps: u32§timeout_seconds: u64§allow: Vec<String>Command prefixes that run without asking ("git log" allows git log -5).
interactive: boolAsk the user about commands that aren’t allowed; otherwise refuse them.
project: PathBufTrait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentConfig
impl Debug for AgentConfig
Source§impl Default for AgentConfig
impl Default for AgentConfig
Source§fn default() -> AgentConfig
fn default() -> AgentConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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