pub struct RuntimeConfig {
pub llm: LlmConfig,
pub retry: RetryConfig,
pub timeout: TimeoutConfigSettings,
pub logging: LoggingConfig,
pub workflow: WorkflowConfig,
}Expand description
Main runtime configuration
Fields§
§llm: LlmConfigLLM provider configurations
retry: RetryConfigRetry policy configuration
timeout: TimeoutConfigSettingsTimeout configuration
logging: LoggingConfigLogging configuration
workflow: WorkflowConfigWorkflow configuration
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn from_toml_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
pub fn from_toml_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
Load configuration from a TOML file
Sourcepub fn from_yaml_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
pub fn from_yaml_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
Load configuration from a YAML file
Sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
Load configuration from a file (auto-detects format from extension)
Sourcepub fn from_env() -> Result<Self, ConfigError>
pub fn from_env() -> Result<Self, ConfigError>
Load configuration from environment variables Prefix: AGENT_RUNTIME_
Sourcepub fn from_sources<P: AsRef<Path>>(
file_path: Option<P>,
) -> Result<Self, ConfigError>
pub fn from_sources<P: AsRef<Path>>( file_path: Option<P>, ) -> Result<Self, ConfigError>
Load configuration from multiple sources (file, then env overrides)
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Validate the configuration
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
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 moreSource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§fn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
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
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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