> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AutoExplainConfig

<span id="atoti_ai.AutoExplainConfig" />

> atoti\_ai.AutoExplainConfig(<br />
>     \*,<br />
>     *retained\_run\_count*: [int](https://docs.python.org/3/library/functions.html#int) = `100`,<br />
>     *run\_lifetime*: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) = `datetime.timedelta(seconds=6000)`,<br />
> )

The configuration of [`auto_explain`](./atoti.Cube.auto_explain#atoti.Cube.auto_explain).

### Attributes

<h4 id="atoti_ai.AutoExplainConfig.retained_run_count">
  *retained\_run\_count*
</h4>

How many analyses the session keeps retrievable from the chat.

A user can ask the chat for an analysis that already ran instead of running it
again.
This is the total the session keeps, across all its users.
Once it is reached, running another analysis drops the one that ran first.

<h4 id="atoti_ai.AutoExplainConfig.run_lifetime">
  *run\_lifetime*
</h4>

How long an analysis stays retrievable from the chat.

Counted from the moment the analysis ran.
Past it, the analysis has to run again.
