pub struct Config {Show 17 fields
pub model_path: Option<PathBuf>,
pub ledger_path: Option<PathBuf>,
pub bank_state_path: Option<PathBuf>,
pub marketplace_state_path: Option<PathBuf>,
pub mind_state_path: Option<PathBuf>,
pub share_compute: bool,
pub max_memory_gb: f32,
pub api_port: u16,
pub api_bind_addr: String,
pub api_bearer_token: Option<String>,
pub api_max_request_body_bytes: usize,
pub bootstrap_relays: Vec<String>,
pub region: String,
pub max_prompt_chars: usize,
pub max_generate_tokens: u32,
pub max_concurrent_remote_inference_requests: usize,
pub settlement_window_hours: u64,
}Fields§
§model_path: Option<PathBuf>Path to the local GGUF model file.
ledger_path: Option<PathBuf>Optional path to a persisted ledger snapshot.
bank_state_path: Option<PathBuf>Optional path to the persisted forge-bank (L2) state.
marketplace_state_path: Option<PathBuf>Optional path to the persisted forge-agora (L4) marketplace state.
mind_state_path: Option<PathBuf>Optional path to the persisted forge-mind (L3) agent snapshot.
Whether to share compute with the network.
max_memory_gb: f32Maximum memory (GB) to dedicate to inference.
api_port: u16Port for the local HTTP API.
api_bind_addr: StringBind address for the local HTTP API.
api_bearer_token: Option<String>Optional bearer token protecting administrative API endpoints.
api_max_request_body_bytes: usizeMaximum accepted HTTP request body size for the local API.
bootstrap_relays: Vec<String>Bootstrap relay addresses for WAN discovery.
region: StringRegion hint for peer discovery.
max_prompt_chars: usizeMaximum accepted prompt length for API and remote inference requests.
max_generate_tokens: u32Maximum number of tokens a single request may ask the runtime to generate.
max_concurrent_remote_inference_requests: usizeMaximum number of concurrent remote inference requests the seed will execute.
settlement_window_hours: u64Settlement window duration in hours (Issue #19). 0 = manual only.