LLMProxy.Config.TOML (llm_proxy v0.2.0)

Copy Markdown View Source

Strict TOML decoder for standalone LLMProxy configuration.

The decoder translates a finite data-only schema into ordinary application configuration. It never creates atoms from arbitrary TOML keys and does not accept credentials or encryption keys.

Summary

Types

decoded()

@type decoded() :: keyword()

reason()

@type reason() :: Toml.reason()

Functions

decode(input, opts \\ [])

@spec decode(
  String.t(),
  keyword()
) :: {:ok, decoded()} | {:error, reason()}

decode_file(path, opts \\ [])

@spec decode_file(
  Path.t(),
  keyword()
) :: {:ok, decoded()} | {:error, reason()}