LlmCore.Router.RoutingTable (llm_core v0.7.0)

Copy Markdown View Source

In-memory representation of the routing rules loaded from YAML.

Summary

Functions

Builds a table from a config map. default is nil when the config supplies none: no provider alias is ever invented here. Resolution against a table without a default fails with {:no_routing_default, _}.

Types

t()

@type t() :: %LlmCore.Router.RoutingTable{
  default: LlmCore.Router.RouteEntry.t() | nil,
  loaded_at: DateTime.t(),
  rules: %{optional(String.t()) => LlmCore.Router.RouteEntry.t()}
}

Functions

new(map)

@spec new(map()) :: t()

Builds a table from a config map. default is nil when the config supplies none: no provider alias is ever invented here. Resolution against a table without a default fails with {:no_routing_default, _}.