pub struct LocalAgentConfig {
pub agent: AgentConfig,
}Expand description
Configuration for a local (on-device) agent, mirroring the Python SDK’s
LocalAgentConfig.
Wraps the standard AgentConfig via #[serde(flatten)]. The Python SDK’s
LocalAgentConfig extends the base AgentConfig with override defaults
(e.g. policies = confirm_run_command(), workspaces = [cwd]), which
our AgentConfig already matches.
Fields§
§agent: AgentConfigThe base agent configuration.
Implementations§
Source§impl LocalAgentConfig
impl LocalAgentConfig
Sourcepub const fn new(agent: AgentConfig) -> Self
pub const fn new(agent: AgentConfig) -> Self
Create a new LocalAgentConfig wrapping the given agent configuration.
Trait Implementations§
Source§impl Clone for LocalAgentConfig
impl Clone for LocalAgentConfig
Source§fn clone(&self) -> LocalAgentConfig
fn clone(&self) -> LocalAgentConfig
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 LocalAgentConfig
impl Debug for LocalAgentConfig
Source§impl Default for LocalAgentConfig
impl Default for LocalAgentConfig
Source§fn default() -> LocalAgentConfig
fn default() -> LocalAgentConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocalAgentConfig
impl<'de> Deserialize<'de> for LocalAgentConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AgentConfig> for LocalAgentConfig
impl From<AgentConfig> for LocalAgentConfig
Source§fn from(agent: AgentConfig) -> Self
fn from(agent: AgentConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LocalAgentConfig
impl RefUnwindSafe for LocalAgentConfig
impl Send for LocalAgentConfig
impl Sync for LocalAgentConfig
impl Unpin for LocalAgentConfig
impl UnsafeUnpin for LocalAgentConfig
impl UnwindSafe for LocalAgentConfig
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