Normandy.Behaviours.ModelCatalog behaviour (normandy v1.3.0)

View Source

Contract for model capability/limit lookup.

The default impl Static is the canonical home for the context-window limits that previously lived hardcoded on Normandy.Context.WindowManager. Phase 2 consumption is WindowManager sourcing its limits here; Phase 5 adds turn-loop consumption — BaseAgent.compact_turn_memory/3 reads context_window/1 to decide the :steering-boundary compaction trigger.

Summary

Callbacks

context_window(model)

@callback context_window(model :: String.t()) :: pos_integer() | nil

get(model)

@callback get(model :: String.t()) :: {:ok, map()} | :error

supports?(model, capability)

@callback supports?(model :: String.t(), capability :: atom()) :: boolean()