Legacy Config Rule • AI Agent SDK
LegacyConfigRule: A single declarative config-migration rule.
LegacyConfigRule
Defined in the config 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
ResponseField
CallableNo description available.
ResponseField
CallableNo description available.
ResponseField
strNo description available.
Source
View on GitHubpraisonaiagents/gateway/config.py at line 170