pub struct AgentRuntimeConfig {
pub model_id: String,
pub max_iterations: usize,
pub tool_execution: ToolExecutionMode,
pub auto_retry_enabled: bool,
pub project_paths: Vec<PathBuf>,
pub workspace_dir: Option<PathBuf>,
pub api_key: Option<String>,
pub provider_options: Option<ProviderOptions>,
pub rate_limit_per_minute: usize,
pub token_budget: usize,
pub audit_tool_calls: bool,
pub provider_rpm: u32,
}Expand description
Configuration for creating AgentRuntime instances.
Fields§
§model_id: StringModel ID in provider/model format (e.g. anthropic/claude-sonnet-4-20250514).
max_iterations: usizeMaximum number of agent turns before forcing a stop.
tool_execution: ToolExecutionModeHow to execute tool calls within a single turn.
auto_retry_enabled: boolWhether auto-retry is enabled for retryable LLM errors.
project_paths: Vec<PathBuf>Bound project paths. AgentRuntime sets CWD to paths[0].
workspace_dir: Option<PathBuf>Scratch workspace directory for temp files.
api_key: Option<String>API key resolved from CredentialStore at build time.
provider_options: Option<ProviderOptions>Per-provider options for fine-grained control.
rate_limit_per_minute: usizeRate limit for tool calls (requests per minute). 0 = unlimited.
token_budget: usizeToken budget per agent execution. 0 = unlimited.
audit_tool_calls: boolEnable audit logging for all tool executions.
provider_rpm: u32Provider-level RPM for rate-limited provider pool. 0 = no pooling.
When set, uses OxiosEngine::pooled_provider() instead of create_provider().
Trait Implementations§
Source§impl Clone for AgentRuntimeConfig
impl Clone for AgentRuntimeConfig
Source§fn clone(&self) -> AgentRuntimeConfig
fn clone(&self) -> AgentRuntimeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more