canonical_runtime_name
Function
This function is defined in the feature_configs module.Normalise a runtime name; reject typos but allow genuine plugin names. Matching is case-insensitive, ignores surrounding whitespace, and treats
-/_ as interchangeable, mirroring the other preset resolvers.
A value that names a known runtime resolves to its canonical spelling, so
NATIVE/native all map to native and pick up the full matrix
instead of silently dropping capabilities. A value that is a close typo of
a known runtime (e.g. nativ) raises with a suggestion rather than
degrading silently. A genuinely unknown name (e.g. a third-party plugin
runtime registered later) is returned as-is so it can fall back to the
reduced harness — matching the runtime registry, not a closed literal.
Signature
Parameters
str
required
No description available.
Returns
str
The result of the operation.
Uses
canonical_preset_keysuggest_similarmake_preset_error
Used By
Source
View on GitHub
praisonaiagents/config/feature_configs.py at line 1918
