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

> get_default: Get a specific default value.

# get\_default

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

> This function is defined in the [**loader**](../modules/loader) module.

Get a specific default value.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_default(key: str, fallback: Any) -> Any
```

## Parameters

<ParamField query="key" type="str" required={true}>
  Config key (e.g., "model", "memory", "memory.backend")
</ParamField>

<ParamField query="fallback" type="Any" required={false}>
  Value to return if key not found
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  Config value or fallback
</ResponseField>

## Uses

* `get_defaults_config`

## Used By

* [`apply_config_defaults`](../functions/apply_config_defaults)

## Source

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