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

# With Store • Rust AI Agent SDK

> with_store: Create with custom store

# with\_store

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

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

Create with custom store

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def with_store(session_id: impl Into<String>, store: Arc<dyn SessionStore>) -> Self
```

## Parameters

<ParamField query="session_id" type="impl Into<String>" required={true}>
  No description available.
</ParamField>

<ParamField query="store" type="Arc<dyn SessionStore>" required={true}>
  No description available.
</ParamField>

### Returns

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