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

# From Config • AI Agent SDK

> from_config: API reference for CustomMemory.from_config

# from\_config

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**CustomMemory**](../classes/CustomMemory) class in the [**knowledge**](../modules/knowledge) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def from_config(config: Any) -> Any
```

## Parameters

<ParamField query="config" type="Any" required={true}>
  No description available.
</ParamField>

### Returns

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

## Uses

* `from_config`

## Used By

* [`CustomMemory.from_config`](../functions/CustomMemory-from_config)
* [`Knowledge.memory`](../functions/Knowledge-memory)
* [`Knowledge.memory`](../functions/Knowledge-memory)

## Source

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

***

## Related Documentation

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

  <Card title="Agent Config" icon="robot" href="/docs/configuration/agent-config" />
</CardGroup>
