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

# Detect Memory Backend • Rust AI Agent SDK

> detect_memory_backend: Detect memory backend from URL

# detect\_memory\_backend

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

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

Detect memory backend from URL

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def detect_memory_backend(url: &str) -> Option<&'static str>
```

## Parameters

<ParamField query="url" type="&str" required={true}>
  No description available.
</ParamField>

### Returns

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

## Uses

* `starts_with`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/presets.rs#L100">
  `praisonai/src/presets.rs` at line 100
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Memory" icon="database" href="/docs/rust/memory" />

  <Card title="Rust Sessions" icon="clock" href="/docs/rust/sessions" />

  <Card title="Rust Knowledge" icon="book" href="/docs/rust/knowledge" />
</CardGroup>
