> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve Harness • AI Agent SDK

> resolve_harness: Resolve a model id to a :class:`HarnessProfile`.

# resolve\_harness

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**profiles**](../modules/profiles) module.

Resolve a model id to a :class:`HarnessProfile`.

Unknown / falsy models return :data:`DEFAULT_PROFILE` (no behaviour change).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def resolve_harness(model: Optional[str]) -> HarnessProfile
```

## Parameters

<ParamField query="model" type="Optional[str]" required={true}>
  The model id string (e.g. `"claude-opus-4"`).
</ParamField>

### Returns

<ResponseField name="Returns" type="HarnessProfile">
  The first matching profile, or the default profile.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/model_harness/profiles.py#L104">
  `praisonaiagents/model_harness/profiles.py` at line 104
</Card>
