pub struct AgentConfig {
pub agent_id: String,
pub cli_command: String,
pub args: Vec<String>,
pub working_dir: Option<PathBuf>,
pub env_vars: HashMap<String, String>,
pub required_api_keys: Vec<String>,
pub resource_limits: ResourceLimits,
}Expand description
Configuration for an agent
Fields§
§agent_id: StringAgent identifier
cli_command: StringCLI command to spawn the agent
args: Vec<String>Arguments to pass to the CLI
working_dir: Option<PathBuf>Working directory
env_vars: HashMap<String, String>Environment variables
required_api_keys: Vec<String>Required API keys
resource_limits: ResourceLimitsResource limits for the spawned process
Implementations§
Source§impl AgentConfig
impl AgentConfig
Sourcepub fn from_provider(provider: &Provider) -> Result<Self, ValidationError>
pub fn from_provider(provider: &Provider) -> Result<Self, ValidationError>
Create agent config from a provider
Trait 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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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