pub struct BackendConfig {
pub provider: String,
pub model: String,
pub endpoint: Option<String>,
pub api_key_env: Option<String>,
pub timeout_secs: Option<u64>,
}Expand description
Backend selection for a single chat-completion call site.
Per spec §6 of cloud-LLM-backend design. Used by CompactConfig
(per-stage) and AskConfig (per-stage) to override the legacy
Ollama-only path. None of the Option fields are required;
resolution falls back to provider defaults
(ollama: http://localhost:11434, anthropic: https://api.anthropic.com).
Stays in mur-common (not mur-core) because it is pure data and will be reused by mur-agent-runtime in a future phase.
Fields§
§provider: String“ollama” | “anthropic”. Defaults to “ollama” for backward compat.
model: StringModel name as the provider sees it (“claude-haiku-4-5”, “qwen3:4b”, …).
endpoint: Option<String>Provider endpoint. None = provider default (ollama: http://localhost:11434, anthropic: https://api.anthropic.com).
api_key_env: Option<String>Env var holding the API key. None = no auth (ollama).
timeout_secs: Option<u64>Per-call timeout in seconds. None = 120s.
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackendConfig
impl Debug for BackendConfig
Source§impl Default for BackendConfig
impl Default for BackendConfig
Source§impl<'de> Deserialize<'de> for BackendConfigwhere
BackendConfig: Default,
impl<'de> Deserialize<'de> for BackendConfigwhere
BackendConfig: Default,
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>,
Source§impl PartialEq for BackendConfig
impl PartialEq for BackendConfig
Source§fn eq(&self, other: &BackendConfig) -> bool
fn eq(&self, other: &BackendConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for BackendConfig
impl Serialize for BackendConfig
impl Eq for BackendConfig
impl StructuralPartialEq for BackendConfig
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnsafeUnpin for BackendConfig
impl UnwindSafe for BackendConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.