> ## 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.

# Validate Candidate • AI Agent SDK

> validate_candidate: Build/boot the candidate from ``new_config`` and pre-flight it.

# validate\_candidate

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**ReloadValidationProtocol**](../classes/ReloadValidationProtocol) class in the [**config**](../modules/config) module.

Build/boot the candidate from `new_config` and pre-flight it.

Must not stop or mutate the live runtime; on any failure return a
report with `ok=False` and the reason(s) so the caller keeps the
previous config serving.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def validate_candidate(new_config: Mapping[str, Any]) -> CandidateReport
```

## Parameters

<ParamField query="new_config" type="Mapping[str, Any]" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="CandidateReport">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/config.py#L356">
  `praisonaiagents/gateway/config.py` at line 356
</Card>
