Get Default • AI Agent SDK

get_default: Get a specific default value.

get_default

Function

</div>

This function is defined in the loader module.

Get a specific default value.

Signature

python
def get_default(key: str, fallback: Any) -> Any

Parameters

ParamField str

Config key (e.g., “model”, “memory”, “memory.backend”)

ParamField Any

Value to return if key not found

Returns

ResponseField Any

Config value or fallback

Uses

  • get_defaults_config

Used By

Source

View on GitHub

praisonaiagents/config/loader.py at line 511