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

python
def resolve_harness(model: Optional[str]) -> HarnessProfile

Parameters

ParamField Optional[str]

The model id string (e.g. `"claude-opus-4"`).

Returns

ResponseField HarnessProfile

The first matching profile, or the default profile.

Source

View on GitHub

praisonaiagents/model_harness/profiles.py at line 104