Register Profile • AI Agent SDK
register_profile: Register (or prepend) a family matcher → profile mapping.
register_profile
Function
</div>
This function is defined in the profiles module.
Register (or prepend) a family matcher → profile mapping.
New registrations take precedence over the built-in defaults so callers can override behaviour. Thread-safe.
Signature
def register_profile(matchers: List[str], profile: HarnessProfile) -> NoneParameters
ParamField
List[str]Case-insensitive substrings matched against the model id.
ParamField
HarnessProfileThe :class:HarnessProfile to resolve when a matcher hits.
Source
View on GitHubpraisonaiagents/model_harness/profiles.py at line 89