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

# Get Config • Rust AI Agent SDK

> get_config: Get the global configuration Loads config lazily on first access and caches it.

# get\_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.

Get the global configuration Loads config lazily on first access and caches it.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_config() -> &'static PraisonConfig
```

### Returns

<ResponseField name="Returns" type="&'static PraisonConfig">
  The result of the operation.
</ResponseField>

## Uses

* `get_or_init`

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