> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Canonical Runtime Name • AI Agent SDK

> canonical_runtime_name: Normalise a runtime name; reject typos but allow genuine plugin names.

# canonical\_runtime\_name

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**feature\_configs**](../modules/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

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def canonical_runtime_name(value: str) -> str
```

## Parameters

<ParamField query="value" type="str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  The result of the operation.
</ResponseField>

## Uses

* `canonical_preset_key`
* `suggest_similar`
* `make_preset_error`

## Used By

* [`resolve_runtime`](../functions/resolve_runtime)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/config/feature_configs.py#L1918">
  `praisonaiagents/config/feature_configs.py` at line 1918
</Card>
