Resolve Harness • AI Agent SDK
resolve_harness: Resolve a model id to a :class:`HarnessProfile`.
resolve_harness
Function
</div>
This function is defined in the profiles module.
Resolve a model id to a :class:HarnessProfile.
Unknown / falsy models return :data:DEFAULT_PROFILE (no behaviour change).
Signature
def resolve_harness(model: Optional[str]) -> HarnessProfileParameters
ParamField
Optional[str]The model id string (e.g. `"claude-opus-4"`).
Returns
ResponseField
HarnessProfileThe first matching profile, or the default profile.
Source
View on GitHubpraisonaiagents/model_harness/profiles.py at line 104