core/config
Configuration loader.
Reads secrets from .env and all other settings from agent.toml.
Environment variables take precedence over TOML values.
Values
pub fn get_admin_host() -> String
pub fn get_admin_port() -> Int
pub fn get_api_context_window_warn_percent() -> Int
pub fn get_api_key() -> Result(String, Nil)
pub fn get_auto_prune_enabled() -> Bool
pub fn get_auto_prune_min_interval_hours() -> Int
pub fn get_auto_prune_retention_days() -> Int
pub fn get_auto_title_enabled() -> Bool
pub fn get_auto_title_max_tokens() -> Int
pub fn get_auto_title_temperature() -> Float
pub fn get_base_url() -> String
pub fn get_bash_clear_env() -> Bool
pub fn get_bash_default_workdir() -> String
pub fn get_bash_detect_background_wrappers() -> Bool
pub fn get_bash_env_passthrough() -> String
pub fn get_bash_foreground_max_seconds() -> Int
pub fn get_bash_interpret_exit_codes() -> Bool
pub fn get_bash_max_output_chars() -> Int
pub fn get_browser_backend() -> String
pub fn get_browser_command_timeout() -> Int
pub fn get_browser_engine() -> String
pub fn get_browser_headless() -> Bool
pub fn get_browser_max_screenshot_chars() -> Int
pub fn get_browser_max_snapshot_chars() -> Int
pub fn get_code_javascript_cmd() -> String
pub fn get_code_max_output_chars() -> Int
pub fn get_code_python_cmd() -> String
pub fn get_code_shell_cmd() -> String
pub fn get_code_tempdir_cmd() -> String
pub fn get_code_timeout_seconds() -> Int
pub fn get_compression_enabled() -> Bool
pub fn get_compression_protect_head() -> Int
pub fn get_compression_protect_tail() -> Int
pub fn get_compression_summary_max_tokens() -> Int
pub fn get_compression_trigger_percent() -> Int
pub fn get_context_files_enabled() -> Bool
pub fn get_context_inject_env() -> Bool
pub fn get_context_tool_use_guidance() -> Bool
pub fn get_crash_recovery_enabled() -> Bool
pub fn get_crash_recovery_max_age() -> Int
pub fn get_cron_enabled() -> Bool
pub fn get_cron_poll_interval_secs() -> Int
pub fn get_cron_scan_enabled() -> Bool
pub fn get_db_path() -> String
pub fn get_default_persona() -> String
pub fn get_guardrails_no_progress_block() -> Int
pub fn get_guardrails_no_progress_warn() -> Int
pub fn get_guardrails_same_args_block() -> Int
pub fn get_guardrails_same_tool_block() -> Int
pub fn get_guardrails_same_tool_warn() -> Int
pub fn get_guardrails_tool_loop_enabled() -> Bool
pub fn get_guardrails_total_halt() -> Int
pub fn get_harness_allow_file_writes() -> Bool
pub fn get_harness_allow_memory_writes() -> Bool
pub fn get_harness_allow_shell_commands() -> Bool
pub fn get_harness_allow_skill_creation() -> Bool
pub fn get_harness_enabled() -> Bool
pub fn get_max_retries() -> Int
pub fn get_max_tokens() -> Int
pub fn get_max_tool_rounds() -> Int
pub fn get_memory_char_limit() -> Int
pub fn get_memory_dedup_enabled() -> Bool
pub fn get_memory_scan_enabled() -> Bool
pub fn get_memory_show_usage() -> Bool
pub fn get_persona_default_prompt() -> String
pub fn get_persona_directory() -> String
pub fn get_persona_extension() -> String
pub fn get_pulse_agent() -> String
pub fn get_pulse_enabled() -> Bool
pub fn get_pulse_interval_minutes() -> Int
pub fn get_pulse_path() -> String
pub fn get_pulse_two_phase() -> Bool
pub fn get_reflection_enabled() -> Bool
pub fn get_reflection_turn_interval() -> Int
pub fn get_restrict_to_working_dir() -> Bool
pub fn get_retry_backoff_multiplier() -> Float
pub fn get_retry_delay_ms() -> Int
pub fn get_send_message_dedup_secs() -> Int
Seconds to suppress duplicate send_message calls to the same chat. 0 = disabled. Default 10.
pub fn get_telegram_allowed_updates() -> List(String)
pub fn get_telegram_http_timeout_ms() -> Int
pub fn get_telegram_notify_chat_id() -> Result(String, String)
Default Telegram chat/channel ID for daemon-initiated notifications (Pulse, Cron, Reflection). When the agent runs outside an interactive Telegram session, this is the fallback destination.
pub fn get_telegram_polling_interval() -> Int
pub fn get_telegram_polling_limit() -> Int
pub fn get_telegram_polling_timeout() -> Int
pub fn get_temperature() -> Float
pub fn get_timezone() -> String
pub fn get_tool_choice() -> String
pub fn get_user_char_limit() -> Int
pub fn get_web_allow_private_ips() -> Bool
pub fn get_web_max_error_chars() -> Int
pub fn get_web_max_response_chars() -> Int
pub fn get_web_request_timeout_ms() -> Int
pub fn get_web_scan_secrets() -> Bool
pub fn get_web_user_agent() -> String
pub fn get_working_dir() -> String
pub fn load_env() -> Nil
Load .env (secrets) and agent.toml (configuration).
Call once at startup.