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

python
def register_profile(matchers: List[str], profile: HarnessProfile) -> None

Parameters

ParamField List[str]

Case-insensitive substrings matched against the model id.

ParamField HarnessProfile

The :class:HarnessProfile to resolve when a matcher hits.

Source

View on GitHub

praisonaiagents/model_harness/profiles.py at line 89


Related Documentation