Validate Candidate • AI Agent SDK

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

validate_candidate

Async

Method

</div>

This is a method of the ReloadValidationProtocol class in the 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
async def validate_candidate(new_config: Mapping[str, Any]) -> CandidateReport

Parameters

ParamField Mapping[str, Any]

No description available.

Returns

ResponseField CandidateReport

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/config.py at line 472