gleamunison/llm_controls
Primitive controls shared by ambient/CLI provider configuration and retry composition. No provider registry or dependency on llm types.
Types
Values
pub fn env_or(
env: fn(String) -> Result(String, Nil),
key: String,
fallback: String,
) -> String
pub fn resolve(
anthropic: Bool,
env: fn(String) -> Result(String, Nil),
) -> Result(#(String, String, String, Int, Int, String), String)
pub fn retry_delay(base: Int, attempt: Int) -> Int