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

# Create Dakera Memory Adapter • AI Agent SDK

> create_dakera_memory_adapter: Factory function to create a Dakera memory adapter.

# create\_dakera\_memory\_adapter

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

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

Factory function to create a Dakera memory adapter.

Lazy imports the `dakera` SDK and creates an adapter that wraps a
`DakeraClient` to implement `MemoryProtocol`. Dakera is a self-hosted
memory server providing decay-weighted vector recall scoped by `agent_id`.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def create_dakera_memory_adapter() -> MemoryProtocol
```

### Returns

<ResponseField name="Returns" type="MemoryProtocol">
  MemoryProtocol adapter instance.
</ResponseField>

### Exceptions

<AccordionGroup>
  <Accordion title="ImportError">
    If the `dakera` SDK is not installed.
  </Accordion>
</AccordionGroup>

## Uses

* `ImportError`
* `DakeraMemoryAdapter`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/memory/adapters/factories.py#L134">
  `praisonaiagents/memory/adapters/factories.py` at line 134
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Memory Concept" icon="brain" href="/docs/docs/concepts/memory" />

  <Card title="Memory Overview" icon="database" href="/docs/docs/memory/overview" />

  <Card title="Memory Configuration" icon="gear" href="/docs/docs/configuration/memory-config" />

  <Card title="Session Resume" icon="rotate-right" href="/docs/docs/memory/session-resume" />
</CardGroup>
