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

# Apply Config Defaults • Rust AI Agent SDK

> apply_config_defaults: Apply config defaults to a parameter if not explicitly set

# apply\_config\_defaults

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

Apply config defaults to a parameter if not explicitly set

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def apply_config_defaults(
    param_name: &str,
    explicit_value: Option<T>,
) -> Option<T>
```

## Parameters

<ParamField query="param_name" type="&str" required={true}>
  No description available.
</ParamField>

<ParamField query="explicit_value" type="Option<T>" required={true}>
  No description available.
</ParamField>

### Returns

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

## Uses

* `is_some`
* `get_default`
* `get`
* `as_bool`
* `from_value`
* `ok`

## 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#L352">
  `praisonai/src/parity/config_loader.rs` at line 352
</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>
