> ## 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 Config • Rust AI Agent SDK

> validate_config: Validate config structure and types

# validate\_config

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

> This function is defined in the [**config\_loader**](../modules/config_loader) module.

Validate config structure and types

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def validate_config(config: &serde_json::Value) -> Result<(), ConfigValidationError>
```

## Parameters

<ParamField query="config" type="&serde_json::Value" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Result<(), ConfigValidationError>">
  The result of the operation.
</ResponseField>

## Uses

* `as_object`
* `keys`
* `contains`
* `suggest_similar_key`
* `get`
* `remove`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/parity/config_loader.rs#L436">
  `praisonai/src/parity/config_loader.rs` at line 436
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Configuration" icon="gear" href="/docs/rust/configuration" />

  <Card title="Rust Installation" icon="download" href="/docs/rust/installation" />
</CardGroup>
