> ## 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.

# Legacy Config Rule • AI Agent SDK

> LegacyConfigRule: A single declarative config-migration rule.

# LegacyConfigRule

> Defined in the [**config**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/config.md) module.

AI Agent

A single declarative config-migration rule.

`detect` returns True when the (old) shape this rule fixes is present in
the raw config mapping; `fix` returns the mutated mapping moving it toward
the current version; `reason` is an operator-facing description rendered by
`gateway doctor --fix`. Rules are pure functions of the raw mapping so the
same set can be reasoned about, tested, and applied identically everywhere.

## Properties

**detect** `Callable`

No description available.

**fix** `Callable`

No description available.

**reason** `str`

No description available.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/config.py#L170)
>
> `praisonaiagents/gateway/config.py` at line 170

***

## Related Documentation

> [card] [Configuration Overview](https://praison.ai/docs/docs/configuration/index)

> [card] [Agent Config](https://praison.ai/docs/docs/configuration/agent-config)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.