gleamunison/cli_llm
gleamunison llm — the LLM ability reachable from the shipped binary.
Env lookup and the op handler are both injected, so the live provider, a retry-wrapped provider, and a test mock are the same function call. That swap is the entire point of the ability design.
Types
Values
pub fn command_result(
args: List(String),
) -> Result(String, String)
The process boundary must not guess success from the rendered text.
pub fn resolve_config(
provider: llm_types.Provider,
env: fn(String) -> Result(String, Nil),
) -> Result(llm_types.ProviderConfig, String)
Provider config from the environment, with sane defaults.